Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
[gnulib.git] / ChangeLog
blobf57bdaf1607169b57fcec06b7500b19d00ed4a87
1 2020-09-27  Bruno Haible  <bruno@clisp.org>
3         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
4         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
5         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
6         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
7         ourselves; don't use AC_DECL_SYS_SIGLIST.
9 2020-09-27  Bruno Haible  <bruno@clisp.org>
11         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
12         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
13         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
14         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
15         instead of _AC_COMPUTE_INT.
17 2020-09-27  Bruno Haible  <bruno@clisp.org>
19         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
20         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
21         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
22         Based on a patch by Paul Eggert.
23         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
24         test STDC_HEADERS. Assume <stdlib.h> exists.
25         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
27 2020-09-27  Bruno Haible  <bruno@clisp.org>
29         Enable testing of prereleases of Autoconf 2.70.
30         Suggested by Paul Eggert in
31         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
32         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
33         >= 2.70.
34         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
35         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
36         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
38 2020-09-27  Bruno Haible  <bruno@clisp.org>
40         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
41         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
42         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
43         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
44         AC_PROG_CC, depending on the Autoconf version.
46 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
48         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
49         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
50         of AC_HELP_STRING.
51         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
53 2020-09-27  Bruno Haible  <bruno@clisp.org>
55         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
56         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
57         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
58         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
60 2020-09-27  Bruno Haible  <bruno@clisp.org>
62         extensions: Simplify last commit.
63         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
64         AC_GNU_SOURCE ever.
66 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68         extensions: require AC_GNU_SOURCE only for <=2.63
69         Problem reported by Gavin Smith in:
70         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
71         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
72         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
73         shouldn’t be needed after that, and Autoconf 2.70 complains about
74         it being obsolete.
76 2020-09-26  Bruno Haible  <bruno@clisp.org>
78         regex-tests: Make test more robust.
79         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
80         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
82 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
84         regex-tests: fix possible Turkish false-alarm
85         * modules/regex-tests (Depends-on): Add wctype-h.
86         * tests/test-regex.c: Include wctype.h.
87         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
88         as the Turkish regex test assumes this.
90         regex-tests: fix test and add debug output
91         Perhaps this will fix the recent grep test failure reported at:
92         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
93         At least, the debug output should help narrow down the failure.
94         * tests/test-regex.c: Include stdarg.h, stdio.h.
95         (exit_status): New var.
96         (report_error): New function.
97         (main): Use it to report failures to stdout instead of merely
98         exiting with some nonzero status.  The status info alone isn’t
99         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
100         regex before calling re_compile_pattern, fixing a portability bug.
102         regex: no longer match glibc
103         * config/srclist.txt: Comment out regex_internal.c for now.
105 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
107         regex: fix ignore-case Turkish bug
108         * lib/regex_internal.c (build_wcs_upper_buffer):
109         Do not assume that converting single-byte character to upper
110         yields a single-byte character.  This is not true for Turkish,
111         where towupper (L'i') yields L'İ', which is not single-byte.
112         * tests/test-regex.c (main): Test for this bug.
114         regex: port to weird isascii platforms
115         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
117 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
119         dfa: make dfasupported a global function
120         * lib/dfa.c (dfasupported): Rename, and make it global.
121         Update caller.
122         * lib/dfa.h (dfasupported): Add prototype.
124 2020-09-20  Bruno Haible  <bruno@clisp.org>
126         canonicalize: Add support for UNC file names on native Windows.
127         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
128         <https://savannah.gnu.org/bugs/?59079>.
129         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
130         extend the prefix to include the server.
132 2020-09-20  Bruno Haible  <bruno@clisp.org>
134         supersede: Fix test failures on native Windows.
135         * lib/supersede.c (open_supersede): Handle non-regular files on native
136         Windows like on Solaris.
137         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
139 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
141         test-stdalign: test Oracle Studio better
142         * doc/posix-headers/stdalign.texi (stdalign.h):
143         * tests/test-stdalign.c (main):
144         Sun Studio Bug #2125432 seems to be fixed.
146         c-stack: output diagnostic in single 'write'
147         * lib/c-stack.c (die): In the typical case, use just one 'write'
148         syscall to output the diagnostic, as this lessens interleaving.
149         (die, c_stack_action): Assume C99.
150         * modules/c-stack (Depends-on): Add c99, mempcpy.
152         c-stack: improve checking if !libsigsegv
153         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
154         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
155         unlikely pointer overflow.  Also, fix some obsolete code and typos.
156         I found these problems while looking into this bug report:
157         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
158         * lib/c-stack.c: Include c-stack.h first, to test interface.
159         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
160         max_align_t, intprops.h for INT_ADD_WRAPV.
161         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
162         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
163         for libsigsegv 2.8 and earlier since the bug should be fixed
164         after that.
165         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
166         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
167         Assume sprintf returns byte count; this assumption is safe now.
168         (page_size): New static volatile variable, since sysconf isn’t
169         documented to be async-signal-safe on Solaris.  This variable is
170         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
171         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
172         SIGINFO_WORKS).
173         (segv_handler): Use it if present.  Never report null pointer
174         dereference as a stack overflow.  Check for (unlikely) unsigned
175         and/or pointer overflow.
176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
177         Rename cache variables to gl_cv_sys_stack_overflow_works
178         and gl_cv_sys_xsi_stack_overflow_heuristic.
179         All uses changed.
180         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
181         c-stack no longer uses STACK_DIRECTION.
182         Do not check for unistd.h, since we depend on unistd.
183         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
184         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
185         stdbool, stddef.
187 2020-09-20  Bruno Haible  <bruno@clisp.org>
189         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
190         * m4/musl.m4: Revert 2020-09-19 patch.
191         * m4/setlocale_null.m4: Likewise.
192         * modules/setlocale-null: Likewise.
194 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
195             Bruno Haible  <bruno@clisp.org>
197         relocatable-prog: Fix for multiple relocatable library directories.
198         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
199         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
200         being attached to a single one.
202 2020-09-19  Jim Meyering  <meyering@fb.com>
204         test-verify.c: avoid -Wshadow warnings
205         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
206         (enum): Capitalize member names. Adjust uses.
208 2020-09-19  Bruno Haible  <bruno@clisp.org>
210         havelib: Avoid linking with libc.a on GNU systems.
211         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
212         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
213         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
214         dependency_libs value of a .la file, ignore '-lc' options on GNU
215         systems.
217 2020-09-19  Bruno Haible  <bruno@clisp.org>
219         Fix recognition of musl libc on Alpine Linux 3.10.
220         Reported by Jeffrey Walton <noloader@gmail.com> in
221         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
222         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
223         (gl_MUSL_LIBC): Require it.
224         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
225         * modules/setlocale-null (Files): Add m4/musl.m4.
227 2020-09-19  Bruno Haible  <bruno@clisp.org>
229         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
230         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
231         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
232         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
233         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
234         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
235         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
236         or <threads.h>.
237         (ITEMS, MAX_RESULT_LEN): New macros.
238         (nl_langinfo_unlocked): New function.
239         (gl_get_nl_langinfo_lock): New declaration.
240         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
241         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
242         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
243         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
244         REPLACE_NL_LANGINFO.
245         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
246         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
247         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
248         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
249         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
251 2020-09-18  Bruno Haible  <bruno@clisp.org>
253         fsusage, getaddrinfo: Produce more regular configure output.
254         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
255         corresponding AC_MSG_RESULT.
256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
258 2020-09-18  Bruno Haible  <bruno@clisp.org>
260         Add back gl_SILENT.
261         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
263 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
265         c-stack-tests: fix -fsanitize=undefined false alarm
266         * tests/test-c-stack2.sh: Skip the test-harness self-test
267         if ‘gcc -fsanitize=undefined’ is in use.
269 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
271         signalblocking: simplify and remove gl_SILENT
272         gl_SILENT was problematic because if a trap was sprung, stderr
273         generated during the trap was lost.  Avoid the problem by
274         removing the need for gl_SILENT.
275         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
276         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
277         Simplify, avoiding the need for gl_SILENT while preserving the
278         ability of the user to override the value of the cache variable,
279         now ac_cv_func_sigprocmask.
281 2020-09-17  Bruno Haible  <bruno@clisp.org>
283         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
284         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
285         (gl_SILENT): Use 'exec', not a compound statement, to redirect
286         AS_MESSAGE_FD.
288 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
290         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
291         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
292         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
293         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
294         Define to 0.
295         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
296         Do not use __builtin_mul_overflow_p.
298         libc-config: port __THROW to Ubuntu 4
299         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
300         for GCC 3.3.  Problem reported by Jeffrey Walton in:
301         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
302         The GCC 3.3.4 documentation says the attribute should work, but
303         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
304         little point or desire to research this circa-2004 platform further,
305         so just avoid the attribute there.
307 2020-09-17  Jim Meyering  <meyering@fb.com>
309         test-dfa-match.sh: port timeout work-around to newer Busybox
310         * tests/test-dfa-match.sh: Update timeout -t portability test to
311         accommodate Busybox 1.30.0 and newer.
313 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
315         fnmatch: adjust to match glibc fix
316         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
317         This does not affect Gnulib; it merely keeps Gnulib and glibc
318         closer together, to help with any eventual merge, by incorporating
319         a recent glibc patch.  The patch and the following commentary is
320         by Andreas Schwab.
321         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
322         contains the index into the extra array, whereas wextra points
323         into the extra array at this index, containing the length of the
324         following collating sequence in the wide character representation.
326 2020-09-16  Bruno Haible  <bruno@clisp.org>
328         stat, fstat: Fix compilation error with old mingw headers.
329         Reported by Eli Zaretskii <eliz@gnu.org> in
330         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
331         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
332         define it.
334 2020-09-16  Bruno Haible  <bruno@clisp.org>
336         stat, fstat: Fix when compiling for versions older than Windows Vista.
337         Reported by Eli Zaretskii <eliz@gnu.org> in
338         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
339         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
340         that was originally set before we redefined it.
341         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
342         (gl_PREREQ_STAT): Require it.
343         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
345 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
347         dfa: remove dfa-heap-overrun workaround
348         * lib/dfa.c (reorder_tokens): Go back to a single pass that
349         both sets map[*] and does other things.  This reverts
350         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
351         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
352         fixed the underlying problem.
354 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
356         dfa: avoid use of uninitialized constraint
357         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
358         to zero here.
359         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
360         use of an uninitialized constraint by later code when ! (flags[i]
361         & OPT_QUEUED) means merge_nfa_state was not called to initialize
362         the constraint.  Problem found by running 'valgrind src/grep -E
363         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
365         dfa: assume C99 in reorder_tokens
366         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
368         dfa: fix dfa-heap-overrun failure
369         * lib/dfa.c (reorder_tokens): When setting
370         map[d->follows[i].elems[j].index], instead of incorrectly assuming
371         that (i < d->follows[i].elems[j].index), use two loops, one to set
372         the map array and the other to use it.  The incorrect assumption
373         caused some elements to be missed, and this in turn caused grep's
374         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
375         with GCC.  I found this bug while investigating
376         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
377         and I think the bug also occurs on GNU/Linux but with more-subtle
378         symptoms.  The bug predates the recent dfa.c changes; perhaps the
379         recent changes make the bug more likely.
381 2020-09-13  Bruno Haible  <bruno@clisp.org>
383         parse-datetime: Make the build rule work with parallel 'make'.
384         Reported by Daiki Ueno <ueno@gnu.org> in
385         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
386         * modules/parse-datetime (Makefile.am): Use a phony target and the
387         general idiom for rules that produce multiple files.
389 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
391         getpass: Check for nonnull prompt argument while avoiding warnings.
392         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
393         (getpass) [!_WIN32]: Print prompt only if nonnull.
395 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
397         dfa: epsilon-closure tweaks (Bug#40634)
398         Rename BACKWORD to BACKWARD consistently.
399         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
400         (addtok_mb): Redo slightly to make it act more like a state machine.
401         Check depth only when it increases.
402         (epsclosure): Let the switch test the tokens.
403         (dfaanalyze): Cache tindex.  Simplify position loops.
404         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
405         only if it is not null, since we're testing that anyway.
406         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
408 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
410         dfa: use backward set in removal of epsilon closure
411         When removing in epsilon closure, the code searched all nodes
412         sequentially, and this was slow for some cases.  Build a backward
413         set before search, and only check previous position with the set.
414         Problem reported in <https://bugs.gnu.org/40634>.
415         * lib/dfa.c (struct dfa): New member 'epsilon'.
416         (addtok_mb): Check whether a pattern has epsilon node or not.
417         (epsclosure): New arg BACKWORD; caller changed.  When removing
418         epsilon node and reconnecting, check only previous positions.
419         Treat BEG as if it were character.
420         (dfaanalyze): Build backward set.
422 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
424         canonicalize: fix pointer indexing bugs
425         Problem reported by Florian Weimer in:
426         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
427         * lib/canonicalize-lgpl.c (__realpath):
428         * lib/canonicalize.c (canonicalize_filename_mode):
429         Do not generate a pointer past the end of the array.
430         * lib/canonicalize.c (canonicalize_filename_mode):
431         Do not use a pointer after passing it to realloc.
433 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
435         tempname: help merge with glibc
436         Inspired by draft patches by Adhemerval Zanella in:
437         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
438         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
439         * lib/tempname.c: Include stdalign.h, time.h.
440         If _LIBC, do not include random-bits.h.
441         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
442         (RANDOM_BITS): Remove, replacing with ...
443         (random_bits): ... this new static function.  All uses changed.
444         Add entropy each time if getrandom is not supported.
445         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
446         Assume 64-bit support a la C99.
447         (try_tempname_len): Take advantage of ASLR when initializing
448         random value.
449         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
451         getcwd: merge recent glibc changes
452         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
453         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
455 2020-09-06  Bruno Haible  <bruno@clisp.org>
457         attribute: Clarify which file to include.
458         * modules/attribute (Include): Add "attribute.h".
460 2020-09-06  Bruno Haible  <bruno@clisp.org>
462         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
463         * lib/pipe-filter-ii.c: Include <process.h>.
464         * lib/pipe-filter-gi.c: Likewise.
466 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
468         verify: avoid __builtin_assume
469         Our latest attempt to use Clang’s __builtin_assume caused a crash
470         in GNU Emacs that we spent quite some time tracking down as being
471         caused by the switch to __builtin_assume.  It’s not known whether
472         the crash is due is a Clang bug or a portability bug in GNU Emacs.
473         For now, play it safe and avoid __builtin_assume.
474         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
475         (assume): Simplify by not trying to use Clang’s __builtin_assume.
477 2020-09-05  Bruno Haible  <bruno@clisp.org>
479         Fix several "warning: no previous prototype for function".
480         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
481         in front of the declaration of the lookup function in
482         unicase/locale-languages.h.
483         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
484         unictype/bidi_byname.h.
485         * modules/unictype/category-byname (Makefile.am): Likewise in
486         unictype/categ_byname.h.
487         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
488         unictype/combiningclass_byname.h.
489         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
490         unictype/joininggroup_byname.h.
491         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
492         unictype/joiningtype_byname.h.
493         * modules/unictype/property-byname (Makefile.am): Likewise in
494         unictype/pr_byname.h.
495         * modules/unictype/scripts (Makefile.am): Likewise in
496         unictype/scripts_byname.h.
497         * modules/uninorm/composition (Makefile.am): Likewise in
498         uninorm/composition-table.h.
500 2020-09-05  Bruno Haible  <bruno@clisp.org>
502         select: Fix "warning: no previous prototype for function".
503         * lib/select.c: Include <sys/select.h>.
505 2020-09-05  Bruno Haible  <bruno@clisp.org>
507         Use module 'c99' when needed for variadic macros with '...' syntax.
508         * modules/crypto/sm3 (Depends-on): Add c99.
510 2020-09-05  Bruno Haible  <bruno@clisp.org>
512         Use module 'c99' when needed for subobject initializer syntax.
513         * modules/tempname (Depends-on): Add c99.
514         * modules/nstrftime-tests (Depends-on): Likewise.
516 2020-09-05  Bruno Haible  <bruno@clisp.org>
518         Use module 'c99' when needed for declaration-after-statement syntax.
519         * modules/backup-rename (Depends-on): Add c99.
520         * modules/backupfile (Depends-on): Likewise.
521         * modules/bitset-tests (Depends-on): Likewise.
522         * modules/bitsetv (Depends-on): Likewise.
523         * modules/c-strtod (Depends-on): Likewise.
524         * modules/c-strtold (Depends-on): Likewise.
525         * modules/clean-temp (Depends-on): Likewise.
526         * modules/copy-file (Depends-on): Likewise.
527         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
528         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
529         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
530         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
531         * modules/crypto/md5-buffer (Depends-on): Likewise.
532         * modules/crypto/md5-tests (Depends-on): Likewise.
533         * modules/crypto/sha1-buffer (Depends-on): Likewise.
534         * modules/crypto/sha1-tests (Depends-on): Likewise.
535         * modules/crypto/sha256-buffer (Depends-on): Likewise.
536         * modules/crypto/sha256-tests (Depends-on): Likewise.
537         * modules/crypto/sha512-buffer (Depends-on): Likewise.
538         * modules/crypto/sha512-tests (Depends-on): Likewise.
539         * modules/diffseq (Depends-on): Likewise.
540         * modules/fatal-signal (Depends-on): Likewise.
541         * modules/fchmodat (Depends-on): Likewise.
542         * modules/fstrcmp (Depends-on): Likewise.
543         * modules/fsusage (Depends-on): Likewise.
544         * modules/fts (Depends-on): Likewise.
545         * modules/fts-tests (Depends-on): Likewise.
546         * modules/getumask (Depends-on): Likewise.
547         * modules/git-merge-changelog (Depends-on): Likewise.
548         * modules/hash-map (Depends-on): Likewise.
549         * modules/hash-set (Depends-on): Likewise.
550         * modules/lchmod (Depends-on): Likewise.
551         * modules/libgmp-tests (Depends-on): Likewise.
552         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
553         * modules/linkedhash-map (Depends-on): Likewise.
554         * modules/linkedhash-set (Depends-on): Likewise.
555         * modules/long-options (Depends-on): Likewise.
556         * modules/mbrtoc32 (Depends-on): Likewise.
557         * modules/memchr2-tests (Depends-on): Likewise.
558         * modules/memmem-tests (Depends-on): Likewise.
559         * modules/memrchr-tests (Depends-on): Likewise.
560         * modules/mktime-internal (Depends-on): Likewise.
561         * modules/nstrftime (Depends-on): Likewise.
562         * modules/opendirat (Depends-on): Likewise.
563         * modules/parse-datetime (Depends-on): Likewise.
564         * modules/quotearg-simple-tests (Depends-on): Likewise.
565         * modules/same (Depends-on): Likewise.
566         * modules/supersede (Depends-on): Likewise.
567         * modules/supersede-tests (Depends-on): Likewise.
568         * modules/time_rz (Depends-on): Likewise.
569         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
570         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
571         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
572         * modules/xalloc (Depends-on): Likewise.
573         * modules/xnanosleep (Depends-on): Likewise.
575 2020-09-05  Bruno Haible  <bruno@clisp.org>
577         Fix "warning: array initialized from parenthesized string constant".
578         * tests/test-memmem.c (main): Remove parentheses around string constant.
579         * tests/test-c-strcasestr.c (main): Likewise.
580         * tests/test-strcasestr.c (main): Likewise.
582 2020-09-05  Bruno Haible  <bruno@clisp.org>
584         argmatch tests: Fix ISO C compliance warning.
585         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
586         invocation.
588 2020-09-05  Bruno Haible  <bruno@clisp.org>
590         uniname/uniname: Fix -Wshadow warning.
591         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
592         * modules/uniname/uniname (Depends-on): Add c99.
594 2020-09-05  Bruno Haible  <bruno@clisp.org>
596         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
597         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
598         argument to size_t.
599         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
600         n to size_t.
602 2020-09-05  Bruno Haible  <bruno@clisp.org>
604         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
605         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
606         u32_uctomb): Change type of last argument to ptrdiff_t.
607         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
608         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
609         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
610         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
611         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
613 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
615         manywarnings: remove -Wchkp and -Wabi from C++ too
616         Suggested by Reuben Thomas in:
617         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
618         At some point somebody should merge the many other manywarnings-c.m4
619         changes into manywarnings-c++.m4 too, e.g.,
620         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
621         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
622         Remove -Wchkp, -Wabi.
624 2020-08-30  Bruno Haible  <bruno@clisp.org>
626         strerrorname_np: Add tests.
627         * tests/test-strerrorname_np.c: New file.
628         * modules/strerrorname_np-tests: New file.
630         strerrorname_np: New module.
631         * lib/string.in.h (strerrorname_np): New declaration.
632         * lib/strerrorname_np.c: New file.
633         * m4/strerrorname_np.m4: New file.
634         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
635         is declared.
636         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
637         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
638         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
639         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
640         * modules/strerrorname_np: New file.
641         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
642         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
643         the glibc 2.32 bug.
645 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
647         perror, strerror_r: remove unportable tests
648         Problem reported by Florian Weimer in:
649         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
650         * tests/test-perror2.c (main):
651         * tests/test-strerror_r.c (main): Omit unportable tests.
653 2020-08-26  Bruno Haible  <bruno@clisp.org>
655         stdint, wchar, wctype-h: Change configure message.
656         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
657         enough..." instead of "checking whether wint_t is too small...".
659 2020-08-26  Bruno Haible  <bruno@clisp.org>
661         time_rz: Change configure message.
662         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
663         near extrema..." instead of "checking whether localtime loops forever
664         near extrema...".
666 2020-08-26  Bruno Haible  <bruno@clisp.org>
668         stdint: Change configure message.
669         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
670         without ISO C predefines..." instead of "checking whether stdint.h
671         predates C++11...".
673 2020-08-26  Bruno Haible  <bruno@clisp.org>
675         socketlib: Change configure message.
676         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
677         instead of "checking if we need to call WSAStartup in winsock2.h and
678         -lws2_32...".
680 2020-08-26  Bruno Haible  <bruno@clisp.org>
682         include_next: Change configure message.
683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
684         code line length is unlimited..." instead of "checking whether system
685         header files limit the line length...".
687 2020-08-26  Bruno Haible  <bruno@clisp.org>
689         getcwd: Change configure message.
690         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
691         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
692         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
694 2020-08-26  Bruno Haible  <bruno@clisp.org>
696         chdir-long: Change configure message.
697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
698         system supports file names of any length..." instead of "checking
699         whether this system has an arbitrary file name length limit...".
700         Set gl_cv_have_unlimited_file_name_length instead of
701         gl_cv_have_arbitrary_file_name_length_limit.
702         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
704 2020-08-26  Bruno Haible  <bruno@clisp.org>
706         ceill: Change configure message.
707         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
708         instead of "checking whether ceill() breaks with small values...".
710 2020-08-26  Bruno Haible  <bruno@clisp.org>
712         iconv: Change configure message.
713         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
714         with its POSIX signature..." instead of "checking for iconv
715         declaration...". Remove K&R C support.
717 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
719         getcwd: help the merge back into glibc
720         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
721         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
722         The idea is to make it easier for Gnulib lib/getcwd.c to match
723         glibc io/getcwd-generic.c.
724         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
725         Include not-cancel.h.
726         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
727         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
728         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
729         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
730         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
731         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
732         (__getcwd_generic): Rename from __getcwd.
733         Use the abovementioned macros for consistency with glibc.
734         (weak_alias): Remove.
736 2020-08-25  Bruno Haible  <bruno@clisp.org>
738         verify: Avoid warnings when assume(0) is used.
739         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
740         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
741         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
742         the constant 0.
743         * tests/test-verify.c (f): New function.
744         (state): New type.
745         (test_assume_expressions, test_assume_optimization,
746         test_assume_noreturn): New functions.
748 2020-08-25  Bruno Haible  <bruno@clisp.org>
750         fstrcmp: Clarification regarding NOTE_ORDERED.
751         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
753 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
755         diffseq: new option NOTE_ORDERED
756         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
757         * NEWS: Mention this.
758         * lib/diffseq.h (NOTE_ORDERED): New macro.
759         (IF_LINT2): Remove; no longer needed.
760         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
761         subproblem and iterate to do the larger.
763 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
765         sys_types: let Autoconf 2.70 do pid_t
766         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
767         only for Autoconf versions 2.69 and earlier, since 2.70
768         will be fixed.
770 2020-08-23  Bruno Haible  <bruno@clisp.org>
772         tests: Don't assume that pid_t fits in an 'int'.
773         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
774         of 'int'.
775         * tests/test-nonblocking-socket-main.c (main): Likewise.
777         sys_types: Fix definition of pid_t on 64-bit MSVC.
778         * m4/pid_t.m4: New file.
779         * modules/sys_types (Files): Add it.
780         * modules/dirent (Files): Likewise.
781         * modules/fcntl-h (Files): Likewise.
782         * modules/sched (Files): Likewise.
783         * modules/signal-h (Files): Likewise.
784         * modules/spawn (Files): Likewise.
785         * modules/sys_stat (Files): Likewise.
786         * modules/sys_wait (Files): Likewise.
787         * modules/termios (Files): Likewise.
788         * modules/unistd (Files): Likewise.
790 2020-08-23  Bruno Haible  <bruno@clisp.org>
792         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
793         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
794         program.
796 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
798         intprops: be consistent about +X vs X+0
799         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
801         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
802         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
803         is a bit-field, on older GCC or non-GCC compilers where we do
804         things ourselves instead of using __builtin_mul_overflow.
805         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
806         to applying sizeof to a bit-field.
807         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
808         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
810 2020-08-23  Bruno Haible  <bruno@clisp.org>
812         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
813         Reported by Jörg Sonnenberger <joerg@netbsd.org>
814         via Thomas Klausner <tk@giga.or.at> in
815         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
816         * lib/supersede.c (open_supersede): When opening an existing non-regular
817         file on Solaris, use O_CREAT although it should not be necessary.
819 2020-08-23  Bruno Haible  <bruno@clisp.org>
821         verify: Make assume work on bit field expressions (regr. 2020-08-22).
822         Reported by Benno Schulenberg <bensberg@telfort.nl> in
823         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
824         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
825         variable.
827 2020-08-23  Bruno Haible  <bruno@clisp.org>
829         libc-config: Improve comments.
830         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
831         cannot use clang's __diagnose_if__ here.
833 2020-08-22  Bruno Haible  <bruno@clisp.org>
835         verify: Do use __builtin_assume on clang.
836         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
837         variable in a statement expression.
839 2020-08-22  Bruno Haible  <bruno@clisp.org>
841         sig2str: Add more signals.
842         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
844 2020-08-22  Bruno Haible  <bruno@clisp.org>
846         doc: Update for OpenBSD 6.0, 6.7.
847         * doc/*/*.texi: Update.
848         * m4/printf.m4: Update comments and cross-compilation guesses.
849         * m4/ceill.m4: Update comments.
850         * m4/getcwd-abort-bug.m4: Likewise.
851         * m4/ilogb.m4: Likewise.
852         * m4/ilogbf.m4: Likewise.
853         * m4/langinfo_h.m4: Likewise.
854         * m4/modf.m4: Likewise.
855         * m4/modff.m4: Likewise.
857 2020-08-22  Bruno Haible  <bruno@clisp.org>
859         doc: Mention sig2str module.
860         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
862 2020-08-21  Bruno Haible  <bruno@clisp.org>
864         sigdescr_np: Add tests.
865         * tests/test-sigdescr_np.c: New file.
866         * modules/sigdescr_np-tests: New file.
868         sigdescr_np: New module.
869         * lib/string.in.h (sigdescr_np): New declaration.
870         * lib/sigdescr_np.c: New file.
871         * m4/sigdescr_np.m4: New file.
872         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
873         declared.
874         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
875         HAVE_SIGDESCR_NP.
876         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
877         HAVE_SIGDESCR_NP.
878         * modules/sigdescr_np: New file.
879         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
880         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
882 2020-08-20  Bruno Haible  <bruno@clisp.org>
884         sigabbrev_np: Add tests.
885         * tests/test-sigabbrev_np.c: New file.
886         * modules/sigabbrev_np-tests: New file.
888         sigabbrev_np: New module.
889         * lib/string.in.h (sigabbrev_np): New declaration.
890         * lib/sigabbrev_np.c: New file.
891         * m4/sigabbrev_np.m4: New file.
892         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
893         declared.
894         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
895         HAVE_SIGABBREV_NP.
896         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
897         HAVE_SIGABBREV_NP.
898         * modules/sigabbrev_np: New file.
899         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
900         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
902 2020-08-20  Bruno Haible  <bruno@clisp.org>
904         stdalign tests: Skip test with AIX xlclang.
905         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
907 2020-08-20  Bruno Haible  <bruno@clisp.org>
909         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
910         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
911         workaround as for GCC versions < 4.9.
913 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
915         Sync up ProjectQuirks comments and documentation
916         Transform the ProjectQuirks comments into a docstring so that it can
917         be accessed from python as ProjectQuirks.__doc__ and harmonize
918         descriptions with the documentation.
919         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
920         Transform comments into a docstring.
921         * doc/vcs-to-changelog.texi: Sync up description with comments.
923         Split ProjectQuirks out into its own file
924         ProjectQuirks is used by external quirks files and importing it from
925         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
926         is cleaner to put it in its own file anyway.
927         * build-aux/vcstocl/projectquirks.py: A new file...
928         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
929         we move ProjectQuirks and import the file.
931 2020-08-19  Bruno Haible  <bruno@clisp.org>
933         uchar: Fix compilation errors in C++ mode on macOS.
934         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
935         system header file before attempting to use 'char16_t' and 'char32_t'.
937 2020-08-19  Bruno Haible  <bruno@clisp.org>
939         ansi-c++-opt: Work around an autoconf macro reordering problem.
940         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
941         section.
943 2020-08-19  Bruno Haible  <bruno@clisp.org>
945         math C++ tests: Fix compilation error in with GCC 10.
946         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
947         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
948         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
950 2020-08-19  Bruno Haible  <bruno@clisp.org>
952         uchar: Fix compilation errors in C++ mode on OpenBSD.
953         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
954         CXX_HAS_UCHAR_TYPES is 1.
955         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
956         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
957         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
959 2020-08-19  Bruno Haible  <bruno@clisp.org>
961         Fix compilation errors in C++ mode on OpenBSD.
962         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
963         OpenBSD with clang, use the approach without C preprocessor macro.
965 2020-08-18  Bruno Haible  <bruno@clisp.org>
967         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
968         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
969         AC_LANG_POP.
971 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
973         verify: avoid __built_assume on Clang
974         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
975         Clang 9 incorrectly diagnoses arguments as having side effects
976         even when they do not.  I guess Clang 9 considers any function
977         call as if it had a side effect here.
979         libc-config: avoid Clang’s __diagnose_if__
980         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
981         For now, do not use __diagnose_if__ here, as this fails
982         on Fedora 31 with Clang 9.0.1, with diagnostic
983         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
984         size than length of destination buffer
985         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
986         for functions that are not called?
988         careadlinkat: speedup for GCC 10 with GCC_LINT
989         Inspired by a suggestion by Bruno Haible in:
990         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
991         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
992         (readlink_stk): New function, with most of the old careadlinkat
993         contents and with a new STACK_BUF arg.  Inline it in GCC 10
994         if GCC_LINT.
995         (careadlinkat): Use the new function for everything but the
996         stack buffer.
998         * build-aux/gcc-warning.spec: Update comments.
1000 2020-08-17  Bruno Haible  <bruno@clisp.org>
1002         Assume autoconf >= 2.64.
1003         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
1005 2020-08-17  Bruno Haible  <bruno@clisp.org>
1007         Revert autoupdate's revert.
1008         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
1010 2020-08-17  Bruno Haible  <bruno@clisp.org>
1012         uchar C++ tests: Fix build error on FreeBSD 12.
1013         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
1014         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
1015         <cuchar> does not exist.
1017 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1019         time_rz: remove unused functions
1020         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
1022         time_rz: fix issues with mktime_z failures
1023         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
1024         Use a cheaper tm_yday test for failed mktime.
1026 2020-08-16  Bruno Haible  <bruno@clisp.org>
1028         intprops test: Strengthen on clang.
1029         * tests/test-intprops.c (VERIFY): Use verify_stmt.
1031 2020-08-16  Bruno Haible  <bruno@clisp.org>
1033         nstrftime: Guide inlining also on clang.
1034         * lib/nstrftime.c (iso_week_days): Inline also on clang.
1036 2020-08-16  Bruno Haible  <bruno@clisp.org>
1038         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
1039         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
1041 2020-08-16  Bruno Haible  <bruno@clisp.org>
1043         log2l: Disable MSVC workaround on clang.
1044         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
1046 2020-08-16  Bruno Haible  <bruno@clisp.org>
1048         argp: Emit a warning also with clang.
1049         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
1050         clang.
1052 2020-08-16  Bruno Haible  <bruno@clisp.org>
1054         libc-config: Enable __REDIRECT macro also on clang.
1055         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
1056         __ASMNAME2): Define on clang like on GCC.
1058 2020-08-16  Bruno Haible  <bruno@clisp.org>
1060         regex: Use initializer shorthand syntax also with clang.
1061         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
1062         with clang.
1064 2020-08-16  Bruno Haible  <bruno@clisp.org>
1066         regex: Use space optimization also with clang.
1067         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
1068         with clang.
1070 2020-08-16  Bruno Haible  <bruno@clisp.org>
1072         Use _Static_assert and static_assert primitives when present on clang.
1073         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
1074         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
1075         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
1077 2020-08-16  Bruno Haible  <bruno@clisp.org>
1079         Use 'throw ()' for optimization in C++ mode also on clang.
1080         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
1081         * lib/getopt-cdefs.in.h (__THROW): Likewise.
1082         * lib/md5.h (__THROW): Likewise.
1084 2020-08-16  Bruno Haible  <bruno@clisp.org>
1086         absolute-header: Add support for clang.
1087         * modules/absolute-header (Makefile.am): Include '__clang__' in the
1088         HAVE_INCLUDE_NEXT expression.
1090 2020-08-16  Bruno Haible  <bruno@clisp.org>
1092         Fix "warning: implicitly declaring library function 'strcasecmp'".
1093         * lib/argp-help.c: Include <strings.h>.
1095 2020-08-16  Bruno Haible  <bruno@clisp.org>
1097         stdio: Don't break attribute 'scanf' on clang.
1098         * lib/stdio.in.h (scanf): Treat clang like GCC.
1100 2020-08-16  Bruno Haible  <bruno@clisp.org>
1102         Use __restrict also on clang.
1103         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
1104         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
1105         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
1107 2020-08-16  Bruno Haible  <bruno@clisp.org>
1109         pthread-spin: Use GCC built-ins also on clang.
1110         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1111         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
1112         also on clang.
1114 2020-08-16  Bruno Haible  <bruno@clisp.org>
1116         asyncsafe-spin tests: Update.
1117         * tests/test-asyncsafe-spin2.c: Update to match the change in
1118         lib/asyncsafe-spin.c from 2020-08-11.
1120 2020-08-16  Bruno Haible  <bruno@clisp.org>
1122         setenv: Use tree code also with clang.
1123         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
1125 2020-08-16  Bruno Haible  <bruno@clisp.org>
1127         math: Optimize signbit also on clang.
1128         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
1129         on clang.
1131 2020-08-16  Bruno Haible  <bruno@clisp.org>
1133         avltreehash-list, rbtreehash-list: Optimize also on clang.
1134         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
1135         __builtin_expect also on clang.
1137 2020-08-16  Bruno Haible  <bruno@clisp.org>
1139         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
1140         * lib/socket.c: Use WSASocketW, not WSASocketA.
1142         Fix "warning: format specifies type 'unsigned long'".
1143         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
1144         argument to match the format directive.
1146         Fix "warning: no case matching constant switch condition '0'".
1147         * tests/test-fcntl.c (check_flags): Add a 'default' case.
1149         Fix "warning: integer overflow in expression".
1150         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
1151         remove a 'long' overflow.
1153         Fix "warning: "getpagesize" redefined".
1154         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
1155         macro.
1157         Fix "warning: implicitly declaring library function 'strncasecmp'".
1158         * lib/strptime.c: Include <strings.h>.
1160         Fix "warning: 'snprintf' macro redefined".
1161         * lib/strerror_r.c (snprintf): Undefine before redefining.
1163         Fix "warning: address of array 'locale' will always evaluate to 'true'".
1164         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
1166         Fix "warning: '__stat64' macro redefined".
1167         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
1169         Fix "warning: 'format' attribute argument not supported: rpl_printf".
1170         * lib/stdio.in.h (printf): Treat clang like GCC.
1172         Fix "warning: attribute declaration must precede definition" with clang.
1173         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
1174         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
1175         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
1176         on non-glibc systems.
1177         * lib/netdb.in.h (gai_strerror): Likewise.
1178         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
1179         * lib/sys_stat.in.h (fstat): Likewise.
1180         * lib/utime.in.h (utime): Likewise.
1182         Fix undesired warnings.
1183         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
1184         clang.
1186 2020-08-16  Bruno Haible  <bruno@clisp.org>
1188         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
1189         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
1190         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
1191         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
1192         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
1194 2020-08-16  Bruno Haible  <bruno@clisp.org>
1196         Don't use Autoconf quadrigraphs.
1197         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
1198         Autoconf quadrigraph.
1199         * m4/free.m4 (gl_FUNC_FREE): Likewise.
1200         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1201         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
1202         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
1203         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1204         * m4/math_h.m4 (gl_MATH_H): Likewise.
1205         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1207 2020-08-16  Bruno Haible  <bruno@clisp.org>
1209         Fix quoting of AC_LANG_PROGRAM arguments.
1210         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
1211         arguments through [[...]].
1212         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1215         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
1216         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
1217         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1218         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
1219         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1220         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1221         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1222         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1223         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1224         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1226 2020-08-16  Bruno Haible  <bruno@clisp.org>
1228         Assume autoconf >= 2.64.
1229         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
1230         * DEPENDENCIES: Require Autoconf 2.64 or newer.
1231         * NEWS: Mention the changed requirement.
1232         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
1233         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
1234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
1235         variables.
1236         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1237         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1238         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1239         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
1240         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
1241         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
1242         Likewise.
1243         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
1244         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
1245         * m4/configmake.m4: Update comment.
1247 2020-08-16  Bruno Haible  <bruno@clisp.org>
1249         sys_ioctl: Simplify.
1250         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
1251         AC_INCLUDES_DEFAULT.
1253 2020-08-16  Bruno Haible  <bruno@clisp.org>
1255         Fix quoting of AC_LANG_SOURCE arguments.
1256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
1257         GL_NOCRASH expansion.
1258         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
1259         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1260         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1261         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1262         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1264 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1266         nstrftime: be more predictable about errno
1267         This aligns nstrftime better with draft POSIX 202x strftime.
1268         * lib/nstrftime.c: Include errno.h.
1269         (width_add, __strftime_internal): Set errno on failure,
1270         and preserve it on success.  Check for mktime_z failure.
1271         * modules/nstrftime (Depends-on): Add errno.
1272         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
1273         * tests/test-nstrftime.c: Include intprops.h, limits.h.
1274         (errno_test): New test function.
1275         (main): Call it.
1277 2020-08-15  Bruno Haible  <bruno@clisp.org>
1279         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
1280         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
1281         from dependency analysis first.
1283 2020-08-15  Bruno Haible  <bruno@clisp.org>
1285         Determine asm output option and filename suffix for MSVC/clang.
1286         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
1287         clang-cl.
1289 2020-08-15  Bruno Haible  <bruno@clisp.org>
1291         doc: Update for MSVC/clang.
1292         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
1293         that MSVC 14 does not have.
1295 2020-08-15  Bruno Haible  <bruno@clisp.org>
1297         Revert autoupdate's revert.
1298         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
1300 2020-08-15  Bruno Haible  <bruno@clisp.org>
1302         frexpl: Fix configuration test result on MSVC.
1303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
1304         zero.
1306 2020-08-15  Bruno Haible  <bruno@clisp.org>
1308         Support compiling without -loldnames on native Windows.
1309         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
1310         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
1311         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1312         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1313         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1315         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
1316         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
1317         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
1319         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
1321         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1322         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
1323         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
1324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
1325         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1326         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1327         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
1328         Likewise.
1329         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
1330         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1331         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
1332         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1334         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
1335         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
1336         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1338         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
1339         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
1341         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1342         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1343         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
1344         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1345         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1347         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1348         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1349         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1350         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1351         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1352         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1353         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1354         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1355         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1356         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
1357         test for getcwd.
1358         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
1359         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
1360         with GL_MDA_DEFINES.
1361         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
1362         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
1363         prefixed symbol.
1364         * lib/search.in.h (lfind, lsearch): Likewise.
1365         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1366         Likewise.
1367         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1368         * lib/string.in.h (memccpy, strdup): Likewise.
1369         * lib/sys_stat.in.h (chmod, umask): Likewise.
1370         * lib/time.in.h (tzset): Likewise.
1371         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1372         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1373         read, rmdir, swab, unlink, write): Likewise.
1374         * lib/utime.in.h (utime): Likewise.
1375         * lib/wchar.in.h (wcsdup): Likewise.
1376         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
1377         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
1378         rpl_-prefixed macro.
1379         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
1380         * lib/close.c (close_nothrow): On native Windows, use _close.
1381         * lib/creat.c (orig_creat): On native Windows, use _creat.
1382         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
1383         * lib/dup2.c (dup2_nothrow): Use _dup2.
1384         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
1385         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
1386         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
1387         * lib/open.c (orig_open): On native Windows, use _open.
1388         * lib/read.c (read_nothrow): Use _read.
1389         * lib/rmdir.c: On native Windows, use _rmdir.
1390         * lib/unlink.c: On native Windows, use _unlink.
1391         * lib/write.c (write_nothrow): Use _write.
1392         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
1393         undefined symbol.
1394         * lib/sys_socket.in.h (close): Likewise.
1395         * lib/sys_time.in.h (close): Likewise.
1396         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
1398 2020-08-15  Bruno Haible  <bruno@clisp.org>
1400         Fix "unknown pragma ignored" warnings with clang on native Windows.
1401         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
1402         * lib/cbrtf.c: Likewise.
1403         * lib/ceil.c: Likewise.
1404         * lib/floor.c: Likewise.
1405         * lib/fma.c: Likewise.
1406         * lib/fmod.c: Likewise.
1407         * lib/rint.c: Likewise.
1408         * lib/round.c: Likewise.
1409         * lib/trunc.c: Likewise.
1410         * tests/test-ceil2.c: Likewise.
1411         * tests/test-ceilf2.c: Likewise.
1412         * tests/test-floor2.c: Likewise.
1413         * tests/test-floorf2.c: Likewise.
1414         * tests/test-trunc2.c: Likewise.
1415         * tests/test-truncf2.c: Likewise.
1416         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1419 2020-08-15  Bruno Haible  <bruno@clisp.org>
1421         Fix compilation errors in C++ mode with clang on native Windows.
1422         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
1423         non-glibc systems.
1424         * lib/sched.in.h (sched_yield): Likewise.
1426 2020-08-14  Bruno Haible  <bruno@clisp.org>
1428         stdnoreturn: Work around problem with MSVC/clang.
1429         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
1430         system header after <stdnoreturn.h>.
1431         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
1433 2020-08-14  Bruno Haible  <bruno@clisp.org>
1435         utime-h: Generate an utime.h file always.
1436         * modules/utime-h (Makefile.am): Generate utime.h always.
1437         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
1438         GL_GENERATE_UTIME_H.
1440 2020-08-14  Bruno Haible  <bruno@clisp.org>
1442         mktime, mktime-internal: Remove obsolete code.
1443         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
1445 2020-08-14  Bruno Haible  <bruno@clisp.org>
1447         getcwd: Remove obsolete code.
1448         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
1449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1451 2020-08-14  Bruno Haible  <bruno@clisp.org>
1453         tzset: Assume the function exists.
1454         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
1455         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
1456         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
1457         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
1458         HAVE_TZSET.
1459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
1460         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
1462         nstrftime: Assume tzset exists.
1463         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
1464         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
1465         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
1467         mktime, mktime-internal: Assume tzset exists.
1468         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
1469         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
1471 2020-08-14  Bruno Haible  <bruno@clisp.org>
1473         strdup: Assume the function exists.
1474         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
1475         whether strdup exists.
1476         * modules/strdup (Files): Remove lib/strdup.c.
1477         (configure.ac): Don't compile strdup.c.
1478         * modules/strdup-posix (Depends-on, configure.ac): Don't test
1479         ac_cv_func_strdup.
1480         * doc/posix-functions/strdup.texi: Update.
1481         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
1482         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
1483         (Depends-on): Remove unistr/u8-strlen.
1485 2020-08-13  Bruno Haible  <bruno@clisp.org>
1487         sys_random: Work around an uClibc bug.
1488         Reported by akater <nuclearspace@gmail.com>
1489         via Stefan Kangas <stefan@marxist.se>
1490         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
1491         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
1492         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
1493         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
1494         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
1496 2020-08-12  Bruno Haible  <bruno@clisp.org>
1498         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
1499         Reported by Florian Weimer in
1500         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
1501         * lib/gen-uni-tables.c (output_predicate): Change the element type of
1502         the level3 array to 'unsigned int'.
1503         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
1504         * lib/unictype/categ_*.h: Regenerated.
1505         * lib/unictype/ctype_*.h: Regenerated.
1506         * lib/unictype/pr_*.h: Regenerated.
1507         * lib/unictype/sy_*.h: Regenerated.
1508         * lib/unicase/cased.h: Regenerated.
1509         * lib/unicase/ignorable.h: Regenerated.
1511 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1513         stdint: port intptr_t to more-recent MinGW
1514         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
1515         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
1516         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
1517         Apparently those two macros were removed in mingwrt-3.22
1518         dated 2016-07-14.
1520 2020-08-12  Bruno Haible  <bruno@clisp.org>
1522         thread-optim: Export function-like macros only.
1523         Suggested by Paul Eggert.
1524         * lib/thread-optim.h (gl_multithreaded): New macro.
1525         (IF_MT_DECL, IF_MT): Remove macros.
1526         * doc/multithread.texi (Multithreading Optimizations): Add a small
1527         example.
1528         * lib/fatal-signal.c: Update all uses.
1529         * lib/clean-temp.c: Likewise.
1530         * lib/localename.c: Likewise.
1531         * modules/localename (Depends-on): Add stdbool.
1533 2020-08-12  Bruno Haible  <bruno@clisp.org>
1535         Revert autoupdate's revert.
1536         * config/srclist.txt: Mark regex.h as needing sync with glibc.
1538 2020-08-11  Bruno Haible  <bruno@clisp.org>
1540         thread-optim: Fix a compiler warning.
1541         * lib/thread-optim.h (IF_MT_DECL): Define differently.
1543 2020-08-11  Bruno Haible  <bruno@clisp.org>
1545         Use __restrict also on clang.
1546         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
1547         (__restrict_arr): On clang, define like on GCC.
1548         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
1549         (_Restrict_arr_): Use _Restrict_ also on clang.
1550         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
1551         (_Restrict_arr_): Use _Restrict_ also on clang.
1553 2020-08-11  Bruno Haible  <bruno@clisp.org>
1555         Use flexible array syntax also on clang.
1556         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
1557         define like for GCC 3.
1559 2020-08-11  Bruno Haible  <bruno@clisp.org>
1561         fcntl: On native Windows, use _setmode, not setmode.
1562         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
1563         * lib/binary-io.h: Update comment.
1564         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
1565         * tests/test-dup2.c: Likewise.
1566         * tests/test-dup-safer.c: Likewise.
1567         * tests/test-fcntl.c: Likewise.
1569 2020-08-11  Bruno Haible  <bruno@clisp.org>
1571         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
1572         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
1573         * lib/spawn-pipe.c (create_pipe): Likewise.
1574         * tests/test-nonblocking-pipe-main.c (main): Likewise.
1575         * tests/test-nonblocking-socket-main.c (main): Likewise.
1576         * lib/wait-process.c: Update comment.
1577         * doc/posix-functions/fork.texi: Update.
1579 2020-08-11  Bruno Haible  <bruno@clisp.org>
1581         asyncsafe-spin: Use GCC built-ins also on clang.
1582         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
1583         the newer GCC built-ins also on clang.
1585 2020-08-11  Bruno Haible  <bruno@clisp.org>
1587         Use expression statements also on clang.
1588         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1589         * lib/obstack.h (__extension__): Likewise.
1590         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1591         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1592         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1593         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1594         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1595         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1597 2020-08-10  Bruno Haible  <bruno@clisp.org>
1599         Use many __attribute__s with clang.
1600         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1601         on clang.
1602         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1603         New macros.
1604         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1605         on clang.
1606         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1607         also on older clang versions.
1608         (__attribute__): Don't define to empty on clang.
1609         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1610         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1611         (__attribute_const__): Use __attribute__ __const__ also on clang.
1612         (__attribute_used__): Use __attribute__ __used__ also on clang.
1613         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1614         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1615         clang.
1616         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1617         clang.
1618         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1619         also on clang.
1620         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1621         (__attribute_warn_unused_result__): Use __attribute__
1622         __warn_unused_result__ also on clang.
1623         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1624         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1625         clang >= 7.
1626         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1627         clang versions.
1628         (_Noreturn): Don't redefine on clang >= 3.5.
1629         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1630         also on clang.
1631         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1632         on clang.
1633         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1634         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1635         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1636         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1637         also on clang.
1638         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1639         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1640         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1641         also on clang.
1642         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1643         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1644         __attribute__ __noreturn__ also on clang.
1645         * lib/obstack.h (__attribute_noreturn__): Likewise.
1646         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1647         clang.
1648         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1649         always_inline also on clang.
1650         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1651         clang.
1653 2020-08-10  Bruno Haible  <bruno@clisp.org>
1655         c-ldtoastr tests: Fix test failure.
1656         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1657         is longer than 'double'.
1659 2020-08-10  Bruno Haible  <bruno@clisp.org>
1661         Revert autoupdate's revert.
1662         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1664 2020-08-09  Bruno Haible  <bruno@clisp.org>
1666         string: Fix build error in C++ mode with clang (regression from today).
1667         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1668         parameters, one for GCC, one for clang.
1669         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1670         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1671         as return type.
1673 2020-08-09  Bruno Haible  <bruno@clisp.org>
1675         ftruncate: Use _chsize, not chsize.
1676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1677         * lib/ftruncate.c: Test HAVE__CHSIZE.
1678         (chsize_nothrow): Use _chsize, not chsize.
1680 2020-08-09  Bruno Haible  <bruno@clisp.org>
1682         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1683         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1684         clang >= 10.
1685         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1686         * lib/fts.c (FALLTHROUGH): Likewise.
1687         * tests/macros.h (FALLTHROUGH): Likewise.
1688         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1689         * config/srclist.txt: Mark it as needing sync with glibc.
1691 2020-08-09  Bruno Haible  <bruno@clisp.org>
1693         stdbool tests: Enable the stricter tests also on clang.
1694         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1695         (e): Enable the address-to-bool conversion test also on clang.
1697 2020-08-09  Bruno Haible  <bruno@clisp.org>
1699         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1700         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1702 2020-08-09  Bruno Haible  <bruno@clisp.org>
1704         Use attribute __aligned__ with clang.
1705         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1706         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1708 2020-08-09  Bruno Haible  <bruno@clisp.org>
1710         Use __alignof__ with clang.
1711         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1712         on clang.
1713         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1714         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1715         clang.
1716         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1717         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1718         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1719         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1721 2020-08-09  Bruno Haible  <bruno@clisp.org>
1723         ignore-value: Simplify on clang.
1724         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1725         workaround.
1727 2020-08-09  Bruno Haible  <bruno@clisp.org>
1729         Use __typeof__ with clang.
1730         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1731         "clang -std=gnu99".
1732         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1733         * tests/test-stdint.c (verify_same_types): Enable the check also on
1734         clang.
1736 2020-08-09  Bruno Haible  <bruno@clisp.org>
1738         Add ability to emit user-defined warnings and errors with clang.
1739         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1740         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1741         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1742         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1743         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1744         attribute for clang.
1746 2020-08-09  Bruno Haible  <bruno@clisp.org>
1748         intprops: Fix typo in comment.
1749         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1751 2020-08-09  Bruno Haible  <bruno@clisp.org>
1753         Use __builtin_signbit* with clang.
1754         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1755         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1756         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1758         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1759         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1760         not REPLACE_SIGNBIT_USING_GCC.
1762 2020-08-09  Bruno Haible  <bruno@clisp.org>
1764         Use __builtin_isnan with clang.
1765         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1766         not __builtin_isnanf. Also on clang.
1767         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1768         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1769         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1770         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1771         built-in.
1772         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1773         not __builtin_isnanl. Also on clang.
1774         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1775         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1776         * lib/math.in.h (__has_builtin): Remove macro.
1777         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1778         __builtin_isnanf. Also on clang.
1779         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1780         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1781         __builtin_isnanl. Also on clang.
1782         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1783         on clang.
1785 2020-08-09  Bruno Haible  <bruno@clisp.org>
1787         thread-optim: Fix logic error.
1788         Reported by Paul Eggert.
1789         * lib/thread-optim.h (IF_MT): Fix logic error.
1791 2020-08-08  Bruno Haible  <bruno@clisp.org>
1793         localename: Use module 'thread-optim'.
1794         * lib/localename.c: Include thread-optim.h.
1795         (struniq): Use IF_MT macro.
1796         * modules/localename (Depends-on): Add thread-optim.
1798         clean-temp: Use module 'thread-optim'.
1799         * lib/clean-temp.c: Include thread-optim.h.
1800         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1801         register_temp_file, unregister_temp_file, register_temp_subdir,
1802         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1803         close_temp, fclose_variant_temp): Use IF_MT macro.
1804         * modules/clean-temp (Depends-on): Add thread-optim.
1806         fatal-signal: Use module 'thread-optim'.
1807         * lib/fatal-signal.c: Include thread-optim.h.
1808         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1809         macro.
1810         * modules/fatal-signal (Depends-on): Add thread-optim.
1812 2020-08-08  Bruno Haible  <bruno@clisp.org>
1814         New module 'thread-optim'.
1815         * lib/thread-optim.h: New file.
1816         * modules/thread-optim: New file.
1817         * doc/multithread.texi (Multithreading Optimizations): New section.
1819 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1821         doc: more updates for glibc 2.32
1822         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1823         * doc/posix-functions/fchmodat.texi: Update.
1825 2020-08-07  Bruno Haible  <bruno@clisp.org>
1827         doc: Update for glibc 2.32.
1828         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1829         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1830         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1831         * doc/glibc-functions/sigabbrev_np.texi: New file.
1832         * doc/glibc-functions/sigdescr_np.texi: New file.
1833         * doc/glibc-functions/strerrordesc_np.texi: New file.
1834         * doc/glibc-functions/strerrorname_np.texi: New file.
1835         * doc/gnulib.texi: Include them.
1836         (Glibc sys/single_threaded.h): New section.
1837         * doc/pastposix-functions/h_errno.texi: Update.
1838         * doc/posix-functions/*.texi: Likewise.
1839         * doc/glibc-functions/*.texi: Likewise.
1841 2020-08-07  Bruno Haible  <bruno@clisp.org>
1843         alloca: No need to compile alloca.c with clang.
1844         * lib/alloca.c: Skip all code with clang.
1846         Use __builtin_alloca with clang.
1847         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1849 2020-08-06  Bruno Haible  <bruno@clisp.org>
1851         Use __builtin_assume with clang.
1852         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1853         (assume): Use __builtin_assume when available.
1855 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1857         libgmp: add <gmp/gmp.h> support
1858         * m4/libgmp.m4 (gl_LIBGMP):
1859         * modules/libgmp (configure.ac, Makefile.am):
1860         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1861         ‘#include <gmp.h>’.
1863 2020-08-06  Bruno Haible  <bruno@clisp.org>
1865         Consider that clang defines __OPTIMIZE__ like GCC does.
1866         * lib/streq.h: Define the inline functions also on clang.
1867         * lib/c-strcaseeq.h: Likewise.
1868         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1869         the GCC workaround to clang.
1871 2020-08-06  Bruno Haible  <bruno@clisp.org>
1873         safe-alloc: Remove unused code.
1874         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1876 2020-08-06  Bruno Haible  <bruno@clisp.org>
1878         Use __builtin_expect with clang everywhere.
1879         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1880         also on clang.
1882 2020-08-05  Bruno Haible  <bruno@clisp.org>
1884         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1885         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1886         built-in also on clang.
1887         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1888         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1890 2020-08-05  Bruno Haible  <bruno@clisp.org>
1892         Use __builtin_clz{,l,ll} with clang, also on Windows.
1893         * lib/integer_length.c: With clang, use the GCC built-in, not
1894         <intrin.h>.
1895         * lib/integer_length_l.c: Likewise.
1896         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1897         also on clang.
1898         * lib/vasnprintf.c (divide): Likewise.
1900 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1902         Update srclist.txt as per recent glibc changes
1903         * config/srclist.txt: Uncomment lines to reflect recent merges
1904         from Gnulib to glibc.
1906 2020-08-03  Bruno Haible  <bruno@clisp.org>
1908         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1909         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1911 2020-08-03  Bruno Haible  <bruno@clisp.org>
1913         integer_length_ll: Optimize for MSVC in 64-bit mode.
1914         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1915         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1917 2020-08-03  Bruno Haible  <bruno@clisp.org>
1919         integer_length_ll: Optimize for MSVC in 32-bit mode.
1920         * lib/integer_length_l.c: Include <intrin.h>.
1921         (integer_length): Define as inline function, like in
1922         lib/integer_length.c.
1924 2020-08-03  Bruno Haible  <bruno@clisp.org>
1926         integer_length: Optimize for MSVC.
1927         * lib/integer_length.c: Include <intrin.h>.
1928         (integer_length): With MSVC, use the _BitScanReverse built-in.
1930 2020-08-03  Bruno Haible  <bruno@clisp.org>
1932         ffsll: Optimize for MSVC in 64-bit mode.
1933         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1934         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1935         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1937 2020-08-03  Bruno Haible  <bruno@clisp.org>
1939         ffsll: Optimize for MSVC in 32-bit mode.
1940         * lib/ffsl.h: Include <intrin.h>.
1941         (ffs): Define as inline function, like in lib/ffs.c.
1943 2020-08-03  Bruno Haible  <bruno@clisp.org>
1945         ffs: Optimize for MSVC.
1946         * lib/ffs.c: Include <intrin.h>.
1947         (ffs): With MSVC, use the _BitScanForward built-in.
1949 2020-08-03  Bruno Haible  <bruno@clisp.org>
1951         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1952         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1953         variable.
1955 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1957         fopen: Avoid undesired interactions with glibc headers.
1958         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1959         __need_FILE, as the latter does not work with glibc.
1961 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1963         fcntl: document some F_SETLK errno variations
1964         * doc/posix-functions/fcntl.texi (fcntl): Document
1965         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1967 2020-08-02  Bruno Haible  <bruno@clisp.org>
1969         oset: Add an 'iterator_atleast' operation.
1970         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1971         extracted from gl_array_search_atleast.
1972         (gl_array_search_atleast): Use it.
1973         (gl_array_iterator_atleast): New function.
1974         (gl_array_oset_implementation): Use it.
1975         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1976         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1977         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1978         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1979         member.
1980         (gl_oset_iterator_atleast): New function.
1981         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1982         (gl_OSet::iterator): Add another auxiliary constructor.
1983         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1984         New functions.
1985         (main): Test also gl_oset_iterator_atleast.
1986         * tests/test-avltree_oset.c (is_at_least): New function.
1987         (main): Test also gl_oset_iterator_atleast.
1988         * tests/test-rbtree_oset.c (is_at_least): New function.
1989         (main): Test also gl_oset_iterator_atleast.
1990         * tests/test-oset-c++.cc (is_at_most): New function.
1991         (main): Test also gl_OSet::begin_atleast.
1993 2020-08-02  Bruno Haible  <bruno@clisp.org>
1995         oset-c++, omap-c++: Remove restriction for search_atleast method.
1996         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1997         a different type than the element.
1998         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1999         a different type than the key.
2001 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2003         gnumakefile: say ‘$(MAKE)’ not ‘make’
2004         * top/GNUmakefile (abort-due-to-no-makefile):
2005         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
2006         This change is backported from Autoconf.
2008 2020-08-01  Bruno Haible  <bruno@clisp.org>
2010         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
2011         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
2012         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2013         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
2014         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
2015         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
2017 2020-08-01  Bruno Haible  <bruno@clisp.org>
2019         libtextstyle-optional: Update tests.
2020         * modules/libtextstyle-optional-tests (configure.ac): Invoke
2021         gl_LIBTEXTSTYLE_OPTIONAL.
2023 2020-08-01  Bruno Haible  <bruno@clisp.org>
2025         parse-datetime: Fix wrong #line statements.
2026         * modules/parse-datetime (Makefile.am): Correct #line statements also in
2027         parse-datetime-gen.h.
2029 2020-08-01  Bruno Haible  <bruno@clisp.org>
2031         libtextstyle[-optional]: Allow requesting a minimum version.
2032         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
2033         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
2034         gl_LIBTEXTSTYLE_SEARCH): New macros.
2035         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
2036         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
2037         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
2038         * modules/libtextstyle-optional (configure.ac): Don't invoke
2039         gl_LIBTEXTSTYLE_OPTIONAL.
2040         * NEWS: Mention the changes.
2042 2020-07-31  Bruno Haible  <bruno@clisp.org>
2044         _GL_CMP: Improve documentation.
2045         Reported by Paul Eggert in
2046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
2047         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
2048         passed.
2050 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2052         largefile: sync with Autoconf master
2053         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
2054         Avoid undefined behavior on platforms where off_t is 32 bits.
2055         See: https://bugs.debian.org/742780
2057         alloca: sync with Autoconf master
2058         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2059         Do not define if Autoconf 2.70 or later, since Autoconf master
2060         now matches us.
2062 2020-07-30  Bruno Haible  <bruno@clisp.org>
2064         unicodeio: Add comment.
2065         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
2066         different iconv behaviours.
2068 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2070         Work around some Oracle Studio attribute bugs
2071         These were discovered when building bleeding-edge Emacs with
2072         Oracle Studio.
2073         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
2074         Port to Oracle Studio 12.6, which mishandles __attribute__
2075         ((__cold__)) and __attribute__ ((__may_alias__)) even though
2076         __has_attribute says they work.
2078 2020-07-29  Bruno Haible  <bruno@clisp.org>
2080         unicodeio: Fix wrong result on musl libc.
2081         Reported by A. Wilcox <awilfox@adelielinux.org> in
2082         <https://www.openwall.com/lists/musl/2020/07/29/2>.
2083         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
2084         on musl libc.
2085         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
2086         * modules/unicodeio (Files): Add m4/musl.m4.
2088 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
2090         fsusage, regex, stat-size: remove Cray support
2091         As near as I can make out this is actually support for UNICOS/mp,
2092         last released 2005, and Cray hasn’t supported that for years.
2093         * config/srclist.txt: Comment out regex.h for now.
2094         * lib/fsusage.c (get_fs_usage):
2095         * lib/regex.h (re_comp, re_exec):
2096         * lib/stat-size.h (ST_NBLOCKSIZE):
2097         Don’t worry about _CRAY.
2099 2020-07-29  Bruno Haible  <bruno@clisp.org>
2101         parse-datetime: Fix compilation error with bison 3.7.
2102         * modules/parse-datetime (Makefile.am): Create a generated header file
2103         parse-datetime-gen.h in the source directory. Correct #include and
2104         #line statements during preprocessing.
2106 2020-07-28  Bruno Haible  <bruno@clisp.org>
2108         fopen-gnu: Create files correctly (regression from 2020-05-24).
2109         * lib/fopen.c (rpl_open): Pass a third argument to open().
2111 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2113         xalloc-die: don’t depend on xalloc
2114         This removes a circular dependency, as xalloc depends on xalloc-die.
2115         * modules/xalloc-die (Files): Add lib/xalloc.h.
2116         (Depends-on): Remove xalloc.
2117         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
2119         dfa-tests: port to MSVC
2120         Problem reported by Gisle Vanem in:
2121         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
2122         Also, remove an unnecessary dependency on getprogname.
2123         * modules/dfa-tests (Depends-on): Remove getprogname.
2124         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
2125         (exit_status): New static var.
2126         (dfawarn): Set it instead of exiting.
2127         Do not declare as _Noreturn, to pacify MSVC.
2128         (main): Return exit_status.
2130 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2132         argz: pacify MSVC
2133         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
2134         Problem reported by Gisle Vanem.
2136         libgmp: remove dependency on havelib
2137         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
2138         use the more-traditional AC_SEARCH_LIBS approach.
2139         This should work better with GNU Emacs configuration,
2140         which uses pkg-config instead of a havelib-style approach.
2141         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
2142         * modules/libgmp (Depends-on): Remove havelib.
2144         libgmp: remove HAVE_GMP, LIB_GMP
2145         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
2146         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
2148 2020-07-26  Bruno Haible  <bruno@clisp.org>
2150         inttypes: Remove support for AIX 4.
2151         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
2152         * m4/inttypes-pri.m4: Remove file.
2153         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
2154         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
2155         * modules/inttypes-incomplete (Makefile.am): Don't substitute
2156         PRI_MACROS_BROKEN.
2157         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
2159 2020-07-26  Bruno Haible  <bruno@clisp.org>
2161         gettimeofday: Remove workaround for Mac OS X 10.0.
2162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
2163         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
2164         * lib/gettimeofday.c: Don't include localtime-buffer.h.
2165         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2166         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2167         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
2168         * modules/localtime-buffer: Remove file.
2169         * lib/localtime-buffer.h: Remove file.
2170         * lib/localtime-buffer.c: Remove file.
2171         * m4/localtime-buffer.m4: Remove file.
2172         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
2174 2020-07-26  Bruno Haible  <bruno@clisp.org>
2176         tzset: Remove workaround for Solaris 2.6.
2177         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
2178         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
2179         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
2180         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
2181         * lib/localtime-buffer.c: Likewise.
2182         * lib/localtime.c: Likewise.
2183         * lib/tzset.c: Don't include localtime-buffer.h.
2184         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
2185         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
2186         is 1.
2187         * modules/tzset (Depends-on): Remove localtime-buffer.
2189 2020-07-26  Bruno Haible  <bruno@clisp.org>
2191         expl: Simplify autoconf test.
2192         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
2193         with small values..." test into the "checking whether expl works..."
2194         test.
2196 2020-07-26  Bruno Haible  <bruno@clisp.org>
2198         alloca: Remove Cray-2 and Cray Y-MP support.
2199         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
2200         Enable also on Autoconf >= 2.69.
2201         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
2202         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
2203         i00afunc): Remove.
2205 2020-07-25  Bruno Haible  <bruno@clisp.org>
2207         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
2208         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
2210 2020-07-25  Bruno Haible  <bruno@clisp.org>
2212         sigprocmask: Small autoconf macro improvement.
2213         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
2214         user to override the value of gl_cv_func_sigprocmask.
2215         * m4/gnulib-common.m4 (gl_SILENT): New macro.
2217 2020-07-25  Bruno Haible  <bruno@clisp.org>
2219         Small autoconf macro improvements.
2220         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
2221         override the value of gl_cv_func_working_mktime.
2222         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
2223         compiler produces multi-arch binaries..." in the configure output.
2224         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
2225         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
2227 2020-07-25  Bruno Haible  <bruno@clisp.org>
2229         doc: Update for NetBSD 7.1, 8.0, 9.0.
2230         * doc/*/*.texi: Update.
2231         * m4/exp2l.m4: Update comments.
2232         * m4/expl.m4: Likewise.
2233         * m4/ilogb.m4: Likewise.
2234         * m4/ilogbf.m4: Likewise.
2235         * m4/log10l.m4: Likewise.
2236         * m4/logl.m4: Likewise.
2237         * m4/printf.m4: Likewise.
2238         * m4/rintl.m4: Likewise.
2239         * m4/wcwidth.m4: Likewise.
2241 2020-07-24  Bruno Haible  <bruno@clisp.org>
2243         doc: Update for Mac OS X 10.13.
2244         * doc/*/*.texi: Update.
2245         * m4/expm1l.m4: Update comments.
2246         * m4/getgroups.m4: Likewise.
2247         * m4/getlogin_r.m4: Likewise.
2248         * m4/linkat.m4: Likewise.
2249         * m4/printf.m4: Likewise.
2251 2020-07-24  Bruno Haible  <bruno@clisp.org>
2253         doc: Update for Cygwin 2.9.0.
2254         * doc/*/*.texi: Update.
2256 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2258         parse-datetime: modernize doc
2259         * doc/parse-datetime.texi: Use more-current examples.
2260         Don’t lead with 32-bit time_t, as it’s on its way out.
2261         Capitalize “Epoch” to be consistent with POSIX.
2263         timespec: remove dependence on ‘verify’
2264         * lib/timespec.h: Do not include verify.h; no longer needed.
2265         * modules/timespec (Depends-on): Remove ‘verify’.
2267         Optimize a few more three-valued comparisons
2268         * lib/timespec.h (timespec_cmp, timespec_sign):
2269         * lib/utimecmp.c (utimecmpat):
2270         Avoid conditional branches by using _GL_CMP.
2272         Fix _GL_CMP parenthesization typo
2273         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
2275 2020-07-24  Bruno Haible  <bruno@clisp.org>
2277         dfa: Revert breaking gawk.
2278         Reported by Arnold Robbins <arnold@skeeve.com>.
2279         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
2281 2020-07-23  Bruno Haible  <bruno@clisp.org>
2283         Optimize three-valued comparison between integers.
2284         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
2285         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
2286         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
2287         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
2288         * lib/dfa.c (compare): Likewise.
2289         * lib/fts.c (fts_compare_ino): Likewise.
2290         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
2291         * lib/mbscasecmp.c (mbscasecmp): Likewise.
2292         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
2293         * lib/memcasecmp.c (memcasecmp): Likewise.
2294         * lib/memcmp2.c (memcmp2): Likewise.
2295         * lib/savedir.c (direntry_cmp_inode): Likewise.
2296         * lib/strcasecmp.c (strcasecmp): Likewise.
2297         * lib/strncasecmp.c (strncasecmp): Likewise.
2298         * lib/unistr/u-cmp2.h (FUNC): Likewise.
2300 2020-07-23  Bruno Haible  <bruno@clisp.org>
2302         lchmod: Use /proc on Cygwin.
2303         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
2305 2020-07-23  Ken Brown  <kbrown@cornell.edu>
2307         fchmodat: Use /proc on Cygwin
2308         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
2310 2020-07-21  Bruno Haible  <bruno@clisp.org>
2312         aligned-malloc: Optionally use aligned_alloc.
2313         * lib/aligned-malloc.h: Verify the alignment.
2314         (aligned_malloc): Use aligned_alloc as an alternative.
2315         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
2316         * doc/posix-functions/aligned_alloc.texi: Mention the modules
2317         'aligned-malloc' and 'pagealign_alloc'.
2319 2020-07-21  Bruno Haible  <bruno@clisp.org>
2321         aligned-malloc: Add tests.
2322         * tests/test-aligned-malloc.c: New file.
2323         * modules/aligned-malloc-tests: New file.
2325         aligned-malloc: New module.
2326         * lib/aligned-malloc.h: New file.
2327         * m4/malloc-align.m4: New file.
2328         * modules/aligned-malloc: New file.
2329         * doc/posix-functions/posix_memalign.texi: Mention the new module.
2330         * doc/glibc-functions/memalign.texi: Likewise.
2332 2020-07-21  Bruno Haible  <bruno@clisp.org>
2334         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
2335         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
2336         sure PRIPTR_PREFIX is defined to "ll", not "l".
2338 2020-07-21  Bruno Haible  <bruno@clisp.org>
2340         printf-posix: Make an autoconf test more future-proof.
2341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
2342         using uintptr_t.
2344 2020-07-20  Bruno Haible  <bruno@clisp.org>
2346         list, oset, omap: Relicense some of the container modules under LGPLv2+.
2347         * modules/list (License): Change to LGPLv2+.
2348         * modules/array-list (License): Likewise.
2349         * modules/carray-list (License): Likewise.
2350         * modules/linked-list (License): Likewise.
2351         * modules/avltree-list (License): Likewise.
2352         * modules/rbtree-list (License): Likewise.
2353         * modules/oset (License): Likewise.
2354         * modules/array-oset (License): Likewise.
2355         * modules/avltree-oset (License): Likewise.
2356         * modules/rbtree-oset (License): Likewise.
2357         * modules/omap (License): Likewise.
2358         * modules/array-omap (License): Likewise.
2359         * modules/avltree-omap (License): Likewise.
2360         * modules/rbtree-omap (License): Likewise.
2362 2020-07-20  Bruno Haible  <bruno@clisp.org>
2364         oset: Add an 'update' operation.
2365         * lib/gl_array_oset.c (gl_array_update): New function.
2366         (gl_array_oset_implementation): Use it.
2367         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2368         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2369         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
2370         extracted from gl_tree_nx_add_before.
2371         (gl_tree_nx_add_before): Invoke it.
2372         (gl_tree_add_node_after): New function, extracted from
2373         gl_tree_nx_add_after.
2374         (gl_tree_nx_add_after): Invoke it.
2375         (gl_tree_remove_node_no_free): New function, extracted from
2376         gl_tree_remove_node.
2377         (gl_tree_remove_node): Invoke it.
2378         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
2379         extracted from gl_tree_nx_add_before.
2380         (gl_tree_nx_add_before): Invoke it.
2381         (gl_tree_add_node_after): New function, extracted from
2382         gl_tree_nx_add_after.
2383         (gl_tree_nx_add_after): Invoke it.
2384         (gl_tree_remove_node_no_free): New function, extracted from
2385         gl_tree_remove_node.
2386         (gl_tree_remove_node): Invoke it.
2387         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
2388         from gl_tree_iterator_next.
2389         (gl_tree_iterator_next): Invoke it.
2390         (gl_tree_prev_node, gl_tree_update): New functions.
2391         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2392         (gl_avltree_oset_implementation): Use gl_tree_update.
2393         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2394         (gl_rbtree_oset_implementation): Use gl_tree_update.
2395         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
2396         (gl_oset_update): New function.
2397         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
2398         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
2399         * modules/rbtree-oset (configure.ac): Likewise.
2400         * tests/test-oset-update.h: New file.
2401         * tests/test-array_oset.c: Include test-oset-update.h.
2402         (main): Invoke test_update.
2403         * tests/test-avltree_oset.c: Likewise.
2404         * tests/test-rbtree_oset.c: Likewise.
2405         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
2406         * modules/avltree-oset-tests (Files): Likewise.
2407         * modules/rbtree-oset-tests (Files): Likewise.
2408         * tests/test-oset-c++.cc (action): New function.
2409         (main): Test the 'update' member function.
2411 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2413         md5, sha1, sha256, sha512: pacify Autoconf 2.70
2414         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
2415         shell if, so that the argument to AC_CHECK_HEADERS is
2416         a simple string that does not require shell evaluation.
2417         This fixes a warning generated by Autoconf 2.69b.
2419 2020-07-12  Bruno Haible  <bruno@clisp.org>
2421         libgmp: Avoid warning when --without-libgmp is used.
2422         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
2423         GCC >= 8, not for GCC >= 4.6.
2425 2020-07-12  Bruno Haible  <bruno@clisp.org>
2427         libgmp: Link to the correct shared library.
2428         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
2429         * modules/libgmp (Depends-on): Add havelib.
2430         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
2431         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
2433 2020-07-12  Bruno Haible  <bruno@clisp.org>
2435         libgmp tests: Add some safety checks.
2436         * modules/libgmp-tests (Depends-on): Add verify.
2437         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
2438         (main): Verify that gmp.h and libgmp versions match.
2440 2020-07-10  Bruno Haible  <bruno@clisp.org>
2442         unicodeio: Fix wrong result on NetBSD.
2443         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2444         characters also on NetBSD.
2446 2020-07-09  Bruno Haible  <bruno@clisp.org>
2448         unicodeio: Fix wrong result on Solaris 11.
2449         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
2450         via Akim Demaille <akim.demaille@gmail.com> in
2451         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
2452         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2453         characters on Solaris.
2454         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
2455         UTF-8 output or the specified fallback.
2457 2020-07-08  Bruno Haible  <bruno@clisp.org>
2459         unicodeio: Add tests.
2460         * tests/test-unicodeio.c: New file.
2461         * tests/test-unicodeio1.sh: New file.
2462         * tests/test-unicodeio2.sh: New file.
2463         * tests/test-unicodeio3.sh: New file.
2464         * modules/unicodeio-tests: New file.
2466 2020-07-08  Bruno Haible  <bruno@clisp.org>
2468         unicodeio: Document link requirements.
2469         * modules/unicodeio (Link): New section.
2471 2020-07-07  Bruno Haible  <bruno@clisp.org>
2473         doc: Remove support for some very old platforms.
2474         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
2475         * doc/posix-functions/memcpy.texi: Likewise.
2476         * doc/posix-functions/memmove.texi: Likewise.
2477         * doc/posix-functions/memset.texi: Likewise.
2478         * doc/posix-functions/getcwd.texi: Likewise.
2480         memchr: Remove support for some very old platforms.
2481         * m4/memchr-obsolete.m4: Remove file.
2482         * modules/memchr-obsolete: Remove file.
2483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
2484         absent. Don't define HAVE_MEMCHR.
2485         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
2486         * modules/memchr (Depends-on): Remove memchr-obsolete.
2487         (configure.ac): Assume HAVE_MEMCHR is 1.
2488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2489         HAVE_MEMCHR.
2490         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
2491         * doc/posix-functions/memchr.texi: Don't mention module
2492         'memchr-obsolete'.
2493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2494         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2495         * modules/strnlen (Depends-on): Remove memchr-obsolete.
2497         dup2: Remove support for some very old platforms.
2498         * m4/dup2-obsolete.m4: Remove file.
2499         * modules/dup2-obsolete: Remove file.
2500         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
2501         Don't define HAVE_DUP2.
2502         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
2503         * lib/dup2.c: Likewise.
2504         * modules/dup2 (Depends-on, configure.ac): Likewise.
2505         (Depends-on): Remove dup2-obsolete.
2506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
2507         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
2508         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
2510 2020-07-07  Bruno Haible  <bruno@clisp.org>
2512         canonicalize: Trim module dependencies.
2513         * lib/hash-triple.h: Group declarations.
2514         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
2515         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
2516         (STREQ): Remove macro.
2517         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
2518         * modules/hash-triple-simple: New file, based on modules/hash-triple.
2519         * modules/hash-triple (Files): Remove lib/hash-triple.h.
2520         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
2521         * modules/canonicalize (Depends-on): Remove hash-triple. Add
2522         hash-triple-simple.
2523         * modules/file-set (Depends-on): Likewise.
2525 2020-07-07  Bruno Haible  <bruno@clisp.org>
2527         Clarify dependencies to double-slash-root.
2528         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
2529         (Depends-on): Add double-slash-root.
2530         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
2531         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
2533 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2535         libgmp: new module
2536         The idea is to let programs simply include <gmp.h>, and
2537         so long as they live within the mini-gmp subset they need
2538         not worry about whether the GMP libraries are installed.
2539         * MODULES.html.sh: Mention it.
2540         * config/srclist.txt: Mention files copied from GMP source.
2541         * config/srclistvars.sh (GMP): New var.
2542         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
2543         * modules/libgmp-tests, tests/test-libgmp.c: New files.
2544         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
2546 2020-07-05  Bruno Haible  <bruno@clisp.org>
2548         mkancesdirs: Trim module dependencies.
2549         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
2550         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
2552 2020-07-05  Bruno Haible  <bruno@clisp.org>
2554         getprogname: Trim module dependencies.
2555         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
2556         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
2557         basename-lgpl.
2559 2020-07-05  Bruno Haible  <bruno@clisp.org>
2561         filenamecat-lgpl: Trim module dependencies.
2562         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
2563         dirname.h.
2564         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
2565         basename-lgpl, filename.
2567 2020-07-05  Bruno Haible  <bruno@clisp.org>
2569         backupfile, backup-rename: Trim module dependencies.
2570         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
2571         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
2572         basename-lgpl.
2573         * modules/backup-rename (Depends-on): Likewise.
2575 2020-07-05  Bruno Haible  <bruno@clisp.org>
2577         argp: Trim module dependencies.
2578         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
2579         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
2581 2020-07-05  Bruno Haible  <bruno@clisp.org>
2583         basename-lgpl: New module.
2584         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
2585         lib/basename-lgpl.c.
2586         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2587         <stdbool.h>, filename.h.
2588         (last_component): Rename a local variable.
2589         * lib/dirname.h: Include basename-lgpl.h.
2590         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2591         (last_component, base_len): Remove declarations.
2592         * modules/basename-lgpl: New file.
2593         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2594         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2595         (Makefile.am): Don't compile basename-lgpl.c.
2596         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2597         not 'dirname'.
2599 2020-07-05  Bruno Haible  <bruno@clisp.org>
2601         dirname, dirname-lgpl: Simplify.
2602         * m4/dirname.m4: Remove file.
2603         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2604         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2605         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2607 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2609         tests: avoid shadowing warning
2610         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2612 2020-07-05  Bruno Haible  <bruno@clisp.org>
2614         supersede: Add tests.
2615         * tests/test-supersede.c: New file.
2616         * tests/test-supersede-open.h: New file.
2617         * tests/test-supersede-fopen.h: New file.
2618         * modules/supersede-tests: New file.
2620         supersede: New module.
2621         * lib/supersede.h: New file.
2622         * lib/supersede.c: New file.
2623         * m4/supersede.m4: New file.
2624         * modules/supersede: New file.
2626 2020-07-05  Bruno Haible  <bruno@clisp.org>
2628         Add some copyright headers.
2629         * lib/dev-ino.h: Add copyright header.
2630         * lib/di-set.h: Likewise.
2631         * lib/fchown-stub.c: Likewise.
2632         * lib/file-set.h: Likewise.
2633         * lib/hash-triple.h: Likewise.
2634         * lib/idcache.h: Likewise.
2635         * lib/ino-map.h: Likewise.
2636         * lib/mkancesdirs.h: Likewise.
2637         * lib/scratch_buffer.h: Likewise.
2638         * lib/se-context.in.h: Likewise.
2639         * lib/stdopen.h: Likewise.
2640         * lib/userspec.h: Likewise.
2642 2020-07-04  Bruno Haible  <bruno@clisp.org>
2644         getrandom: Relicense under LGPLv2+.
2645         Paul Eggert's approval is in
2646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2647         * modules/getrandom (License): Change to LGPLv2+.
2649 2020-07-04  Bruno Haible  <bruno@clisp.org>
2651         getumask: Add tests.
2652         * tests/test-getumask.c: New file.
2653         * modules/getumask-tests: New file.
2655         getumask: New module.
2656         * lib/sys_stat.in.h (getumask): New declaration.
2657         * lib/getumask.c: New file.
2658         * m4/getumask.m4: New file.
2659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2660         declared.
2661         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2662         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2663         HAVE_GETUMASK.
2664         * modules/getumask: New file.
2665         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2666         * doc/glibc-functions/getumask.texi: New file.
2667         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2669 2020-07-04  Bruno Haible  <bruno@clisp.org>
2671         clean-temp: Add support for temporary files with given mode.
2672         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2673         * lib/clean-temp.c (struct try_create_file_params): New type.
2674         (try_create_file): New function.
2675         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2676         gen_tempname.
2678 2020-07-04  Bruno Haible  <bruno@clisp.org>
2680         clean-temp: Document limitations.
2681         * lib/clean-temp.h: Document limitations.
2683 2020-07-04  Bruno Haible  <bruno@clisp.org>
2685         clean-temp: Add support for temporary files with unpredictable names.
2686         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2687         * lib/clean-temp.c: Include tempname.h.
2688         (gen_register_open_temp): New function.
2689         * modules/tempname (configure.ac): Define a module indicator.
2691 2020-07-04  Bruno Haible  <bruno@clisp.org>
2693         clean-temp: Add support for temporary files anywhere in the file system.
2694         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2695         cleanup_temporary_file): New declarations.
2696         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2697         variables.
2698         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2699         (dir_cleanup_list): Renamed from cleanup_list.
2700         (cleanup_action): Process the file_cleanup_list as well.
2701         (do_init_clean_temp): New function.
2702         (clean_temp_once): New variable.
2703         (init_clean_temp): New function.
2704         (create_temp_dir): Invoke it.
2705         (register_temporary_file, unregister_temporary_file,
2706         cleanup_temporary_file): New functions.
2707         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2708         argument.
2710 2020-07-04  Bruno Haible  <bruno@clisp.org>
2712         clean-temp: Improve comments.
2713         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2714         fwriteerror_temp, close_stream_temp): Clarify intended use.
2715         * lib/clean-temp.c: Likewise.
2717 2020-07-04  Bruno Haible  <bruno@clisp.org>
2719         clean-temp: Make multithread-safe, part 2.
2720         * lib/fatal-signal.h: Include <signal.h>.
2721         (get_fatal_signal_set): New declaration.
2722         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2723         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2724         (struct closeable_fd): New type.
2725         (fatal_signal_set): New variable.
2726         (init_fatal_signal_set): New function.
2727         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2728         (cleanup_action): Invoke asyncsafe_close instead of close.
2729         (create_temp_dir): Invoke init_fatal_signal_set.
2730         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2731         element.
2732         (unregister_fd): Remove function.
2733         (close_temp): Cleanup descriptors list on the fly. Invoke
2734         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2735         (fclose_variant_temp): New function.
2736         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2737         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2739 2020-07-04  Bruno Haible  <bruno@clisp.org>
2741         clean-temp: Make multithread-safe, part 1.
2742         * lib/clean-temp.c: Include glthread/lock.h.
2743         (cleanup_list_lock): New variable.
2744         (register_temp_file, unregister_temp_file, register_temp_subdir,
2745         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2746         (create_temp_dir): Likewise. Don't free the old array.
2747         (descriptors_lock): New variable.
2748         (register_fd, unregister_fd): Use it.
2749         * modules/clean-temp (Depends-on): Add lock.
2751 2020-07-04  Bruno Haible  <bruno@clisp.org>
2753         fatal-signal: Make multithread-safe.
2754         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2755         (do_init_fatal_signal_set): New function, extracted from
2756         init_fatal_signal_set.
2757         (fatal_signal_set_once): New variable.
2758         (init_fatal_signal_set): Use gl_once.
2760 2020-07-03  Bruno Haible  <bruno@clisp.org>
2762         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2763         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2764         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2765         <bcrypt.h>.
2767 2020-07-03  Bruno Haible  <bruno@clisp.org>
2769         dfa tests: Follow common file naming conventions.
2770         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2771         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2772         * tests/test-dfa-invalid-char-class.sh: Renamed from
2773         tests/dfa-invalid-char-class.sh. Update.
2774         * modules/dfa-tests (Files, Makefile.am): Update.
2776 2020-07-03  Bruno Haible  <bruno@clisp.org>
2778         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2779         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2780         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2782 2020-07-03  Bruno Haible  <bruno@clisp.org>
2784         asyncsafe-spin: Reduce code duplication.
2785         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2786         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2787         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2789 2020-07-03  Bruno Haible  <bruno@clisp.org>
2791         lchmod: Simplify after 2020-02-22 change.
2792         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2794 2020-07-03  Bruno Haible  <bruno@clisp.org>
2796         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2797         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2799 2020-07-03  Bruno Haible  <bruno@clisp.org>
2801         dfa: Make sure the compiler does not barf on 'inline'.
2802         * modules/dfa (configure.ac): Require AC_C_INLINE.
2804 2020-07-03  Bruno Haible  <bruno@clisp.org>
2806         bitset: Make sure the compiler does not barf on 'inline'.
2807         * modules/bitset (configure.ac): New section.
2809 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2811         manywarnings: improve port to GCC 10.1
2812         * build-aux/gcc-warning.spec: Also list warnings that are default
2813         or are enabled by already-given flags.  This lets us speed up
2814         checking for attributes, and makes the generated compilation
2815         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2816         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2817         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2818         to shell variables that may have long values.
2819         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2820         consequences of other flags, to speed up checking and
2821         shorten commands.
2823         tests: pacify gcc -fanalyzer on zerosize_ptr
2824         * tests/test-memcasecmp.c (main):
2825         * tests/test-memchr.c (main):
2826         * tests/test-memchr2.c (main):
2827         * tests/test-memcmp.c (main):
2828         * tests/test-memmem.c (main):
2829         * tests/test-memrchr.c (main):
2830         * tests/unistr/test-chr.h (main):
2831         * tests/unistr/test-cmp.h (test_cmp):
2832         Check whether zerosize_ptr returns NULL before using it.
2833         This pacifies GCC 10.1’s new fanalyzer option, and matches
2834         other uses of zerosize_ptr.
2836 2020-07-01  Bruno Haible  <bruno@clisp.org>
2838         asyncsafe-spin: Add tests.
2839         * tests/test-asyncsafe-spin1.c: New file.
2840         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2841         tests/test-pthread-spin.c.
2842         * modules/asyncsafe-spin-tests: New file.
2844 2020-07-01  Bruno Haible  <bruno@clisp.org>
2846         asyncsafe-spin: New module.
2847         * lib/asyncsafe-spin.h: New file.
2848         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2849         * modules/asyncsafe-spin: New file.
2851 2020-07-01  Bruno Haible  <bruno@clisp.org>
2853         windows-spin: Fix race condition on multiprocessor systems.
2854         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2856 2020-07-01  Bruno Haible  <bruno@clisp.org>
2858         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2859         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2860         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2861         an implementation based on other GCC built-ins.
2863 2020-07-01  Bruno Haible  <bruno@clisp.org>
2865         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2866         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2867         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2868         lock byte.
2870 2020-07-01  Bruno Haible  <bruno@clisp.org>
2872         pthread-spin: Add error checking.
2873         * lib/pthread-spin.c: Include <stdbool.h>.
2874         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2875         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2876         the unlocks.
2877         * modules/pthread-spin (Depends-on): Add stdbool.
2879 2020-07-01  Bruno Haible  <bruno@clisp.org>
2881         pthread-spin: Add tests.
2882         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2883         * modules/pthread-spin-tests: New file.
2885 2020-07-01  Bruno Haible  <bruno@clisp.org>
2887         tests: Reduce code duplication.
2888         * tests/atomic-int-posix.h: New file, extracted from
2889         tests/test-pthread-mutex.c.
2890         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2891         * tests/test-pthread-rwlock.c: Likewise.
2892         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2893         * modules/pthread-rwlock-tests (Files): Likewise.
2895 2020-07-01  Bruno Haible  <bruno@clisp.org>
2897         tests: Refactor.
2898         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2899         * tests/test-mtx.c: Include it. Remove the corresponding code.
2900         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2902 2020-07-01  Bruno Haible  <bruno@clisp.org>
2904         tests: Refactor.
2905         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2906         * tests/test-lock.c: Include it. Remove the corresponding code.
2907         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2909 2020-06-29  Bruno Haible  <bruno@clisp.org>
2911         sys_socket: Don't define socklen_t if it is already defined on mingw.
2912         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2913         <https://savannah.gnu.org/bugs/?57725>,
2914         by Rahul Das <bokul_4u@yahoo.com> in
2915         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2916         and by Eli Zaretskii <eliz@gnu.org> in
2917         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2918         * lib/sys_socket.in.h (socklen_t): Remove definition.
2920 2020-06-29  Bruno Haible  <bruno@clisp.org>
2922         alloca-opt: Fix warning on mingw.
2923         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2924         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2925         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2926         whether alloca is defined.
2928 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2930         getrandom: do not depend on ‘open’ on mingw
2931         Similarly for at-internal, getloadavg.  These modules do not call
2932         the ‘open’ function when they are compiled on mingw.  On mingw,
2933         this avoids having to compile open.c when building Emacs, which
2934         does its own thing with ‘open’.
2935         * modules/at-internal, modules/getloadavg, modules/getrandom:
2936         (Depends-on): Don’t depend on ‘open’ on mingw.
2937         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2938         * modules/getloadavg (Depends-on):
2939         Depend on intprops, open, stdbool, stdlib only if compiling
2940         getloadavg.c.
2942 2020-06-28  Bruno Haible  <bruno@clisp.org>
2944         doc: Add a note about sigprocmask vs. pthread_sigmask.
2945         * doc/posix-functions/sigprocmask.texi: Add note.
2947 2020-06-28  Bruno Haible  <bruno@clisp.org>
2949         getrandom: Fix compilation errors on older versions of mingw.
2950         Reported by Eli Zaretskii <eliz@gnu.org> in
2951         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2952         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2953         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2954         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2955         BCryptGenRandom ourselves.
2957 2020-06-28  Bruno Haible  <bruno@clisp.org>
2959         clean-temp: Fix wrong errno in error message.
2960         * lib/clean-temp.c (create_temp_dir): Save errno around
2961         unblock_fatal_signals call.
2963 2020-06-27  Bruno Haible  <bruno@clisp.org>
2965         fatal-signal: Make multithread-safe.
2966         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2968 2020-06-27  Bruno Haible  <bruno@clisp.org>
2970         clean-temp: Don't force deletion of temporary files on native Windows.
2971         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2972         argument.
2973         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2974         * NEWS: Mention the change.
2975         * lib/javacomp.c (write_temp_file): Update.
2977 2020-06-27  Bruno Haible  <bruno@clisp.org>
2979         fatal-signal: Make multithread-safe.
2980         * lib/fatal-signal.c: Include glthread/lock.h.
2981         (at_fatal_signal_lock): New variable.
2982         (at_fatal_signal): Use it.
2983         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2984         (block_fatal_signals, unblock_fatal_signals): Use them.
2985         * modules/fatal-signal (Depends-on): Add lock.
2987 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2989         getloadavg: don’t depend on fopen-gnu
2990         This is for Emacs, which does not need fopen-gnu for anything else,
2991         and which would need it only on a NetBSD platform where getloadavg
2992         does not work (does that even happen?).
2993         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2994         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2996         * tests/test-getloadavg.c (main): Fix typo.
2998 2020-06-27  Bruno Haible  <bruno@clisp.org>
3000         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
3001         * modules/tempname (Link): New section.
3002         * modules/mkdtemp (Link): Likewise.
3003         * modules/clean-temp (Link): Likewise.
3004         * modules/mkstemp (Link): Likewise.
3005         * modules/stdlib-safer (Link): Likewise.
3006         * modules/mkstemps (Link): Likewise.
3007         * modules/mkostemp (Link): Likewise.
3008         * modules/mkostemps (Link): Likewise.
3009         * modules/tmpfile (Link): Likewise.
3010         * modules/tmpfile-safer (Link): Likewise.
3011         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
3012         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
3013         $(LIB_GETRANDOM).
3014         * NEWS: Mention the changes.
3016 2020-06-27  Bruno Haible  <bruno@clisp.org>
3018         fopen-gnu: Simplify code.
3019         * lib/fopen.c: Include <stdbool.h>.
3020         (rpl_fopen): Use a single variable open_flags instead of
3021         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
3022         * modules/fopen (Depends-on): Add stdbool.
3024 2020-06-26  Bruno Haible  <bruno@clisp.org>
3026         canonicalize: Improve documentation.
3027         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
3028         return convention.
3030 2020-06-26  Bruno Haible  <bruno@clisp.org>
3032         xgetcwd: Improve documentation.
3033         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
3035 2020-06-26  Bruno Haible  <bruno@clisp.org>
3037         getcwd: Improve documentation.
3038         * lib/getcwd.c (__getcwd): Document the failure return convention.
3040 2020-06-26  Bruno Haible  <bruno@clisp.org>
3042         fchdir: Improve documentation.
3043         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
3044         convention.
3046 2020-06-26  Bruno Haible  <bruno@clisp.org>
3048         filenamecat-lgpl: Set errno upon failure.
3049         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
3050         return convention.
3051         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
3053 2020-06-26  Bruno Haible  <bruno@clisp.org>
3055         areadlink-with-size: Set errno upon failure.
3056         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
3057         fails.
3058         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
3060 2020-06-26  Bruno Haible  <bruno@clisp.org>
3062         copy-file: Shrink dependencies.
3063         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
3064         qcopy-acl.
3066 2020-06-26  Bruno Haible  <bruno@clisp.org>
3068         doc: Mention declaration fixes implemented by some modules.
3069         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
3070         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
3071         declaration appear in <unistd.h>.
3072         * doc/posix-functions/dup.texi: Likewise.
3073         * doc/posix-functions/dup2.texi: Likewise.
3074         * doc/posix-functions/gethostname.texi: Likewise.
3075         * doc/posix-functions/isatty.texi: Likewise.
3076         * doc/posix-functions/lseek.texi: Likewise.
3077         * doc/posix-functions/unlink.texi: Likewise.
3078         * doc/posix-functions/read.texi: Mention the module 'read'.
3079         * doc/posix-functions/write.texi: Mention the effects of the module
3080         'write'.
3082 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3084         c-dtoastr, c-ldtoastr: new modules
3085         These modules provide the same functionality as the modules
3086         dtoastr and ldtoastr except for the formatting taking place in the
3087         C locale.
3088         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
3089         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
3090         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
3091         defined.  Use c_snprintf and c_strtod/c_strtold instead of
3092         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
3093         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
3094         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
3095         modules/c-ldtoastr-tests: New files.
3096         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
3097         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
3099 2020-06-21  Bruno Haible  <bruno@clisp.org>
3101         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
3102         * lib/tzset.c: Include <stdlib.h>, <string.h>.
3104 2020-06-16  Bruno Haible  <bruno@clisp.org>
3106         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
3107         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
3109 2020-06-16  Bruno Haible  <bruno@clisp.org>
3111         thread, thrd: Avoid a compiler warning.
3112         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
3114 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
3116         windows-thread: Avoid a compiler warning.
3117         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
3118         void.
3119         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
3121 2020-06-15  Bruno Haible  <bruno@clisp.org>
3123         unictype/joininggroup-name: Fix warning on 64-bit mingw.
3124         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
3125         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
3126         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
3127         first.
3129 2020-06-06  Bruno Haible  <bruno@clisp.org>
3131         calloc-gnu tests: Avoid a test failure with clang.
3132         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
3133         'volatile', to defeat compiler optimizations.
3135 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3137         getloadavg: fix double-increment bug
3138         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
3139         Linux without glibc, Android, Cygwin.  This fixes a bug I
3140         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
3141         Problem and fix reported by Semen Verchenko in:
3142         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
3144         tempname: use getrandom, not getentropy
3145         This removes a dependency, as getentropy depends on getrandom.
3146         * lib/tempname.c: Include sys/random.h instead of unistd.h.
3147         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
3148         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
3150 2020-06-01  Bruno Haible  <bruno@clisp.org>
3152         doc: New chapter 'Multithreading'.
3153         * doc/multithread.texi: New file.
3154         * doc/gnulib.texi: Include it.
3156 2020-06-01  Bruno Haible  <bruno@clisp.org>
3158         doc: Move 'Running self-tests under valgrind' section.
3159         * doc/gnulib.texi (Build Infrastructure Modules): Include
3160         valgrind-tests.texi here...
3161         (Miscellaneous Notes): ... not here.
3163 2020-06-01  Bruno Haible  <bruno@clisp.org>
3165         doc: Move 'Visual Studio Compatibility' section.
3166         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
3167         here...
3168         (Build Infrastructure Modules): ... not here.
3170 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3172         doc: improve randomness discussion
3173         Inspired by comments from Jeffrey Walton in:
3174         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
3175         * doc/glibc-functions/getentropy.texi (getentropy):
3176         * doc/glibc-functions/getrandom.texi (getrandom):
3177         Improve discussion of problems with "random" data,
3178         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
3180 2020-06-01  Bruno Haible  <bruno@clisp.org>
3182         doc: Fix Texinfo syntax error.
3183         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
3185 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
3187         doc: Change '.' to '@.' where appropriate.
3188         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
3189         * doc/glibc-functions/fstatfs.texi: Likewise.
3190         * doc/glibc-functions/fts_children.texi: Likewise.
3191         * doc/glibc-functions/fts_read.texi: Likewise.
3192         * doc/glibc-functions/getdirentries.texi: Likewise.
3193         * doc/glibc-functions/mkostemp.texi: Likewise.
3194         * doc/glibc-functions/mkostemps.texi: Likewise.
3195         * doc/glibc-functions/mkstemps.texi: Likewise.
3196         * doc/glibc-functions/preadv.texi: Likewise.
3197         * doc/glibc-functions/pwritev.texi: Likewise.
3198         * doc/glibc-functions/sendfile.texi: Likewise.
3199         * doc/glibc-functions/statfs.texi: Likewise.
3200         * doc/gnulib-intro.texi: Likewise.
3201         * doc/gnulib-tool.texi: Likewise.
3202         * doc/intprops.texi: Likewise.
3203         * doc/lib-symbol-visibility.texi: Likewise.
3204         * doc/licenses-texi.texi: Likewise.
3205         * doc/pastposix-functions/bcmp.texi: Likewise.
3206         * doc/pastposix-functions/bcopy.texi: Likewise.
3207         * doc/pastposix-functions/bzero.texi: Likewise.
3208         * doc/pastposix-functions/ecvt.texi: Likewise.
3209         * doc/pastposix-functions/fcvt.texi: Likewise.
3210         * doc/pastposix-functions/ftime.texi: Likewise.
3211         * doc/pastposix-functions/gcvt.texi: Likewise.
3212         * doc/pastposix-functions/getwd.texi: Likewise.
3213         * doc/pastposix-functions/index.texi: Likewise.
3214         * doc/pastposix-functions/mktemp.texi: Likewise.
3215         * doc/pastposix-functions/rindex.texi: Likewise.
3216         * doc/pastposix-functions/wcswcs.texi: Likewise.
3217         * doc/posix-functions/aio_cancel.texi: Likewise.
3218         * doc/posix-functions/aio_error.texi: Likewise.
3219         * doc/posix-functions/aio_fsync.texi: Likewise.
3220         * doc/posix-functions/aio_read.texi: Likewise.
3221         * doc/posix-functions/aio_return.texi: Likewise.
3222         * doc/posix-functions/aio_suspend.texi: Likewise.
3223         * doc/posix-functions/aio_write.texi: Likewise.
3224         * doc/posix-functions/creat.texi: Likewise.
3225         * doc/posix-functions/ctime.texi: Likewise.
3226         * doc/posix-functions/daylight.texi: Likewise.
3227         * doc/posix-functions/fgetpos.texi: Likewise.
3228         * doc/posix-functions/fopen.texi: Likewise.
3229         * doc/posix-functions/freopen.texi: Likewise.
3230         * doc/posix-functions/fseeko.texi: Likewise.
3231         * doc/posix-functions/fsetpos.texi: Likewise.
3232         * doc/posix-functions/fstatat.texi: Likewise.
3233         * doc/posix-functions/fstatvfs.texi: Likewise.
3234         * doc/posix-functions/ftello.texi: Likewise.
3235         * doc/posix-functions/ftruncate.texi: Likewise.
3236         * doc/posix-functions/getrlimit.texi: Likewise.
3237         * doc/posix-functions/lio_listio.texi: Likewise.
3238         * doc/posix-functions/localtime.texi: Likewise.
3239         * doc/posix-functions/lseek.texi: Likewise.
3240         * doc/posix-functions/mkstemp.texi: Likewise.
3241         * doc/posix-functions/mktime.texi: Likewise.
3242         * doc/posix-functions/open.texi: Likewise.
3243         * doc/posix-functions/openat.texi: Likewise.
3244         * doc/posix-functions/opendir.texi: Likewise.
3245         * doc/posix-functions/pread.texi: Likewise.
3246         * doc/posix-functions/pwrite.texi: Likewise.
3247         * doc/posix-functions/readdir.texi: Likewise.
3248         * doc/posix-functions/readdir_r.texi: Likewise.
3249         * doc/posix-functions/scandir.texi: Likewise.
3250         * doc/posix-functions/seekdir.texi: Likewise.
3251         * doc/posix-functions/setrlimit.texi: Likewise.
3252         * doc/posix-functions/statvfs.texi: Likewise.
3253         * doc/posix-functions/strftime.texi: Likewise.
3254         * doc/posix-functions/telldir.texi: Likewise.
3255         * doc/posix-functions/timezone.texi: Likewise.
3256         * doc/posix-functions/tmpfile.texi: Likewise.
3257         * doc/posix-functions/truncate.texi: Likewise.
3258         * doc/posix-functions/tzname.texi: Likewise.
3259         * doc/posix-functions/wcsftime.texi: Likewise.
3260         * doc/windows-sockets.texi: Likewise.
3262 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3264         getrandom-tests: do not assume GRND_RANDOM yields short read
3265         * tests/test-getrandom.c (main): Omit assertion that
3266         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
3267         when b’s size is 100000.  This assertion fails with Linux kernel
3268         5.6.13, as that kernel ignores the GRND_RANDOM flag.
3269         The separate blocking pool is going away in the Linux kernel, and
3270         they’ve added a flag GRND_INSECURE instead; see:
3271         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
3272         The assertion was iffy anyway; what’s to prevent a kernel from
3273         lazily filling a large buffer with random bytes?
3275         read-file-test: pacify --enable-gcc-warnings
3276         * tests/test-read-file.c (test_read_file): Now static.
3278         tempname: merge from glibc and coreutils
3279         Also, merge in Gnulib’s more-recent methods of making it easier
3280         to share between Gnulib and glibc, and fix a few randomness
3281         glitches.
3282         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
3283         (__set_errno): Remove; libc-config.h does that for us.
3284         Do not include <sys/time.h>.
3285         (__secure_getenv) [_LIBC]: New macro.
3286         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
3287         (RANDOM_BITS): Rewrite.
3288         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
3289         (random_value): New typedef.
3290         (try_file, try_dir, try_nocreate): Move up.
3291         (gen_tempname_len, try_tempname_len): New functions.
3292         (gen_tempname_len): Use a constant array rather than a switch.
3293         (try_tempname_len): Don’t assume string length fits in int.
3294         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
3295         has enough entropy (it’s a bit short).
3296         (__gen_tempname): Rewrite in terms of gen_tempname_len.
3297         (__try_tempname): Rewrite in terms of try_tempname_len.
3298         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
3299         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
3300         Add getentropy, libc-config.
3302 2020-05-31  Bruno Haible  <bruno@clisp.org>
3304         getrandom, getentropy: Mention the crypto/gc-random module.
3305         Suggested by Simon Josefsson in
3306         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
3307         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
3308         crypto/gc-random module.
3309         * doc/glibc-functions/getentropy.texi: Likewise.
3311 2020-05-31  Bruno Haible  <bruno@clisp.org>
3313         getentropy: Enhance tests.
3314         * tests/test-getentropy.c (main): Add one more test.
3315         * tests/test-unistd-c++.cc: Check the signature of getentropy.
3317 2020-05-31  Bruno Haible  <bruno@clisp.org>
3319         getentropy: Work around a macOS and Solaris problem.
3320         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
3321         'getentropy' module.
3322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3323         UNISTD_H_HAVE_SYS_RANDOM_H.
3324         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
3325         UNISTD_H_HAVE_SYS_RANDOM_H.
3326         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
3327         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
3328         problem. List more platforms.
3330 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3332         fnmatch: merge from glibc
3333         Also, merge in Gnulib’s more-recent methods of making it easier
3334         to share between Gnulib and glibc.
3335         * lib/fnmatch.c: Reorder includes to match glibc better.
3336         Include libc-config.h instead of config.h.
3337         Include alloca.h only if _LIBC || HAVE_ALLOCA.
3338         Do not include "../locale/elem-hash.h" if _LIBC.
3339         Define macros for btowc, etc. if _LIBC.  All uses simplified.
3340         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
3341         Include intprops.h, since glibc has it now.
3342         (SIZE_MAX): Remove; use (size_t) -1 instead.
3343         Omit the "Comment out all this code" ifdef, since Gnulib
3344         has never really needed it.
3345         (STREQ): Remove; no longer used.
3346         (__libc_use_alloca, alloca, alloca_account): Define as
3347         needed if !_LIBC.
3348         (ISWCTYPE): Remove; all uses replaced by iswctype.
3349         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
3350         (internal_function): Remove.  All uses removed.
3351         (STRUCT): New macro.
3352         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
3353         (WMEMCMP): New macro.
3354         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
3355         and <locale/weightwc.h>.
3356         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
3357         __builtin_expect.  Check for integer overflow more
3358         systematically.  Account for alloca storage better when
3359         recursive.  Use strnlen instead of strlen for efficiency.
3360         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
3361         (struct STRUCT): New type.
3362         (FCT, EXT): New ENDS and ALLOCA_USED args.
3363         All callers changed.
3364         (FCT): Prefer __glibc_unlikely to __builtin_expect.
3365         Simplify by assuming WIDE_CHAR_SUPPORT.
3366         Copy _LIBC code from glibc without worrying Gnulib compatibility.
3367         Cast cold to UCHAR to avoid signedness warning.
3368         (END): Check for invalid pattern.
3369         (EXT): Improve alloca/malloc checking (taken from glibc),
3370         and improve it some more by using intprops.h and checking
3371         for integer overflow and using bool for booleans.
3372         * lib/libc-config.h (compat_symbol): New macro.
3373         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
3374         acceptable to non-GCC when a trailing semicolon is added.
3375         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
3376         libc-config, strnlen.  Remove alloca.
3378 2020-05-31  Bruno Haible  <bruno@clisp.org>
3380         getrandom: Doc and test tweaks.
3381         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
3382         it sets errno when failing.
3383         * tests/test-getrandom.c (main): Disable the high-quality check on those
3384         platforms on which it fails.
3385         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
3386         Cygwin to the list of platforms that don't have the function. Add a note
3387         about the quality of the result.
3388         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
3389         declaration; this is fixed by module 'getrandom'.
3391 2020-05-31  Bruno Haible  <bruno@clisp.org>
3393         getrandom: Add support for native Windows.
3394         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
3395         <wincrypt.h>.
3396         (CRYPT_VERIFY_CONTEXT): New macro.
3397         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
3398         'A'.
3399         (GetProcAddress): New macro.
3400         (BCryptGenRandomFuncType): New type.
3401         (BCryptGenRandomFunc, initialized): New variables.
3402         (initialize): New function.
3403         (getrandom): On native Windows, use <bcrypt.h> API when available, and
3404         <wincrypt.h> API as fallback.
3405         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
3406         * modules/getrandom (Link): New section.
3407         * modules/getentropy (Link): Likewise.
3408         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
3409         $(LIB_GETRANDOM).
3410         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
3411         $(LIB_GETRANDOM).
3412         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
3413         against $(LIB_GETRANDOM).
3414         * doc/glibc-functions/getrandom.texi: Mention the native Windows
3415         support.
3417 2020-05-31  Bruno Haible  <bruno@clisp.org>
3419         getrandom: Simplify the determination of the random number devices.
3420         Suggested by Paul Eggert in
3421         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
3422         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
3423         macros.
3424         * modules/getrandom (Depends-on): Remove crypto/gc-random.
3426 2020-05-31  Bruno Haible  <bruno@clisp.org>
3428         crypto/gc-random: Fix list of crypto devices for Solaris.
3429         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
3431 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
3433         list: fix GCC warnings
3434         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
3435         (gl_tree_next_node, gl_tree_node_nx_set_value)
3436         (gl_tree_previous_node, gl_tree_next_node):
3437         Mark unused arguments.
3438         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3439         * lib/gl_anylinked_list2.h (gl_linked_node_value)
3440         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
3442         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
3443         the same variable name in nested scopes.
3445 2020-05-31  Bruno Haible  <bruno@clisp.org>
3447         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
3448         Reported by Akim Demaille in
3449         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
3450         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
3451         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
3452         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
3453         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
3454         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
3456 2020-05-30  Bruno Haible  <bruno@clisp.org>
3458         wmemchr: Relicense under LGPLv2+.
3459         * modules/wmemchr (License): Set to LGPLv2+.
3461 2020-05-30  Bruno Haible  <bruno@clisp.org>
3463         wmempcpy: New module.
3464         Reported by Paul Eggert in
3465         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
3466         * lib/wchar.in.h (wmempcpy): New declaration.
3467         * lib/wmempcpy.c: New file.
3468         * m4/wmempcpy.m4: New file.
3469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
3470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
3471         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
3472         HAVE_WMEMPCPY.
3473         * modules/wmempcpy: New file.
3474         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
3475         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
3476         * modules/mempcpy (Description): Fix typo.
3478 2020-05-30  Bruno Haible  <bruno@clisp.org>
3480         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
3481         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
3483 2020-05-30  Bruno Haible  <bruno@clisp.org>
3485         sys_random: Work around macOS bug.
3486         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
3487         <stdlib.h> before <sys/random.h>.
3488         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3489         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
3490         first.
3491         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
3493 2020-05-30  Bruno Haible  <bruno@clisp.org>
3495         getrandom: Override incompatible system function on Solaris 11.
3496         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
3497         * lib/getrandom.c (getrandom): When the system has getrandom, just
3498         invoke it.
3499         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
3500         system's getrandom function's prototype is not the expected one.
3501         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
3502         REPLACE_GETRANDOM.
3503         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
3504         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
3505         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
3506         EAGAIN.
3507         * doc/glibc-functions/getrandom.texi: Mention the new module and the
3508         Solaris problem.
3510 2020-05-30  Bruno Haible  <bruno@clisp.org>
3512         sys_random: Add C++ tests.
3513         * tests/test-sys_random-c++.cc: New file.
3514         * modules/sys_random-c++-tests: New file.
3515         * modules/sys_random-tests (Depends-on): Depend on it.
3517         sys_random: Add tests.
3518         * tests/test-sys_random.c: New file.
3519         * modules/sys_random-tests: New file.
3521         sys_random: New module.
3522         * lib/sys_random.in.h: Use the common idioms for overridable header
3523         files.
3524         * m4/sys_random_h.m4: New file.
3525         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
3526         * modules/sys_random: New file.
3527         * modules/getrandom (Files): Remove lib/sys_random.in.h.
3528         (Depends-on): Add sys_random.
3529         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
3530         gl_UNISTD_MODULE_INDICATOR.
3531         (Makefile.am): Don't generate sys/random.h here.
3532         * doc/glibc-headers/sys_random.texi: New file.
3533         * doc/gnulib.texi: Include it.
3535 2020-05-30  Bruno Haible  <bruno@clisp.org>
3537         unistd: Remove conflicting declaration of getrandom().
3538         * lib/unistd.in.h (getrandom): Remove declaration.
3539         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
3540         declared.
3541         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
3542         HAVE_GETRANDOM.
3543         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
3544         HAVE_GETRANDOM.
3546 2020-05-30  Bruno Haible  <bruno@clisp.org>
3548         getrandom: Add tests.
3549         * tests/test-getrandom.c: New file.
3550         * modules/getrandom-tests: New file.
3552 2020-05-30  Bruno Haible  <bruno@clisp.org>
3554         crypto/gc-random: Fix link error on MSVC.
3555         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
3556         * modules/crypto/gc-random (Link): New section.
3557         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
3558         $(LIB_GC_RANDOM).
3560 2020-05-30  Bruno Haible  <bruno@clisp.org>
3562         Don't assume that UNICODE is not defined.
3563         Many Windows API functions are defined differently (redirecting to a
3564         function with suffix 'W') if the application defines the macro UNICODE
3565         than by default (redirecting to a function with suffix 'A').
3566         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
3567         variant with suffix 'A'.
3568         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
3569         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
3570         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
3571         * lib/getlogin.c (GetUserName): Likewise.
3572         * lib/getlogin_r.c (GetUserName): Likewise.
3573         * lib/gettimeofday.c (LoadLibrary): Likewise.
3574         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
3575         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
3576         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
3577         * lib/mountlist.c (GetDriveType): Likewise.
3578         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
3579         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
3580         Likewise.
3581         * lib/physmem.c (GetModuleHandle): Likewise.
3582         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3583         PeekMessage, DispatchMessage): Likewise.
3584         * lib/progreloc.c (GetModuleFileName): Likewise.
3585         * lib/putenv.c (SetEnvironmentVariable): Likewise.
3586         * lib/read.c (GetNamedPipeHandleState): Likewise.
3587         * lib/readdir.c (FindNextFile): Likewise.
3588         * lib/relocatable.c (GetModuleFileName): Likewise.
3589         * lib/rename.c (MoveFileEx): Likewise.
3590         * lib/rewinddir.c (FindFirstFile): Likewise.
3591         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3592         PeekMessage, DispatchMessage): Likewise.
3593         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3594         * lib/socket.c (WSASocket): Likewise.
3595         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3596         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3597         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3598         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3599         * lib/tmpdir.c (GetTempPath): Likewise.
3600         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3601         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3602         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3603         * lib/windows-cond.c (CreateEvent): Likewise.
3604         * lib/windows-rwlock.c (CreateEvent): Likewise.
3605         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3606         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3607         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3608         * lib/write.c (GetNamedPipeHandleState): Likewise.
3610 2020-05-30  Bruno Haible  <bruno@clisp.org>
3612         physmem: Fix compilation errors on MSVC.
3613         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3614         * modules/physmem (Depends-on): Add unistd.
3616 2020-05-29  Bruno Haible  <bruno@clisp.org>
3618         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3619         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3620         LDADD a second time, after the second occurrence of libtests.a.
3621         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3623 2020-05-29  Bruno Haible  <bruno@clisp.org>
3625         fnmatch: Rely on more gnulib modules.
3626         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3627         wmempcpy, mempcpy.
3628         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3629         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3630         HAVE_MEMPCPY are all 1.
3631         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3632         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3634 2020-05-29  Bruno Haible  <bruno@clisp.org>
3636         Avoid dynamic lookup of Windows API functions when possible.
3637         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3638         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3639         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3640         (use_win32_p): Define differently.
3641         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3642         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3643         for Windows XP or higher.
3645 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3647         read-file: disable buffering if RF_SENSITIVE is set
3648         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3649         Suggested by Glenn Strauss.
3650         (fread_file): Suggest calling setvbuf before calling this
3651         function.  Suggested by Bruno Haible.
3653 2020-05-29  Bruno Haible  <bruno@clisp.org>
3655         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3656         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3657         program.
3658         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3659         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3660         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3661         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3663 2020-05-29  Bruno Haible  <bruno@clisp.org>
3665         Fix compilation error on native Windows (regression from 2020-05-28).
3666         Reported by Daiki Ueno.
3667         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3668         macro when not using dynamic loading.
3669         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3670         QueryFullProcessImageNameFunc): Likewise.
3671         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3672         GetFinalPathNameByHandleFunc): Likewise.
3674 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3676         fopen-gnu-tests: fix "\x" escape usage
3677         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3679 2020-05-28  Bruno Haible  <bruno@clisp.org>
3681         Avoid dynamic loading of Windows API functions when possible.
3682         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3683         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3684         * lib/gettimeofday.c (GetProcAddress,
3685         GetSystemTimePreciseAsFileTimeFuncType,
3686         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3687         define in a build for Windows 8 or higher.
3688         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3689         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3690         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3691         in a build for Windows Vista or higher.
3692         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3693         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3694         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3696 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3698         explicit_bzero-tests: improve -Wmissing-declarations pacification
3699         * tests/test-explicit_bzero.c: Now noinline.
3700         Suggested by Bruno Haible in:
3701         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3703 2020-05-28  Bruno Haible  <bruno@clisp.org>
3705         Fix build errors due to read-file changes (regression from 2020-05-27).
3706         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3707         invocation.
3708         * tests/test-sameacls.c (main): Likewise.
3709         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3710         read_binary_file.
3711         * tests/test-pipe-filter-ii1.c (main): Likewise.
3713 2020-05-28  Bruno Haible  <bruno@clisp.org>
3715         fts: Make more robust in multithreaded applications.
3716         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3717         * modules/fts (Depends-on): Add 'open'.
3719 2020-05-28  Bruno Haible  <bruno@clisp.org>
3721         relocatable-prog: Make more robust in multithreaded applications.
3722         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3723         relocatable-prog-wrapper.
3724         (find_executable): Pass an O_CLOEXEC flag to open().
3725         * modules/relocatable-prog (Depends-on): Add 'open'.
3727 2020-05-28  Bruno Haible  <bruno@clisp.org>
3729         getloadavg: Make more robust in multithreaded applications.
3730         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3731         Simplify use of O_CLOEXEC.
3732         * modules/getloadavg (Depends-on): Add 'open'.
3734 2020-05-28  Bruno Haible  <bruno@clisp.org>
3736         vma-iter: Make more robust in multithreaded applications.
3737         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3738         open().
3739         * modules/vma-iter (Depends-on): Add 'open'.
3741 2020-05-28  Bruno Haible  <bruno@clisp.org>
3743         truncate: Make more robust in multithreaded applications.
3744         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3746 2020-05-28  Bruno Haible  <bruno@clisp.org>
3748         pagealign_alloc: Make more robust in multithreaded applications.
3749         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3750         open().
3751         * modules/pagealign_alloc (Depends-on): Add 'open'.
3753 2020-05-28  Bruno Haible  <bruno@clisp.org>
3755         openat: Make more robust in multithreaded applications.
3756         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3758 2020-05-28  Bruno Haible  <bruno@clisp.org>
3760         at-internal: Make more robust in multithreaded applications.
3761         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3762         open().
3764 2020-05-28  Bruno Haible  <bruno@clisp.org>
3766         mountlist: Make more robust in multithreaded applications.
3767         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3768         open().
3769         * modules/mountlist (Depends-on): Add 'open'.
3771 2020-05-28  Bruno Haible  <bruno@clisp.org>
3773         login_tty: Make more robust in multithreaded applications.
3774         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3775         * modules/login_tty (Depends-on): Add 'open'.
3777 2020-05-28  Bruno Haible  <bruno@clisp.org>
3779         javacomp: Make more robust in multithreaded applications.
3780         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3781         open().
3782         * modules/javacomp (Depends-on): Add 'open'.
3784 2020-05-28  Bruno Haible  <bruno@clisp.org>
3786         getprogname: Make more robust in multithreaded applications.
3787         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3788         * modules/getprogname (Depends-on): Add 'open'.
3790 2020-05-28  Bruno Haible  <bruno@clisp.org>
3792         get_progname_of: Make more robust in multithreaded applications.
3793         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3794         open().
3795         * modules/get_progname_of (Depends-on): Add 'open'.
3797 2020-05-28  Bruno Haible  <bruno@clisp.org>
3799         get_ppid_of: Make more robust in multithreaded applications.
3800         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3801         * modules/get_ppid_of (Depends-on): Add 'open'.
3803 2020-05-28  Bruno Haible  <bruno@clisp.org>
3805         get-rusage-as: Make more robust in multithreaded applications.
3806         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3807         flag to open().
3808         * modules/get-rusage-as (Depends-on): Add 'open'.
3810 2020-05-28  Bruno Haible  <bruno@clisp.org>
3812         crypto/gc: Make more robust in multithreaded applications.
3813         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3814         * modules/crypto/gc (Depends-on): Add 'open'.
3816 2020-05-28  Bruno Haible  <bruno@clisp.org>
3818         copy-file: Make more robust in multithreaded applications.
3819         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3820         open().
3822 2020-05-28  Bruno Haible  <bruno@clisp.org>
3824         chown: Make more robust in multithreaded applications.
3825         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3827 2020-05-28  Bruno Haible  <bruno@clisp.org>
3829         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3830         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3832 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3834         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3835         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3836         specified on Windows.
3837         * tests/test-fopen-gnu.c (DATA): New define.
3838         (main): Add test for reading binary files with an 'e' flag.
3840 2020-05-27  Bruno Haible  <bruno@clisp.org>
3842         Don't assume that UNICODE is not defined.
3843         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3844         differently if the application defines the macro UNICODE.
3845         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3847         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3848         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3849         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3851 2020-05-27  Bruno Haible  <bruno@clisp.org>
3853         Improve pattern for defining _WIN32_WINNT.
3854         Newer versions of the Windows API may not only add, but also remove API
3855         functions. Therefore, when the user is e.g. building for Windows 10, we
3856         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3857         use of APIs that were present in Windows 8 but removed in Windows 10.
3858         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3859         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3860         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3861         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3862         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3864 2020-05-27  Bruno Haible  <bruno@clisp.org>
3866         javacomp: Make more robust in multithreaded applications.
3867         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3868         * modules/javacomp (Depends-on): Add fopen-gnu.
3870 2020-05-27  Bruno Haible  <bruno@clisp.org>
3872         mountlist: Make more robust in multithreaded applications.
3873         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3874         to fopen.
3875         * modules/mountlist (Depends-on): Add fopen-gnu.
3877 2020-05-27  Bruno Haible  <bruno@clisp.org>
3879         sethostname: Make more robust in multithreaded applications.
3880         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3881         * modules/sethostname (Depends-on): Add fopen-gnu.
3883 2020-05-27  Bruno Haible  <bruno@clisp.org>
3885         readutmp: Make more robust in multithreaded applications.
3886         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3887         * modules/readutmp (Depends-on): Add fopen-gnu.
3889 2020-05-27  Bruno Haible  <bruno@clisp.org>
3891         getpass: Make more robust in multithreaded applications.
3892         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3893         * modules/getpass (Depends-on): Add fopen-gnu.
3895 2020-05-27  Bruno Haible  <bruno@clisp.org>
3897         getloadavg: Make more robust in multithreaded applications.
3898         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3899         * modules/getloadavg (Depends-on): Add fopen-gnu.
3901 2020-05-27  Bruno Haible  <bruno@clisp.org>
3903         exclude: Make more robust in multithreaded applications.
3904         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3905         * modules/exclude (Depends-on): Add fopen-gnu.
3907 2020-05-27  Bruno Haible  <bruno@clisp.org>
3909         bitset: Make more robust in multithreaded applications.
3910         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3911         'e' flag to fopen.
3912         * modules/bitset (Depends-on): Add fopen-gnu.
3914 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3916         read-file: add RF_SENSITIVE flag
3917         * lib/read-file.h (RF_SENSITIVE): New define.
3918         * lib/read-file.c (fread_file, read_file): Take into account of
3919         RF_SENSITIVE flag.
3920         * modules/read-file (Depends-on): Add explicit_bzero.
3921         This adds an alternative behavior of those functions to explicitly
3922         clear the internal memory block when it becomes unused.  This is
3923         useful for reading sensitive information from a file.
3925 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3927         read-file: add flags to modify reading behavior
3928         * lib/read-file.h (RF_BINARY): New define.
3929         (fread_file, read_file): Take FLAGS argument.
3930         (read_binary_file): Remove.
3931         * lib/read-file.c (internal_read_file): Merge into ...
3932         (read_file): ... here.
3933         * modules/read-file-tests (Files): Add "tests/macros.h".
3934         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3935         * NEWS: Mention this change.
3937 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3939         doc/gnulib-intro.texi: add missing "to" in sentence
3940         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3941         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3942         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3944 2020-05-26  Bruno Haible  <bruno@clisp.org>
3946         count-one-bits: Fix MSVC specific code.
3947         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3949         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3950         using GCC.
3951         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3952         (__popcnt64): In 32-bit mode, define as an inline function.
3953         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3955 2020-05-26  Bruno Haible  <bruno@clisp.org>
3957         argz: Avoid name clashes through argz.h.
3958         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3959         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3960         * lib/argz.h: Don't use __ prefixed identifiers.
3961         (const): Remove definition.
3962         (argz_next): Remove inline definitions.
3964 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3966         read-file: make use of fopen-gnu
3967         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3968         (read_binary_file): Likewise.
3969         * modules/read-file (Depends-on): Add fopen-gnu.
3971 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3973         getentropy, getrandom: new modules
3974         * MODULES.html.sh (func_all_modules):
3975         * lib/unistd.in.h (getentropy, getrandom):
3976         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3977         * modules/unistd (unistd.h):
3978         Add support for getentropy, getrandom.
3979         * doc/glibc-functions/getentropy.texi (getentropy):
3980         * doc/glibc-functions/getrandom.texi (getrandom):
3981         These are now fixed on some platforms.
3982         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3983         * m4/getentropy.m4, m4/getrandom.m4:
3984         * modules/getentropy, modules/getentropy-tests:
3985         * modules/getrandom, modules/getrandom-tests:
3986         * tests/test-getentropy.c, tests/test-getrandom.c:
3987         New files.
3989 2020-05-25  Bruno Haible  <bruno@clisp.org>
3991         Add missing C99 dependencies.
3992         Reported by Paul Smith <psmith@gnu.org> in
3993         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3994         * modules/assert (Depends-on): Add c99.
3995         * modules/filenamecat-lgpl (Depends-on): Likewise.
3996         * modules/libc-config (Depends-on): Likewise.
3997         * modules/mktime (Depends-on): Likewise.
3998         * modules/random_r (Depends-on): Likewise.
3999         * modules/regex (Depends-on): Likewise.
4000         * modules/scratch_buffer (Depends-on): Likewise.
4001         * modules/timespec-add (Depends-on): Likewise.
4002         * modules/timespec-sub (Depends-on): Likewise.
4003         * modules/verify (Depends-on): Likewise.
4005 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4007         explicit_bzero-tests: pacify -Wmissing-declarations
4008         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
4009         Now static.
4011 2020-05-24  Bruno Haible  <bruno@clisp.org>
4013         fopen-gnu: Add tests.
4014         * tests/test-fopen-gnu.c: New file.
4015         * modules/fopen-gnu-tests: New file.
4017         fopen-gnu: New module.
4018         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
4019         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
4020         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
4021         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
4022         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
4023         * modules/fopen-gnu: New file.
4024         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
4026 2020-05-24  Bruno Haible  <bruno@clisp.org>
4028         open, openat: Really support O_CLOEXEC.
4029         * lib/open.c (open): When have_cloexec is still undecided, do pass a
4030         O_CLOEXEC flag to orig_open.
4031         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
4032         pass a O_CLOEXEC flag to orig_openat.
4033         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
4034         * modules/open-tests (Depends-on): Add fcntl.
4035         * modules/openat-tests (Depends-on): Likewise.
4036         * modules/fcntl-safer-tests (Depends-on): Likewise.
4038 2020-05-24  Bruno Haible  <bruno@clisp.org>
4040         fopen: Fix the trailing slash workaround.
4041         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
4042         write access. Pass the right flags to open().
4043         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
4045 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4047         assure: new macro ‘affirm’
4048         * lib/assure.h: Include verify.h.
4049         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
4050         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
4051         and commentary by Bruno Haible in:
4052         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
4053         * modules/assure (Depends-on:): Add verify.
4055 2020-05-23  Bruno Haible  <bruno@clisp.org>
4057         calloc-gnu: Make test work in non-flat address spaces.
4058         Uses code by Paul Eggert.
4059         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
4060         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
4062 2020-05-23  Bruno Haible  <bruno@clisp.org>
4064         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
4065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
4066         AC_RUN_IFELSE invocations.
4068 2020-05-23  Bruno Haible  <bruno@clisp.org>
4070         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
4071         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
4072         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
4073         don't have it.
4074         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
4075         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
4076         don't have it.
4077         * lib/isnanf-nolibm.h (__has_builtin): New macro.
4078         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
4079         it.
4080         * lib/isnanl-nolibm.h (__has_builtin): New macro.
4081         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
4082         it.
4083         * lib/math.in.h (__has_builtin): New macro.
4084         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
4085         it.
4086         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
4087         it.
4088         (isnan): Don't use the builtins on clang versions that don't have
4089         __builtin_isnanf and __builtin_isnanl.
4091 2020-05-23  Bruno Haible  <bruno@clisp.org>
4093         calloc-gnu: Avoid wrong configure results with clang.
4094         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
4095         'volatile', to defeat compiler optimizations.
4097 2020-05-23  Bruno Haible  <bruno@clisp.org>
4099         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
4100         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
4101         'long double' values by reference, with values taken from a statically
4102         allocated array.
4104 2020-05-23  Bruno Haible  <bruno@clisp.org>
4106         findprog-in: Ignore directories.
4107         Reported by Frederick Eaton via Dmitry Goncharov in
4108         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4109         * lib/findprog-in.c (find_in_given_path): When the file found is a
4110         directory, set errno to EACCES and, during a PATH search, continue
4111         searching.
4112         * modules/findprog-in (Depends-on): Add sys_stat, stat.
4114 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4116         verify: document ‘assume’ better
4117         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
4119 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
4121         gendocs: Clarify licenses for templates.
4122         * doc/gendocs_template: Add a GNU All-Permissive license notice
4123         and bump Parent-Version.
4124         * doc/gendocs_template_min: Add a GNU All-Permissive license
4125         notice and copy the explanatory comment about the license notice
4126         at the bottom from gendocs_template.
4128 2020-05-21  Bruno Haible  <bruno@clisp.org>
4130         group-member: Relicense under LGPLv2+.
4131         Jim Meyering's approval is in
4132         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
4133         Paul Eggert's approval is in
4134         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
4135         Eric Blake's approval is in
4136         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
4137         * modules/group-member (License): Change to LGPLv2+.
4139 2020-05-21  Bruno Haible  <bruno@clisp.org>
4141         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
4142         Reported by Tim Rühsen in
4143         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
4146 2020-05-21  Bruno Haible  <bruno@clisp.org>
4148         regex: Avoid wrong configure results with "clang -fsanitize=leak".
4149         Reported by Tim Rühsen in
4150         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4151         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
4152         before returning with status 0.
4154 2020-05-21  Bruno Haible  <bruno@clisp.org>
4156         glob: Avoid wrong configure results with "clang -fsanitize=leak".
4157         Reported by Tim Rühsen in
4158         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4159         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
4161 2020-05-21  Bruno Haible  <bruno@clisp.org>
4163         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
4164         Reported by Tim Rühsen in
4165         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4166         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
4167         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
4168         respectively.
4170 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
4172         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
4173         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
4175 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4177         ftoastr: fix ifndef typo
4178         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
4180 2020-05-19  Bruno Haible  <bruno@clisp.org>
4182         havelib: Tweak documentation.
4183         * doc/havelib.texi (Searching for Libraries): Fix typo.
4185 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4187         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
4188         This was needed earlier because modules had to import the main script,
4189         but that is no longer true.  Rename the script so that it is
4190         consistent with all other scripts in gnulib and uses hyphens.
4191         * build-aux/vcs_to_changelog.py: Rename to...
4192         * build-aux/vcs-to-changelog.py: ... this.
4193         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
4194         * modules/vcs-to-changelog: Likewise.
4196 2020-05-17  Bruno Haible  <bruno@clisp.org>
4198         Clarify intended usage of the license file modules.
4199         Reported by Asher Gordon <AsDaGo@posteo.net> in
4200         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
4201         * doc/licenses-texi.texi (License Texinfo sources): Mention the
4202         GNU AGPL. Explain the intended usage of the modules.
4203         * modules/fdl (Notice): Discourage use as a module.
4204         * modules/fdl-1.3 (Notice): Likewise.
4206 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
4208         hash: add hash_xinsert
4209         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
4211 2020-05-16  Bruno Haible  <bruno@clisp.org>
4213         findprog-lgpl: Fix link error (existing since 2008-09-02).
4214         * modules/findprog-lgpl (Makefile.am): Arrange to compile
4215         findprog-lgpl.c, not findprog.c.
4216         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
4217         XNMALLOC.
4219 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
4221         c-stack: pacify -Wunused-result when DEBUG
4222         Problem reported by Marc Nieper-Wißkirchen in:
4223         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
4224         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4225         Explicitly ignore write failures.
4227 2020-05-13  Jim Meyering  <meyering@fb.com>
4229         announce-gen: improve a comment
4230         * build-aux/announce-gen: Improve comment.
4232 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4234         xalloc: pacify -Wanalyzer-possible-null-argument
4235         Problem reported for GCC 10.1.0 by Bruno Haible in:
4236         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
4237         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
4238         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
4239         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
4241 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4243         careadlinkat: fix GCC 10 workaround
4244         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4245         Massage the code so that it’s closer to what it was before
4246         the GCC 10.1.0 workaround was introduced.  This fixes
4247         a loop when !buffer and the bug workaround is in effect.
4248         Remove unnecessary casts.  Defend in a different way
4249         against (buffer && !buffer_size), by adding at least 1
4250         to buf_size each time through the loop.
4252 2020-05-10  Bruno Haible  <bruno@clisp.org>
4254         doc: Mark HP-UX as unsupported.
4255         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
4257 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4259         careadlinkat: limit GCC workaround
4260         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
4261         10.1.0 and later, since the workaround is pretty bad and the GCC
4262         bug should get fixed.
4264 2020-05-10  Bruno Haible  <bruno@clisp.org>
4266         havelib: Enhance documentation.
4267         * doc/havelib.texi (Searching for Libraries): Mention the bad
4268         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
4270 2020-05-10  Bruno Haible  <bruno@clisp.org>
4272         attribute: Clarify list of attributes.
4273         * lib/attribute.h: Reorder the list of attributes, and group them by
4274         purpose.
4276 2020-05-10  Bruno Haible  <bruno@clisp.org>
4278         string: Fix compilation error in C++ mode.
4279         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
4280         _GL_WARN_ON_USE.
4281         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
4282         instead of _GL_WARN_ON_USE.
4284 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
4286         announce-gen: add support for dist-lzip
4287         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
4289 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4291         manywarnings: port to GCC 10.1
4292         * build-aux/gcc-warning.spec:
4293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
4294         Add GCC 10.1.0 warnings.
4296         careadlinkat: pacify -Wreturn-local-addr
4297         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4298         Pacify gcc 10’s -Wreturn-local-addr option.
4299         Simplify some of the later code.
4301 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4303         attribute: remove ATTRIBUTE_DEPRECATED
4304         * lib/attribute.h: Improve recently-added comments, mostly
4305         by shortening them (use active voice, etc.).
4306         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
4307         Problem reported by Bruno Haible in:
4308         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
4310 2020-05-09  Bruno Haible  <bruno@clisp.org>
4312         attribute: Add comments.
4313         * lib/attribute.h: Document each macro.
4315 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
4317         bitset: use the attribute module
4318         * modules/bitset: Depend on 'attribute'.
4319         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
4320         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
4321         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
4322         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
4324 2020-05-09  Bruno Haible  <bruno@clisp.org>
4326         c-stack: Fix warning when DEBUG is enabled.
4327         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
4329         * lib/c-stack.c: Include <stdio.h>.
4331 2020-05-09  Bruno Haible  <bruno@clisp.org>
4333         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
4334         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
4335         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4336         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4337         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4338         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4339         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4340         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4341         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4342         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
4343         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4344         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4345         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4347 2020-05-09  Bruno Haible  <bruno@clisp.org>
4349         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
4350         Reported by Akim Demaille in
4351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
4352         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
4353         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4354         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4356 2020-05-09  Bruno Haible  <bruno@clisp.org>
4358         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
4359         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
4360         that usually comes from m4/gnulib-common.m4.
4361         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4363 2020-05-09  Bruno Haible  <bruno@clisp.org>
4365         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
4366         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
4367         that usually comes from m4/gnulib-common.m4.
4368         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4369         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4370         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4372 2020-05-09  Bruno Haible  <bruno@clisp.org>
4374         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
4375         * lib/uchar.in.h (char16_t): Define as macro if
4376         GNULIB_OVERRIDES_CHAR16_T.
4377         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
4378         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
4379         (gl_UCHAR_H): Invoke them.
4380         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
4381         GNULIB_OVERRIDES_CHAR32_T.
4382         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
4383         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
4384         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
4385         GNULIB_OVERRIDES_CHAR32_T.
4387 2020-05-09  Bruno Haible  <bruno@clisp.org>
4389         Macro tweaks.
4390         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
4391         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
4393 2020-05-08  Bruno Haible  <bruno@clisp.org>
4395         c32rtomb: Avoid compilation failure on Haiku.
4396         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
4397         inline definitions.
4398         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
4400 2020-05-08  Bruno Haible  <bruno@clisp.org>
4402         mbrtoc32: Avoid compilation failure on Haiku.
4403         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
4404         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
4405         AC_CHECK_FUNCS_ONCE.
4406         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
4408 2020-05-08  Bruno Haible  <bruno@clisp.org>
4410         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
4411         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
4413 2020-05-08  Bruno Haible  <bruno@clisp.org>
4415         list: Update documentation.
4416         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4417         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
4418         * doc/containers.texi (Container data types): Document the new list
4419         operations and their complexity.
4421 2020-05-08  Bruno Haible  <bruno@clisp.org>
4423         ignore-value tests: Use module 'attribute'.
4424         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
4425         * tests/test-ignore-value.c: Include attribute.h.
4426         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
4427         * modules/ignore-value-tests (Depends-on): Add attribute.
4429 2020-05-08  Bruno Haible  <bruno@clisp.org>
4431         uniname/uniname: Use module 'attribute'.
4432         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
4433         * lib/uniname/uninames.h: Regenerated.
4434         * lib/uniname/uniname.c: Include attribute.h.
4435         * modules/uniname/uniname (Depends-on): Add attribute.
4437 2020-05-08  Bruno Haible  <bruno@clisp.org>
4439         c32rtomb: Use module 'attribute'.
4440         * lib/c32rtomb.c: Include attribute.h.
4441         (FALLTHROUGH): Remove macro.
4442         * modules/c32rtomb (Depends-on): Add attribute.
4444 2020-05-08  Bruno Haible  <bruno@clisp.org>
4446         xsize: Use module 'attribute'.
4447         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
4448         * modules/xsize (Depends-on): Add attribute.
4450 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4452         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
4454         * lib/attribute.h: Minor style fixes.
4456         Fix version-etc glitch on OpenIndiana
4457         Problem reported by Mats Erik Andersson in:
4458         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
4459         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
4460         that now clashes with gnulib-common.h.  All uses changed.
4462 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4464         attribute: new module
4465         This simplifies use of GCC and C2X attributes like ‘deprecated’.
4466         * MODULES.html.sh: Add attribute.
4467         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
4468         * doc/gnulib.texi (Particular Modules): Add Attributes.
4469         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
4470         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
4471         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
4472         * lib/vasnprintf.c:
4473         Include attribute.h, and let it define FALLTHROUGH.
4474         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
4475         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
4476         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
4477         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
4478         This is a copy since Gawk doesn’t use Gnulib.
4479         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
4480         is incompatible with gl_COMMON_BODY’s.  All uses changed.
4481         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
4482         Keep the existing FALLTHROUGH definition since Glibc might use it,
4483         and it does no harm to Gnulib’s FALLTHROUGH.
4484         * lib/fts_.h, lib/inttostr.h:
4485         (__GNUC_PREREQ): Remove; no longer needed.
4486         (__attribute_warn_unused_result__): Remove.  All uses
4487         replaced by _GL_ATTRIBUTE_NODISCARD.
4488         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
4489         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
4490         __attribute__ ((__warn_unused_result__)), for forward
4491         compatibility to C2X.
4492         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
4493         _GL_ATTRIBUTE_NODISCARD.
4494         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
4495         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
4496         replaced by gl_COMMON_BODY’s implementation, which has a
4497         slightly different signature.
4498         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
4499         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
4500         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
4501         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
4502         No doubt all uses should be replaced, at some point.
4503         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
4504         (_Noreturn): Use it.
4505         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
4506         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
4507         (_GL_ATTRIBUTE_COLD)
4508         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
4509         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
4510         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
4511         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
4512         (_GL_ATTRIBUTE_MAYBE_UNUSED)
4513         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
4514         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
4515         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
4516         (_GL_ATTRIBUTE_RETURNS_NONNULL)
4517         (_GL_ATTRIBUTE_SENTINEL): New macros.
4518         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
4519         * modules/fnmatch, modules/freopen-safer, modules/fts:
4520         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
4521         * modules/quotearg, modules/savewd:
4522         * modules/unistdio/u16-u16-vasnprintf:
4523         * modules/unistdio/u16-vasnprintf:
4524         * modules/unistdio/u32-u32-vasnprintf:
4525         * modules/unistdio/u32-vasnprintf:
4526         * modules/unistdio/u8-u8-vasnprintf:
4527         * modules/unistdio/u8-vasnprintf:
4528         * modules/unistdio/ulc-vasnprintf:
4529         * modules/unistr/u8-uctomb, modules/vasnprintf:
4530         (Depends-on:): Add attribute module.
4532 2020-05-03  Bruno Haible  <bruno@clisp.org>
4534         bison: Fix today's commit.
4535         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
4537 2020-05-03  Bruno Haible  <bruno@clisp.org>
4539         list-c++: Add get_first, get_last, set_first, set_last operations.
4540         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
4541         set_first, set_last.
4542         * lib/gl_list.h: Tweak comments.
4544 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
4546         bison: rely on bison's %require to check a version requirement
4547         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
4548         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
4549         enough of not.
4550         So far it is the only know Yacc tool that supports '%require'.
4551         Other yaccs will actually even choke on seeing the -o option after the
4552         input file name.
4553         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
4555 2020-05-02  Bruno Haible  <bruno@clisp.org>
4557         list: Add get_first, get_last, set_first, set_last operations.
4558         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
4559         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
4560         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
4562 2020-05-02  Bruno Haible  <bruno@clisp.org>
4564         list: Remove redundant code for remove_first and remove_last operations.
4565         * lib/gl_list.h (struct gl_list_implementation): Remove fields
4566         remove_first, remove_last.
4567         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
4568         * lib/gl_array_list.c: Revert last change.
4569         * lib/gl_carray_list.c: Likewise.
4570         * lib/gl_anylinked_list2.h: Likewise.
4571         * lib/gl_linked_list.c: Likewise.
4572         * lib/gl_linkedhash_list.c: Likewise.
4573         * lib/gl_anytree_list2.h: Likewise.
4574         * lib/gl_avltree_list.c: Likewise.
4575         * lib/gl_avltreehash_list.c: Likewise.
4576         * lib/gl_rbtree_list.c: Likewise.
4577         * lib/gl_rbtreehash_list.c: Likewise.
4578         * lib/gl_sublist.c: Likewise.
4580 2020-05-02  Bruno Haible  <bruno@clisp.org>
4582         bison-i18n: Add support for cross-compilation.
4583         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
4584         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
4585         via Akim Demaille <akim@lrde.epita.fr>.
4586         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4587         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4588         Don't use bison's --print-localedir option when cross-compiling.
4589         Also, fix an error message and a comment.
4591 2020-05-01  Bruno Haible  <bruno@clisp.org>
4593         list: Add remove_first and remove_last operations.
4594         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4595         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4596         * lib/gl_list.h (struct gl_list_implementation): Add fields
4597         remove_first, remove_last.
4598         (gl_list_remove_first, gl_list_remove_last): New functions.
4599         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4600         functions, based on gl_array_remove_at.
4601         (gl_array_list_implementation): Implement the new operations.
4602         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4603         New functions, based on gl_carray_remove_at.
4604         (gl_carray_list_implementation): Implement the new operations.
4605         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4606         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4607         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4608         new operations.
4609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4610         Likewise.
4611         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4612         New functions, based on gl_tree_remove_at.
4613         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4614         new operations.
4615         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4616         Likewise.
4617         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4618         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4619         Likewise.
4620         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4621         New functions, based on gl_sublist_remove_at.
4622         (gl_sublist_list_implementation): Implement the new operations.
4623         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4624         remove_last.
4625         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4626         gl_list_remove_last.
4627         * tests/test-avltree_list.c (main): Likewise.
4628         * tests/test-avltreehash_list.c (main): Likewise.
4629         * tests/test-carray_list.c (main): Likewise.
4630         * tests/test-linked_list.c (main): Likewise.
4631         * tests/test-linkedhash_list.c (main): Likewise.
4632         * tests/test-rbtree_list.c (main): Likewise.
4633         * tests/test-rbtreehash_list.c (main): Likewise.
4635 2020-05-01  Bruno Haible  <bruno@clisp.org>
4637         parse-datetime: Fix a build failure with an older bison version.
4638         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4639         parse-datetime.tab.c if a suitable version of bison was not found.
4641 2020-05-01  Bruno Haible  <bruno@clisp.org>
4643         bison: New module.
4644         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4645         m4/parse-datetime.m4.
4646         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4647         * modules/bison: New file.
4648         * modules/parse-datetime (Files): Remove m4/bison.m4.
4649         (Depends-on): Add bison.
4651 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4653         Update users.txt.
4654         * users.txt: Add poke.
4656 2020-04-28  Bruno Haible  <bruno@clisp.org>
4658         posix_spawn_file_actions_addfchdir tests: Enhance test.
4659         * tests/test-posix_spawn5.c: Include findprog.h.
4660         (test): New function, extracted from main.
4661         (main): Invoke it. Also, invoke it with a program name such as
4662         "bin/pwd".
4663         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4664         findprog.
4666 2020-04-28  Bruno Haible  <bruno@clisp.org>
4668         posix_spawn_file_actions_addchdir tests: Enhance test.
4669         * tests/test-posix_spawn4.c: Include findprog.h.
4670         (test): New function, extracted from main.
4671         (main): Invoke it. Also, invoke it with a program name such as
4672         "bin/pwd".
4673         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4674         findprog.
4676 2020-04-28  Bruno Haible  <bruno@clisp.org>
4678         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4679         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4680         access elements of the wrong union member.
4682 2020-04-27  Bruno Haible  <bruno@clisp.org>
4684         getdate: Remove deprecated module.
4685         * modules/getdate: Remove file.
4686         * doc/getdate.texi: Remove file.
4687         * lib/getdate.h: Remove file.
4688         * NEWS: Mention the removal.
4690 2020-04-27  Bruno Haible  <bruno@clisp.org>
4692         realloc: Remove deprecated module.
4693         * modules/realloc: Remove file.
4694         * NEWS: Mention the removal.
4696 2020-04-27  Bruno Haible  <bruno@clisp.org>
4698         calloc: Remove deprecated module.
4699         * modules/calloc: Remove file.
4700         * NEWS: Mention the removal.
4702 2020-04-27  Bruno Haible  <bruno@clisp.org>
4704         malloc: Remove deprecated module.
4705         * modules/malloc: Remove file.
4706         * NEWS: Mention the removal.
4708 2020-04-27  Bruno Haible  <bruno@clisp.org>
4710         fnmatch-posix: Remove deprecated module.
4711         * modules/fnmatch-posix: Remove file.
4712         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4713         * NEWS: Mention the removal.
4715 2020-04-27  Bruno Haible  <bruno@clisp.org>
4717         pipe: Remove deprecated module.
4718         * modules/pipe: Remove file.
4719         * lib/pipe.h: Remove file.
4720         * NEWS: Mention the removal.
4722 2020-04-27  Bruno Haible  <bruno@clisp.org>
4724         getopt: Remove deprecated module.
4725         * modules/getopt: Remove file.
4726         * NEWS: Mention the removal.
4728 2020-04-27  Bruno Haible  <bruno@clisp.org>
4730         remove-dest-slash: Remove deprecated module.
4731         * modules/rename-dest-slash: Remove file.
4732         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4733         Update.
4734         * NEWS: Mention the removal.
4736 2020-04-27  Bruno Haible  <bruno@clisp.org>
4738         unictype/bidicategory-*: Remove deprecated modules.
4739         * modules/unictype/bidicategory-all: Remove file.
4740         * modules/unictype/bidicategory-byname: Remove file.
4741         * modules/unictype/bidicategory-name: Remove file.
4742         * modules/unictype/bidicategory-of: Remove file.
4743         * modules/unictype/bidicategory-test: Remove file.
4744         * MODULES.html.sh (Unicode string functions): Update.
4745         * NEWS: Mention the removals.
4747 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4749         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4750         From a suggestion by Askar Safin in:
4751         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4752         * lib/fts.c (fts_build): If file types are known, optimize
4753         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4754         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4755         non-directories.
4757 2020-04-19  Bruno Haible  <bruno@clisp.org>
4759         vasnprintf: Add support for printing wide characters using escapes.
4760         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4761         (wctomb_fallback): New function.
4762         (local_wctomb): New function.
4763         (local_wcrtomb): New function or macro.
4764         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4765         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4766         %lc.
4768 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4770         fts: remove NOSTAT_LEAF_OPTIMIZATION
4771         It caused ‘find’ and ‘du’ to dump core, and it was useful
4772         only for obsolescent Linux filesystems anyway.  Problem reported in:
4773         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4774         Quite possibly there is still a serious underlying fts bug with
4775         tight-loop-check and mutating file systems, but if so this patch
4776         should cause the bug to be triggered less often.
4777         * lib/fts.c (enum leaf_optimization): Remove
4778         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4779         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4780         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4781         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4782         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4783         Remove.  All uses removed.
4785 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4787         explicit_bzero: Improve code style.
4788         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4790 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4792         explicit_bzero: On native Windows, use SecureZeroMemory().
4793         * lib/explicit_bzero.c: Include <windows.h>.
4794         (explicit_bzero): On native Windows, use SecureZeroMemory.
4796 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4798         explicit_bzero: Use memset_s() when available.
4799         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4800         (explicit_bzero): Use memset_s when available.
4801         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4803 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4805         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4806         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4807         free() that overwrite the memory with canaries.
4809 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4811         bootstrap: recommend git submodule update --init
4812         Reported by Bruno Haible.
4813         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4814         * build-aux/bootstrap: recommand "git submodule update --init"
4815         rather than "git submodule init".
4817 2020-04-12  Bruno Haible  <bruno@clisp.org>
4819         explicit_bzero: Add tests.
4820         * tests/test-explicit_bzero.c: New file.
4821         * modules/explicit_bzero-tests: New file.
4823 2020-04-11  Bruno Haible  <bruno@clisp.org>
4825         explicit_bzero: Relicense under LGPLv2+.
4826         Approved by Paul Eggert.
4827         * modules/explicit_bzero (License): Change to LGPLv2+.
4829 2020-04-10  Bruno Haible  <bruno@clisp.org>
4831         findprog, relocatable-prog: Ignore directories during PATH search.
4832         Reported by Frederick Eaton via Dmitry Goncharov in
4833         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4835         * lib/findprog.c (find_in_path): When the file found in a PATH element
4836         is a directory, continue searching.
4837         * modules/findprog (Depends-on): Add sys_stat, stat.
4838         * modules/findprog-lgpl (Depends-on): Likewise.
4840         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4841         element is a directory, continue searching.
4842         * lib/relocwrapper.c: Update comments.
4843         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4844         (configure.ac-early): New section.
4846 2020-04-10  Bruno Haible  <bruno@clisp.org>
4848         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4849         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4850         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4851         * MODULES.html.sh: In a git-less tarball, use the date of the first
4852         ChangeLog entry.
4854 2020-04-04  Bruno Haible  <bruno@clisp.org>
4856         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4857         * m4/gettext.m4: Fix comments regarding the gettext library.
4858         * m4/intl-thread-locale.m4: Likewise.
4859         * m4/intlmacosx.m4: Likewise.
4860         * m4/lcmessage.m4: Likewise.
4861         * m4/nls.m4: Likewise.
4862         * m4/po.m4: Likewise.
4863         * m4/progtest.m4: Likewise.
4865 2020-04-04  Jim Meyering  <meyering@fb.com>
4867         maint: remove a stray inter-word space in a 6x-repeated comment
4868         Induce the changes by running this:
4869           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4870         * build-aux/announce-gen: Change "by  perl" to "by perl".
4871         * build-aux/gitlog-to-changelog: Likewise.
4872         * build-aux/prefix-gnulib-mk: Likewise.
4873         * build-aux/update-copyright: Likewise.
4874         * build-aux/useless-if-before-free: Likewise.
4875         * tests/test-update-copyright.sh: Likewise.
4877 2020-03-28  Bruno Haible  <bruno@clisp.org>
4879         Use module 'filename' instead of module 'dosname'.
4881         * lib/at-func.c: Include filename.h instead of dosname.h.
4882         * lib/unlinkat.c: Likewise.
4883         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4884         * modules/areadlinkat-with-size (Depends-on): Likewise.
4885         * modules/faccessat (Depends-on): Likewise.
4886         * modules/fchmodat (Depends-on): Likewise.
4887         * modules/fchownat (Depends-on): Likewise.
4888         * modules/fstatat (Depends-on): Likewise.
4889         * modules/mkdirat (Depends-on): Likewise.
4890         * modules/mkfifoat (Depends-on): Likewise.
4891         * modules/readlinkat (Depends-on): Likewise.
4892         * modules/selinux-at (Depends-on): Likewise.
4893         * modules/symlinkat (Depends-on): Likewise.
4894         * modules/unlinkat (Depends-on): Likewise.
4895         * modules/utimensat (Depends-on): Likewise.
4897         * lib/at-func2.c: Include filename.h instead of dosname.h.
4898         * modules/linkat (Depends-on): Add filename. Remove dosname.
4899         * modules/renameatu (Depends-on): Likewise.
4901         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4902         * lib/canonicalize-lgpl.c: Likewise.
4903         * modules/canonicalize (Depends-on): Add filename.
4904         * modules/canonicalize-lgpl (Depends-on): Likewise.
4906         * lib/dirname.h: Include filename.h instead of dosname.h.
4907         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4909         * lib/fchdir.c: Include filename.h instead of dosname.h.
4910         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4912         * lib/openat.c: Include filename.h instead of dosname.h.
4913         * modules/openat (Depends-on): Add filename. Remove dosname.
4915         * lib/rmdir.c: Include filename.h instead of dosname.h.
4916         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4918         * lib/savewd.c: Include filename.h instead of dosname.h.
4919         * modules/savewd (Depends-on): Add filename. Remove dosname.
4921         * lib/unlink.c: Include filename.h instead of dosname.h.
4922         * modules/unlink (Depends-on): Add filename. Remove dosname.
4924         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4925         * lib/relocwrapper.c: Update comments.
4927         * modules/lstat (Depends-on): Remove dosname.
4929 2020-03-28  Bruno Haible  <bruno@clisp.org>
4931         dosname: Redirect to 'filename'.
4932         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4934         * lib/dosname.h: Remove all definitions. Just include filename.h.
4935         * modules/dosname (Status, Notice): Mark as deprecated.
4936         (Depends-on): Add 'filename'.
4938 2020-03-28  Bruno Haible  <bruno@clisp.org>
4940         dosname: Change IS_RELATIVE_FILE_NAME.
4941         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4942         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4943         * NEWS: Mention the change.
4945 2020-03-28  Bruno Haible  <bruno@clisp.org>
4947         filename: Copy some definitions from module 'dosname'.
4948         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4949         (HAS_DEVICE): Document macro.
4950         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4951         (IS_ABSOLUTE_FILE_NAME): Consider
4952         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4953         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4954         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4955         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4956         IS_PATH_WITH_DIR.
4957         (DllMain): Update.
4958         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4959         IS_PATH_WITH_DIR.
4960         (find_executable): Update.
4961         * NEWS: Document the deprecations.
4963 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4965         getopt-posix: port __GETOPT_PREFIX to macOS
4966         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4967         Define to work around a problem with asm on macOS (Bug#40205).
4969 2020-03-22  Bruno Haible  <bruno@clisp.org>
4971         MODULES.html.sh: Add support for reproducible builds.
4972         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4973         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4974         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4975         current date.
4977 2020-03-22  Bruno Haible  <bruno@clisp.org>
4979         Several modules: Depend on stat.
4980         * modules/acl-permissions (Depends-on): Add stat.
4981         * modules/canonicalize (Depends-on): Likewise.
4982         * modules/file-has-acl (Depends-on): Likewise.
4983         * modules/fstat (Depends-on): Likewise.
4984         * modules/fstatat (Depends-on): Likewise.
4985         * modules/glob (Depends-on): Likewise.
4986         * modules/javacomp (Depends-on): Likewise.
4987         * modules/linkat (Depends-on): Likewise.
4988         * modules/mkdir (Depends-on): Likewise.
4989         * modules/pt_chown (Depends-on): Likewise.
4990         * modules/ptsname_r (Depends-on): Likewise.
4991         * modules/readlinkat (Depends-on): Likewise.
4992         * modules/rename (Depends-on): Likewise.
4993         * modules/renameatu (Depends-on): Likewise.
4994         * modules/tmpdir (Depends-on): Likewise.
4995         * modules/utimens (Depends-on): Likewise.
4996         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4997         * modules/same (Depends-on): Remove stat.
4999 2020-03-22  Bruno Haible  <bruno@clisp.org>
5001         acl-permissions: Improve autoconf macro.
5002         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
5003         more reliably.
5005 2020-03-22  Bruno Haible  <bruno@clisp.org>
5007         file-has-acl: Fix module description.
5008         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
5009         (Depends-on): Depend on acl-permissions unconditionally.
5011 2020-03-21  Bruno Haible  <bruno@clisp.org>
5013         unlink: Ensure errno also on native Windows.
5014         * modules/unlink (Depends-on): Add malloc-posix.
5016 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5018         unlink: fix malloc errno typo
5019         Problem reported by Tim Rühsen in:
5020         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
5021         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
5023 2020-03-16  Bruno Haible  <bruno@clisp.org>
5025         *printf-posix: Fix m4 error (regression from 2020-03-08).
5026         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
5027         brackets in AC_COMPILE_IFELSE invocation.
5029 2020-03-08  Bruno Haible  <bruno@clisp.org>
5031         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
5032         * modules/crypto/af_alg (Depends-on): Add fstat.
5033         * modules/renameatu (Depends-on): Likewise.
5034         * modules/same (Depends-on): Likewise.
5035         * modules/term-style-control (Depends-on): Likewise.
5037 2020-03-08  Bruno Haible  <bruno@clisp.org>
5039         *printf-posix: Document why it's overridden on some glibc systems.
5040         Reported by Adrian Bunk <bunk@stusta.de> in
5041         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
5042         * doc/posix-functions/*printf.texi: Document the problem with the %n
5043         directive on some glibc systems.
5044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
5045         the cross-compilation guesses accordingly.
5047 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
5049         open, openat: port to (O_RDWR | O_RDONLY) != 0
5050         Potential portability problem reported by Dan Gohman in:
5051         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
5052         * lib/open.c (open):
5053         * lib/openat.c (rpl_openat):
5054         Don’t assume O_RDONLY is disjoint from O_RDWR.
5056 2020-03-07  Bruno Haible  <bruno@clisp.org>
5058         openat: Fix theoretically possible issue on GNU/Hurd.
5059         Reported by Dan Gohman <sunfish@mozilla.com> in
5060         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
5061         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
5062         ignore the bits that are also set in O_RDONLY.
5064 2020-02-24  Bruno Haible  <bruno@clisp.org>
5066         getloadavg: Don't use /usr/local when cross-compiling on AIX.
5067         Reported by Jens Rehsack <sno@netbsd.org> in
5068         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
5069         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
5070         cross-compiling.
5072 2020-02-24  Bruno Haible  <bruno@clisp.org>
5074         fcntl: Add witness of gnulib override.
5075         Reported by Jens Rehsack <sno@netbsd.org> in
5076         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
5077         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
5078         macros.
5080 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
5082         Update users.txt.
5083         * users.txt: Add datamash, time.
5085 2020-02-23  Bruno Haible  <bruno@clisp.org>
5087         uni*/base: Use 'restrict'.
5088         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
5089         from lib/regex.h.
5090         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
5091         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
5092         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
5093         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
5094         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
5095         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
5096         '_UC_RESTRICT'.
5097         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
5098         u32_conv_to_encoding): Use '_UC_RESTRICT'.
5099         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
5100         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
5101         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
5102         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
5103         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
5104         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
5105         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
5106         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
5107         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
5108         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
5109         '_UC_RESTRICT'.
5110         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
5111         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
5112         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
5113         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
5114         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
5115         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
5116         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
5117         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
5119 2020-02-23  Bruno Haible  <bruno@clisp.org>
5121         glob, spawn: Use improved '_Restrict_' definition.
5122         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
5123         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
5125 2020-02-23  Bruno Haible  <bruno@clisp.org>
5127         crypto/gc: Use 'restrict'.
5128         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
5129         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
5131         crypto/hmac-*: Use 'restrict'.
5132         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
5133         'restrict'.
5134         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
5135         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
5136         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
5137         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
5139         crypto/sm3: Use 'restrict'.
5140         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
5141         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
5143         crypto/*-buffer: Use 'restrict'.
5144         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
5145         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
5147         crypto/sha512-buffer: Use 'restrict'.
5148         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
5149         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
5150         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
5152         crypto/sha256-buffer: Use 'restrict'.
5153         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
5154         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
5155         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
5157         crypto/sha1-buffer: Use 'restrict'.
5158         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
5159         'restrict'.
5160         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
5162         crypto/md5-buffer: Use 'restrict'.
5163         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
5164         'restrict'.
5165         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
5167         crypto/md4: Use 'restrict'.
5168         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
5169         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
5171         crypto/md2: Use 'restrict'.
5172         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
5173         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
5175         crypto/rijndael: Use 'restrict'.
5176         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
5177         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
5178         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
5180         crypto/arctwo: Use 'restrict'.
5181         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
5182         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
5184         crypto/arcfour: Use 'restrict'.
5185         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
5186         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
5188         careadlinkat: Use 'restrict'.
5189         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
5190         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
5191         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
5193         regex-quote: Use 'restrict'.
5194         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
5195         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
5197         system-quote: Use 'restrict'.
5198         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
5199         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
5201         sh-quote: Use 'restrict'.
5202         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
5203         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
5205         quotearg: Use 'restrict'.
5206         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
5207         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
5209         parse-datetime: Use 'restrict'.
5210         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
5211         'restrict'.
5212         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
5214         nstrftime: Use 'restrict'.
5215         * lib/strftime.h (nstrftime): Use 'restrict'.
5216         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
5218         mbstok_r: Use 'restrict'.
5219         * lib/string.in.h (mbstok_r): Use 'restrict'.
5221         xmemcoll: Use 'restrict'.
5222         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
5223         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
5225         memcoll: Use 'restrict'.
5226         * lib/memcoll.h (memcoll): Use 'restrict'.
5227         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
5229         vasnprintf: Use 'restrict'.
5230         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
5231         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
5233         c-vasnprintf: Use 'restrict'.
5234         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
5235         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
5237         c-vsnprintf: Use 'restrict'.
5238         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
5239         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
5241         c-snprintf: Use 'restrict'.
5242         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
5243         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
5245         astrxfrm: Use 'restrict'.
5246         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
5247         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
5249         amemxfrm: Use 'restrict'.
5250         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
5251         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
5253 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5255         fchmodat, lchmod: simplify
5256         It appears that we may have overengineered lchmod and fchmodat,
5257         in that the code was prepared for some hypothetical platforms but
5258         was so complicated that it was hard to understand.  I attempted to
5259         improve the situation by simplifying the code when this
5260         simplification should not hurt on real platforms; we can re-add
5261         complexity later to port to platforms I didn’t know about.
5262         * lib/fchmodat.c (fchmodat):
5263         * lib/lchmod.c (lchmod):
5264         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
5265         around the /proc code that needs it.
5266         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
5267         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
5268         Do not include <config.h> twice.
5269         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
5270         lchmod on any known hosts.
5271         (lchmod): Do not defer to fchmodat, so that the lchmod module
5272         need not depend on the fchmodat module (which is a circular
5273         dependency).  Do not use openat, since ‘open’ suffices.
5274         Coalesce calls to lchmod/chmod.
5275         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
5276         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
5277         * modules/lchmod (Depends-on, configure.ac):
5278         * modules/sys_stat (Depends-on):
5279         Do not worry about replacing lchmod, since that shouldn’t happen.
5280         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
5281         Do not worry about whether lchmod works on non-symlinks,
5282         since every known lchmod works on non-symlinks.
5283         * modules/lchmod (Depends-on):
5284         Remove circular dependency on fchmodat.
5286 2020-02-22  Bruno Haible  <bruno@clisp.org>
5288         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
5289         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
5290         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
5292 2020-02-22  Bruno Haible  <bruno@clisp.org>
5294         Use 'restrict' in all POSIX function declarations.
5295         * lib/iconv.in.h (iconv): Use 'restrict'.
5296         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
5297         * lib/monetary.in.h (strfmon_l): Likewise.
5298         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
5299         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
5300         pthread_mutex_timedlock, pthread_rwlock_init,
5301         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5302         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
5303         * lib/search.in.h (tdelete): Likewise.
5304         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
5305         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
5306         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
5307         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
5308         Likewise.
5309         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
5310         strtoull): Likewise.
5311         * lib/string.in.h (strncat): Likewise.
5312         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
5313         recvfrom): Likewise.
5314         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
5315         * lib/time.in.h (strftime): Likewise.
5316         * lib/unistd.in.h (readlink, readlinkat): Likewise.
5317         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
5318         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
5319         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
5320         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
5321         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
5322         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
5323         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5324         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5325         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5326         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5330         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5331         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
5332         other *_h.m4 files.
5333         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
5335 2020-02-22  Bruno Haible  <bruno@clisp.org>
5337         Update NEWS.
5338         * NEWS: Mention the last change.
5340 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5342         chmodat, chownat: new modules
5343         These are split from fchmodat, fchownat.  GNU Emacs needs the
5344         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
5345         lchmodat.  Split the latter two into a new module chmodat.
5346         Similarly for fchownat.  This the same basic idea for why statat
5347         was split from fstatat on 2013-01-23.
5348         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
5349         Rename from FCHMODAT_INLINE.  All uses changed.
5350         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
5351         Rename from FCHOWNAT_INLINE.  All uses changed.
5352         * lib/openat.h:
5353         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
5354         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
5355         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
5356         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
5357         (configure.ac): Remove fchmodat module indicator.
5358         (Makefile.am): Omit chmodat.c.
5359         (Maintainer): Add self.
5360         * modules/fchownat: Similarly, but for chown.
5361         * tests/test-fchownat.c (BASE): Don't define if already defined.
5362         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
5364 2020-02-22  Bruno Haible  <bruno@clisp.org>
5366         users.txt: Add groff.
5367         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
5368         * users.txt: Add groff.
5370 2020-02-22  Bruno Haible  <bruno@clisp.org>
5372         gnulib-tool: Ensure copied files are writable.
5373         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
5374         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
5375         * gnulib-tool (func_ensure_writable): New function.
5376         (func_ln_s, func_hardlink, func_lookup_file, func_import,
5377         func_create_testdir, copy-file): Invoke it after copying a file.
5379 2020-02-22  Bruno Haible  <bruno@clisp.org>
5381         users.txt: Update.
5382         * users.txt: Update URLs to projects that have moved or switched to git.
5383         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
5384         over the summary view. Add gawk.
5386 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5388         largefile: remove _DARWIN_USE_64_BIT_INODE
5389         It’s not needed in currently-supported macOS versions, and was
5390         problematic anyway in MacOS X 10.5 which was the only version that
5391         could use it.  Problem reported by Peter Eisentraut in:
5392         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
5393         * m4/largefile.m4 (AC_SYS_LARGEFILE):
5394         Don’t define _DARWIN_USE_64_BIT_INODE.
5395         This syncs with Autoconf master.
5397         Add ‘extern "C"’ to count-one-bits.h etc.
5398         This ports these .h files to C++.
5399         Problem reported by Simon Marchi in:
5400         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
5401         * lib/count-leading-zeros.h, lib/count-one-bits.h:
5402         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
5404 2020-02-19  Bruno Haible  <bruno@clisp.org>
5406         uninorm/decompose-internal: Avoid "no previous prototype" warning.
5407         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5408         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
5409         * lib/array-mergesort.h: Accept an optional macro definition
5410         STATIC_FROMTO.
5411         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
5413 2020-02-16  Bruno Haible  <bruno@clisp.org>
5415         fchmodat: Make more future-proof.
5416         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
5417         NEED_FCHMODAT_NONSYMLINK_FIX.
5418         (gl_PREREQ_FCHMODAT): New macro.
5419         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
5420         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
5421         without lchmod function.
5422         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
5424 2020-02-16  Bruno Haible  <bruno@clisp.org>
5426         lchmod: Make more future-proof.
5427         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
5428         (gl_PREREQ_LCHMOD): New macro.
5429         * lib/lchmod.c (orig_lchmod): New function.
5430         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
5431         Return EOPNOTSUPP only on Linux and on platforms without lchmod
5432         function.
5433         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
5435         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
5436         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
5438 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5440         xnanosleep: prefer pause, and get remaining time
5441         Problem reported by Vladimir Panteleev in:
5442         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
5443         * lib/xnanosleep.c: Include intprops.h, unistd.h.
5444         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
5445         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
5446         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
5447         * modules/xnanosleep (Depends-on): Add intprops, unistd.
5449 2020-02-16  Bruno Haible  <bruno@clisp.org>
5451         lchmod: Improve cross-compilation guess.
5452         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
5453         cross-compiling, guess depending on the platform.
5455 2020-02-16  Bruno Haible  <bruno@clisp.org>
5457         fstrcmp: Add API to clean up resources.
5458         Reported by Akim Demaille <akim@lrde.epita.fr> in
5459         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
5460         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
5461         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
5463 2020-02-14  Bruno Haible  <bruno@clisp.org>
5465         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
5466         Reported by Christian Biesinger in
5467         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
5468         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
5469         corresponding module is not enabled.
5470         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
5471         prototype if the corresponding module is not enabled.
5473 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
5475         fchmodat, lchmod: port to buggy Linux filesystems
5476         Problem reported by Florian Weimer in:
5477         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
5478         * lib/fchmodat.c (fchmodat):
5479         * lib/lchmod.c (lchmod):
5480         Don’t assume that chmod on the O_PATH-opened fd will do
5481         the right thing on a symbolic link.
5482         * lib/fchmodat.c (fchmodat):
5483         Don’t attempt to special-case
5484         any flag value other than AT_SYMLINK_NOFOLLOW.
5486 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
5488         lchmod: pacify Coverity CID 1491216
5489         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
5490         not complain about unreachable code at the ‘struct stat st;’
5491         declaration.
5493 2020-02-10  Bruno Haible  <bruno@clisp.org>
5495         copysignf: Fix link error on HP-UX with cc.
5496         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
5497         HP-UX, set COPYSIGNF_LIBM to -lm.
5499 2020-02-10  Bruno Haible  <bruno@clisp.org>
5501         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
5502         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
5503         with $(LIB_SEMAPHORE).
5504         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
5505         with $(LIB_SEMAPHORE).
5507 2020-02-10  Bruno Haible  <bruno@clisp.org>
5509         ptsname_r-tests: Avoid unused function warning.
5510         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
5512 2020-02-08  Bruno Haible  <bruno@clisp.org>
5514         lchmod: Add tests.
5515         * tests/test-lchmod.c: New file.
5516         * modules/lchmod-tests: New file.
5518 2020-02-08  Bruno Haible  <bruno@clisp.org>
5520         lchmod: Ensure declaration on HP-UX.
5521         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
5522         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
5524 2020-02-08  Bruno Haible  <bruno@clisp.org>
5526         fchmodat: Strengthen tests.
5527         * tests/test-fchmodat.c (BASE): New macro.
5528         (main): Use it, to avoid conflicts with other unit tests. Verify that
5529         fchmodat changed the file permission bits.
5531 2020-02-08  Bruno Haible  <bruno@clisp.org>
5533         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
5534         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
5535         '#undef __need_system_sys_stat_h'.
5537 2020-02-08  Bruno Haible  <bruno@clisp.org>
5539         fchmodat: Improve cross-compilation guesses.
5540         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
5541         cross-compiling, guess depending on the platform.
5542         * doc/posix-functions/fchmodat.texi: Clarify.
5544 2020-02-08  Bruno Haible  <bruno@clisp.org>
5546         Fix compilation errors in a testdir created with --with-c++-tests.
5547         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
5548         since it does not work any more with g++ >= 4.4.
5550 2020-02-08  Bruno Haible  <bruno@clisp.org>
5552         doc: Update for glibc 2.31.
5553         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
5554         * doc/gnulib.texi: Include it.
5555         * doc/pastposix-functions/h_errno.texi: Update.
5556         * doc/posix-functions/*.texi: Likewise.
5558 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
5560         mountlist: consider smb3 file systems as remote
5561         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
5562         "smb3" as remote.
5564 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5566         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
5567         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
5568         they act like chmod on non-symlinks.
5569         * NEWS:
5570         * doc/glibc-functions/lchmod.texi (lchmod):
5571         * doc/posix-functions/fchmodat.texi (fchmodat):
5572         Mention this.
5573         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
5574         config.h, and undef it after including sys/stat.h the first time.
5575         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
5576         sys/stat.h a second time after defining orig_fchmodat.
5577         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
5578         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
5579         * lib/lchmod.c: New file.
5580         * lib/sys_stat.in.h (fchmodat, lchmod):
5581         Support replacing these functions.
5582         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
5583         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
5584         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
5585         Test that lchmod works on non-symlinks.
5586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5587         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5588         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5589         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5590         * modules/lchmod (Files): Add lib/lchmod.c.
5591         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5592         (configure.ac): Compile lchmod.c if needed.
5593         (lib_SOURCES): Add lchmod.c.
5594         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5595         and REPLACE_LCHMOD.
5596         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5597         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5599 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5601         mountlist: Consider AFS filesystems as remote
5602         df --local relies on the ME_REMOTE macro to determine if a given
5603         mount entry should be considered "local".  There is special logic
5604         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5605         kernel's kafs module or AuriStorFS is treated as a local mount.
5606         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5607         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5609 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5611         Port _Noreturn to older Clang
5612         Problem reported by Jeffery Walton in:
5613         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5614         * lib/_Noreturn.h (_Noreturn):
5615         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5616         Assume _Noreturn works in Clang 3.5 and later.
5617         It is documented to work in Clang 3.5:
5618         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5619         and is not documented in Clang 3.4:
5620         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5621         Apple sets __clang_version__ to a different value, so use
5622         __apple_build_version__ there.  See:
5623         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5625 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5627         test-canonicalize: avoid unused function warning
5628         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5629         with the same guard as that used to protect usage of the null_ptr
5630         function, so that one doesn't get a -Wunused warning.
5631         * tests/test-canonicalize-lgpl.c: Likewise.
5633 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5635         libc-config: port to Apple’s Clang variant
5636         * lib/libc-config.h (__glibc_clang_prereq):
5637         Port to Apple’s Clang variant, which uses a different
5638         numbering scheme for __clang_major__.
5640 2020-02-02  Bruno Haible  <bruno@clisp.org>
5642         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5643         * doc/containers.texi: Document these new modules.
5645 2020-02-02  Bruno Haible  <bruno@clisp.org>
5647         omap-c++: Add tests.
5648         * tests/test-omap-c++.cc: New file.
5649         * modules/omap-c++-tests: New file.
5651         omap-c++: New module.
5652         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5653         * modules/omap-c++: New file.
5655 2020-02-02  Bruno Haible  <bruno@clisp.org>
5657         map-c++: Add tests.
5658         * tests/test-map-c++.cc: New file.
5659         * modules/map-c++-tests: New file.
5661         map-c++: New module.
5662         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5663         * modules/map-c++: New file.
5665 2020-02-02  Bruno Haible  <bruno@clisp.org>
5667         oset-c++: Add tests.
5668         * tests/test-oset-c++.cc: New file.
5669         * modules/oset-c++-tests: New file.
5671         oset-c++: New module.
5672         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5673         * modules/oset-c++: New file.
5675 2020-02-02  Bruno Haible  <bruno@clisp.org>
5677         set-c++: Add tests.
5678         * tests/test-set-c++.cc: New file.
5679         * modules/set-c++-tests: New file.
5681         set-c++: New module.
5682         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5683         * modules/set-c++: New file.
5685 2020-02-02  Bruno Haible  <bruno@clisp.org>
5687         list-c++: Add tests.
5688         * tests/test-list-c++.cc: New file.
5689         * modules/list-c++-tests: New file.
5691         list-c++: New module.
5692         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5693         * modules/list-c++: New file.
5695 2020-02-02  Bruno Haible  <bruno@clisp.org>
5697         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5698         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5699         '_Noreturn'.
5700         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5702 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5704         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5705         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5706           error: argument 2 value '18446744073709551615'
5707           exceeds maximum object size 9223372036854775807
5708           [-Werror=alloc-size-larger-than=]
5709         The details of this restriction are discussed at:
5710         https://stackoverflow.com/q/42574890/4421
5711         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5713 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5715         sysctl.h: avoid including on glibc
5716         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5717         * lib/physmem.c: Likewise.
5719 2020-02-02  Bruno Haible  <bruno@clisp.org>
5721         list, set, oset, map, omap: Avoid imperative voice in documentation.
5722         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5723         in the specification of functions.
5724         * lib/gl_set.h: Likewise.
5725         * lib/gl_oset.h: Likewise.
5726         * lib/gl_map.h: Likewise.
5727         * lib/gl_omap.h: Likewise.
5728         * lib/gl_*.h: Likewise.
5730 2020-02-01  Bruno Haible  <bruno@clisp.org>
5732         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5733         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5734         does.
5736 2020-01-29  Bruno Haible  <bruno@clisp.org>
5738         array-map, hash-map, linkedhash-map: Fix module description.
5739         * modules/array-map (Description): Fix description.
5740         * modules/hash-map (Description): Likewise.
5741         * modules/linkedhash-map (Description): Likewise.
5743 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5745         dfa: do not depend on isblank
5746         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5747         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5748         * modules/dfa (Depends-on): Remove isblank.
5749         * modules/isblank: Add a module indicator, for lib/dfa.c.
5751         dfa: do not assume 64-bit int
5752         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5753         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5754         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5755         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5756         Fall back to 32-bit words.
5757         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5758         of 4 64-bit args.  All uses changed.
5760 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5762         regex: remove limits-h dependency
5763         * modules/regex (Depends-on): Remove limits-h, since the
5764         code no longer depends on ULONG_WIDTH already being defined.
5766         regex: port to non-GCC pre-IEC-60559
5767         Problem reported by Arnold Robbins in:
5768         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5769         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5771 2020-01-25  Bruno Haible  <bruno@clisp.org>
5773         c32isxdigit: Add tests.
5774         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5775         * tests/test-c32isxdigit.sh: New file.
5776         * modules/c32isxdigit-tests: New file.
5778         c32isxdigit: New module.
5779         * lib/c32isxdigit.c: New file.
5780         * modules/c32isxdigit: New file.
5781         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5783 2020-01-25  Bruno Haible  <bruno@clisp.org>
5785         c32isupper: Add tests.
5786         * tests/test-c32isupper.c: New file.
5787         * tests/test-c32isupper.sh: New file.
5788         * modules/c32isupper-tests: New file.
5790         c32isupper: New module.
5791         * lib/c32isupper.c: New file.
5792         * modules/c32isupper: New file.
5793         * doc/posix-functions/iswupper.texi: Mention the new module.
5795 2020-01-25  Bruno Haible  <bruno@clisp.org>
5797         c32isspace: Add tests.
5798         * tests/test-c32isspace.c: New file.
5799         * tests/test-c32isspace.sh: New file.
5800         * modules/c32isspace-tests: New file.
5802         c32isspace: New module.
5803         * lib/c32isspace.c: New file.
5804         * modules/c32isspace: New file.
5805         * doc/posix-functions/iswspace.texi: Mention the new module.
5807 2020-01-25  Bruno Haible  <bruno@clisp.org>
5809         c32ispunct: Add tests.
5810         * tests/test-c32ispunct.c: New file.
5811         * tests/test-c32ispunct.sh: New file.
5812         * modules/c32ispunct-tests: New file.
5814         c32ispunct: New module.
5815         * lib/c32ispunct.c: New file.
5816         * modules/c32ispunct: New file.
5817         * doc/posix-functions/iswpunct.texi: Mention the new module.
5819 2020-01-25  Bruno Haible  <bruno@clisp.org>
5821         c32isprint: Add tests.
5822         * tests/test-c32isprint.c: New file.
5823         * tests/test-c32isprint.sh: New file.
5824         * modules/c32isprint-tests: New file.
5826         c32isprint: New module.
5827         * lib/c32isprint.c: New file.
5828         * modules/c32isprint: New file.
5829         * doc/posix-functions/iswprint.texi: Mention the new module.
5831 2020-01-25  Bruno Haible  <bruno@clisp.org>
5833         c32islower: Add tests.
5834         * tests/test-c32islower.c: New file.
5835         * tests/test-c32islower.sh: New file.
5836         * modules/c32islower-tests: New file.
5838         c32islower: New module.
5839         * lib/c32islower.c: New file.
5840         * modules/c32islower: New file.
5841         * doc/posix-functions/iswlower.texi: Mention the new module.
5843 2020-01-25  Bruno Haible  <bruno@clisp.org>
5845         c32isgraph: Add tests.
5846         * tests/test-c32isgraph.c: New file.
5847         * tests/test-c32isgraph.sh: New file.
5848         * modules/c32isgraph-tests: New file.
5850         c32isgraph: New module.
5851         * lib/c32isgraph.c: New file.
5852         * modules/c32isgraph: New file.
5853         * doc/posix-functions/iswgraph.texi: Mention the new module.
5855 2020-01-25  Bruno Haible  <bruno@clisp.org>
5857         c32isdigit: Add tests.
5858         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5859         * tests/test-c32isdigit.sh: New file.
5860         * modules/c32isdigit-tests: New file.
5862         c32isdigit: New module.
5863         * lib/c32isdigit.c: New file.
5864         * modules/c32isdigit: New file.
5865         * doc/posix-functions/iswdigit.texi: Mention the new module.
5867 2020-01-25  Bruno Haible  <bruno@clisp.org>
5869         c32iscntrl: Add tests.
5870         * tests/test-c32iscntrl.c: New file.
5871         * tests/test-c32iscntrl.sh: New file.
5872         * modules/c32iscntrl-tests: New file.
5874         c32iscntrl: New module.
5875         * lib/c32iscntrl.c: New file.
5876         * modules/c32iscntrl: New file.
5877         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5879 2020-01-25  Bruno Haible  <bruno@clisp.org>
5881         c32isblank: Add tests.
5882         * tests/test-c32isblank.c: New file.
5883         * tests/test-c32isblank.sh: New file.
5884         * modules/c32isblank-tests: New file.
5886         c32isblank: New module.
5887         * lib/c32isblank.c: New file.
5888         * modules/c32isblank: New file.
5889         * doc/posix-functions/iswblank.texi: Mention the new module.
5891 2020-01-25  Bruno Haible  <bruno@clisp.org>
5893         c32isalpha: Add tests.
5894         * tests/test-c32isalpha.c: New file.
5895         * tests/test-c32isalpha.sh: New file.
5896         * modules/c32isalpha-tests: New file.
5898         c32isalpha: New module.
5899         * lib/c32isalpha.c: New file.
5900         * modules/c32isalpha: New file.
5901         * doc/posix-functions/iswalpha.texi: Mention the new module.
5903 2020-01-25  Bruno Haible  <bruno@clisp.org>
5905         c32isalnum: Add tests.
5906         * tests/test-c32isalnum.c: New file.
5907         * tests/test-c32isalnum.sh: New file.
5908         * modules/c32isalnum-tests: New file.
5910         c32isalnum: New module.
5911         * lib/c32isalnum.c: New file.
5912         * lib/c32is-impl.h: New file.
5913         * modules/c32isalnum: New file.
5914         * doc/posix-functions/iswalnum.texi: Mention the new module.
5916 2020-01-25  Bruno Haible  <bruno@clisp.org>
5918         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5919         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5920         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5921         c32isupper, c32isxdigit): New declarations.
5922         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5923         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5924         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5925         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5926         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5927         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5928         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5929         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5930         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5931         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5932         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5933         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5934         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5936 2020-01-25  Bruno Haible  <bruno@clisp.org>
5938         mbchar, wctype: Use the corrected iswxdigit function.
5939         * modules/mbchar (Depends-on): Add iswxdigit.
5940         * modules/wctype (Depends-on): Likewise.
5942         iswxdigit: Add tests.
5943         * tests/test-iswxdigit.c: New file.
5944         * tests/test-iswxdigit.sh: New file.
5945         * modules/iswxdigit-tests: New file.
5947         iswxdigit: New module.
5948         * m4/iswxdigit.m4: New file.
5949         * lib/wctype.in.h (iswxdigit): Potentially override.
5950         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5951         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5952         * lib/iswxdigit.c: New file.
5953         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5954         REPLACE_ISWXDIGIT.
5955         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5956         REPLACE_ISWXDIGIT.
5957         * modules/iswxdigit: New file.
5958         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5960 2020-01-25  Bruno Haible  <bruno@clisp.org>
5962         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5963         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5964         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5965         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5966         off_t on mingw, invoke _lseeki64 instead of lseek.
5968 2020-01-25  Bruno Haible  <bruno@clisp.org>
5970         iswdigit tests: Avoid test failure on Cygwin.
5971         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5972         byte sequence, return 0.
5974         iswdigit: Fix test failure on native Windows.
5975         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5977         mbchar, wctype: Use the corrected iswdigit function.
5978         * modules/mbchar (Depends-on): Add iswdigit.
5979         * modules/wctype (Depends-on): Likewise.
5981         iswdigit: Add tests.
5982         * tests/test-iswdigit.c: New file.
5983         * tests/test-iswdigit.sh: New file.
5984         * modules/iswdigit-tests: New file.
5986         iswdigit: New module.
5987         * m4/iswdigit.m4: New file.
5988         * lib/wctype.in.h (iswdigit): Potentially override.
5989         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5990         * lib/iswdigit.c: New file.
5991         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5992         REPLACE_ISWDIGIT.
5993         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5994         REPLACE_ISWDIGIT.
5995         * modules/iswdigit: New file.
5996         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5998 2020-01-25  Bruno Haible  <bruno@clisp.org>
6000         hard-locale tests: Make it easy to reuse the musl test.
6001         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
6002         * modules/hard-locale-tests (Files): Add it.
6003         (configure.ac): Invoke gl_MUSL_LIBC.
6005 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6007         regex: port to Gawk on nonstandard platforms
6008         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
6009         This is useful for Gawk, which does not use the Gnulib stdlib-h
6010         module.  Problem reported by Arnold Robbins in:
6011         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
6013 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6015         regex: fix bug with >=16 subexpressions
6016         * lib/regex_internal.h (struct re_backref_cache_entry):
6017         Use bitset_word_t as the type of eps_reachable_subexps_map,
6018         instead of unsigned short int.  This fixes a bug I introduced
6019         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
6020         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
6021         Remove unused member 'unused'.
6023         regex: simplify definition of BITSET_WORD_BITS
6024         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
6025         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
6026         * lib/regex_internal.h (BITSET_WORD_BITS):
6027         * modules/regex (Depends-on): Add limits-h.
6028         Simplify now that we can use ULONG_WIDTH.
6030 2020-01-20  Bruno Haible  <bruno@clisp.org>
6032         mbrtoc32: Add note about FreeBSD 12.
6033         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
6034         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
6035         affected.
6037 2020-01-20  Bruno Haible  <bruno@clisp.org>
6039         unistr/u8-uctomb: Fix warning.
6040         Reported by Andreas Schwab <schwab@suse.de> in
6041         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
6042         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
6043         (u8_uctomb): Add FALLTHROUGH markers.
6045 2020-01-20  Bruno Haible  <bruno@clisp.org>
6047         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
6048         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
6049         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
6050         (glthread_once): Use it.
6052 2020-01-19  Bruno Haible  <bruno@clisp.org>
6054         threadlib: Disable use of weak symbols on FreeBSD 11.
6055         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6056         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
6057         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
6058         against a bug in FreeBSD 11.
6060 2020-01-19  Bruno Haible  <bruno@clisp.org>
6062         iconv_open: Improve z/OS support.
6063         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
6064         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
6065         Remove mapping for EUC-TW.
6067 2020-01-18  Bruno Haible  <bruno@clisp.org>
6069         Rename ~~gnulib.m4 to zzgnulib.m4.
6070         Suggested by Paul Eggert.
6071         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
6072         * gnulib-tool (func_get_filelist): Update.
6073         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6075 2020-01-18  Bruno Haible  <bruno@clisp.org>
6077         doc: Update license notices.
6078         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
6079         reference to a section or to a "file as part of this distribution".
6081 2020-01-18  Bruno Haible  <bruno@clisp.org>
6083         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
6084         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
6085         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
6086         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
6087         AC_EGREP_CPP.
6089 2020-01-18  Bruno Haible  <bruno@clisp.org>
6091         Ensure Automake does not drop ~~gnulib.m4.
6092         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
6093         * m4/gnulib-common.m4 (gl_COMMON): Require it.
6095 2020-01-18  Bruno Haible  <bruno@clisp.org>
6097         Fix major regression from 2020-01-10.
6098         Reported by Paul Eggert in
6099         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
6100         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6101         Don't AC_REQUIRE anything.
6102         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
6103         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
6104         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
6105         use ac_compile instead.
6106         (AC_CHECK_DECL): Remove override.
6107         * m4/~~gnulib.m4: New file.
6108         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
6109         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6111 2020-01-17  Bruno Haible  <bruno@clisp.org>
6112             Paul Eggert  <eggert@cs.ucla.edu>
6114         glob: Fix use-after-free bug.
6115         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
6117         * lib/glob.c (__glob): Delay freeing dirname until after the use of
6118         end_name.
6120 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6122         vcs-to-changelog: Fix parsing of fndecl without args.
6123         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
6124         for empty arguments.
6126 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6128         vcs-to-changelog: Add documentation.
6129         * doc/vcs-to-changelog.texi: New file.
6130         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
6131         section.
6133 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6135         vcs-to-changelog: Allow loading of custom quirks file.
6136         * build-aux/vcs_to_changelog.py: New commandline option -q.
6138 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6140         vcs-to-changelog: Fix formatting of ChangeLog output.
6141         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
6142         output.
6144 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6146         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
6147         Reported in
6148         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
6149         * build-aux/vcstocl/frontend_c.py: Remove shebang.
6151 2020-01-15  Simon Josefsson  <simon@josefsson.org>
6153         crypto/gc-pbkdf2: New module.
6154         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
6155         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
6156         * lib/gc-pbkdf2.c: New file.
6157         * lib/gc-pbkdf2-sha1.c: Use new interface.
6158         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
6159         * modules/crypto/gc-pbkdf2: New file.
6160         * modules/crypto/gc-pbkdf2-tests: New file.
6161         * tests/test-gc-pbkdf2.c: New file.
6163 2020-01-12  Bruno Haible  <bruno@clisp.org>
6165         c32stombs: Add tests.
6166         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
6167         * tests/test-c32stombs-1.sh: New file, based on
6168         tests/test-c32srtombs-1.sh.
6169         * tests/test-c32stombs-2.sh: New file, based on
6170         tests/test-c32srtombs-2.sh.
6171         * tests/test-c32stombs-3.sh: New file, based on
6172         tests/test-c32srtombs-3.sh.
6173         * tests/test-c32stombs-4.sh: New file, based on
6174         tests/test-c32srtombs-4.sh.
6175         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
6177         c32stombs: New module.
6178         * lib/uchar.in.h (c32stombs): New declaration.
6179         * lib/c32stombs.c: New file.
6180         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
6181         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
6182         * modules/c32stombs: New file.
6183         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
6184         * doc/posix-functions/wcstombs.texi: Mention the new module.
6186 2020-01-11  Jim Meyering  <meyering@fb.com>
6188         perl: require the "warnings" module
6189         * m4/perl.m4: Also "use warnings", so we reject the perl found
6190         on at least one IRIX 6.5 system. Reported by Bruno Haible in
6191         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
6193 2020-01-10  Bruno Haible  <bruno@clisp.org>
6195         Fix major regression from 2020-01-04.
6196         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
6197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
6198         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
6199         AC_DEFUN_ONCE.
6200         (AC_CHECK_DECL): Invoke, not require, it.
6202 2020-01-10  Bruno Haible  <bruno@clisp.org>
6204         c32snrtombs: Add tests.
6205         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
6206         * tests/test-c32snrtombs-1.sh: New file, based on
6207         tests/test-wcsnrtombs1.sh.
6208         * tests/test-c32snrtombs-2.sh: New file, based on
6209         tests/test-wcsnrtombs2.sh.
6210         * tests/test-c32snrtombs-3.sh: New file, based on
6211         tests/test-wcsnrtombs3.sh.
6212         * tests/test-c32snrtombs-4.sh: New file, based on
6213         tests/test-wcsnrtombs4.sh.
6214         * modules/c32snrtombs-tests: New file, based on
6215         modules/wcsnrtombs-tests.
6217         c32snrtombs: New module.
6218         * lib/uchar.in.h (c32snrtombs): New declaration.
6219         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6220         INTERNAL_STATE, WCRTOMB.
6221         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6222         * lib/c32snrtombs.c: New file.
6223         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
6224         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
6225         * modules/c32snrtombs: New file.
6226         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
6227         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6229 2020-01-09  Bruno Haible  <bruno@clisp.org>
6231         c32srtombs: Add tests.
6232         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
6233         * tests/test-c32srtombs-1.sh: New file, based on
6234         tests/test-wcsrtombs1.sh.
6235         * tests/test-c32srtombs-2.sh: New file, based on
6236         tests/test-wcsrtombs2.sh.
6237         * tests/test-c32srtombs-3.sh: New file, based on
6238         tests/test-wcsrtombs3.sh.
6239         * tests/test-c32srtombs-4.sh: New file, based on
6240         tests/test-wcsrtombs4.sh.
6241         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
6243         c32srtombs: New module.
6244         * lib/uchar.in.h (c32srtombs): New declaration.
6245         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6246         INTERNAL_STATE, WCRTOMB.
6247         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6248         * lib/c32srtombs.c: New file.
6249         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
6250         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
6251         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
6252         * modules/c32srtombs: New file.
6253         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
6254         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
6256 2020-01-08  Bruno Haible  <bruno@clisp.org>
6258         c32tob: Make consistent with mbrtoc32.
6259         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
6260         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
6261         use c32rtomb, not wctob.
6262         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
6263         (Depends-on): Add c32rtomb.
6264         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
6266 2020-01-08  Bruno Haible  <bruno@clisp.org>
6268         c32rtomb: Add tests.
6269         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
6270         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
6271         * tests/test-c32rtomb-w32.c: New file, based on
6272         tests/test-wcrtomb-w32.c.
6273         * tests/test-c32rtomb-w32-1.sh: New file, based on
6274         tests/test-wcrtomb-w32-1.sh.
6275         * tests/test-c32rtomb-w32-2.sh: New file, based on
6276         tests/test-wcrtomb-w32-2.sh.
6277         * tests/test-c32rtomb-w32-3.sh: New file, based on
6278         tests/test-wcrtomb-w32-3.sh.
6279         * tests/test-c32rtomb-w32-4.sh: New file, based on
6280         tests/test-wcrtomb-w32-4.sh.
6281         * tests/test-c32rtomb-w32-5.sh: New file, based on
6282         tests/test-wcrtomb-w32-5.sh.
6283         * tests/test-c32rtomb-w32-6.sh: New file, based on
6284         tests/test-wcrtomb-w32-6.sh.
6285         * tests/test-c32rtomb-w32-7.sh: New file, based on
6286         tests/test-wcrtomb-w32-7.sh.
6287         * modules/c32rtomb-tests: New file.
6289         c32rtomb: New module.
6290         * lib/uchar.in.h (c32rtomb): New declaration.
6291         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
6292         * m4/c32rtomb.m4: New file.
6293         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
6294         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
6295         REPLACE_C32RTOMB.
6296         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
6297         HAVE_C32RTOMB, REPLACE_C32RTOMB.
6298         * modules/c32rtomb: New file.
6299         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
6300         * doc/posix-functions/c32rtomb.texi: Document the new module.
6301         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6303 2020-01-08  Bruno Haible  <bruno@clisp.org>
6305         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
6306         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
6307         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
6308         but is not working.
6309         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
6310         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
6311         differ, use the system's mbrtoc32, adding workarounds.
6312         * modules/mbrtoc32 (Depends-on): Add hard-locale.
6313         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
6314         Windows problem.
6315         * lib/btoc32.c: Include <stdio.h>, <string.h>.
6316         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
6317         use mbrtoc32, not btowc.
6318         * modules/btoc32 (Depends-on): Add mbrtoc32.
6319         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
6320         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
6321         * modules/mbsrtoc32s (Depends-on): Update conditions.
6322         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6323         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
6324         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
6325         * modules/mbsnrtoc32s (Depends-on): Update conditions.
6326         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6328 2020-01-07  Bruno Haible  <bruno@clisp.org>
6330         wcrtomb: Make multithread-safe, except possibly on IRIX.
6331         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
6332         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
6333         WCRTOMB_RETVAL_BUG.
6334         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
6335         wctomb only on IRIX.
6337 2020-01-05  Jim Meyering  <meyering@fb.com>
6339         tests: skip thread-using tests when threading is disabled
6340         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
6341         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
6342         of those, so they are skipped in this case.
6343         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
6344         * tests/test-setlocale_null-mt-all.c (main): Likewise.
6345         * tests/test-setlocale_null-mt-one.c (main): Likewise.
6347 2020-01-05  Bruno Haible  <bruno@clisp.org>
6349         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
6350         Reported by Jim Meyering in
6351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
6352         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
6353         (GNULIB_defined_ptsname_r): New macro.
6354         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
6355         (main): Disable the NULL argument test if canonicalize_file_name does
6356         not come from gnulib.
6357         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
6358         (main): Disable the NULL argument test if canonicalize_file_name does
6359         not come from gnulib.
6360         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
6361         (test_errors): Disable the NULL argument test if ptsname_r does not come
6362         from gnulib.
6364 2020-01-04  Jim Meyering  <meyering@fb.com>
6366         update-copyright: reenable its always-skipped test
6367         * tests/test-update-copyright.sh: Restore the "-pi" options removed
6368         on 2019-06-15. Without those, an internal preliminary test would
6369         fail, causing this test always to be skipped.
6370         Verify that the test is now run and passes via this:
6371           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
6373 2020-01-05  Bruno Haible  <bruno@clisp.org>
6375         mbstoc32s: Add tests.
6376         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
6377         * tests/test-mbstoc32s-1.sh: New file, based on
6378         tests/test-mbsrtoc32s-1.sh.
6379         * tests/test-mbstoc32s-2.sh: New file, based on
6380         tests/test-mbsrtoc32s-2.sh.
6381         * tests/test-mbstoc32s-3.sh: New file, based on
6382         tests/test-mbsrtoc32s-3.sh.
6383         * tests/test-mbstoc32s-4.sh: New file, based on
6384         tests/test-mbsrtoc32s-4.sh.
6385         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
6387         mbstoc32s: New module.
6388         * lib/uchar.in.h (mbstoc32s): New declaration.
6389         * lib/mbstoc32s.c: New file.
6390         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
6391         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
6392         * modules/mbstoc32s: New file.
6393         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
6394         * doc/posix-functions/mbstowcs.texi: Mention the new module.
6396 2020-01-05  Bruno Haible  <bruno@clisp.org>
6398         Tweak recently added tests.
6399         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
6400         * tests/test-mbsrtoc32s.c: Likewise.
6401         * tests/test-mbsnrtoc32s.c: Likewise.
6403 2020-01-04  Bruno Haible  <bruno@clisp.org>
6405         mbsnrtoc32s: Add tests.
6406         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
6407         * tests/test-mbsnrtoc32s-1.sh: New file, based on
6408         tests/test-mbsnrtowcs1.sh.
6409         * tests/test-mbsnrtoc32s-2.sh: New file, based on
6410         tests/test-mbsnrtowcs2.sh.
6411         * tests/test-mbsnrtoc32s-3.sh: New file, based on
6412         tests/test-mbsnrtowcs3.sh.
6413         * tests/test-mbsnrtoc32s-4.sh: New file, based on
6414         tests/test-mbsnrtowcs4.sh.
6415         * modules/mbsnrtoc32s-tests: New file, based on
6416         modules/mbsnrtowcs-tests.
6418         mbsnrtoc32s: New module.
6419         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
6420         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6421         INTERNAL_STATE, MBRTOWC.
6422         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6423         * lib/mbsnrtoc32s.c: New file.
6424         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
6425         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
6426         * modules/mbsnrtoc32s: New file.
6427         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
6428         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
6430 2020-01-04  Bruno Haible  <bruno@clisp.org>
6432         mbsrtoc32s tests: Enhance test.
6433         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
6434         test strings for UTF-8 and GB18030.
6436 2020-01-04  Bruno Haible  <bruno@clisp.org>
6438         mbsrtoc32s: Fix bug.
6439         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
6440         that SMALL_WCHAR_T is defined.
6442 2020-01-04  Bruno Haible  <bruno@clisp.org>
6444         mbsrtoc32s: Add tests.
6445         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
6446         * tests/test-mbsrtoc32s-1.sh: New file, based on
6447         tests/test-mbsrtowcs1.sh.
6448         * tests/test-mbsrtoc32s-2.sh: New file, based on
6449         tests/test-mbsrtowcs2.sh.
6450         * tests/test-mbsrtoc32s-3.sh: New file, based on
6451         tests/test-mbsrtowcs3.sh.
6452         * tests/test-mbsrtoc32s-4.sh: New file, based on
6453         tests/test-mbsrtowcs4.sh.
6454         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
6456         mbsrtoc32s: New module.
6457         * lib/uchar.in.h (mbsrtoc32s): New declaration.
6458         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6459         INTERNAL_STATE, MBRTOWC.
6460         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6461         * lib/mbsrtoc32s.c: New file.
6462         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
6463         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
6464         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
6465         * modules/mbsrtoc32s: New file.
6466         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
6467         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
6469 2020-01-04  Bruno Haible  <bruno@clisp.org>
6471         mbrtowc, mbrtoc32: Tighten dependendies.
6472         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
6473         REPLACE_MBSTATE_T is 1.
6474         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6475         REPLACE_MBSTATE_T is 0.
6476         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
6477         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
6478         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6479         REPLACE_MBSTATE_T is 0.
6481 2020-01-04  Bruno Haible  <bruno@clisp.org>
6483         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
6484         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
6485         * modules/uchar (Files): Add stdint.m4.
6486         (Makefile.am): Substitute SMALL_WCHAR_T.
6487         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
6489 2020-01-04  Bruno Haible  <bruno@clisp.org>
6491         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
6492         Reported by Martin Storsjö <martin@martin.st> in
6493         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
6494         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6495         New macros.
6496         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
6498 2020-01-04  Bruno Haible  <bruno@clisp.org>
6500         btoc32: Add tests.
6501         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
6502         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
6503         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
6504         * modules/btoc32-tests: New file, based on modules/btowc-tests.
6506         btoc32: New module.
6507         * lib/uchar.in.h (btoc32): New declaration.
6508         * lib/btoc32.c: New file.
6509         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
6510         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
6511         * modules/btoc32: New file.
6512         * tests/test-uchar-c++.cc: Test the signature of btoc32.
6513         * doc/posix-functions/btowc.texi: Mention the new module.
6515 2020-01-03  Bruno Haible  <bruno@clisp.org>
6517         uchar tests: Avoid compilation error with HP cc.
6518         * tests/test-uchar.c: Disable a test when HP cc is in use.
6520 2020-01-03  Bruno Haible  <bruno@clisp.org>
6522         mbrtoc32: Add tests.
6523         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
6524         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
6525         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
6526         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
6527         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
6528         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
6529         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
6530         * tests/test-mbrtoc32-w32-1.sh: New file, based on
6531         tests/test-mbrtowc-w32-1.sh.
6532         * tests/test-mbrtoc32-w32-2.sh: New file, based on
6533         tests/test-mbrtowc-w32-2.sh.
6534         * tests/test-mbrtoc32-w32-3.sh: New file, based on
6535         tests/test-mbrtowc-w32-3.sh.
6536         * tests/test-mbrtoc32-w32-4.sh: New file, based on
6537         tests/test-mbrtowc-w32-4.sh.
6538         * tests/test-mbrtoc32-w32-5.sh: New file, based on
6539         tests/test-mbrtowc-w32-5.sh.
6540         * tests/test-mbrtoc32-w32-6.sh: New file, based on
6541         tests/test-mbrtowc-w32-6.sh.
6542         * tests/test-mbrtoc32-w32-7.sh: New file, based on
6543         tests/test-mbrtowc-w32-7.sh.
6544         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
6546         mbrtoc32: New module.
6547         * lib/uchar.in.h (mbrtoc32): New declaration.
6548         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
6549         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
6550         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
6551         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
6552         REPLACE_MBRTOC32.
6553         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
6554         HAVE_MBRTOC32, REPLACE_MBRTOC32.
6555         * modules/mbrtoc32: New file, based on modules/mbrtowc.
6556         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
6557         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
6558         $(LIB_MBRTOWC).
6559         * doc/posix-functions/mbrtoc32.texi: Document the new module.
6560         * doc/posix-functions/mbrtowc.texi: Mention the new module.
6562 2020-01-03  Bruno Haible  <bruno@clisp.org>
6564         mbrtowc: Refactor to share code with mbrtoc32.
6565         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
6566         * lib/mbrtowc-impl-utf8.h: Likewise.
6567         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
6568         mbrtowc-impl.h.
6569         * modules/mbrtowc (Files): Add the new files.
6571 2020-01-03  Jim Meyering  <meyering@fb.com>
6573         doc: fix time.texi wording
6574         * doc/posix-headers/time.texi (time.h): Typo.
6576 2020-01-03  Bruno Haible  <bruno@clisp.org>
6578         mbrtowc: Refactor locale charset dispatching.
6579         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
6580         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
6581         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
6582         localcharset.h, streq.h.
6583         (enc_t): Remove type.
6584         (locale_enc): Remove function.
6585         (cached_locale_enc): Remove variable.
6586         (locale_enc_cached): Remove function.
6587         (mbrtowc): Invoke locale_encoding_classification.
6588         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6589         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6590         lc-charset-dispatch.c.
6591         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6593 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6595         doc: mention 32-bit time_t issue
6596         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6597         * doc/posix-headers/time.texi (time.h): Mention 2038.
6599 2020-01-03  Bruno Haible  <bruno@clisp.org>
6601         mbrtowc: Ensure the mbtowc_lock is unique.
6602         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6603         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6604         lib/setlocale_null.c.
6605         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6606         glthread/lock.h. Include mbtowc-lock.h.
6607         (mbtowc_lock): Remove declaration.
6608         (mbrtowc): Use mbtowc_with_lock.
6609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6610         threads.h. Set LIB_MBRTOWC.
6611         (gl_PREREQ_MBTOWC_LOCK): New macro.
6612         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6613         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6614         (Depends-on): Remove lock.
6615         (configure.ac): Arrange to compile mbtowc-lock.c.
6616         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6617         * modules/acl (Link): Likewise.
6618         * modules/argmatch (Link): Likewise.
6619         * modules/backup-rename (Link): Likewise.
6620         * modules/backupfile (Link): Likewise.
6621         * modules/closein (Link): Likewise.
6622         * modules/closeout (Link): Likewise.
6623         * modules/copy-file (Link): Likewise.
6624         * modules/csharpcomp (Link): Likewise.
6625         * modules/csharpexec (Link): Likewise.
6626         * modules/dfa (Link): Likewise.
6627         * modules/exclude (Link): Likewise.
6628         * modules/fnmatch (Link): Likewise.
6629         * modules/fnmatch-gnu (Link): Likewise.
6630         * modules/fnmatch-posix (Link): Likewise.
6631         * modules/glob (Link): Likewise.
6632         * modules/human (Link): Likewise.
6633         * modules/javacomp (Link): Likewise.
6634         * modules/javaexec (Link): Likewise.
6635         * modules/javaversion (Link): Likewise.
6636         * modules/mbfile (Link): Likewise.
6637         * modules/mbiter (Link): Likewise.
6638         * modules/mbmemcasecmp (Link): Likewise.
6639         * modules/mbmemcasecoll (Link): Likewise.
6640         * modules/mbrlen (Link): Likewise.
6641         * modules/mbscasecmp (Link): Likewise.
6642         * modules/mbscasestr (Link): Likewise.
6643         * modules/mbschr (Link): Likewise.
6644         * modules/mbscspn (Link): Likewise.
6645         * modules/mbsinit (Link): Likewise.
6646         * modules/mbslen (Link): Likewise.
6647         * modules/mbsncasecmp (Link): Likewise.
6648         * modules/mbsnlen (Link): Likewise.
6649         * modules/mbsnrtowcs (Link): Likewise.
6650         * modules/mbspbrk (Link): Likewise.
6651         * modules/mbspcasecmp (Link): Likewise.
6652         * modules/mbsrchr (Link): Likewise.
6653         * modules/mbsrtowcs (Link): Likewise.
6654         * modules/mbssep (Link): Likewise.
6655         * modules/mbsspn (Link): Likewise.
6656         * modules/mbsstr (Link): Likewise.
6657         * modules/mbstok_r (Link): Likewise.
6658         * modules/mbswidth (Link): Likewise.
6659         * modules/mbuiter (Link): Likewise.
6660         * modules/mkdir-p (Link): Likewise.
6661         * modules/propername (Link): Likewise.
6662         * modules/quote (Link): Likewise.
6663         * modules/quotearg (Link): Likewise.
6664         * modules/quotearg-simple (Link): Likewise.
6665         * modules/regex-quote (Link): Likewise.
6666         * modules/rpmatch (Link): Likewise.
6667         * modules/sh-quote (Link): Likewise.
6668         * modules/system-quote (Link): Likewise.
6669         * modules/trim (Link): Likewise.
6670         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6671         * modules/unistdio/ulc-fprintf (Link): Likewise.
6672         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6673         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6674         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6675         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6676         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6677         * modules/xfreopen (Link): Likewise.
6678         * modules/xmemcoll (Link): Likewise.
6679         * modules/yesno (Link): Likewise.
6680         * modules/regex (Link): Add $(LIB_MBRTOWC).
6681         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6682         instead of $(LIBTHREAD).
6683         * modules/argmatch-tests (Makefile.am): Likewise.
6684         * modules/closein-tests (Makefile.am): Likewise.
6685         * modules/copy-file-tests (Makefile.am): Likewise.
6686         * modules/dfa-tests (Makefile.am): Likewise.
6687         * modules/fnmatch-tests (Makefile.am): Likewise.
6688         * modules/glob-tests (Makefile.am): Likewise.
6689         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6690         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6691         * modules/mbrtowc-tests (Makefile.am): Likewise.
6692         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6693         * modules/mbscasestr-tests (Makefile.am): Likewise.
6694         * modules/mbschr-tests (Makefile.am): Likewise.
6695         * modules/mbscspn-tests (Makefile.am): Likewise.
6696         * modules/mbsinit-tests (Makefile.am): Likewise.
6697         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6698         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6699         * modules/mbspbrk-tests (Makefile.am): Likewise.
6700         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6701         * modules/mbsrchr-tests (Makefile.am): Likewise.
6702         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6703         * modules/mbsspn-tests (Makefile.am): Likewise.
6704         * modules/mbsstr-tests (Makefile.am): Likewise.
6705         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6706         * modules/quotearg-tests (Makefile.am): Likewise.
6707         * modules/readtokens-tests (Makefile.am): Likewise.
6708         * modules/sh-quote-tests (Makefile.am): Likewise.
6709         * modules/system-quote-tests (Makefile.am): Likewise.
6710         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6711         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6712         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6713         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6714         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6715         * modules/yesno-tests (Makefile.am): Likewise.
6716         * modules/exclude-tests (Makefile.am): Link the programs with
6717         $(LIB_MBRTOWC).
6718         * modules/regex-tests (Makefile.am): Likewise.
6719         * modules/regex-quote-tests (Makefile.am): Likewise.
6721 2020-01-03  Bruno Haible  <bruno@clisp.org>
6723         getopt-posix: Fix compilation failure in testdirs.
6724         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6725         when the gnulib module 'getopt-posix' is enabled.
6726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6727         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6728         module indicator.
6729         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6731 2020-01-03  Bruno Haible  <bruno@clisp.org>
6733         doc: Mention the 64-bit inode number problem.
6734         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6735         64-bit inode number problem.
6736         * doc/posix-functions/stat.texi: Mention that this module fixes the
6737         64-bit inode number problem.
6738         * doc/posix-functions/lstat.texi: Likewise.
6739         * doc/posix-functions/fstat.texi: Likewise.
6740         * doc/posix-functions/readdir.texi: Add more details.
6741         * doc/posix-functions/readdir_r.texi: Likewise.
6743 2020-01-02  Bruno Haible  <bruno@clisp.org>
6745         wcrtomb: Add more tests.
6746         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6747         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6748         locale_charset() returns the expected value; otherwise, skip the test.
6749         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6750         * tests/test-wcrtomb-w32-7.sh: Likewise.
6751         * modules/wcrtomb-tests (Files): Add these files.
6752         (Depends-on): Add localcharset.
6753         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6755 2020-01-02  Bruno Haible  <bruno@clisp.org>
6757         mbrtowc: Add more tests.
6758         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6759         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6760         locale_charset() returns the expected value; otherwise, skip the test.
6761         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6762         * tests/test-mbrtowc-w32-7.sh: Likewise.
6763         * modules/mbrtowc-tests (Files): Add these files.
6764         (Depends-on): Add localcharset.
6765         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6767 2020-01-02  Bruno Haible  <bruno@clisp.org>
6769         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6770         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6771         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6772         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6773         MBRTOWC_STORES_INCOMPLETE_BUG.
6774         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6776 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6778         doc: mention glibc bug 24269
6779         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6780         Reformat slightly so that it looks nicer in the Grep manual.
6782 2020-01-02  Bruno Haible  <bruno@clisp.org>
6784         mbrtowc: Don't replace mbstate_t on MSVC.
6785         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6786         a missing mbsinit function on native Windows.
6787         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6788         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6789         MSVC bug.
6790         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6792 2020-01-02  Bruno Haible  <bruno@clisp.org>
6794         setlocale-null: Avoid crashing the MSVC linker.
6795         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6796         MSVC.
6798 2020-01-02  Bruno Haible  <bruno@clisp.org>
6800         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6801         * modules/wchar (Depends-on): Add inttypes-incomplete.
6802         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6803         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6804         of strtoimax.
6806 2020-01-02  Bruno Haible  <bruno@clisp.org>
6808         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6809         * lib/mbrtowc.c: Include <stdint.h>.
6810         * modules/mbrtowc (Depends-on): Add stdint.
6812 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6814         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6815         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6816         which will auto enable use of openssl, only for >= version 3,
6817         which is newly licensed under the Apache Software License.
6819 2020-01-01  Bruno Haible  <bruno@clisp.org>
6821         mbrtowc: Include function name in macro names.
6822         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6823         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6824         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6825         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6826         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6827         C_LOCALE_MAYBE_EILSEQ.
6829 2020-01-01  Bruno Haible  <bruno@clisp.org>
6831         c32tob: New module.
6832         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6833         (c32tob): New declaration.
6834         * lib/c32tob.c: New file.
6835         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6836         macros.
6837         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6838         * modules/uchar (Depends-on): Add snippet/c++defs.
6839         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6840         uchar.h.
6841         * modules/c32tob: New file.
6842         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6843         defined.
6844         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6845         c32tob.
6846         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6847         * doc/posix-functions/wctob.texi: Mention the new module.
6849 2020-01-01  Bruno Haible  <bruno@clisp.org>
6851         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6852         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6853         $(LIB_SETLOCALE).
6855 2020-01-01  Bruno Haible  <bruno@clisp.org>
6857         hard-locale tests: Fix a conflict with the C++ tests.
6858         * modules/hard-locale-tests (Makefile.am): Build a program named
6859         'current-locale', not 'locale'.
6861 2020-01-01  Bruno Haible  <bruno@clisp.org>
6863         doc: Update documentation about wchar_t.
6864         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6865         wchar_t type.
6867 2020-01-01  Bruno Haible  <bruno@clisp.org>
6869         mbrtowc tests: Fix typos.
6870         * tests/test-mbrtowc.c (main): Fix typo.
6871         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6873 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6875         maint: update copyright notices
6876         Before doing the following changes done by hand, I also ran ‘make
6877         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6878         to do most of the copyright years automatically.  A few upstream
6879         sources are still in 2019 but these should eventually be changed
6880         automatically too.
6881         * build-aux/declared.sh (func_version):
6882         * build-aux/libtool-next-version (func_version):
6883         * build-aux/run-test (func_version):
6884         Update these notices by hand.  Put just the last year
6885         in output of programs, as per GNU coding standards.
6887 2019-12-31  Bruno Haible  <bruno@clisp.org>
6889         uchar: Add C++ tests.
6890         * tests/test-uchar-c++.cc: New file.
6891         * tests/test-uchar-c++2.cc: New file.
6892         * modules/uchar-c++-tests: New file.
6894         uchar: Add tests.
6895         * tests/test-uchar.c: New file.
6896         * modules/uchar-tests: New file.
6898         uchar: New module.
6899         * lib/uchar.in.h: New file.
6900         * m4/uchar.m4: New file.
6901         * modules/uchar: New file.
6902         * doc/posix-headers/uchar.texi: Mention the new module.
6904 2019-12-30  Jim Meyering  <meyering@fb.com>
6906         localeinfo: ->simple would be wrong for LC_ALL=C
6907         That would lead to using unnecessary and expensive code paths in dfa.c.
6908         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6909         error that would have made grep many times slower in the C locale.
6910         With this change, and a file created like this:
6911           yes 00 | head -10000000 > in
6912         Running grep as follows becomes more than 40 times faster:
6913           LC_ALL=C grep -Fw 0 in
6915 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6917         doc: document trouble with back-references
6918         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6920 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6922         doc: use “back-reference” for \1 etc.
6923         * doc/regex.texi: Consistently spell “back-reference” with
6924         a hyphen, since that’s how POSIX does it.
6926 2019-12-26  Jim Meyering  <meyering@fb.com>
6928         test-framework-sh: tighten an internal grep regexp
6929         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6930         that helps test for a working printf.
6932 2019-12-26  Bruno Haible  <bruno@clisp.org>
6934         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6935         Reported by Paul Eggert in
6936         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6937         Simplification by Jim Meyering.
6938         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6939         octal escape sequence in a UTF-8 locale.
6941 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6943         mbrtowc: port better to narrow-wchar_t platforms
6944         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6945         wchar_t is too narrow to represent all the Unicode characters,
6946         consider a byte sequence for an out-of-wchar_t-range character to
6947         be an encoding error.  This fixes grep’s surrogate-pair test
6948         failure on AIX 7.2.
6950 2019-12-24  Bruno Haible  <bruno@clisp.org>
6952         localcharset: Avoid referencing rpl_setlocale on native Windows.
6953         * lib/localcharset.c (setlocale): Undefine.
6955 2019-12-24  Bruno Haible  <bruno@clisp.org>
6957         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6958         * m4/semaphore.m4: New file.
6959         * modules/lock-tests (Files): Add it.
6960         (configure.ac): Require gl_SEMAPHORE.
6961         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6963 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6965         strptime: fix typo in previous patch
6966         Problem and fix reported by Bruno Haible in:
6967         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6968         * lib/strptime.c (day_of_the_week): Fix paren bug.
6970 2019-12-24  Bruno Haible  <bruno@clisp.org>
6972         setlocale-null: Make it easy to rely on the lock in another library.
6973         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6974         defined.
6976 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6978         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6979         Performanced analyzed by Bruno Haible in:
6980         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6981         * config/srclist.txt: Do not sync mktime.c for now.
6982         * lib/mktime.c (shr, ydhms_diff):
6983         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6984         * lib/strptime.c (day_of_the_week):
6985         * lib/xtime.h (xtime_sec):
6986         Redo with neither ‘%’ nor conditional branches.
6988 2019-12-23  Bruno Haible  <bruno@clisp.org>
6990         setlocale-null: Export the lock function also on non-Windows platforms.
6991         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6992         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6993         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6994         * modules/setlocale-null (configure.ac): Invoke it.
6995         (Files): Add m4/visibility.m4.
6997 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6999         gethrxtime: fix rounding bug with negative args
7000         Problem reported by Bruno Haible in:
7001         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
7002         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
7003         with negative rounding.  Common platforms can compute / and % with
7004         a single instruction, so the simplified code should be shorter and
7005         faster on these platforms anyway.
7007 2019-12-22  Bruno Haible  <bruno@clisp.org>
7009         gethrxtime: remove incorrect overflow detection
7010         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
7011         integer overflow, as it didn’t suffice.  This reverts the xtime.h
7012         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
7013         cannot now see the need for anyway (even in cases where it works),
7014         as the patch is helpful only when the signs of S and NS disagree,
7015         and all callers pass nonnegative values for S and NS.
7017 2019-12-22  Bruno Haible  <bruno@clisp.org>
7019         setlocale-null: Add standalone include file.
7020         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
7021         * lib/locale.in.h: Include setlocale_null.h.
7022         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
7023         setlocale_null): Remove declarations.
7024         * lib/setlocale_null.c: Include setlocale_null.h.
7025         * lib/localename.c: Likewise.
7026         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
7027         (Depends-on): Add snippet/arg-nonnull.
7028         (Include): Allow either "setlocale_null.h" or <locale.h>.
7030 2019-12-22  Bruno Haible  <bruno@clisp.org>
7032         strfmon_l: Fix test failures on FreeBSD and Cygwin.
7033         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
7034         AC_RUN_IFELSE test.
7035         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
7036         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
7037         problem.
7039 2019-12-22  Bruno Haible  <bruno@clisp.org>
7041         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
7042         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
7043         unconditional AC_LIBOBJ.
7044         * modules/selinux-at: Likewise.
7045         * modules/xmemdup0: Likewise.
7046         * modules/xstrtoll: Likewise.
7048 2019-12-22  Bruno Haible  <bruno@clisp.org>
7050         longlong: Mark module obsolete.
7051         * modules/longlong (Status, Notice): New sections.
7053         stdint: Assume that the compiler supports 'long long'.
7054         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
7055         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
7056         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7057         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
7058         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7059         * modules/stdint (Files): Remove longlong.m4.
7060         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
7061         HAVE_UNSIGNED_LONG_LONG_INT.
7063         inttypes-incomplete: Assume that the compiler supports 'long long'.
7064         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
7065         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
7066         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7067         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
7068         HAVE_LONG_LONG_INT to be 1.
7069         * modules/inttypes-incomplete (Makefile.am): Don't substitute
7070         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
7072         malloca: Assume that the compiler supports 'long long'.
7073         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
7074         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
7075         * modules/malloca (Files): Remove longlong.m4.
7076         * modules/relocatable-prog-wrapper (Files): Likewise.
7078         atoll: Assume that the compiler supports 'long long'.
7079         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
7080         * modules/atoll (Files): Remove longlong.m4.
7082         strtoll: Assume that the compiler supports 'long long'.
7083         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
7084         * modules/strtoll (Files): Remove longlong.m4.
7086         strtoull: Assume that the compiler supports 'long long'.
7087         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
7088         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7089         * modules/strtoull (Files): Remove longlong.m4.
7091         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
7092         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
7093         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7094         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
7095         AC_TYPE_LONG_LONG_INT.
7096         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
7097         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7098         * modules/strtoimax (Files): Remove longlong.m4.
7099         * modules/strtoumax (Files): Likewise.
7101         xstrtoll: Assume that the compiler supports 'long long'.
7102         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
7103         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
7105         vasnprintf: Assume that the compiler supports 'long long'.
7106         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
7107         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
7108         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7109         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
7110         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
7111         require AC_TYPE_LONG_LONG_INT.
7112         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
7113         gl_PREREQ_VASNPRINTF): Likewise.
7114         * modules/vasnprintf (Files): Remove longlong.m4.
7115         * modules/c-vasnprintf (Files): Likewise.
7116         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7117         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7118         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7119         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7120         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7121         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7122         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7124         gethrxtime: Assume that the compiler supports 'long long'.
7125         * lib/xtime.h (xtime_t): Define to 'long long int' always.
7126         (XTIME_PRECISION): Define to 1000000000 always.
7127         (xtime_make, xtime_sec): Optimize accordingly.
7128         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
7129         * modules/gethrxtime (Files): Remove longlong.m4.
7131         integer_length*: Assume that the compiler supports 'long long'.
7132         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
7133         * modules/integer_length (Files): Remove longlong.m4.
7134         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7135         * modules/integer_length_l (Files): Remove longlong.m4.
7136         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7137         * modules/integer_length_ll (Files): Remove longlong.m4.
7138         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7140         count-one-bits: Assume that the compiler supports 'long long'.
7141         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
7142         * m4/count-one-bits.m4: Remove file.
7143         * modules/count-one-bits (Files): Remove it.
7144         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
7145         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
7146         unconditionally.
7148         count-trailing-zeros: Assume that the compiler supports 'long long'.
7149         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
7150         unconditionally.
7151         * m4/count-trailing-zeros.m4: Remove file.
7152         * modules/count-trailing-zeros (Files): Remove it.
7153         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
7154         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
7155         unconditionally.
7157         count-leading-zeros: Assume that the compiler supports 'long long'.
7158         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
7159         unconditionally.
7160         * m4/count-leading-zeros.m4: Remove file.
7161         * modules/count-leading-zeros (Files): Remove it.
7162         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
7163         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
7164         unconditionally.
7166 2019-12-22  Bruno Haible  <bruno@clisp.org>
7168         localcharset: Update support for OpenBSD.
7169         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
7171 2019-12-21  Bruno Haible  <bruno@clisp.org>
7173         pthread_sigmask: Avoid test failure on NetBSD 8.0.
7174         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
7175         NetBSD.
7176         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
7178 2019-12-21  Bruno Haible  <bruno@clisp.org>
7180         threadlib: Improve code structure.
7181         * m4/threadlib.m4: Reorder macros. Add comments.
7183 2019-12-21  Bruno Haible  <bruno@clisp.org>
7185         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
7186         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
7187         here from m4/threads.m4).
7188         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
7189         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
7190         (gl_STDTHREADLIB): New macro.
7191         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
7192         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
7194 2019-12-21  Bruno Haible  <bruno@clisp.org>
7196         sched_yield: Don't depend on threadlib and yield.
7197         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
7198         LIB_SCHED_YIELD.
7199         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
7200         m4/yield.m4).
7201         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
7202         gl_THREADLIB and gl_YIELD.
7203         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
7204         based on $(LIB_SCHED_YIELD).
7205         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
7206         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7207         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
7208         (Depends-on): Remove threadlib.
7209         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7210         * modules/threads-h (Files): Remove m4/yield.m4.
7211         * modules/pthread-cond-tests (Makefile.am): Link the programs against
7212         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7213         * modules/pthread-mutex-tests (Makefile.am): Likewise.
7214         * modules/pthread-once-tests (Makefile.am): Likewise.
7215         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
7216         * modules/pthread-tss-tests (Makefile.am): Likewise.
7218 2019-12-21  Bruno Haible  <bruno@clisp.org>
7220         threads-h: Don't depend on threadlib.
7221         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
7222         not gl_THREADLIB_EARLY.
7224 2019-12-21  Bruno Haible  <bruno@clisp.org>
7226         nl_langinfo tests: Fix link error (regression from 2019-12-18).
7227         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
7228         with $(LIB_SETLOCALE).
7230 2019-12-21  Bruno Haible  <bruno@clisp.org>
7232         threadlib: Remove unused dependency (left over from 2019-07-06).
7233         * modules/threadlib (Depends-on): Remove havelib.
7235 2019-12-21  Bruno Haible  <bruno@clisp.org>
7237         New convention for multithread-safety tests.
7238         * tests/test-setlocale_null-mt-one.c: Renamed from
7239         tests/test-setlocale_null-one.c.
7240         * tests/test-setlocale_null-mt-all.c: Renamed from
7241         tests/test-setlocale_null-all.c.
7242         * modules/setlocale-null-tests (Files, Makefile.am): Update.
7244 2019-12-21  Bruno Haible  <bruno@clisp.org>
7246         quotearg tests: Fix conflict with hard-locale tests.
7247         * tests/testlocale: Renamed from tests/locale.
7248         * modules/quotearg-tests (Files): Update.
7249         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
7251 2019-12-21  Bruno Haible  <bruno@clisp.org>
7253         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
7254         Reported by Daniel Richard G. in
7255         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
7256         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
7257         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
7258         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
7259         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
7260         alternative to PTHREAD_RWLOCK_INITIALIZER.
7261         * lib/glthread/lock.c: Likewise.
7263 2019-12-21  Bruno Haible  <bruno@clisp.org>
7265         memcmp tests: Work around the clang bug.
7266         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
7267         the clang optimization.
7269 2019-12-20  Bruno Haible  <bruno@clisp.org>
7271         localcharset: Add support for z/OS encoding names.
7272         * lib/localcharset.h: Mention which encodings are used as locale
7273         encodings on z/OS.
7275 2019-12-20  Bruno Haible  <bruno@clisp.org>
7277         iconv_open: Add support for z/OS encoding names.
7278         Reported by Daniel Richard G. in
7279         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
7280         * lib/iconv_open-zos.gperf: New file.
7281         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
7282         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
7283         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
7284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
7285         * doc/posix-functions/iconv_open.texi: Mention z/OS.
7287 2019-12-20  Bruno Haible  <bruno@clisp.org>
7289         doc: Document the problem of the per-thread locale functions on z/OS.
7290         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
7291         * doc/posix-functions/newlocale.texi: Likewise.
7292         * doc/posix-functions/duplocale.texi: Likewise.
7293         * doc/posix-functions/freelocale.texi: Likewise.
7295 2019-12-20  Bruno Haible  <bruno@clisp.org>
7297         localename, gettext: Fix host_os value for z/OS.
7298         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
7299         cross-configuration code.
7301 2019-12-19  Jim Meyering  <meyering@fb.com>
7303         nstrftime: avoid a shadowing warning
7304         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
7305         to avoid shadowing an "i" declared hundreds of lines above.
7307 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7309         dfa: struct dfamust now uses flexible array
7310         * lib/dfa.c: Include flexmember.h.
7311         (dfamust, dfamustfree): Adjust to struct dfamust change.
7312         This saves a call to malloc+free.
7313         * lib/dfa.h (struct dfamust): Make the final member a
7314         flexible array member.
7315         * modules/dfa (Depends-on): Add flexmember.
7317         dfa: fast->small for array elements
7318         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
7319         since this type is used in arrays.  This change is more for
7320         documentation than for any practical effect, since the two types
7321         are the same on all known platforms.
7323 2019-12-19  Bruno Haible  <bruno@clisp.org>
7325         iconv tests: Test canonicalized, not system-dependent, encoding names.
7326         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
7327         * modules/iconv-tests (Depends-on): Add iconv_open.
7329 2019-12-18  Bruno Haible  <bruno@clisp.org>
7331         localename: Fix test failure on AIX 7.2.
7332         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
7333         locales on AIX.
7334         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
7335         locales on AIX.
7337 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7339         Improve port of AC_C_RESTRICT to Oracle C++
7340         Problem reported by Christian Biesinger in:
7341         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
7342         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
7343         Oracle Developer Studio C++ 12.5 or later.
7345 2019-12-18  Bruno Haible  <bruno@clisp.org>
7347         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
7348         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
7350 2019-12-18  Bruno Haible  <bruno@clisp.org>
7352         localename: Ensure multithread-safety in future changes.
7353         * lib/localename.c (setlocale): Reference the system's setlocale().
7354         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
7355         (gl_locale_name_posix): Likewise.
7356         * modules/localename (Depends-on): Add setlocale-null.
7358 2019-12-18  Bruno Haible  <bruno@clisp.org>
7360         setlocale-null: Make API more useful.
7361         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
7362         callers changed.
7363         (setlocale_null): New declaration.
7364         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
7365         extracted from setlocale_null_unlocked.
7366         (setlocale_null_unlocked): Invoke it.
7367         (setlocale_null_r): Renamed from setlocale_null.
7368         (setlocale_null): New function, extracted from setlocale_mtsafe in
7369         setlocale.c.
7370         * lib/setlocale.c: Don't include <errno.h>.
7371         (setlocale_mtsafe): Invoke setlocale_null.
7372         * lib/setlocale-lock.c: Update comments.
7373         * doc/posix-functions/setlocale.texi: Mention both functions.
7375 2019-12-18  Bruno Haible  <bruno@clisp.org>
7377         localename: Optimize code for native Windows.
7378         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
7379         category (not allowed here).
7381 2019-12-18  Bruno Haible  <bruno@clisp.org>
7383         setlocale: Make calls with NULL argument multithread-safe.
7384         * lib/setlocale.c: Include <errno.h>.
7385         (setlocale_mtsafe): New function.
7386         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
7387         (setlocale_improved): Renamed from rpl_setlocale.
7388         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7389         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
7390         LIB_SETLOCALE.
7391         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
7392         (Link): New section.
7393         * tests/locale.c: Undefine setlocale.
7394         * tests/test-setlocale_null-one.c: Likewise.
7395         * tests/test-setlocale_null-all.c: Likewise.
7396         * modules/setlocale-tests (Makefile.am): Link the test programs with
7397         $(LIB_SETLOCALE).
7398         * modules/astrxfrm-tests (Makefile.am): Likewise.
7399         * modules/btowc-tests (Makefile.am): Likewise.
7400         * modules/c-ctype-tests (Makefile.am): Likewise.
7401         * modules/c-snprintf-tests (Makefile.am): Likewise.
7402         * modules/c-strcase-tests (Makefile.am): Likewise.
7403         * modules/c-vasprintf-tests (Makefile.am): Likewise.
7404         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
7405         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
7406         * modules/dfa-tests (Makefile.am): Likewise.
7407         * modules/duplocale-tests (Makefile.am): Likewise.
7408         * modules/hard-locale-tests (Makefile.am): Likewise.
7409         * modules/localcharset-tests (Makefile.am): Likewise.
7410         * modules/localename-tests (Makefile.am): Likewise.
7411         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7412         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7413         * modules/mbrtowc-tests (Makefile.am): Likewise.
7414         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7415         * modules/mbscasestr-tests (Makefile.am): Likewise.
7416         * modules/mbschr-tests (Makefile.am): Likewise.
7417         * modules/mbscspn-tests (Makefile.am): Likewise.
7418         * modules/mbsinit-tests (Makefile.am): Likewise.
7419         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7420         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7421         * modules/mbspbrk-tests (Makefile.am): Likewise.
7422         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7423         * modules/mbsrchr-tests (Makefile.am): Likewise.
7424         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7425         * modules/mbsspn-tests (Makefile.am): Likewise.
7426         * modules/mbsstr-tests (Makefile.am): Likewise.
7427         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7428         * modules/quotearg-tests (Makefile.am): Likewise.
7429         * modules/regex-tests (Makefile.am): Likewise.
7430         * modules/strfmon_l-tests (Makefile.am): Likewise.
7431         * modules/strtod-tests (Makefile.am): Likewise.
7432         * modules/strtold-tests (Makefile.am): Likewise.
7433         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7434         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7435         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7436         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
7437         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7438         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7439         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7440         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7441         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7442         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7443         * modules/wcrtomb-tests (Makefile.am): Likewise.
7444         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7445         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7446         * modules/wcwidth-tests (Makefile.am): Likewise.
7447         * doc/posix-functions/setlocale.texi: Mention that the multithread-
7448         safety fix is also available in module 'setlocale'.
7450 2019-12-18  Bruno Haible  <bruno@clisp.org>
7452         hard-locale: Make multithread-safe.
7453         * lib/hard-locale.h (hard_locale): Move documentation to here.
7454         * lib/hard-locale.c: Don't include <stdlib.h>.
7455         (GLIBC_VERSION): Remove macro.
7456         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
7457         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
7458         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
7459         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
7460         (Link): New section.
7461         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
7462         $(LIB_HARD_LOCALE).
7464 2019-12-18  Bruno Haible  <bruno@clisp.org>
7466         hard-locale: Avoid test failure on Haiku.
7467         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
7469 2019-12-18  Bruno Haible  <bruno@clisp.org>
7471         setlocale-null: Handle NULL result from setlocale.
7472         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
7473         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
7474         from setlocale or _wsetlocale.
7476 2019-12-18  Bruno Haible  <bruno@clisp.org>
7478         hard-locale: Add test.
7479         * tests/test-hard-locale.c: New file.
7480         * tests/locale.c: New file.
7481         * modules/hard-locale-tests: New file.
7483 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7485         dfa: do not match invalid UTF-8
7486         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
7487         from 5 to 9 tokens; this is needed due to the changes to
7488         add_utf8_anychar.
7489         (charclass_index): 2nd arg is now pointer-to-const.
7490         (add_utf8_anychar): Match only valid UTF-8 byte sequences
7491         instead of allowing overlong encodings or surrogate halves.
7493         dfa: simplify charclass by assuming C99
7494         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
7495         (charclass_word): Now always uint_fast64_t.
7496         (CHARCLASS_PAIR): Remove.
7497         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
7499         fts: tune via calloc
7500         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
7502         dfa: tune via xzalloc
7503         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
7505 2019-12-17  Bruno Haible  <bruno@clisp.org>
7507         localcharset: Fix multithread-safety bug on Windows and OS/2.
7508         * lib/localcharset.h (locale_charset): Clarify when the result becomes
7509         invalid.
7510         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
7511         assemble the result.
7513 2019-12-17  Bruno Haible  <bruno@clisp.org>
7515         localcharset: Optimize code for native Windows.
7516         * lib/localcharset.c (locale_charset): Don't bother calling
7517         setlocale (LC_ALL, NULL) since we're not interested in its result.
7519 2019-12-17  Bruno Haible  <bruno@clisp.org>
7521         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
7522         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
7523         setlocale.
7524         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
7525         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
7526         * modules/nl_langinfo (Depends-on): Add setlocale-null.
7528 2019-12-17  Bruno Haible  <bruno@clisp.org>
7530         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
7531         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
7532         stack-allocated buffer to assemble each result and different static
7533         buffers to return it.
7534         * tests/test-nl_langinfo-mt.c: New file.
7535         * modules/nl_langinfo-tests (Files): Add it.
7536         (Depends-on): Add thread, nanosleep.
7537         (Makefile.am): Build test-nl_langinfo-mt test.
7539 2019-12-17  Bruno Haible  <bruno@clisp.org>
7541         langinfo: Document more details.
7542         * doc/posix-headers/langinfo.texi: List platform details.
7543         * doc/posix-functions/nl_langinfo.texi: Likewise.
7545 2019-12-17  Bruno Haible  <bruno@clisp.org>
7547         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
7548         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
7549         and Martin Storsjö <martin@martin.st>
7550         in <https://savannah.gnu.org/bugs/?57406>.
7551         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
7552         mingw.
7554 2019-12-17  Bruno Haible  <bruno@clisp.org>
7556         glob: Avoid warning on mingw.
7557         Reported by Christian Biesinger <cbiesinger@google.com> in
7558         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
7559         * lib/glob.c (__stat64): Undefine first.
7561 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7563         xalloc: tune xzalloc for fresh allocations
7564         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
7565         because when the memory is freshly allocated from the OS via sbrk
7566         or mmap, calloc can avoid doing the memset.
7568         dfa: new function dfacopysyntax
7569         * lib/dfa.c (struct dfa): Move syntax member later so
7570         that dfacopysyntax can easily clear earlier members.
7571         (dfacopysyntax): New function, used by Gawk.
7573 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7575         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
7576         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
7577         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
7578         if not already defined.
7580         dfa: remove one dependency on MB_CUR_MAX
7581         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
7583         dfa: remove struct lexer_state.cur_mb_len
7584         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
7585         as it’s not needed and the code is simpler without it.
7586         All uses removed.
7588 2019-12-16  Bruno Haible  <bruno@clisp.org>
7590         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7591         Reported by Arnold Robbins <arnold@skeeve.com>.
7592         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7593         copied from lib/glthread/lock.h.
7594         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7595         (setlocale_null_with_lock): If pthread_in_use() is false, use
7596         setlocale_null_unlocked directly.
7597         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7598         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7599         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7600         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7601         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7602         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7604 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7606         dfa: make dfasyntax thread-safe
7607         Problem reported by Bruno Haible in:
7608         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7609         * lib/dfa.c: Do not include locale.h.
7610         (struct dfa): Remove simple_locale member.
7611         All uses replaced by localeinfo.simple.
7612         (using_simple_locale): Remove; now present (with some
7613         changes) in localeinfo.c.
7614         (dfasyntax): No need to initialize removed member.
7616         localeinfo: record whether locale is simple
7617         * lib/localeinfo.c (using_simple_locale): New function,
7618         copied here from lib/dfa.c but with a change: it uses
7619         strcoll for its heuristic, instead of using setlocale.
7620         This lets it be thread-safe.
7621         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7623 2019-12-15  Bruno Haible  <bruno@clisp.org>
7625         duplocale: Fix multithread-safety bug on AIX.
7626         * lib/duplocale.c: Don't include <stdlib.h>.
7627         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7628         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7629         Set LIB_DUPLOCALE.
7630         * modules/duplocale (Depends-on): Add setlocale-null.
7631         (Link): New section.
7632         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7633         $(LIB_DUPLOCALE).
7635 2019-12-15  Bruno Haible  <bruno@clisp.org>
7637         setlocale-null: Add tests.
7638         * tests/test-setlocale_null.c: New file.
7639         * tests/test-setlocale_null-one.c: New file.
7640         * tests/test-setlocale_null-all.c: New file.
7641         * modules/setlocale-null-tests: New file.
7643         setlocale-null: New module.
7644         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7645         setlocale_null): New declarations.
7646         * lib/setlocale_null.c: New file.
7647         * lib/setlocale-lock.c: New file.
7648         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7649         * m4/setlocale_null.m4: New file.
7650         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7651         GNULIB_SETLOCALE_NULL.
7652         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7653         * modules/setlocale-null: New file.
7654         * doc/posix-functions/setlocale.texi: Mention the new module.
7656 2019-12-15  Bruno Haible  <bruno@clisp.org>
7658         lock tests: Skip test when no multithreading is enabled.
7659         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7661 2019-12-14  Bruno Haible  <bruno@clisp.org>
7663         locale, duplocale, localename: Fix last patch.
7664         Reported by Daniel Richard G. in
7665         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7666         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7667         Don't define if locale_t does not exist.
7669 2019-12-13  Bruno Haible  <bruno@clisp.org>
7671         locale, duplocale, localename: Fix errors if locale_t does not exist.
7672         Reported by Daniel Richard G. in
7673         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7674         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7675         macros.
7676         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7677         HAVE_NEWLOCALE.
7678         * tests/test-localename.c: Likewise.
7679         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7680         HAVE_DUPLOCALE.
7681         * tests/test-locale-c++.cc: Likewise.
7683 2019-12-13  Bruno Haible  <bruno@clisp.org>
7685         wcstok: Fix test failure on HP-UX.
7686         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7687         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7689 2019-12-12  Bruno Haible  <bruno@clisp.org>
7691         strtod, strtold tests: Avoid test failure on AIX 7.2.
7692         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7693         '.' both are radix characters.
7694         * tests/test-strtold1.c (main): Likewise.
7696 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7698         dfa: prefer ptrdiff_t for API, too
7699         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7700         but do this only for internal use for now.
7701         * NEWS: Mention the API change.
7702         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7703         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7704         values known to be nonnegative.
7705         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7706         Prefer idx_t or ptrdiff_t to size_t for API.
7707         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7708         Prefer ptrdiff_t to size_t for API.
7710         stdalign: port to xlclang 16.01
7711         Problem reportd by Bruno Haible in:
7712         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7713         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7714         ((__aligned__ (...))) with xlclang, as a top-level
7715         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7716         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7718 2019-12-12  Bruno Haible  <bruno@clisp.org>
7720         duplocale: Fix test failure on AIX 7.2 with xlclang.
7721         * lib/duplocale.c: Include <stdlib.h>.
7722         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7723         value.
7725 2019-12-12  Bruno Haible  <bruno@clisp.org>
7727         stddef: Document the AIX xlc issue.
7728         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7730 2019-12-12  Bruno Haible  <bruno@clisp.org>
7732         duplocale: Don't attempt to override if locale_t does not exist.
7733         Reported by Daniel Richard G. in
7734         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7735         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7736         HAVE_DUPLOCALE to 0.
7738 2019-12-12  Bruno Haible  <bruno@clisp.org>
7740         wcwidth: Avoid test failure on AIX 7.2.
7741         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7742         negative.
7743         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7745 2019-12-12  Bruno Haible  <bruno@clisp.org>
7747         ilogbl: Work around Cygwin bug.
7748         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7749         correct.
7750         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7752 2019-12-12  Bruno Haible  <bruno@clisp.org>
7754         strtold: Work around Cygwin bug.
7755         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7756         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7757         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7758         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7759         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7761 2019-12-12  Bruno Haible  <bruno@clisp.org>
7763         strtold: Fix autoconf test.
7764         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7766 2019-12-11  Bruno Haible  <bruno@clisp.org>
7768         fsync tests: Skip test that is known to fail.
7769         * doc/posix-functions/fsync.texi: Update list of platforms.
7770         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7771         that is known to fail on AIX and Cygwin.
7773 2019-12-11  Bruno Haible  <bruno@clisp.org>
7775         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7777         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7778         HAVE_GETADDRINFO as a C macro.
7779         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7780         declare as replacement functions.
7781         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7782         define as no-op overrides.
7783         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7784         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7785         * modules/getaddrinfo (Depends-on, configure.ac): Test
7786         REPLACE_GETADDRINFO.
7787         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7788         problem.
7789         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7790         convention problems.
7792 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7794         dfa: prefer signed integers for internals
7795         Signed integers can be checked more easily for integer overflow.
7796         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7797         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7798         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7799         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7800         (replace, state_index, epsclosure, charclass_context)
7801         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7802         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7803         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7804         (comsubs, inboth, allocmust):
7805         Prefer a signed to an unsigned integer when calculating indexes,
7806         unless the integer is part of the external API (a bigger deal,
7807         and to be done later).
7809         dfa: fix index overflow
7810         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7811         very large regular expressions.
7813         dfa: update commentary for previous change
7814         * NEWS: Mention the change.
7815         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7817 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7819         dfa: separate parse and compile phase
7820         ‘dfamust’ must be called after parsing and before tokens are
7821         reordered, but both are executed in the compilation phase.
7822         Token reordering was introduced in Gnulib commit
7823         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7824         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7825         * lib/dfa.c (dfaparse): Change it to global function.
7826         (dfacomp): If first argument is NULL, skip parse.
7827         * lib/dfa.h: (dfaparse): Add a prototype.
7829 2019-12-11  Bruno Haible  <bruno@clisp.org>
7831         unistd tests: Fix link error on MSVC.
7832         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7833         $(LIB_GETLOGIN).
7835 2019-12-11  Bruno Haible  <bruno@clisp.org>
7837         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7838         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7839         and POSIX substitutes are supported in C++ mode.
7840         * NEWS: Likewise.
7842 2019-12-11  Bruno Haible  <bruno@clisp.org>
7844         stddef: Fix compilation error in C++ mode on MSVC.
7845         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7846         instead, include <cstddef>.
7848 2019-12-11  Bruno Haible  <bruno@clisp.org>
7850         unistd: Fix compilation error in C++ mode on MSVC.
7851         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7852         does not have <unistd.h>.
7854 2019-12-11  Bruno Haible  <bruno@clisp.org>
7856         locale: Fix compilation error in C++ mode on MSVC.
7857         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7858         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7859         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7860         int_n_sep_by_space): Define as macros on MSVC.
7862 2019-12-11  Bruno Haible  <bruno@clisp.org>
7864         wchar: Fix compilation error in C++ mode on MSVC.
7865         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7867 2019-12-11  Bruno Haible  <bruno@clisp.org>
7869         pthread-thread: Fix compilation error in C++ mode on MSVC.
7870         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7871         _GL_CXXALIAS_RPL invocation.
7873 2019-12-08  Bruno Haible  <bruno@clisp.org>
7875         Fix compilation errors in C++ mode on Haiku.
7876         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7877         non-glibc systems.
7878         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7879         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7880         posix_spawnattr_setschedparam): Likewise.
7881         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7882         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7883         * lib/unistd.in.h (usleep): Likewise.
7885 2019-12-08  Bruno Haible  <bruno@clisp.org>
7887         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7888         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7889         * modules/fseeko (configure.ac-early): Require it instead of
7890         AC_FUNC_FSEEKO.
7891         * modules/ftello (configure.ac-early): Likewise.
7892         * modules/fflush (configure.ac-early): Likewise.
7894 2019-12-08  Bruno Haible  <bruno@clisp.org>
7896         Fix compilation error in C++ mode on HP-UX 11.
7897         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7898         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7900 2019-12-08  Bruno Haible  <bruno@clisp.org>
7902         Fix compilation errors on HP-UX 11/ia64.
7903         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7904         _GL_FUNCDECL_SYS.
7906 2019-12-08  Bruno Haible  <bruno@clisp.org>
7908         Fix compilation error in C++ mode on OpenBSD.
7909         * lib/signal.in.h (signal): Declare on OpenBSD.
7911 2019-12-08  Bruno Haible  <bruno@clisp.org>
7913         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7914         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7915         instead of #error.
7917 2019-12-08  Bruno Haible  <bruno@clisp.org>
7919         Fix compilation errors in C++ mode on FreeBSD.
7920         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7921         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7922         * lib/threads.in.h (thrd_exit): Likewise.
7923         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7925 2019-12-08  Bruno Haible  <bruno@clisp.org>
7927         Fix compilation errors in C++ mode on macOS and FreeBSD.
7928         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7929         or FreeBSD with clang, use the approach without C preprocessor macro.
7931 2019-12-07  Bruno Haible  <bruno@clisp.org>
7933         Fix compilation errors in C++ mode on AIX with xlclang++.
7934         Reported by Christian Biesinger <cbiesinger@google.com> in
7935         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7936         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7938 2019-12-07  Bruno Haible  <bruno@clisp.org>
7940         Document compilation error in C++ mode on NetBSD 8.0.
7941         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7943 2019-12-07  Bruno Haible  <bruno@clisp.org>
7945         Fix compilation errors in C++ mode on Solaris 10.
7946         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7947         to non-empty on Solaris with a non-GCC compiler.
7948         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7950 2019-12-07  Bruno Haible  <bruno@clisp.org>
7952         Reword NEWS entry.
7953         * NEWS: Reword the latest NEWS entry.
7955 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7957         Move xstrtol_fatal to a new xstrtol-error module.
7958         * lib/xstrtol.h: Stop including <getopt.h>.
7959         (xstrtol_fatal): Move ...
7960         * lib/xstrtol-error.h: ... here.  New file.
7961         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7962         * tests/test-xstrtol.c: Likewise.
7963         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7964         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7965         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7966         * modules/xstrtol-error: New file.
7967         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7968         * MODULES.html.sh: Add xstrtol-error.
7969         * NEWS: Document the change.
7971 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7973         nstrftime: better width support for %N, %z
7974         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7975         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7976         a new WIDTH parameter.
7977         (add, add1, cpy): Use these macros.
7978         (width_add): Do not treat digits == 0 as a special case,
7979         do not pad if padding is ‘-’, and do not use a negative width.
7980         (__strftime_internal): Redo formatting of nanoseconds and numeric
7981         timezones to avoid buffer misuse in unusual cases, and so that
7982         widths make more sense.  Add support for widths greater than 9 to
7983         the %N format; they are zero filled on the right.
7984         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7986 2019-12-05  Bruno Haible  <bruno@clisp.org>
7988         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7989         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7990         set REPLACE_ISFINITE to 1.
7991         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7992         REPLACE_ISINF to 1.
7993         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7994         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7995         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7996         * lib/threads.in.h (call_once): Likewise.
7997         * lib/iconv.in.h (iconv): Likewise.
7999 2019-12-05  Bruno Haible  <bruno@clisp.org>
8001         wchar: Add more C++ tests.
8002         Reported by Christian Biesinger <cbiesinger@google.com> in
8003         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
8004         * tests/test-wchar-c++3.cc: New file.
8005         * modules/wchar-c++-tests (Files): Add it.
8006         (Makefile.am): Compile it.
8008 2019-12-05  Bruno Haible  <bruno@clisp.org>
8010         Add more C++ tests.
8012         assert-h: Add C++ tests.
8013         * tests/test-assert-h-c++.cc: New file.
8014         * tests/test-assert-h-c++2.cc: New file.
8015         * modules/assert-h-c++-tests: New file.
8016         * modules/assert-h-tests: New file.
8018         ctype: Add C++ tests.
8019         * tests/test-ctype-c++.cc: New file.
8020         * tests/test-ctype-c++2.cc: New file.
8021         * modules/ctype-c++-tests: New file.
8022         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
8024         errno: Add C++ tests.
8025         * tests/test-errno-c++.cc: New file.
8026         * tests/test-errno-c++2.cc: New file.
8027         * modules/errno-c++-tests: New file.
8028         * modules/errno-tests (Depends-on): Add errno-c++-tests.
8030         float: Add C++ tests.
8031         * tests/test-float-c++.cc: New file.
8032         * tests/test-float-c++2.cc: New file.
8033         * modules/float-c++-tests: New file.
8034         * modules/float-tests (Depends-on): Add float-c++-tests.
8036         inttypes: Add more C++ tests.
8037         * tests/test-inttypes-c++2.cc: New file.
8038         * modules/inttypes-c++-tests (Files): Add it.
8039         (Makefile.am): Compile it.
8041         limits-h: Add C++ tests.
8042         * tests/test-limits-h-c++.cc: New file.
8043         * tests/test-limits-h-c++2.cc: New file.
8044         * modules/limits-h-c++-tests: New file.
8045         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
8047         stdarg: Add C++ tests.
8048         * tests/test-stdarg-c++.cc: New file.
8049         * tests/test-stdarg-c++2.cc: New file.
8050         * modules/stdarg-c++-tests: New file.
8051         * modules/stdarg-tests: New file.
8053         stdbool: Add C++ tests.
8054         * tests/test-stdbool-c++.cc: New file.
8055         * tests/test-stdbool-c++2.cc: New file.
8056         * modules/stdbool-c++-tests: New file.
8057         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
8059         stddef: Add C++ tests.
8060         * tests/test-stddef-c++.cc: New file.
8061         * tests/test-stddef-c++2.cc: New file.
8062         * modules/stddef-c++-tests: New file.
8063         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
8065         stdint: Add C++ tests.
8066         * tests/test-stdint-c++.cc: New file.
8067         * tests/test-stdint-c++2.cc: New file.
8068         * modules/stdint-c++-tests: New file.
8069         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
8071         wchar: Add more C++ tests.
8072         * tests/test-wchar-c++2.cc: New file.
8073         * modules/wchar-c++-tests (Files): Add it.
8074         (Makefile.am): Compile it.
8076         wctype-h: Add more C++ tests.
8077         * tests/test-wctype-h-c++2.cc: New file.
8078         * modules/wctype-h-c++-tests (Files): Add it.
8079         (Makefile.am): Compile it.
8081 2019-12-04  Bruno Haible  <bruno@clisp.org>
8083         Fix compilation errors in C++ mode with xlclang++ on AIX.
8084         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
8085         C++ mode on AIX.
8086         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
8087         without C preprocessor macro.
8088         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
8089         _GL_CXXALIAS_SYS.
8090         * lib/threads.in.h (thrd_exit): Likewise.
8092 2019-12-04  Bruno Haible  <bruno@clisp.org>
8094         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
8095         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
8096         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
8098 2019-12-04  Bruno Haible  <bruno@clisp.org>
8100         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
8101         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
8102         _GL_CXXALIASWARN invocation on non-glibc systems.
8103         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
8104         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
8105         iswctype, towlower, towupper): Likewise.
8107 2019-12-03  Bruno Haible  <bruno@clisp.org>
8109         Avoid hassles caused by [[noreturn]] in C++.
8110         Reported by Christian Biesinger <cbiesinger@google.com> in
8111         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
8112         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
8113         * lib/_Noreturn.h: Likewise.
8115 2019-12-02  Bruno Haible  <bruno@clisp.org>
8117         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
8118         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
8119         LIBMULTITHREAD.
8120         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
8121         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
8122         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
8123         gl_THREADLIB.
8124         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
8126 2019-12-02  Bruno Haible  <bruno@clisp.org>
8128         Fix some more link errors with --enable-threads=isoc.
8129         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
8130         * modules/pthread-rwlock (Depends-on): Likewise.
8132 2019-12-02  Bruno Haible  <bruno@clisp.org>
8134         Fix link errors with --enable-threads=posix on AIX.
8135         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
8136         program with $(LIBTHREAD).
8137         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
8138         program with $(LIBTHREAD).
8140 2019-12-02  Bruno Haible  <bruno@clisp.org>
8142         Fix link errors with --enable-threads=posix on AIX.
8143         * modules/mbrtowc (Link): New section.
8144         * modules/acl (Link): Likewise.
8145         * modules/argmatch (Link): Likewise.
8146         * modules/backup-rename (Link): Likewise.
8147         * modules/backupfile (Link): Likewise.
8148         * modules/closein (Link): Likewise.
8149         * modules/closeout (Link): Likewise.
8150         * modules/copy-file (Link): Likewise.
8151         * modules/csharpcomp (Link): Likewise.
8152         * modules/csharpexec (Link): Likewise.
8153         * modules/dfa (Link): Likewise.
8154         * modules/exclude (Link): Likewise.
8155         * modules/fnmatch (Link): Likewise.
8156         * modules/fnmatch-gnu (Link): Likewise.
8157         * modules/fnmatch-posix (Link): Likewise.
8158         * modules/glob (Link): Likewise.
8159         * modules/human (Link): Likewise.
8160         * modules/javacomp (Link): Likewise.
8161         * modules/javaexec (Link): Likewise.
8162         * modules/javaversion (Link): Likewise.
8163         * modules/mbfile (Link): Likewise.
8164         * modules/mbiter (Link): Likewise.
8165         * modules/mbmemcasecmp (Link): Likewise.
8166         * modules/mbmemcasecoll (Link): Likewise.
8167         * modules/mbrlen (Link): Likewise.
8168         * modules/mbscasecmp (Link): Likewise.
8169         * modules/mbscasestr (Link): Likewise.
8170         * modules/mbschr (Link): Likewise.
8171         * modules/mbscspn (Link): Likewise.
8172         * modules/mbsinit (Link): Likewise.
8173         * modules/mbslen (Link): Likewise.
8174         * modules/mbsncasecmp (Link): Likewise.
8175         * modules/mbsnlen (Link): Likewise.
8176         * modules/mbsnrtowcs (Link): Likewise.
8177         * modules/mbspbrk (Link): Likewise.
8178         * modules/mbspcasecmp (Link): Likewise.
8179         * modules/mbsrchr (Link): Likewise.
8180         * modules/mbsrtowcs (Link): Likewise.
8181         * modules/mbssep (Link): Likewise.
8182         * modules/mbsspn (Link): Likewise.
8183         * modules/mbsstr (Link): Likewise.
8184         * modules/mbstok_r (Link): Likewise.
8185         * modules/mbswidth (Link): Likewise.
8186         * modules/mbuiter (Link): Likewise.
8187         * modules/mkdir-p (Link): Likewise.
8188         * modules/propername (Link): Likewise.
8189         * modules/quote (Link): Likewise.
8190         * modules/quotearg (Link): Likewise.
8191         * modules/quotearg-simple (Link): Likewise.
8192         * modules/regex-quote (Link): Likewise.
8193         * modules/rpmatch (Link): Likewise.
8194         * modules/sh-quote (Link): Likewise.
8195         * modules/system-quote (Link): Likewise.
8196         * modules/trim (Link): Likewise.
8197         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8198         * modules/unistdio/ulc-fprintf (Link): Likewise.
8199         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8200         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8201         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8202         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8203         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8204         * modules/xfreopen (Link): Likewise.
8205         * modules/xmemcoll (Link): Likewise.
8206         * modules/yesno (Link): Likewise.
8207         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
8208         * modules/argmatch-tests (Makefile.am): Likewise.
8209         * modules/closein-tests (Makefile.am): Likewise.
8210         * modules/copy-file-tests (Makefile.am): Likewise.
8211         * modules/dfa-tests (Makefile.am): Likewise.
8212         * modules/fnmatch-tests (Makefile.am): Likewise.
8213         * modules/glob-tests (Makefile.am): Likewise.
8214         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8215         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8216         * modules/mbrtowc-tests (Makefile.am): Likewise.
8217         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8218         * modules/mbscasestr-tests (Makefile.am): Likewise.
8219         * modules/mbschr-tests (Makefile.am): Likewise.
8220         * modules/mbscspn-tests (Makefile.am): Likewise.
8221         * modules/mbsinit-tests (Makefile.am): Likewise.
8222         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8223         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8224         * modules/mbspbrk-tests (Makefile.am): Likewise.
8225         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8226         * modules/mbsrchr-tests (Makefile.am): Likewise.
8227         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8228         * modules/mbsspn-tests (Makefile.am): Likewise.
8229         * modules/mbsstr-tests (Makefile.am): Likewise.
8230         * modules/quotearg-tests (Makefile.am): Likewise.
8231         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8232         * modules/readtokens-tests (Makefile.am): Likewise.
8233         * modules/regex-quote-tests (Makefile.am): Likewise.
8234         * modules/sh-quote-tests (Makefile.am): Likewise.
8235         * modules/system-quote-tests (Makefile.am): Likewise.
8236         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8237         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8238         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8239         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8240         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8241         * modules/yesno-tests (Makefile.am): Likewise.
8243 2019-12-02  Bruno Haible  <bruno@clisp.org>
8245         Simplify link sections.
8246         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
8247         * modules/lock (Link): Likewise.
8248         * modules/cond (Link): Likewise.
8249         * modules/tls (Link): Likewise.
8250         * modules/yield (Link): Likewise.
8251         * modules/regex (Link): Likewise.
8252         * modules/localename (Link): Likewise.
8253         * modules/unicase/locale-language (Link): Likewise.
8254         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
8256 2019-12-02  Bruno Haible  <bruno@clisp.org>
8258         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
8259         * tests/test-thread_self.c (main): Disable test on AIX.
8261 2019-12-01  Bruno Haible  <bruno@clisp.org>
8263         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
8264         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
8265         gl_THREADLIB_EARLY_BODY.
8266         (gl_THREADLIB_EARLY_BODY): Invoke it.
8267         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
8268         (gl_THREADLIB_BODY): Invoke it.
8269         (gl_PTHREADLIB): New macro.
8270         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
8271         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
8272         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
8273         * modules/pthread-h (Files): Add threadlib.m4.
8274         (Depends-on): Remove threadlib.
8275         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
8276         and _THREAD_SAFE here.
8277         (Link): Use LIBPTHREAD, not LIBTHREAD.
8278         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
8279         LIBMULTITHREAD.
8280         * modules/pthread-once (Link): Likewise.
8281         * modules/pthread-mutex (Link): Likewise.
8282         * modules/pthread-rwlock (Link): Likewise.
8283         * modules/pthread-cond (Link): Likewise.
8284         * modules/pthread-tss (Link): Likewise.
8285         * modules/pthread-spin (Link): Likewise.
8286         * modules/pthread (Link): Likewise.
8287         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
8288         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
8289         * modules/pthread-once-tests (test_pthread_once1_LDADD,
8290         test_pthread_once2_LDADD): Likewise.
8291         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
8292         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
8293         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
8294         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
8296 2019-12-01  Bruno Haible  <bruno@clisp.org>
8298         cond: State linking requirements.
8299         * modules/cond (Link): New section.
8301 2019-12-01  Bruno Haible  <bruno@clisp.org>
8303         threadlib: Remove unnecessary file (left over from 2019-07-06).
8304         * modules/threadlib (Files): Remove config.rpath.
8306 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
8308         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
8309         Reported by Dagobert Michelsen <dam@opencsw.org> in
8310         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
8311         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
8312         list of strings instead of one string.
8313         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
8314         * pygnulib/GLImport.py (execute): Likewise.
8316 2019-11-27  Bruno Haible  <bruno@clisp.org>
8318         openpty, forkpty: Fix build error on Solaris 11.4.
8319         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
8320         also in <termios.h>.
8321         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
8322         of the function also in <termios.h>.
8323         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
8324         * doc/glibc-functions/forkpty.texi: Likewise.
8326 2019-11-27  Bruno Haible  <bruno@clisp.org>
8328         New options --enable-threads=isoc and --enable-threads=isoc+posix.
8329         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
8330         --enable-threads=isoc and --enable-threads=isoc+posix.
8331         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
8332         When both the ISO C and the POSIX threads API are available, choose
8333         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
8334         --enable-threads=isoc+posix was specified. When only the ISO C threads
8335         API is available and --enable-threads=iso was specified, choose
8336         USE_ISOC_THREADS.
8337         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
8338         USE_ISOC_AND_POSIX_THREADS.
8339         * lib/glthread/lock.c: Likewise.
8340         * lib/glthread/cond.h: Likewise.
8341         * lib/glthread/cond.c: Likewise.
8342         * lib/glthread/tls.h: Likewise.
8343         * lib/glthread/tls.c: Likewise.
8344         * lib/glthread/yield.h: Likewise.
8345         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
8346         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
8347         * lib/glthread/thread.c: Likewise.
8348         * lib/glthread/threadlib.c: Likewise.
8349         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
8350         USE_ISOC_AND_POSIX_THREADS.
8351         * tests/test-cond.c: Consider USE_ISOC_THREADS and
8352         USE_ISOC_AND_POSIX_THREADS.
8353         * tests/test-tls.c: Likewise.
8354         * tests/test-thread_create.c (main): Likewise.
8355         * tests/test-pthread-cond.c: Likewise.
8356         * tests/test-pthread-mutex.c: Likewise.
8357         * tests/test-pthread-once2.c: Likewise.
8358         * tests/test-pthread-rwlock.c: Likewise.
8359         * tests/test-pthread-tss.c: Likewise.
8360         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
8361         USE_POSIX_THREADS.
8363 2019-11-24  Bruno Haible  <bruno@clisp.org>
8365         mbrtowc: Modernize autoconf test.
8366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
8367         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
8368         try a UTF-8 locale.
8369         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
8371 2019-11-24  Bruno Haible  <bruno@clisp.org>
8373         Fix errors in C++ mode on mingw.
8374         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
8375         instead of _GL_CXXALIAS_SYS.
8376         * lib/signal.in.h (pthread_sigmask): Likewise.
8377         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
8378         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8379         Likewise.
8380         * lib/wchar.in.h (btowc): Likewise.
8382 2019-11-24  Bruno Haible  <bruno@clisp.org>
8384         sys_time: Fix errors in C++ mode on mingw.
8385         * lib/sys_time.in.h (timeval): Restore the redirection
8386         '#define timeval rpl_timeval', for when the symbol timeval is being used
8387         outside the 'gnulib' namespace.
8388         * lib/sys_select.in.h (select): In C++, write 'timeval', not
8389         'struct timeval'.
8391 2019-11-24  Bruno Haible  <bruno@clisp.org>
8393         iswctype: Fix errors in C++ mode on mingw.
8394         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
8395         is 1.
8396         * lib/iswctype.c (iswctype): Add another implementation, for the
8397         GNULIB_defined_wint_t case.
8398         * modules/iswctype (configure.ac): Compile iswctype.c also if
8399         GNULIB_OVERRIDES_WINT_T is 1.
8401 2019-11-24  Bruno Haible  <bruno@clisp.org>
8403         windows-timedmutex: Fix errors in C++ mode on mingw.
8404         * lib/windows-timedmutex.h: Add closing brace.
8406 2019-11-24  Bruno Haible  <bruno@clisp.org>
8408         Fix errors in C++ mode on Cygwin.
8409         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
8410         _GL_CXXALIAS_SYS.
8412 2019-11-24  Bruno Haible  <bruno@clisp.org>
8414         time_r: Fix for mingw (regression from 2019-11-16).
8415         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
8416         AC_LINK_IFELSE test only if the function does not appear to exist.
8418 2019-11-24  Bruno Haible  <bruno@clisp.org>
8420         wcstok: Add tests.
8421         * tests/test-wcstok.c: New file.
8422         * modules/wcstok-tests: New file.
8424 2019-11-24  Bruno Haible  <bruno@clisp.org>
8426         wcstok: Work around wrong signature on native Windows.
8427         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
8428         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
8429         REPLACE_WCSTOK.
8430         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
8431         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
8432         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
8433         * doc/posix-functions/wcstok.texi: Mention the problem.
8435 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8437         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
8438         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
8439         remove workaround for GCC bug 91450 as the bug should be fixed
8440         there too.
8442 2019-11-21  Bruno Haible  <bruno@clisp.org>
8444         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
8445         Reported by Christian Biesinger <cbiesinger@google.com> in
8446         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
8447         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
8448         non-glibc systems.
8449         * lib/locale.in.h (localeconv, setlocale): Likewise.
8450         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
8451         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
8452         rint, round, trunc): Likewise.
8453         * lib/monetary.in.h (strfmon_l): Likewise.
8454         * lib/pthread.in.h (pthread_mutexattr_getrobust,
8455         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
8456         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
8457         pthread_spin_destroy): Likewise.
8458         * lib/signal.in.h (raise, signal): Likewise.
8459         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
8460         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
8461         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
8462         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
8463         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
8464         Likewise.
8465         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
8466         Likewise.
8467         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
8468         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
8469         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
8470         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
8471         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
8472         wcsftime): Likewise.
8473         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
8475 2019-11-21  Bruno Haible  <bruno@clisp.org>
8477         Fix various errors in _GL_CXXALIAS_SYS invocations.
8478         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
8479         _GL_CXXALIAS_SYS.
8480         * lib/pthread.in.h (pthread_mutexattr_gettype,
8481         pthread_mutexattr_getrobust): Likewise.
8482         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
8483         * lib/sys_socket.in.h (recv, send): Likewise.
8484         * lib/unistd.in.h (getdtablesize): Likewise.
8485         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
8486         'struct timeval'.
8488 2019-11-21  Bruno Haible  <bruno@clisp.org>
8490         math tests: Update after 2019-08-28 change.
8491         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
8492         return type of 'bool', not 'int'.
8494 2019-11-21  Bruno Haible  <bruno@clisp.org>
8496         pthread-spin: Fix errors in C++ mode.
8497         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
8498         functions as nonexistent when <pthread.h> exists but does not define
8499         the pthread_spinlock_t type.
8501 2019-11-21  Bruno Haible  <bruno@clisp.org>
8503         pthread-mutex: Fix errors in C++ mode.
8504         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
8505         pthread_mutexattr_getrobust exists. If not, define
8506         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8507         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
8508         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
8509         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8510         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
8511         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
8512         definition.
8514 2019-11-19  Bruno Haible  <bruno@clisp.org>
8516         threads-h tests: Fix typo.
8517         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
8519 2019-11-19  Bruno Haible  <bruno@clisp.org>
8521         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
8522         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
8523         to 'const pthread_attr_t *'.
8524         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
8525         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
8527 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8529         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
8530         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
8531         work around GCC bug 91450 as the bug should be fixed there.
8533 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8535         glob: get closer to glibc glob.c
8536         Omit differences from glibc when the differences don’t matter.
8537         * lib/glob.c [_LIBC]: Include shlib-compat.h.
8538         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
8539         (glob_lstat): New function.
8540         (glob_in_dir): Use it.
8541         (GLOB_ATTRIBUTE): Define to empty if not already defined.
8542         Use changed.
8544 2019-11-18  Bruno Haible  <bruno@clisp.org>
8546         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
8547         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
8548         UINTPTR_MAX): Consider _WIN64.
8549         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
8550         a pointer.
8552 2019-11-18  Bruno Haible  <bruno@clisp.org>
8554         stdint: Fix value of WINT_MAX when we override wint_t.
8555         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
8556         when GNULIB_OVERRIDES_WINT_T is 1.
8558 2019-11-18  Bruno Haible  <bruno@clisp.org>
8560         vcs-to-changelog: New module.
8561         * modules/vcs-to-changelog: New file.
8562         * MODULES.html.sh (func_all_modules): Add it.
8564 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8566         vcs-to-changelog: New script to generate ChangeLog-like output.
8567         Discussion:
8568         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
8569         * build-aux/vcs_to_changelog.py: New file.
8570         * build-aux/vcstocl/frontend_c.py: New file.
8571         * build-aux/vcstocl/misc_util.py: New file.
8572         * build-aux/vcstocl/vcs_git.py: New file.
8574 2019-11-18  Bruno Haible  <bruno@clisp.org>
8576         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
8577         Reported by Keith Marshall <keith@users.osdn.me> in
8578         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
8579         and <https://osdn.net/projects/mingw/ticket/39677>.
8580         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
8581         already been defined by mingw's <crtdefs.h>.
8583 2019-11-18  Bruno Haible  <bruno@clisp.org>
8585         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
8586         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8587         conditionally enabled.
8589 2019-11-18  Bruno Haible  <bruno@clisp.org>
8591         gc: Mirror libgcrypt.m4 from libgcrypt.
8592         * config/srclistvars.sh (LIBGCRYPT): New variable.
8593         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8595 2019-11-17  Bruno Haible  <bruno@clisp.org>
8597         locale, localename: Improve z/OS support.
8598         Reported by Daniel Richard G. in
8599         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8600         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8601         gl_LOCALE_H.
8602         (gl_LOCALE_H): Require it.
8603         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8604         defined, don't even check for newlocale, duplocale, freelocale.
8605         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8606         locale_t is not defined.
8608 2019-11-17  Bruno Haible  <bruno@clisp.org>
8610         havelib: Make libdirstems processing more flexible.
8611         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8612         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8613         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8614         patch from 2017-02-19).
8615         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8616         libdirs, even when the first one exists as a directory.
8618 2019-11-17  Bruno Haible  <bruno@clisp.org>
8620         havelib: Match the bitness when searching for libraries.
8621         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8622         acl_is_expected_elfclass.
8623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8624         file exists, in ELF, also test whether it has the ELF class that
8625         corresponds to the host's bitness.
8627 2019-11-17  Bruno Haible  <bruno@clisp.org>
8629         host-cpu-c-abi: Add support for unknown CPUs.
8630         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8631         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8632         32-bit or 64-bit.
8634 2019-11-17  Bruno Haible  <bruno@clisp.org>
8636         havelib: Remove redundant code.
8637         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8638         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8640 2019-11-17  Bruno Haible  <bruno@clisp.org>
8642         havelib: Fix a bug in dependency processing.
8643         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8644         of .la files, don't overwrite the value of additional_libdir for the
8645         next rounds.
8647 2019-11-16  Bruno Haible  <bruno@clisp.org>
8649         wctype-h: When overriding wint_t, override also the related functions.
8650         Reported by Christian Biesinger <cbiesinger@google.com> in
8651         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8652         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8653         REPLACE_ISWCNTRL to 1.
8654         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8655         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8656         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8657         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8658         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8659         on mingw.
8660         * doc/posix-headers/wctype.texi: Likewise.
8662 2019-11-16  Bruno Haible  <bruno@clisp.org>
8664         time_r: Fix for mingw.
8665         Reported by Christian Biesinger <cbiesinger@google.com> in
8666         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8667         * lib/time.in.h: On mingw, include <unistd.h>.
8668         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8669         <time.h>. Test for localtime_r in a way that works when it is defined
8670         as an inline function.
8672 2019-11-13  Bruno Haible  <bruno@clisp.org>
8674         havelib: Revert last change.
8675         * build-aux/config.rpath: Revert last change. We can add msys2 support
8676         when it has been added to libtool.m4 upstream.
8678 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8680         config: add msys support
8681         Requested by Arnold Robbins in:
8682         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8683         He also requested a change to config.guess, which I’ll forward
8684         upstream.
8685         * build-aux/ar-lib (func_file_conv):
8686         * build-aux/compile (func_file_conv):
8687         * build-aux/config.rpath (wl, with_gnu_ld)
8688         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8689         Treat msys like cygwin.
8691 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8693         regex: now back in sync with glibc
8694         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8695         regexec.c got merged into glibc and are now copies again.
8697 2019-10-27  Bruno Haible  <bruno@clisp.org>
8699         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8700         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8701         statement.
8702         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8703         32-bit CPUs.
8705 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8707         timespec-add, timespec-sub: simplify
8708         * lib/timespec-add.c (timespec_add):
8709         * lib/timespec-sub.c (timespec_sub):
8710         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8711         work on unsigned integers.
8713 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8715         nstrftime: speed up integer overflow checking
8716         * lib/nstrftime.c: Include intprops.h.
8717         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8718         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8719         instead of doing it by hand.
8720         * modules/nstrftime (Depends-on): Add intprops.
8722         Port better to GCC under macOS
8723         Work around macOS header that has ‘#define __has_builtin(x) 0’
8724         when compiled by GCC.  Apple really, really doesn’t want you to
8725         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8726         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8727         The fix is to not trust __has_builtin when being compiled by
8728         recent-enough GCC.
8729         * lib/intprops.h (__has_builtin)
8730         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8731         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8732         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8733         Remove.  All uses removed.
8734         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8735         directly, if defined and if not newer GCC.
8736         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8737         New macro, that use __has_builtin directly, if defined and if
8738         not newer GCC.
8739         (assume): Use them.
8741 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8743         maintainer-makefile: update rule for argmatch.
8744         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8746 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8748         bitset: let freeing functions accept NULL.
8749         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8750         given NULL.
8751         * lib/bitset.h: Document that.
8752         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8754 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8756         inttypes: use more-robust test for int range
8757         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8758         Problem reported by Dagobert Michelsen in:
8759         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8760         * lib/inttypes.in.h: Rely only on limits.h when checking
8761         int range.
8763 2019-10-15  Bruno Haible  <bruno@clisp.org>
8765         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8766         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8767         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8768         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8769         term_ostream_set_hyperlink): New functions.
8770         (term_styled_ostream_get_hyperlink_ref,
8771         term_styled_ostream_get_hyperlink_id,
8772         term_styled_ostream_set_hyperlink): New function aliases.
8774 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8776         update-copyright: use en dashes in .texi ranges
8777         * build-aux/update-copyright: Match year ranges like "1998--2019",
8778         which are used in the Autoconf manual.  Also, update ranges in
8779         .tex, .texi, and .texinfo files to use en dashes instead of
8780         hyphens.
8782 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8784         * config/srclist.txt: Remove posix/regex_internal.c for now.
8786 2019-10-13  Bruno Haible  <bruno@clisp.org>
8788         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8789         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8790         contents to the empty string.
8792 2019-10-12  Bruno Haible  <bruno@clisp.org>
8794         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8795         * tests/test-intprops.c (main): Disable two more tests when using
8796         HP-UX cc.
8798 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8800         Simplify and regularize regex use of ‘assert’
8801         Also, tell GCC about the asserts even when compiling without
8802         debugging, to give it further optimization opportunities.
8803         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8804         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8805         (parse_expression, parse_bracket_exp):
8806         * lib/regex_internal.c (build_wcs_buffer)
8807         (build_wcs_upper_buffer, re_string_reconstruct)
8808         (re_string_context_at):
8809         * lib/regexec.c (re_search_stub, re_copy_regs)
8810         (re_search_internal, prune_impossible_nodes, check_matching)
8811         (check_halt_state_context, set_regs, sift_states_backward)
8812         (build_sifted_states, transit_state_mb, transit_state_bkref)
8813         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8814         (match_ctx_add_subtop):
8815         Use it instead of plain ‘assert’.
8817 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8819         regex: omit debug assignment when not debugging
8820         * lib/regexec.c (re_search_internal) [!DEBUG]:
8821         Remove unnecessary assignment.
8823         regex: tell compiler there’s at most 256 arcs out
8824         Partly this is to help the reader (and maybe help GCC);
8825         partly this is to pacify Coverity.
8826         * lib/regex_internal.h: Include verify.h.
8827         * lib/regexec.c (group_nodes_into_DFAstates):
8828         Tell the compiler that ndests cannot exceed SBC_MAX.
8829         * modules/regex (Depends-on): Add ‘verify’.
8831         regex: simplify by assuming C99
8832         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8833         temporarily.
8834         * lib/regex_internal.h (lock_define, re_match_context_t):
8835         Simplify by assuming C99 macros and const.
8836         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8837         initializers.  Remove unnecessary assignment, as mctx is now
8838         safely initialized earlier.
8840         regex: avoid copying of uninitialized storage
8841         * config/srclist.txt: Comment out regcomp.c temporarily.
8842         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8843         Initialize even when not checking for lint, as the behavior is
8844         arguably undefined otherwise and Coverity warns about it.
8846 2019-10-06  Bruno Haible  <bruno@clisp.org>
8848         access tests: Fix test failure when run as root.
8849         * tests/test-access.c: Include root-uid.h.
8850         (geteuid): Define fallback.
8851         (main): Don't expect that writing to a read-only file would fail when
8852         running as root. Also, remove the created files at the end.
8853         * modules/access-tests (Depends-on): Add root-uid.
8854         (configure.ac): Test whether geteuid exists.
8856 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8858         users.txt: add GNU nano
8859         Nano has been making use of gnulib since March 2017, version 2.8.0.
8861 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8863         bootstrap: simplify debugging of wget failures
8864         Problem reported by Tim Rühsen in:
8865         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8866         * build-aux/bootstrap (po_download_command_format):
8867         Invoke wget with -nv instead of -q, to make debugging easier.
8869 2019-09-29  Bruno Haible  <bruno@clisp.org>
8871         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8872         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8873         'const' attribute.
8875 2019-09-29  Bruno Haible  <bruno@clisp.org>
8877         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8878         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8880 2019-09-28  Bruno Haible  <bruno@clisp.org>
8882         Update comments that refer to POSIX.
8883         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8884         sentence about trailing slashes.
8885         * lib/fflush.c: Clarify the reasoning.
8886         * tests/test-fflush2.c: Cite the relevant sentence.
8888 2019-09-28  Bruno Haible  <bruno@clisp.org>
8890         access: Document limitations on Windows.
8891         Suggested by Zaretskii <eliz@gnu.org>.
8892         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8894 2019-09-28  Bruno Haible  <bruno@clisp.org>
8896         findprog-in: Fix comment.
8897         Reported by Eli Zaretskii <eliz@gnu.org>.
8898         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8899         condition.
8900         * lib/stat.c (rpl_stat): Fix typo in comment.
8901         * lib/utime.c (_gl_utimens_windows): Likewise.
8903 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8905         Update URLs and associated text
8906         (Thanks to Bruno Haible for proofreading this patch.)
8907         Prefer https: to http: in URLs where either will do, for the usual
8908         security reasons.  I also updated broken and/or moved URLs
8909         discovered during the process. In a few places I had to resort to
8910         archive.org, since I didn't find the originals elsewhere.
8912 2019-09-15  Paul Smith  <psmith@gnu.org>
8913             Bruno Haible  <bruno@clisp.org>
8915         findprog-in: Set errno when the search fails.
8916         * lib/findprog-in.c: Include <errno.h>.
8917         (find_in_given_path): Set errno before returning NULL.
8918         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8919         Define the term "slash".
8921 2019-09-15  Bruno Haible  <bruno@clisp.org>
8923         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8924         * modules/findprog (Depends-on): Add access.
8925         * modules/findprog-lgpl (Depends-on): Likewise.
8926         * modules/findprog-in (Depends-on): Likewise.
8928 2019-09-15  Bruno Haible  <bruno@clisp.org>
8930         access: Add tests.
8931         * tests/test-access.c: New file.
8932         * modules/access-tests: New file.
8934         access: New module.
8935         * lib/unistd.in.h (access): New declaration.
8936         * lib/access.c: New file.
8937         * m4/access.m4: New file.
8938         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8939         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8940         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8941         REPLACE_ACCESS.
8942         * modules/access: New file.
8943         * tests/test-unistd-c++.cc (access): Check signature.
8944         * doc/posix-functions/access.texi: Mention the new module.
8946 2019-09-15  Bruno Haible  <bruno@clisp.org>
8948         fcntl-h: Fix compilation error of creat.c on MSVC.
8949         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8950         defined.
8952 2019-09-15  Bruno Haible  <bruno@clisp.org>
8954         creat: Add tests.
8955         * tests/test-creat.c: New file, based on tests/test-open.h.
8956         * modules/creat-tests: New file.
8958         creat: New module.
8959         * lib/fcntl.in.h (creat): New declaration.
8960         * lib/creat.c: New file, based on lib/open.c.
8961         * m4/creat.m4: New file.
8962         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8963         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8964         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8965         * modules/open (Files): Add m4/open-slash.m4.
8966         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8967         REPLACE_CREAT.
8968         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8969         * modules/creat: New file.
8970         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8971         * doc/posix-functions/creat.texi: Mention the new module.
8973 2019-09-15  Bruno Haible  <bruno@clisp.org>
8975         open tests: Enhance test.
8976         * tests/test-open.h (test_open): Test the creation of an executable
8977         regular file. Also improve initial cleanup.
8979 2019-09-15  Bruno Haible  <bruno@clisp.org>
8981         intprops tests: Avoid build failure with HP-UX cc.
8982         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8983         "error 4018: Macro param too large after substitution - use -H option.".
8985 2019-09-14  Bruno Haible  <bruno@clisp.org>
8987         Make autoconf tests work with -Werror=implicit-function-declaration.
8988         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8989         towupper() declaration.
8990         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8991         declaration.
8993 2019-09-14  Bruno Haible  <bruno@clisp.org>
8995         findprog-in: Better mimic the system on native Windows.
8996         Reported by Paul Smith <psmith@gnu.org>.
8997         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8998         non-empty suffixes when the file name already contains a '.'.
9000 2019-09-10  Bruno Haible  <bruno@clisp.org>
9002         wctob: Fix autoconf test.
9003         Based on patch by Florian Weimer <fweimer@redhat.com>.
9004         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
9006 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
9008         xhash: provide hash_xinitialize.
9009         Suggested by Egor Pugin <egor.pugin@gmail.com>
9010         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
9011         * modules/xhash, lib/xhash.c: New.
9012         * lib/hash.h (hash_xinitialize): New.
9014 2019-09-09  Bruno Haible  <bruno@clisp.org>
9016         findprog-in: Make exec optimization optional.
9017         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
9018         (find_in_given_path): Add optimize_for_exec parameter.
9019         * lib/findprog-in.c (find_in_given_path): Likewise.
9021 2019-09-08  Bruno Haible  <bruno@clisp.org>
9023         Add option to assume the best, not the worst, when cross-compiling.
9024         Suggested by Jonas Termansen <sortie@maxsi.org>.
9025         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
9026         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
9027         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
9028         lt_cv_sys_argz_works.
9029         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
9030         ac_cv_func_calloc_0_nonnull.
9031         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
9032         --enable-cross-guesses for gl_cv_func_realpath_works.
9033         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
9034         gl_cv_func_cbrtl_ieee.
9035         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
9036         gl_cv_func_ceil_ieee.
9037         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
9038         gl_cv_func_ceilf_ieee.
9039         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
9040         gl_cv_func_ceill_ieee.
9041         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
9042         ac_cv_func_chown_works.
9043         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
9044         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
9045         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
9046         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
9047         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
9048         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
9049         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
9050         gl_cv_func_expl_works.
9051         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
9052         gl_cv_func_expm1_ieee.
9053         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
9054         gl_cv_func_expm1l_works.
9055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
9056         gl_cv_func_open_directory_works.
9057         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
9058         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
9059         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
9060         gl_cv_func_fchownat_empty_filename_works.
9061         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
9062         gl_cv_func_fdopendir_works.
9063         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
9064         gl_cv_func_floor_ieee.
9065         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
9066         gl_cv_func_floorf_ieee.
9067         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
9068         gl_cv_func_fma_works.
9069         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
9070         gl_cv_func_fmaf_works.
9071         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
9072         gl_cv_func_fmal_works.
9073         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
9074         gl_cv_func_fmod_ieee.
9075         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
9076         gl_cv_func_fmodf_ieee.
9077         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
9078         gl_cv_func_fmodl_ieee.
9079         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
9080         gl_cv_func_fpurge_works.
9081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
9082         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
9083         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
9084         gl_cv_func_getcwd_null.
9085         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
9086         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
9087         gl_cv_func_working_getdelim.
9088         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
9089         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
9090         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
9091         gl_cv_func_getgroups_works.
9092         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
9093         am_cv_func_working_getline.
9094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
9095         for gl_cv_func_getopt_gnu.
9096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
9097         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
9098         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
9099         gl_cv_func_hypot_ieee.
9100         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
9101         gl_cv_func_hypotf_ieee.
9102         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
9103         gl_cv_func_hypotl_ieee.
9104         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
9105         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
9106         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
9107         gl_cv_func_link_works.
9108         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
9109         gl_cv_func_linkat_slash.
9110         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
9111         gl_cv_func_log_ieee.
9112         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
9113         gl_cv_func_logf_ieee.
9114         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
9115         gl_cv_func_logl_works.
9116         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
9117         gl_cv_func_log10_ieee.
9118         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
9119         gl_cv_func_log10f_ieee.
9120         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
9121         gl_cv_func_log10l_works.
9122         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
9123         gl_cv_func_log1p_ieee.
9124         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
9125         gl_cv_func_log1pf_ieee.
9126         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
9127         gl_cv_func_log1pl_ieee.
9128         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
9129         gl_cv_func_log2_ieee.
9130         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
9131         gl_cv_func_log2f_ieee.
9132         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
9133         --enable-cross-guesses for
9134         gl_cv_func_lstat_dereferences_slashed_symlink.
9135         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
9136         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9137         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
9138         gl_cv_C_locale_sans_EILSEQ.
9139         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
9140         gl_cv_func_memchr_works.
9141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
9142         gl_cv_func_memmem_works_always.
9143         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
9144         gl_cv_func_memmem_works_fast.
9145         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
9146         gl_cv_func_mkdir_trailing_slash_works,
9147         gl_cv_func_mkdir_trailing_dot_works.
9148         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
9149         gl_cv_func_mkfifo_works.
9150         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
9151         gl_cv_func_mknod_works.
9152         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
9153         gl_cv_func_working_mkstemp.
9154         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
9155         gl_cv_func_working_mktime.
9156         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
9157         gl_cv_func_modf_ieee.
9158         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
9159         gl_cv_func_modff_ieee.
9160         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
9161         gl_cv_func_modfl_ieee.
9162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
9163         gl_cv_func_nanosleep.
9164         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
9165         gl_cv_func_perror_works.
9166         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
9167         gl_cv_func_printf_sizes_c99.
9168         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
9169         gl_cv_func_printf_infinite.
9170         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
9171         gl_cv_func_printf_infinite_long_double.
9172         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
9173         gl_cv_func_printf_directive_a.
9174         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
9175         gl_cv_func_printf_directive_f.
9176         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
9177         gl_cv_func_printf_flag_zero.
9178         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
9179         gl_cv_func_printf_enomem.
9180         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
9181         gl_cv_func_snprintf_truncation_c99.
9182         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
9183         gl_cv_func_snprintf_retval_c99.
9184         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
9185         gl_cv_func_snprintf_directive_n.
9186         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
9187         gl_cv_func_vsnprintf_zerosize_c99.
9188         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
9189         gl_cv_func_pselect_detects_ebadf.
9190         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9191         Obey --enable-cross-guesses for
9192         gl_cv_pthread_rwlock_rdlock_prefer_writer.
9193         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
9194         gl_cv_func_ptsname_sets_errno.
9195         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
9196         gl_cv_func_svid_putenv.
9197         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
9198         gl_cv_func_readlink_works.
9199         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
9200         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9201         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
9202         gl_cv_func_re_compile_pattern_working.
9203         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
9204         gl_cv_func_remainder_ieee.
9205         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
9206         gl_cv_func_remainderf_ieee.
9207         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
9208         gl_cv_func_remainderl_ieee.
9209         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
9210         gl_cv_func_rintl_works.
9211         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
9212         gl_cv_func_rmdir_works.
9213         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
9214         gl_cv_func_round_ieee.
9215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
9216         gl_cv_func_roundf_ieee.
9217         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
9218         gl_cv_func_roundl_ieee.
9219         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
9220         gl_cv_func_select_detects_ebadf.
9221         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
9222         gl_cv_func_setenv_works.
9223         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
9224         gl_cv_func_unsetenv_works.
9225         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
9226         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
9227         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
9228         gl_cv_func_sleep_works.
9229         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
9230         gl_cv_func_stat_file_slash.
9231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
9232         gl_cv_func_stpncpy.
9233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
9234         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
9235         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
9236         gl_cv_func_strcasestr_linear.
9237         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
9238         gl_cv_func_working_strerror.
9239         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
9240         gl_cv_func_strerror_0_works.
9241         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
9242         --enable-cross-guesses for gl_cv_func_strerror_r_works.
9243         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
9244         gl_cv_func_strstr_works_always.
9245         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
9246         gl_cv_func_strstr_linear.
9247         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
9248         gl_cv_func_strtod_works.
9249         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
9250         gl_cv_func_strtold_works.
9251         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
9252         gl_cv_func_symlink_works.
9253         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
9254         gl_cv_func_symlinkat_works.
9255         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
9256         gl_cv_func_trunc_ieee.
9257         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
9258         gl_cv_func_truncf_ieee.
9259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
9260         gl_cv_func_truncl_ieee.
9261         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
9262         gl_cv_func_tzset_clobber.
9263         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
9264         gl_cv_func_ungetc_works.
9265         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
9266         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
9267         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
9268         gl_cv_func_usleep_works.
9269         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
9270         gl_cv_func_futimesat_works.
9271         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
9272         gl_cv_func_working_utimes.
9273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
9274         gl_cv_func_wcwidth_works.
9275         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
9276         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
9277         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
9278         links for testing. Obey --enable-cross-guesses for
9279         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
9280         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
9282 2019-09-08  Bruno Haible  <bruno@clisp.org>
9284         Clarify that cross-compilation guesses are guesses.
9285         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
9286         cross-compiling.
9288 2019-09-08  Bruno Haible  <bruno@clisp.org>
9290         chown: Fix configure output (regression from 2019-03-23).
9291         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
9292         gl_cv_func_chown_follows_symlink variable.
9294 2019-09-08  Bruno Haible  <bruno@clisp.org>
9296         findprog-in: New module.
9297         Suggested by Paul Smith <psmith@gnu.org>.
9298         * lib/findprog.h (find_in_given_path): New declaration.
9299         * lib/findprog-in.c: New file, based on lib/findprog.c.
9300         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
9301         * modules/findprog-in: New file.
9303 2019-09-08  Bruno Haible  <bruno@clisp.org>
9305         findprog: Remove unused dependency.
9306         * modules/findprog (Depends-on): Remove strdup.
9308 2019-09-08  Bruno Haible  <bruno@clisp.org>
9310         findprog: Remove test that is obsolete since 2006-04-24.
9311         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
9313 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9315         bitset: style changes
9316         * lib/bitset/vector.c (vbitset_resize): Factor computation.
9317         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
9318         xzalloc to xcalloc.
9319         Suggested by Paul Eggert.
9321 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9323         bitset: check memory allocation
9324         Reported by 江 祖铭 (Zu-Ming Jiang).
9325         With help from Paul Eggert.
9326         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
9327         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
9328         instead of realloc.
9329         When shrinking, accept failures.
9330         * lib/bitset/vector.c (vbitset_resize): Likewise.
9332 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9334         scratch_buffer: sync from glibc
9335         * config/srclist.txt: Add the scratch_buffer source
9336         code from glibc, since these should be in sync.
9337         Autoupdate.
9339 2019-09-07  Bruno Haible  <bruno@clisp.org>
9341         doc: Update for glibc 2.30.
9342         * doc/glibc-functions/gettid.texi: New file.
9343         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
9344         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
9345         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
9346         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
9347         * doc/glibc-functions/sem_clockwait.texi: New file.
9348         * doc/glibc-functions/tgkill.texi: New file.
9349         * doc/glibc-functions/twalk_r.texi: New file.
9350         * doc/gnulib.texi: Include them.
9351         (Glibc semaphore.h): New section.
9352         * doc/pastposix-functions/h_errno.texi: Update.
9353         * doc/posix-functions/*.texi: Likewise.
9355 2019-09-06  Bruno Haible  <bruno@clisp.org>
9357         symlink tests: Avoid test failure on Linux with Lustre file system.
9358         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
9359         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
9360         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
9362 2019-09-01  Bruno Haible  <bruno@clisp.org>
9364         gitsub.sh: Add support for shallow-cloning of subdirectories.
9365         * top/gitsub.sh (func_usage): Document allowed git options with
9366         'git pull'.
9367         (func_pull): Accept GIT_OPTIONS argument.
9368         (pull): Parse git options before complaining about too many arguments.
9369         Pass the git options to func_pull.
9371 2019-08-29  Bruno Haible  <bruno@clisp.org>
9373         lock: Fix cross-compilation guesses.
9374         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9375         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
9376         platforms.
9378 2019-08-28  Bruno Haible  <bruno@clisp.org>
9380         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
9381         Reported by Martin Storsjö <martin@martin.st> in
9382         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
9383         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
9384         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
9385         files from GCC 6 or newer, use an override through '#define', because
9386         the inline definitions in the platform's <cmath> cannot be overridden
9387         in another way.
9389 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9391         Revert macOS INT_MULTIPLY_WRAPV patch
9392         Problem reported by Bruno Haible in:
9393         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
9394         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
9395         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9396         Go back to working around the Clang bug on macOS.
9398 2019-08-27  Bruno Haible  <bruno@clisp.org>
9400         libtool-next-version: Fix error output.
9401         * build-aux/libtool-next-version (func_fatal_error): Fix the program
9402         name.
9404 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9406         Speed up INT_MULTIPLY_WRAPV on macOS
9407         Assume that __builtin_mul_overflow works OK with Clang on macOS.
9408         Mattias Engdegård says it’s safe to assume the relevant library
9409         is always available there.
9410         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
9411         New temporary internal macro.
9412         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9413         No need to work around the Clang bug on macOS.
9415 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9417         intprops.h, verify.h: port better to clang
9418         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9419         with Clang.  Problem reported privately by Mattias Engdegård.
9420         Also, insulate intprops.h and verify.h better against each other’s
9421         definitions of __has_builtin on non-Clang hosts.
9422         * lib/intprops.h (__has_builtin): Define a temporary substitute
9423         if __has_builtin is not already defined.
9424         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9425         New temporary internal macros.
9426         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
9427         Now two separate macros, replacing the old
9428         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
9429         __builtin_mul_overflow is like the rest.  All uses changed.
9430         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
9431         Adjust to above changes.
9432         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
9433         longer relevant.  All uses changed.
9434         * lib/verify.h (__has_builtin): Treat like intprops.h,
9435         so that the two .h files do not collide with each other.
9436         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
9437         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
9439 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9441         intprops: say why not Clang __builtin_add_overflow
9442         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
9443         Mention Clang in comment, responding to a query from
9444         Mattias Engdegård.
9446 2019-08-24  Bruno Haible  <bruno@clisp.org>
9448         doc: Document most of the files outside of modules.
9449         * doc/gnulib.texi (Build Infrastructure Files,
9450         Release Management Files): New chapters.
9452 2019-08-24  Bruno Haible  <bruno@clisp.org>
9454         bootstrap: Keep in sync with the 'gettext' module.
9455         Reported by Assaf Gordon in
9456         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
9457         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
9458         * build-aux/po/remove-potcdate.sin: Likewise.
9460 2019-08-24  Bruno Haible  <bruno@clisp.org>
9462         crypto/gc-sha512: Add tests.
9463         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
9464         * modules/crypto/gc-sha512-tests: New file.
9466         crypto/gc-sha256: Add tests.
9467         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
9468         * modules/crypto/gc-sha256-tests: New file.
9470         crypto/gc-sha256, crypto/gc-sha512: New modules.
9471         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
9472         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
9473         (MAX_DIGEST_SIZE): Set to 64.
9474         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
9475         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
9476         (gc_sha256, gc_sha512): New functions.
9477         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
9478         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
9479         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
9481 2019-08-24  Bruno Haible  <bruno@clisp.org>
9483         crypto/gc-sha1 tests: Improve output when the test fails.
9484         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
9485         output.
9487 2019-08-24  Bruno Haible  <bruno@clisp.org>
9489         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
9490         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
9491         LIBGCRYPT_HAS_MD_SM3.
9492         * lib/gc-libgcrypt.c: Include sm3.h.
9493         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
9494         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
9495         implementation if libgcrypt does not support SM3.
9497 2019-08-24  Bruno Haible  <bruno@clisp.org>
9499         crypto/gc-md2: Optimize and clarify code.
9500         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
9501         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
9502         is not needed.
9504 2019-08-24  Bruno Haible  <bruno@clisp.org>
9506         crypto/gc-md2: Add comment.
9507         * lib/gc-libgcrypt.c: Add comment.
9509 2019-08-24  Bruno Haible  <bruno@clisp.org>
9511         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
9512         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
9513         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
9514         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
9515         variable.
9517 2019-08-24  Bruno Haible  <bruno@clisp.org>
9519         crypto/gc: Fix link error with --with-libgcrypt.
9520         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
9521         AC_LIB_HAVE_LINKFLAGS invocation.
9523 2019-08-24  Bruno Haible  <bruno@clisp.org>
9525         crypto/gc: Access the module indicators correctly.
9526         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
9527         * lib/gc-libgcrypt.c: Likewise.
9529 2019-08-24  Bruno Haible  <bruno@clisp.org>
9531         crypto/gc: Fix configuration with --with-libgcrypt.
9532         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
9533         * modules/crypto/gc (Files): Add it.
9534         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
9536 2019-08-24  Bruno Haible  <bruno@clisp.org>
9538         Remove unused file.
9539         * m4/stat-macros.m4: Remove file.
9541 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9543         New strip-trailing-space option for srclist-update
9544         * config/srclist-update (fixfile): Support new option.
9545         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
9546         Use it.
9548 2019-08-20  Eric Blake  <eblake@redhat.com>
9550         accept4: Support SOCK_NONBLOCK, if defined
9551         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
9553         accept4: Fix compilation when native accept4() exists.
9554         Reported by Richard W.M. Jones <rjones@redhat.com> in
9555         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
9556         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
9558 2019-08-18  Bruno Haible  <bruno@clisp.org>
9560         Defeat -flto GCC optimization in math autoconf tests.
9561         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
9562         at <https://savannah.gnu.org/bugs/?56109>.
9563         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
9564         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
9565         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9566         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9567         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9568         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
9569         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9570         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9571         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9572         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9573         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9574         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9576 2019-08-17  Bruno Haible  <bruno@clisp.org>
9578         windows-spin: Implement declared functions.
9579         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
9580         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
9581         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
9582         name.
9584 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9586         intprops: port to Oracle Developer Studio 12.6
9587         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9588         typos that were in a section not compiled by GCC.
9590 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9592         intprops: support uchar, ushort _WRAPV dests
9593         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9594         when __builtin_add_overflow etc. and _Generic are not used.
9595         (_GL_INT_OP_WRAPV): Use it to support destinations that
9596         are unsigned char or unsigned short, even in compilers
9597         that lack __typeof__ and are not C11-compatible.
9599         intprops: pacify picky GCC
9600         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9601         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9602         possibly-incorrect result.
9603         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9604         about (A) used as a boolean, when A is an expression like 3 * 4.
9606         intprops: support unsigned *_WRAPV results
9607         Add support for unsigned, unsigned long, and unsigned long long
9608         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9609         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9610         bug with unsigned inputs reported by Eli Zaretskii in:
9611         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9612         * config/srclist.txt: Break the glibc connection for intprops.h
9613         temporarily, while more testing is done in Gnulib-using apps.
9614         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9615         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9616         Support unsigned results no narrower than unsigned int.  Report
9617         overflow correctly if some arguments are unsigned.
9618         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9619         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9620         the right thing with narrow args.
9621         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9622         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9623         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9624         * tests/test-intprops.c: Check for bugs and test new behavior.
9626 2019-08-14  Bruno Haible  <bruno@clisp.org>
9628         get_progname_of: New module.
9629         * lib/get_progname_of.h: New file.
9630         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9631         * lib/getprogname.c (getprogname): Tweak coding style.
9632         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9633         * modules/get_progname_of: New file.
9635 2019-08-14  Bruno Haible  <bruno@clisp.org>
9637         get_ppid_of: New module.
9638         * lib/get_ppid_of.h: New file.
9639         * lib/get_ppid_of.c: New file.
9640         * modules/get_ppid_of: New file.
9642 2019-08-13  Bruno Haible  <bruno@clisp.org>
9644         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9645         * tests/test-libtextstyle.c (main): Do not emit styling when the
9646         environment variable NO_COLOR is set.
9648 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9650         verify: improve diagnostic quality in recent GCC
9651         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9652         useful line number containing the top-level caller of the macro.
9653         So, bring back the older way of issuing a diagnostic containing
9654         the top-level call’s arg, so that it is easier to diagnose
9655         ‘verify’ failures with recent GCC.
9656         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9657         Bring back DIAGNOSTIC arg.  All callers changed.
9658         (verify): Just use _GL_VERIFY.
9660 2019-08-11  Bruno Haible  <bruno@clisp.org>
9662         localcharset: Add more aliases for OS/2.
9663         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9664         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9665         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9667 2019-08-10  Eric Blake  <eblake@redhat.com>
9669         configmake: Update advice on usage.
9670         * modules/configmake (Include): No longer necessary to include
9671         last, since configmake.h itself worries about collision avoidance.
9673 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9675         parse-datetime: fix 'T' military timezone handling
9676         * lib/parse-datetime.y (zone):
9677         follow-up to the previous commit: the 'T' case is handled outside the
9678         conversion table (used as either military timezone UTC-7 or ISO8601
9679         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9680         timezone letters.
9682 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9684         parse-datetime: fix military timezone letters
9685         Problem and trivial fix reported by Neil Hoggarth in:
9686         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9687         * lib/parse-datetime.y (military_table):
9688         Do it the right way, not the RFC 822 way.
9690 2019-08-08  Eric Blake  <eblake@redhat.com>
9692         configmake: Avoid namespace pollution issue on mingw.
9693         * modules/configmake (Makefile.am): If the project uses
9694         <winsock2.h>, include that header before defining DATADIR.
9696 2019-07-28  Bruno Haible  <bruno@clisp.org>
9698         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9699         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9701 2019-07-24  Bruno Haible  <bruno@clisp.org>
9703         pthread-h: Fix definitions of types and macros on mingw.
9704         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9705         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9706         not in use.
9707         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9708         'pthread-once' is not in use.
9709         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9710         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9711         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9712         in use.
9713         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9714         Define also when module 'pthread-rwlock' is not in use.
9715         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9716         also when module 'pthread-cond' is not in use.
9717         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9718         'pthread-tss' is not in use.
9719         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9720         use.
9722 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9724         crypto/gc: Cope with libgcrypt without SM3.
9725         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9727 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9729         backupfile: fix resource leak on memory failure
9730         Problem found by Coverity (CID 1484214).
9731         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9733 2019-07-22  Bruno Haible  <bruno@clisp.org>
9735         Avoid missing-declarations warning in various tests.
9736         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9737         test6, test_optional, test7, test8, test9, test10, test11, test12,
9738         test13, test14, test15, test_fun): Declare static.
9739         * tests/test-cnd.c (test_cnd_wait): Likewise.
9740         * tests/test-cond.c (test_cond): Likewise.
9742 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9744         pthread tests: Avoid missing-declarations warning.
9745         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9747 2019-07-19  Bruno Haible  <bruno@clisp.org>
9749         parse-datetime: Avoid warnings from bison versions >= 3.3.
9750         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9751         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9753 2019-07-19  Bruno Haible  <bruno@clisp.org>
9755         parse-datetime: Require Bison 2.4 or newer.
9756         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9757         Code taken from gettext's intl.m4.
9758         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9759         of YACC.
9761 2019-07-19  Bruno Haible  <bruno@clisp.org>
9763         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9764         * lib/areadlink-with-size.c: Include <string.h>.
9765         * lib/areadlinkat-with-size.c: Likewise.
9766         * lib/xgethostname.c: Likewise.
9767         * lib/xgetdomainname.c: Likewise.
9769 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9771         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9772         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9773         "%pure-parser".  The former is available since Bison 2.3b (2008),
9774         while the latter is marked as obsolete since version 3.4 (May 2019).
9776 2019-07-16  Bruno Haible  <bruno@clisp.org>
9778         update-copyright: Make it work again (regression from 2019-06-15).
9779         Reported by Brian C. Lane <bcl@redhat.com>.
9780         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9782 2019-07-14  Bruno Haible  <bruno@clisp.org>
9784         doc: Update info about <pthread.h>.
9785         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9786         of 'pthread'.
9788 2019-07-14  Bruno Haible  <bruno@clisp.org>
9790         pthread_sigmask tests: Use new multithread modules.
9791         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9792         glthread/thread.h.
9793         (main_thread, killer_thread): Change type to pthread_t.
9794         (main): Update accordingly.
9795         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9796         thread.
9798 2019-07-14  Bruno Haible  <bruno@clisp.org>
9800         pthread-tss: Add tests.
9801         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9802         tests/test-tss.c.
9803         * modules/pthread-tss-tests: New file.
9805 2019-07-14  Bruno Haible  <bruno@clisp.org>
9807         pthread-cond: Add tests.
9808         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9809         tests/test-cnd.c.
9810         * modules/pthread-cond-tests: New file.
9812 2019-07-14  Bruno Haible  <bruno@clisp.org>
9814         pthread-rwlock: Add tests.
9815         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9816         * modules/pthread-rwlock-tests: New file.
9818 2019-07-14  Bruno Haible  <bruno@clisp.org>
9820         pthread-mutex: Add tests.
9821         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9822         tests/test-mtx.c.
9823         * modules/pthread-mutex-tests: New file.
9825 2019-07-14  Bruno Haible  <bruno@clisp.org>
9827         pthread-once: Add tests.
9828         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9829         tests/test-call_once.c.
9830         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9831         tests/test-mtx.c.
9832         * modules/pthread-once-tests: New file.
9834 2019-07-14  Bruno Haible  <bruno@clisp.org>
9836         pthread-thread: Add tests.
9837         * tests/test-pthread-thread.c: New file, based on
9838         tests/test-thread_create.c and tests/test-thrd_create.c.
9839         * modules/pthread-thread-tests: New file.
9841 2019-07-14  Bruno Haible  <bruno@clisp.org>
9843         pthread: Turn into a convenience module.
9844         * lib/pthread.in.h: Remove declarations for extern inline functions.
9845         * lib/pthread.c: Remove file.
9846         * modules/pthread (Files): Remove it.
9847         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9848         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9849         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9850         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9851         GNULIB_PTHREAD.
9852         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9854 2019-07-14  Bruno Haible  <bruno@clisp.org>
9856         pthread-spin: New module.
9857         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9858         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9859         inline definitions.
9860         * lib/pthread-spin.c: New file.
9861         * m4/pthread-spin.m4: New file.
9862         * modules/pthread-spin: New file.
9863         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9864         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9865         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9866         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9867         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9869 2019-07-14  Bruno Haible  <bruno@clisp.org>
9871         pthread-tss: New module.
9872         * lib/pthread-tss.c: New file.
9873         * m4/pthread-tss.m4: New file.
9874         * modules/pthread-tss: New file.
9875         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9876         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9877         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9878         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9880 2019-07-14  Bruno Haible  <bruno@clisp.org>
9882         pthread-cond: New module.
9883         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9884         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9885         * lib/pthread-cond.c: New file.
9886         * m4/pthread-cond.m4: New file.
9887         * modules/pthread-cond: New file.
9888         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9889         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9890         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9891         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9892         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9893         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9894         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9895         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9897 2019-07-14  Bruno Haible  <bruno@clisp.org>
9899         pthread-rwlock: New module.
9900         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9901         * m4/pthread-rwlock.m4: New file.
9902         * modules/pthread-rwlock: New file.
9903         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9904         and the Android problem.
9905         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9906         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9907         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9908         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9909         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9910         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9911         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9912         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9913         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9914         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9916 2019-07-14  Bruno Haible  <bruno@clisp.org>
9918         pthread-mutex: New module.
9919         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9920         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9921         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9922         pthread_mutex_unlock): Remove inline definitions.
9923         * lib/pthread-mutex.c: New file.
9924         * m4/pthread-mutex.m4: New file.
9925         * modules/pthread-mutex: New file.
9926         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9927         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9928         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9929         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9930         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9931         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9932         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9933         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9934         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9935         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9936         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9937         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9939 2019-07-14  Bruno Haible  <bruno@clisp.org>
9941         pthread-once: New module.
9942         * lib/pthread-once.c: New file.
9943         * m4/pthread-once.m4: New file.
9944         * modules/pthread-once: New file.
9945         * doc/posix-functions/pthread_once.texi: Mention the new module.
9947 2019-07-14  Bruno Haible  <bruno@clisp.org>
9949         pthread-thread: New module.
9950         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9951         inline definitions.
9952         * lib/pthread-thread.c: New file.
9953         * m4/pthread-thread.m4: New file.
9954         * modules/pthread-thread: New file.
9955         * doc/posix-functions/pthread_create.texi: Mention the new module.
9956         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9957         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9958         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9959         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9960         * doc/posix-functions/pthread_self.texi: Likewise.
9961         * doc/posix-functions/pthread_equal.texi: Likewise.
9962         * doc/posix-functions/pthread_detach.texi: Likewise.
9963         * doc/posix-functions/pthread_join.texi: Likewise.
9964         * doc/posix-functions/pthread_exit.texi: Likewise.
9966 2019-07-14  Bruno Haible  <bruno@clisp.org>
9968         pthread-h: Prepare for adding new modules.
9969         * lib/pthread.in.h: Define the types and macros for each of the
9970         facilities separately.
9971         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9972         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9973         HAVE_PTHREAD_PROCESS_SHARED.
9974         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9975         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9976         HAVE_PTHREAD_PROCESS_SHARED.
9977         * modules/pthread-h (Makefile.am): Substitute
9978         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9979         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9981 2019-07-14  Bruno Haible  <bruno@clisp.org>
9983         pthread-h: Add declarations of essential pthread functions.
9984         * lib/pthread.in.h: Include snippets.
9985         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9986         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9987         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9988         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9989         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9990         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9991         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9992         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9993         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9994         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9995         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9996         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9997         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9998         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9999         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
10000         pthread_key_create, pthread_setspecific, pthread_getspecific,
10001         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
10002         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
10003         declarations.
10004         (pthread_mutex_timedlock): Move declaration.
10005         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
10006         declared.
10007         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
10008         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
10009         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
10010         HAVE_* and REPLACE_* variables for the new functions.
10011         * modules/pthread-h (Depends-on): Add snippet/c++defs,
10012         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
10013         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
10014         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
10015         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
10016         variables for the new functions. Split the sed script, to avoid the
10017         limit of 99 commands of HP-UX sed.
10018         * tests/test-pthread-c++.cc: Check the signature of the new functions.
10020 2019-07-14  Bruno Haible  <bruno@clisp.org>
10022         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
10023         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
10024         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
10025         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
10026         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
10027         * modules/pthread-h (Depends-on): Add threadlib.
10028         (Link): Change to $(LIBTHREAD).
10029         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
10030         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
10032 2019-07-14  Bruno Haible  <bruno@clisp.org>
10034         pthread-h: Add C++ tests.
10035         * tests/test-pthread-c++.cc: New file.
10036         * modules/pthread-h-c++-tests: New file.
10038 2019-07-14  Bruno Haible  <bruno@clisp.org>
10040         pthread-h: Add tests.
10041         * tests/test-pthread.c: New file.
10042         * modules/pthread-h-tests: New file.
10044 2019-07-14  Bruno Haible  <bruno@clisp.org>
10046         pthread-h: New module.
10047         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
10048         is 1.
10049         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
10050         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
10051         <pthread.h> pollutes the namespace; instead, prepare for generating a
10052         pthread.h always. Substitute HAVE_PTHREAD_H here.
10053         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
10054         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
10055         * modules/pthread-h: New file, based on modules/pthread.
10056         * modules/pthread: Rely on 'pthread-h'.
10057         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
10058         Update.
10059         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
10060         pthread.
10062 2019-07-14  Bruno Haible  <bruno@clisp.org>
10064         sched_yield: New module.
10065         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
10066         (sched_yield): New declaration.
10067         * lib/sched_yield.c: New file.
10068         * m4/sched_yield.m4: New file.
10069         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
10070         provide a replacement sched.h always. Test whether sched_yield is
10071         declared.
10072         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
10073         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
10074         (Makefile.am): Provide a replacement sched.h always. Substitute
10075         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
10076         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
10077         * modules/sched_yield: New file.
10078         * doc/posix-functions/sched_yield.texi: Mention the new module.
10080 2019-07-14  Bruno Haible  <bruno@clisp.org>
10082         windows-spin: New module.
10083         * lib/windows-spin.h: New file.
10084         * lib/windows-spin.c: New file.
10085         * modules/windows-spin: New file.
10087 2019-07-14  Bruno Haible  <bruno@clisp.org>
10089         windows-timedrwlock: New module.
10090         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
10091         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
10092         windows-cond.c.
10093         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
10094         redefinition conflict with windows-timedrwlock.h.
10095         * modules/windows-timedrwlock: New file.
10097 2019-07-14  Bruno Haible  <bruno@clisp.org>
10099         windows-rwlock: New module.
10100         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
10101         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
10102         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
10103         windows-initguard.h.
10104         (gl_rwlock_t): Define using glwthread_rwlock_t.
10105         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
10106         (glthread_rwlock_init): Define using glwthread_rwlock_init.
10107         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
10108         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
10109         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
10110         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
10111         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
10112         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
10113         glthread_rwlock_destroy_func): Remove declarations.
10114         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
10115         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
10116         gl_waitqueue_notify_all, glthread_rwlock_init_func,
10117         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
10118         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
10119         functions.
10120         * modules/windows-rwlock: New file.
10121         * modules/lock (Depends-on): Add windows-rwlock.
10123 2019-07-14  Bruno Haible  <bruno@clisp.org>
10125         windows-thread: Add support for creating a thread in detached state.
10126         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
10127         (glwthread_thread_create): Add attr argument.
10128         * lib/windows-thread.c (glwthread_thread_create): Likewise.
10129         * lib/glthread/thread.h (glthread_create): Update.
10130         * lib/thrd.c (thrd_create): Update.
10132 2019-07-14  Bruno Haible  <bruno@clisp.org>
10134         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
10135         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
10136         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
10137         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
10138         * lib/windows-mutex.h: Update.
10139         * lib/windows-recmutex.h: Likewise.
10140         * lib/windows-timedmutex.h: Likewise.
10141         * lib/windows-timedrecmutex.h: Likewise.
10142         * lib/windows-cond.h: Likewise.
10143         * lib/glthread/lock.h: Likewise.
10144         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
10145         lib/windows-spinlock.h.
10146         * modules/windows-recmutex (Files): Likewise.
10147         * modules/windows-timedmutex (Files): Likewise.
10148         * modules/windows-timedrecmutex (Files): Likewise.
10149         * modules/windows-cond (Files): Likewise.
10150         * modules/threads-h (Files): Likewise.
10152 2019-07-14  Bruno Haible  <bruno@clisp.org>
10154         doc: Fix info about pthread API in HP-UX.
10155         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
10157 2019-07-14  Bruno Haible  <bruno@clisp.org>
10159         threads-h: Fix generation of threads.h.
10160         * modules/threads-h (Makefile.am): Insert the required header file
10161         snippets.
10163 2019-07-09  Bruno Haible  <bruno@clisp.org>
10165         striconveh test: Fix a compilation failure when iconv is not available.
10166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10167         * tests/test-striconveh.c (main): Move iconv_close invocations inside
10168         HAVE_ICONV.
10170 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
10172         argmatch: adjust columns for help2man.
10173         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
10174         requires column 20 or more, return 20.
10176 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10178         areadlink-with-size: avoid realloc when size==0
10179         * lib/areadlink-with-size.c (areadlink_with_size):
10180         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
10181         Reallocate at the end to the actual size, to avoid memory waste,
10182         as suggested by Bruno Haible.  But when the guessed size is zero -
10183         useful when the size is unknown - do the initial small readlink
10184         into the stack, to avoid that realloc in the usual case.
10186 2019-07-06  Pádraig Brady  <P@draigBrady.com>
10188         areadlink-with-size: guess a buffer size with 0 size
10189         The size is usually taken from st_size, which can be zero,
10190         resulting in inefficient operation.
10191         Instead let zero select an initial memory allocation
10192         of 128 bytes, which most symlinks fit within.
10193         * lib/areadlink-with-size.c (areadlink_with_size):
10194         Start with a 128 byte buffer, for SIZE == 0.
10195         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
10197 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
10199         Replace manually crafted hex regexes with [:xdigit:]
10200         * build-aux/gitlog-to-changelog (parse_amend_file)
10201         (git_dir_option):
10202         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
10203         This patch is backported from Emacs (Bug#36167).
10205 2019-07-06  Bruno Haible  <bruno@clisp.org>
10207         error: Fix documentation.
10208         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
10209         module provides.
10210         * doc/glibc-functions/error_message_count.texi: Likewise.
10211         * doc/glibc-functions/error_one_per_line.texi: Likewise.
10212         * doc/glibc-functions/error_print_progname.texi: Likewise.
10214 2019-07-06  Bruno Haible  <bruno@clisp.org>
10216         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
10217         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
10218         and older is unsupported.
10219         * doc/**/*.texi: Update.
10221 2019-07-06  Bruno Haible  <bruno@clisp.org>
10223         doc: Remove documentation of Linux libc5 as a supported platform.
10224         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
10225         to Linux libc5.
10226         * doc/posix-functions/iswalpha.texi: Likewise.
10227         * doc/posix-functions/iswblank.texi: Likewise.
10228         * doc/posix-functions/iswcntrl.texi: Likewise.
10229         * doc/posix-functions/iswdigit.texi: Likewise.
10230         * doc/posix-functions/iswgraph.texi: Likewise.
10231         * doc/posix-functions/iswlower.texi: Likewise.
10232         * doc/posix-functions/iswprint.texi: Likewise.
10233         * doc/posix-functions/iswpunct.texi: Likewise.
10234         * doc/posix-functions/iswspace.texi: Likewise.
10235         * doc/posix-functions/iswupper.texi: Likewise.
10236         * doc/posix-functions/iswxdigit.texi: Likewise.
10237         * doc/posix-functions/snprintf.texi: Likewise.
10238         * doc/posix-functions/vsnprintf.texi: Likewise.
10240 2019-07-06  Bruno Haible  <bruno@clisp.org>
10242         doc: Remove documentation of Tandem/NSK as a supported platform.
10243         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
10244         Tandem/NSK.
10245         * doc/**/*.texi: Update.
10247 2019-07-06  Bruno Haible  <bruno@clisp.org>
10249         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
10250         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
10251         and older is unsupported.
10252         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
10253         Mac OS X 10.4 and older.
10254         * doc/posix-functions/asinl.texi: Likewise.
10255         * doc/posix-functions/atanl.texi: Likewise.
10256         * doc/posix-functions/cosl.texi: Likewise.
10257         * doc/posix-functions/expl.texi: Likewise.
10258         * doc/posix-functions/frexpl.texi: Likewise.
10259         * doc/posix-functions/gettimeofday.texi: Likewise.
10260         * doc/posix-functions/logl.texi: Likewise.
10261         * doc/posix-functions/mkstemp.texi: Likewise.
10262         * doc/posix-functions/sinl.texi: Likewise.
10263         * doc/posix-functions/sqrtl.texi: Likewise.
10264         * doc/posix-functions/tanl.texi: Likewise.
10265         * doc/posix-functions/wcswidth.texi: Likewise.
10266         * doc/**/*.texi: Update.
10268 2019-07-06  Bruno Haible  <bruno@clisp.org>
10270         doc: Remove documentation of AIX 4 as a supported platform.
10271         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
10272         unsupported.
10273         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
10274         workarounds.
10275         * doc/posix-functions/strnlen.texi: Likewise.
10276         * doc/posix-headers/inttypes.texi: Likewise.
10277         * doc/**/*.texi: Update.
10279 2019-07-06  Bruno Haible  <bruno@clisp.org>
10281         doc: Remove documentation of HP-UX 10 as a supported platform.
10282         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
10283         unsupported.
10284         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
10285         workarounds.
10286         * doc/posix-functions/gmtime_r.texi: Likewise.
10287         * doc/posix-functions/localtime_r.texi: Likewise.
10288         * doc/posix-functions/mkstemp.texi: Likewise.
10289         * doc/**/*.texi: Update.
10291 2019-07-06  Bruno Haible  <bruno@clisp.org>
10293         doc: Remove documentation of Interix 3.5 as a supported platform.
10294         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
10295         unsupported.
10296         * doc/posix-functions/select.texi: Don't mention Interix specific
10297         workarounds.
10298         * doc/posix-headers/signal.texi: Likewise.
10299         * doc/**/*.texi: Update.
10301 2019-07-06  Bruno Haible  <bruno@clisp.org>
10303         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
10304         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
10305         unsupported.
10306         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
10307         workarounds.
10308         * doc/posix-functions/nl_langinfo.texi: Likewise.
10309         * doc/posix-functions/remainder.texi: Likewise.
10310         * doc/posix-functions/towlower.texi: Likewise.
10311         * doc/posix-functions/towupper.texi: Likewise.
10312         * doc/posix-functions/vsnprintf.texi: Likewise.
10313         * doc/posix-functions/wcscat.texi: Likewise.
10314         * doc/posix-functions/wcschr.texi: Likewise.
10315         * doc/posix-functions/wcscmp.texi: Likewise.
10316         * doc/posix-functions/wcscpy.texi: Likewise.
10317         * doc/posix-functions/wcscspn.texi: Likewise.
10318         * doc/posix-functions/wcslen.texi: Likewise.
10319         * doc/posix-functions/wcsncat.texi: Likewise.
10320         * doc/posix-functions/wcsncmp.texi: Likewise.
10321         * doc/posix-functions/wcsncpy.texi: Likewise.
10322         * doc/posix-functions/wcspbrk.texi: Likewise.
10323         * doc/posix-functions/wcsrchr.texi: Likewise.
10324         * doc/posix-functions/wcsspn.texi: Likewise.
10325         * doc/posix-headers/langinfo.texi: Likewise.
10326         * doc/posix-headers/signal.texi: Likewise.
10327         * doc/posix-headers/wchar.texi: Likewise.
10328         * doc/posix-headers/wctype.texi: Likewise.
10329         * doc/**/*.texi: Update.
10331 2019-07-05  Bruno Haible  <bruno@clisp.org>
10333         doc: Remove documentation of OSF/1 as supported platform.
10334         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
10335         unsupported.
10336         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
10337         workarounds.
10338         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
10339         * doc/glibc-functions/ptsname_r.texi: Likewise.
10340         * doc/posix-functions/ceil.texi: Likewise.
10341         * doc/posix-functions/ceilf.texi: Likewise.
10342         * doc/posix-functions/ceill.texi: Likewise.
10343         * doc/posix-functions/fchdir.texi: Likewise.
10344         * doc/posix-functions/floor.texi: Likewise.
10345         * doc/posix-functions/floorf.texi: Likewise.
10346         * doc/posix-functions/fmod.texi: Likewise.
10347         * doc/posix-functions/fmodf.texi: Likewise.
10348         * doc/posix-functions/fmodl.texi: Likewise.
10349         * doc/posix-functions/log.texi: Likewise.
10350         * doc/posix-functions/logf.texi: Likewise.
10351         * doc/posix-functions/logl.texi: Likewise.
10352         * doc/posix-functions/log10.texi: Likewise.
10353         * doc/posix-functions/log10f.texi: Likewise.
10354         * doc/posix-functions/log10l.texi: Likewise.
10355         * doc/posix-functions/log2.texi: Likewise.
10356         * doc/posix-functions/log2f.texi: Likewise.
10357         * doc/posix-functions/log2l.texi: Likewise.
10358         * doc/posix-functions/mbrtowc.texi: Likewise.
10359         * doc/posix-functions/recv.texi: Likewise.
10360         * doc/posix-functions/recvfrom.texi: Likewise.
10361         * doc/posix-functions/remainder.texi: Likewise.
10362         * doc/posix-functions/remainderf.texi: Likewise.
10363         * doc/posix-functions/remainderl.texi: Likewise.
10364         * doc/posix-functions/round.texi: Likewise.
10365         * doc/posix-functions/roundf.texi: Likewise.
10366         * doc/posix-functions/roundl.texi: Likewise.
10367         * doc/posix-functions/send.texi: Likewise.
10368         * doc/posix-functions/sendto.texi: Likewise.
10369         * doc/posix-functions/setenv.texi: Likewise.
10370         * doc/posix-functions/snprintf.texi: Likewise.
10371         * doc/posix-functions/tcgetsid.texi: Likewise.
10372         * doc/posix-functions/trunc.texi: Likewise.
10373         * doc/posix-functions/truncf.texi: Likewise.
10374         * doc/posix-functions/truncl.texi: Likewise.
10375         * doc/posix-functions/ttyname_r.texi: Likewise.
10376         * doc/posix-functions/unsetenv.texi: Likewise.
10377         * doc/posix-functions/wcsrtombs.texi: Likewise.
10378         * doc/posix-headers/sys_select.texi: Likewise.
10379         * doc/posix-headers/wchar.texi: Likewise.
10380         * doc/posix-headers/wctype.texi: Likewise.
10381         * doc/**/*.texi: Update.
10383 2019-07-05  Bruno Haible  <bruno@clisp.org>
10385         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
10386         * doc/**/*.texi: Update.
10388 2019-07-05  Bruno Haible  <bruno@clisp.org>
10390         doc: Remove documentation of Solaris 8 and older as supported platforms.
10391         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
10392         unsupported.
10393         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
10394         workarounds.
10395         * doc/posix-functions/memcmp.texi: Likewise.
10396         * doc/posix-functions/rename.texi: Likewise.
10397         * doc/posix-functions/tzset.texi: Likewise.
10398         * doc/posix-headers/wctype.texi: Likewise.
10399         * doc/**/*.texi: Update.
10401 2019-07-05  Bruno Haible  <bruno@clisp.org>
10403         doc: Remove documentation of Interix 3.5 as a supported platform.
10404         * doc/**/*.texi: Update.
10406 2019-07-05  Bruno Haible  <bruno@clisp.org>
10408         doc: Remove documentation of BeOS as a supported platform.
10409         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
10410         unsupported.
10411         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
10412         * doc/posix-functions/getdelim.texi: Likewise.
10413         * doc/**/*.texi: Update.
10415 2019-07-05  Bruno Haible  <bruno@clisp.org>
10417         thread, lock, cond, tls: Remove support for Pth threads.
10418         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10419         --enable-threads=pth any more.
10420         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
10421         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
10422         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
10423         threads and ISO C11 threads.
10424         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
10425         * lib/glthread/lock.h: Likewise.
10426         * lib/glthread/lock.c: Likewise.
10427         * lib/glthread/cond.h: Likewise.
10428         * lib/glthread/cond.c: Likewise.
10429         * lib/glthread/tls.h: Likewise.
10430         * lib/glthread/tls.c: Likewise.
10431         * lib/glthread/yield.h: Likewise.
10432         * lib/regex_internal.h: Likewise.
10433         * tests/test-thread_create.c: Likewise.
10434         * tests/test-lock.c: Likewise.
10435         * tests/test-cond.c: Likewise.
10436         * tests/test-tls.c: Likewise.
10437         * tests/test-rwlock1.c: Don't include glthread/yield.h.
10438         (main): Sleep without calling gl_thread_yield.
10440 2019-07-05  Bruno Haible  <bruno@clisp.org>
10442         thread, lock, cond, tls: Remove support for old Solaris threads.
10443         Solaris >= 2.5.1 has POSIX threads.
10444         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10445         --enable-threads=solaris any more.
10446         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
10447         * lib/glthread/thread.c: Update comment.
10448         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
10449         * lib/glthread/lock.h: Likewise.
10450         * lib/glthread/lock.c: Likewise.
10451         * lib/glthread/cond.h: Likewise.
10452         * lib/glthread/cond.c: Likewise.
10453         * lib/glthread/tls.h: Likewise.
10454         * lib/glthread/tls.c: Likewise.
10455         * lib/glthread/yield.h: Likewise.
10456         * lib/regex_internal.h: Likewise.
10457         * tests/test-thread_create.c: Likewise.
10458         * tests/test-lock.c: Likewise.
10459         * tests/test-cond.c: Likewise.
10460         * tests/test-tls.c: Likewise.
10462 2019-07-05  Bruno Haible  <bruno@clisp.org>
10464         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
10465         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
10466         needed size is equal to the allocated size.
10467         * lib/getcwd.c (__getcwd): Likewise.
10469 2019-07-05  Bruno Haible  <bruno@clisp.org>
10471         xgetdomainname: Don't return an excessive memory allocation.
10472         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
10473         before returning it.
10475 2019-07-05  Bruno Haible  <bruno@clisp.org>
10477         xgethostname: Don't return an excessive memory allocation.
10478         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
10479         returning it.
10481 2019-07-05  Bruno Haible  <bruno@clisp.org>
10483         areadlinkat-with-size: Don't return an excessive memory allocation.
10484         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
10485         before returning it.
10487 2019-07-05  Bruno Haible  <bruno@clisp.org>
10489         areadlink-with-size: Don't return an excessive memory allocation.
10490         Reported by Andreas Dilger <adilger@whamcloud.com>.
10491         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
10492         before returning it.
10494 2019-07-03  Bruno Haible  <bruno@clisp.org>
10496         renameatu: Fix test failure on MSVC.
10497         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
10498         empty string.
10500 2019-07-03  Bruno Haible  <bruno@clisp.org>
10502         mbrtowc: Fix invalid use of mbtowc() on MSVC.
10503         * lib/mbrtowc.c: Include glthread/lock.h.
10504         (mbtowc_lock): New variable.
10505         (mbrtowc): Treat UTF-8 encoding without locking. For the other
10506         encodings, explicitly reset the internal state of mbtowc, and protect
10507         this through a lock.
10508         * modules/mbrtowc (Depends-on): Add lock.
10510 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
10512         argmatch: don't define _ in the header.
10513         Reported by Jim Meyering.
10514         * lib/argmatch.h (N_, _): Don't define.
10515         Use gettext instead.
10516         * lib/argmatch.h (_): Define.
10517         * tests/test-argmatch.c (N_): Define.
10519 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10521         verify: document ‘assume’ better
10522         * lib/verify.h: Reword doc (Bug#36370).
10524 2019-07-02  Bruno Haible  <bruno@clisp.org>
10526         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
10527         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
10528         "CPutf8".
10529         * lib/nl_langinfo.c (ctype_codeset): Likewise.
10531 2019-07-02  Bruno Haible  <bruno@clisp.org>
10533         getcwd: Fix crash when invoked with size = 0 on MSVC.
10534         * lib/getcwd.c: Include msvc-inval.h.
10535         (getcwd_nothrow): New function/macro.
10536         (getcwd_system): New macro.
10537         (__getcwd): Use it instead of getcwd.
10538         * modules/getcwd (Depends-on): Add msvc-inval.
10539         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
10541 2019-07-02  Bruno Haible  <bruno@clisp.org>
10543         nonblocking-pipe tests: Fix test failure on MSVC.
10544         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
10545         native Windows.
10547 2019-07-02  Bruno Haible  <bruno@clisp.org>
10549         usleep: Implement with millisecond resolution on native Windows.
10550         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
10551         * doc/pastposix-functions/usleep.texi: Update accordingly.
10553 2019-07-02  Bruno Haible  <bruno@clisp.org>
10555         lstat tests: Fix test failure on MSVC.
10556         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
10557         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10559 2019-07-02  Bruno Haible  <bruno@clisp.org>
10561         stat tests: Fix test failure on MSVC.
10562         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
10563         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10565 2019-07-02  Bruno Haible  <bruno@clisp.org>
10567         getaddrinfo tests: Fix test failure on MSVC.
10568         * tests/test-getaddrinfo.c: Include sockets.h.
10569         (main): Invoke gl_sockets_startup.
10570         * modules/getaddrinfo-tests (Depends-on): Add sockets.
10572 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
10574         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
10575         * lib/poll.c: Call Windows native select() with Windows native timeval.
10577 2019-06-30  Bruno Haible  <bruno@clisp.org>
10579         argmatch: Fix compilation errors.
10580         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
10581         * tests/test-argmatch.c (main): Update after last-minute function names
10582         change.
10584 2019-06-30  Bruno Haible  <bruno@clisp.org>
10586         Include <stdlib.h> when needed.
10587         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10588         * lib/fcntl.c: Likewise.
10589         * lib/mbscasestr.c: Likewise.
10590         * lib/mbssep.c: Likewise.
10591         * lib/mbsstr.c: Likewise.
10592         * lib/openat.c: Include <stdlib.h>, needed for free().
10593         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10594         abort().
10596 2019-06-30  Bruno Haible  <bruno@clisp.org>
10598         Include <stdlib.h> when needed.
10599         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10600         * lib/faccessat.c: Likewise.
10601         * lib/fchmodat.c: Likewise.
10602         * lib/fchownat.c: Likewise.
10603         * lib/fstatat.c: Likewise.
10604         * lib/mkfifoat.c: Likewise.
10605         * lib/mknodat.c: Likewise.
10606         * lib/readlinkat.c: Likewise.
10607         * lib/symlinkat.c: Likewise.
10608         * lib/utimensat.c: Likewise.
10609         * lib/mkdirat.c: Likewise. Include also the specification header.
10611 2019-06-30  Bruno Haible  <bruno@clisp.org>
10613         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10614         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10615         from gl_PREREQ_SYS_H_SOCKET.
10616         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10617         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10618         gl_PREREQ_SYS_H_WS2TCPIP.
10619         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10620         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10621         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10623 2019-06-30  Bruno Haible  <bruno@clisp.org>
10625         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10626         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10627         REPLACE_INET_NTOP to 1 always.
10628         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10629         REPLACE_INET_PTON to 1 always.
10631 2019-06-30  Bruno Haible  <bruno@clisp.org>
10633         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10634         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10635         not REPLACE_INET_NTOP.
10637 2019-06-30  Bruno Haible  <bruno@clisp.org>
10639         poll: Add comment.
10640         * lib/poll.c: Add comment about WSAPoll.
10642 2019-06-30  Bruno Haible  <bruno@clisp.org>
10644         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10645         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10646         * lib/poll.in.h: Include <winsock2.h>.
10647         (POLL*, pollfd): Override on native Windows.
10648         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10649         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10650         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10652 2019-06-28  Bruno Haible  <bruno@clisp.org>
10654         accept4: Fix compilation error on OpenIndiana.
10655         Reported by Michal Nowak <mnowak@startmail.com>
10656         via Mark H Weaver <mhw@netris.org>.
10657         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10658         whether it exists as a function.
10660 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10662         strverscmp: sync from glibc
10663         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10664         comments, include libc-config.h, define __strverscmp to be
10665         strverscmp, and don’t assume types line uint8_t and int8_t that
10666         that C99 doesn’t guarantee.
10667         [!_LIBC]: Include libc-config.h; define __strverscmp.
10668         Include stdint.h.
10669         (__strverscmp): Assume C99.  Use uint_least8_t
10670         and int_least8_t instead of unsigned char and signed char.
10671         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10673 2019-06-25  Bruno Haible  <bruno@clisp.org>
10675         tss tests: Add tests for destructors and races.
10676         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10677         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10678         functions.
10679         (main): Invoke them.
10680         * modules/tls-tests (Depends-on): Add mtx.
10682 2019-06-25  Bruno Haible  <bruno@clisp.org>
10684         tls tests: Add tests for destructors and races.
10685         * tests/test-tls.c: Include glthread/lock.h.
10686         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10687         functions.
10688         (main): Invoke them.
10689         * modules/tls-tests (Depends-on): Add lock.
10691 2019-06-25  Bruno Haible  <bruno@clisp.org>
10693         windows-tls: Implement TLS key destructors for native Windows.
10694         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10695         declaration.
10696         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10697         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10698         (dtor_table_init_once, dtor_table_lock: New variables.
10699         (struct dtor): New type.
10700         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10701         dtor_processing_threads): New variables.
10702         (dtor_table_initialize, dtor_table_ensure_initialized,
10703         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10704         functions.
10705         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10706         handle non-NULL destructors.
10707         * modules/windows-tls (Depends-on): Add windows-once.
10708         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10709         Use the functions declared in windows-tls.h.
10710         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10711         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10712         * lib/windows-thread.c: Include windows-tls.h.
10713         (wrapper_func, glwthread_thread_exit): Invoke
10714         glwthread_tls_process_destructors.
10715         * modules/windows-thread (Depends-on): Add windows-tls.
10717 2019-06-25  Bruno Haible  <bruno@clisp.org>
10719         threadlib: Avoid autoconf warning "was expanded before it was required".
10720         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10722 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10724         argmatch: remove duplicate const qualifier
10725         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10727 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10729         unistd: stddef.h and sys/types.h namespace cleanup
10730         * lib/unistd.in.h [__GLIBC__]:
10731         Do not include stddef.h or sys/types.h.
10732         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10733         supposed to declare off_t and ssize_t.  Problem found when looking
10734         at why @GNULIB_PWRITE@ was different from the newly-added
10735         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10737 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10739         maintainer-makefile: restore portability to non-GNU awks
10740         Reported by Tim Rühsen.
10741         * top/maint.mk (AWK): New variable.  Use it.
10742         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10744 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10746         Document setvbuf _IOLBF problem
10747         * doc/posix-functions/setvbuf.texi (setvbuf):
10748         Document MS-Windows portability problem with _IOLBF.
10750         Document lseek SEEK_DATA/SEEK_HOLE
10751         * doc/posix-functions/lseek.texi (lseek):
10752         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10754 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10756         argmatch: put all the docs member last.
10757         Reported by Bruno Haible.
10758         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10759         member before the docs done.
10760         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10762 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10764         argmatch: add support to generate the usage message.
10765         * lib/argmatch.c: Move some #includes and gettext support to...
10766         * lib/argmatch.h: here.
10767         (ARGMATCH_DEFINE_GROUP): New macro.
10768         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10769         (argmatch_backup_group): New.
10770         (CHECK): New.
10771         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10772         argmatch_backup_argument and argmatch_backup_usage.
10773         * modules/argmatch: We depend on c99.
10774         * doc/argmatch.texi (Recognizing Option Arguments): New.
10775         * doc/gnulib.texi: Use it.
10777 2019-06-21  Bruno Haible  <bruno@clisp.org>
10779         thrd: Add comment.
10780         * lib/thrd.c (pthread_main_func): Add comment.
10782 2019-06-21  Bruno Haible  <bruno@clisp.org>
10784         threads-h: Define 'thread_local' if and only if it actually works.
10785         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10786         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10787         Oracle Solaris Studio C. Compile a simple program, to see whether
10788         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10789         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10790         * lib/threads.in.h (thread_local): Undefine if it does not work.
10791         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10792         (Link): Mention LIBTHREADLOCAL.
10793         * tests/test-threads.c: Don't check that thread_local is defined.
10794         * tests/test-thread_local.c: New file.
10795         * modules/threads-h-tests (Files): Add it and macros.h.
10796         (Depends-on): Add thrd and stdint.
10797         (configure.ac): Test whether 'alarm' is declared.
10798         (Makefile.am): Arrange to build and link test-thread_local.
10799         * doc/posix-headers/threads.texi: Mention the platforms that don't
10800         support 'thread_local'.
10802 2019-06-20  Bruno Haible  <bruno@clisp.org>
10804         threads-h: Simplify link dependencies.
10805         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10806         Don't set LTLIBSTDTHREAD.
10807         * modules/thrd (Link): Simplify accordingly.
10808         * modules/mtx (Link): Likewise.
10809         * modules/cnd (Link): Likewise.
10810         * modules/tss (Link): Likewise.
10811         * modules/threads (Link): Likewise.
10813 2019-06-20  Bruno Haible  <bruno@clisp.org>
10815         threads-h: Fix link error on FreeBSD 11.
10816         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10817         also with -lpthread.
10819 2019-06-20  Bruno Haible  <bruno@clisp.org>
10821         threadlib: Fix typo (regression from today).
10822         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10824 2019-06-20  Bruno Haible  <bruno@clisp.org>
10826         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10827         * lib/windows-thread.c: Include <errno.h>.
10828         * lib/windows-tls.c: Likewise.
10830 2019-06-20  Bruno Haible  <bruno@clisp.org>
10832         tss tests: Small improvement.
10833         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10835 2019-06-20  Bruno Haible  <bruno@clisp.org>
10837         threads: New module.
10838         * modules/threads: New file.
10840 2019-06-20  Bruno Haible  <bruno@clisp.org>
10842         tss: Add tests.
10843         * tests/test-tss.c: New file, based on tests/test-tls.c.
10844         * modules/tss-tests: New file.
10846 2019-06-20  Bruno Haible  <bruno@clisp.org>
10848         cnd: Add tests.
10849         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10850         * modules/cnd-tests: New file.
10852 2019-06-20  Bruno Haible  <bruno@clisp.org>
10854         mtx: Add tests.
10855         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10856         * tests/test-call_once.c: New file, based on tests/test-once.c.
10857         * modules/mtx-tests: New file.
10859 2019-06-20  Bruno Haible  <bruno@clisp.org>
10861         thrd: Add tests.
10862         * tests/test-thrd_create.c: New file, based on
10863         tests/test-thread_create.c.
10864         * tests/test-thrd_current.c: New file, based on
10865         tests/test-thread_self.c.
10866         * modules/thrd-tests: New file.
10868 2019-06-20  Bruno Haible  <bruno@clisp.org>
10870         tss: New module.
10871         * lib/tss.c: New file.
10872         * modules/tss: New file.
10873         * doc/posix-functions/tss_create.texi: Mention the new module.
10874         * doc/posix-functions/tss_set.texi: Likewise.
10875         * doc/posix-functions/tss_get.texi: Likewise.
10876         * doc/posix-functions/tss_delete.texi: Likewise.
10878 2019-06-20  Bruno Haible  <bruno@clisp.org>
10880         cnd: New module.
10881         * lib/cnd.c: New file.
10882         * modules/cnd: New file.
10883         * doc/posix-functions/cnd_init.texi: Mention the new module.
10884         * doc/posix-functions/cnd_wait.texi: Likewise.
10885         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10886         * doc/posix-functions/cnd_signal.texi: Likewise.
10887         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10888         * doc/posix-functions/cnd_destroy.texi: Likewise.
10890 2019-06-20  Bruno Haible  <bruno@clisp.org>
10892         mtx: New module.
10893         * lib/mtx.c: New file.
10894         * modules/mtx: New file.
10895         * doc/posix-functions/call_once.texi: Mention the new module.
10896         * doc/posix-functions/mtx_init.texi: Likewise.
10897         * doc/posix-functions/mtx_lock.texi: Likewise.
10898         * doc/posix-functions/mtx_trylock.texi: Likewise.
10899         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10900         * doc/posix-functions/mtx_unlock.texi: Likewise.
10901         * doc/posix-functions/mtx_destroy.texi: Likewise.
10903 2019-06-20  Bruno Haible  <bruno@clisp.org>
10905         thrd: New module.
10906         * lib/thrd.c: New file.
10907         * m4/thrd.m4: New file.
10908         * modules/thrd: New file.
10909         * doc/posix-functions/thrd_current.texi: Mention the new module.
10910         * doc/posix-functions/thrd_detach.texi: Likewise.
10911         * doc/posix-functions/thrd_equal.texi: Likewise.
10912         * doc/posix-functions/thrd_exit.texi: Likewise.
10913         * doc/posix-functions/thrd_sleep.texi: Likewise.
10914         * doc/posix-functions/thrd_yield.texi: Likewise.
10915         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10916         AIX bug.
10917         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10918         AIX and Solaris bugs.
10920 2019-06-20  Bruno Haible  <bruno@clisp.org>
10922         threads-h: Add tests.
10923         * tests/test-threads.c: New file.
10924         * modules/threads-h-tests: New file.
10925         * tests/test-threads-c++.cc: New file.
10926         * modules/threads-h-c++-tests: New file.
10928 2019-06-20  Bruno Haible  <bruno@clisp.org>
10930         threads-h: New module.
10931         * lib/threads.in.h: New file.
10932         * m4/threads.m4: New file.
10933         * m4/yield.m4 (gl_YIELD): Update comment.
10934         * modules/threads-h: New file.
10935         * modules/yields (configure.ac): Use AC_REQUIRE.
10936         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10937         bugs.
10939 2019-06-20  Bruno Haible  <bruno@clisp.org>
10941         windows-thread: New module.
10942         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10943         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10944         * lib/glthread/thread.h: Include windows-thread.h.
10945         (gl_thread_t): Define using glwthread_thread_t.
10946         (glthread_create): Define using glwthread_thread_create.
10947         (glthread_join): Define using glwthread_thread_join.
10948         (gl_thread_self): Define using glwthread_thread_self.
10949         (gl_thread_exit): Define using glwthread_thread_exit.
10950         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10951         gl_thread_exit_func): Remove declarations.
10952         * lib/glthread/thread.c (self_key): Remove variable.
10953         (do_init_self_key, init_self_key): Remove functions.
10954         (struct gl_thread_struct): Remove type.
10955         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10956         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10957         functions.
10958         * modules/windows-thread: New file.
10959         * modules/thread (Depends-on): Add windows-thread.
10961 2019-06-20  Bruno Haible  <bruno@clisp.org>
10963         windows-tls: New module.
10964         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10965         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10966         * lib/glthread/tls.h: Include windows-tls.h.
10967         (gl_tls_key_t): Define using glwthread_tls_key_t.
10968         * modules/windows-tls: New file.
10969         * modules/tls (Depends-on): Add windows-tls.
10971 2019-06-20  Bruno Haible  <bruno@clisp.org>
10973         windows-cond: New module.
10974         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10975         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10976         * lib/glthread/cond.h: Include windows-cond.h.
10977         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10978         (gl_cond_t): Define using glwthread_cond_t.
10979         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10980         (glthread_cond_init): Define using glwthread_cond_init.
10981         (glthread_cond_wait): Define using glwthread_cond_wait.
10982         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10983         (glthread_cond_signal): Define using glwthread_cond_signal.
10984         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10985         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10986         (glthread_cond_init_func, glthread_cond_wait_func,
10987         glthread_cond_timedwait_func, glthread_cond_signal_func,
10988         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10989         declarations.
10990         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10991         types.
10992         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10993         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10994         glthread_cond_init_func, glthread_cond_wait_func,
10995         glthread_cond_timedwait_func, glthread_cond_signal_func,
10996         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10997         functions.
10998         * modules/windows-cond: New file.
10999         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
11001 2019-06-20  Bruno Haible  <bruno@clisp.org>
11003         windows-timedrecmutex: New module.
11004         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
11005         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
11006         * modules/windows-timedrecmutex: New file.
11008 2019-06-20  Bruno Haible  <bruno@clisp.org>
11010         windows-timedmutex: New module.
11011         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
11012         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
11013         * modules/windows-timedmutex: New file.
11015 2019-06-20  Bruno Haible  <bruno@clisp.org>
11017         windows-recmutex: New module.
11018         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
11019         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
11020         * lib/glthread/lock.h: Include windows-recmutex.h.
11021         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
11022         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
11023         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
11024         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
11025         (glthread_recursive_lock_unlock): Define using
11026         glwthread_recmutex_unlock.
11027         (glthread_recursive_lock_destroy): Define using
11028         glwthread_recmutex_destroy.
11029         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
11030         glthread_recursive_lock_unlock_func,
11031         glthread_recursive_lock_destroy_func): Remove declarations.
11032         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
11033         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
11034         glthread_recursive_lock_destroy_func): Remove functions.
11035         * modules/windows-recmutex: New file.
11036         * modules/lock (Depends-on): Add windows-recmutex.
11038 2019-06-20  Bruno Haible  <bruno@clisp.org>
11040         windows-mutex: New module.
11041         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
11042         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
11043         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
11044         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
11045         (gl_spinlock_t): Remove type.
11046         (gl_lock_t): Define using glwthread_mutex_t.
11047         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
11048         (glthread_lock_init): Define using glwthread_mutex_init.
11049         (glthread_lock_lock): Define using glwthread_mutex_lock.
11050         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
11051         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
11052         (glthread_lock_init_func, glthread_lock_lock_func,
11053         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
11054         declarations.
11055         Use glwthread_spinlock_t instead of gl_spinlock_t.
11056         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
11057         GLWTHREAD_SPINLOCK_INIT.
11058         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
11059         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
11060         functions.
11061         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
11062         gl_spinlock_t.
11063         * modules/windows-mutex: New file.
11064         * modules/lock (Depends-on): Add windows-mutex.
11066 2019-06-20  Bruno Haible  <bruno@clisp.org>
11068         windows-once: New module.
11069         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
11070         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
11071         * lib/glthread/lock.h: Include windows-once.h.
11072         (gl_once_t): Define using glwthread_once_t.
11073         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
11074         (glthread_once): Define using glwthread_once.
11075         (glthread_once_func): Remove declaration.
11076         * lib/glthread/lock.c (glthread_once_func): Remove function.
11077         * modules/windows-once: New file.
11078         * modules/lock (Depends-on): Add windows-once.
11080 2019-06-20  Bruno Haible  <bruno@clisp.org>
11082         lock, cond: Avoid possible counter wraparound on Windows.
11083         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
11084         field of the guard unchanged if it was already positive.
11085         (glthread_rwlock_rdlock_func): Likewise.
11086         (glthread_rwlock_wrlock_func): Likewise.
11087         (glthread_recursive_lock_lock_func): Likewise.
11088         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
11089         (glthread_cond_timedwait_func): Likewise.
11091 2019-06-20  Bruno Haible  <bruno@clisp.org>
11093         cond: Make glthread_cond_timedwait more reliable on Windows.
11094         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
11095         condition variable before looking at the current time.
11097 2019-06-20  Bruno Haible  <bruno@clisp.org>
11099         pthread_mutex_timedlock: New module.
11100         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
11101         new declaration.
11102         * lib/pthread_mutex_timedlock.c: New file.
11103         * m4/pthread_mutex_timedlock.m4: New file.
11104         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
11105         whether pthread_mutex_timedlock is declared.
11106         (gl_PTHREAD_MODULE_INDICATOR): New macro.
11107         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
11108         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
11109         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
11110         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
11111         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
11112         * modules/pthread_mutex_timedlock: New file.
11113         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
11114         module.
11116 2019-06-20  Bruno Haible  <bruno@clisp.org>
11118         thread, lock, cond, tls: Recognize C11 multithreaded applications.
11119         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
11120         * lib/glthread/thread.h (c11_threads_in_use): New macro.
11121         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11122         * lib/glthread/lock.h (c11_threads_in_use): New macro.
11123         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11124         * lib/glthread/cond.h (c11_threads_in_use): New macro.
11125         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11126         * lib/glthread/tls.h (c11_threads_in_use): New macro.
11127         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11129 2019-06-20  Bruno Haible  <bruno@clisp.org>
11131         tls tests: Small improvements.
11132         * tests/test-tls.c: Include <stdint.h>.
11133         (worker_thread): Avoid gcc warning on 64-bit mingw.
11134         (test_tls): Pass a different id to each thread.
11135         * modules/tls-tests (Depends-on): Add stdint.
11137 2019-06-20  Bruno Haible  <bruno@clisp.org>
11139         cond tests: Simplify.
11140         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
11142 2019-06-20  Bruno Haible  <bruno@clisp.org>
11144         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
11145         * tests/test-lock.c (test_once): Don't reference fire_signal if
11146         !ENABLE_LOCKING.
11148 2019-06-19  Bruno Haible  <bruno@clisp.org>
11150         nanosleep: Relicense under LGPLv2+.
11151         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
11152         * modules/nanosleep (License): Change to LGPLv2+.
11154 2019-06-19  Bruno Haible  <bruno@clisp.org>
11156         Reorder pieces of header in perl scripts.
11157         The desired order is
11158         - Prologue part 1 (2 lines with #!)
11159         - Program short description
11160         - Copyright and license notice
11161         - Written-by notice
11162         - Program short description (optional)
11163         - Program long description (optional)
11164         - Prologue part 2
11165         - Time stamp
11166         - Code
11167         Reported by Paul Eggert.
11168         * build-aux/announce-gen: Reorder header.
11169         * build-aux/gitlog-to-changelog: Likewise.
11170         * build-aux/useless-if-before-free: Likewise.
11171         * build-aux/prefix-gnulib-mk: Add copyright notice and short
11172         description.
11173         * build-aux/update-copyright: Likewise. Add short description. Bump
11174         time-stamp-line-limit to 200.
11176 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11178         verify-tests: work around xlc bug
11179         Problem reported by Bruno Haible in:
11180         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
11181         * tests/test-verify.c (item): Move the arithmetic inside the
11182         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
11184 2019-06-16  Bruno Haible  <bruno@clisp.org>
11186         Restore Emacs time-stamp hook applicability.
11187         Reported by Darshit Shah <darnir@gnu.org>.
11188         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
11189         * build-aux/announce-gen: Likewise.
11190         * build-aux/gitlog-to-changelog: Likewise.
11191         * build-aux/prefix-gnulib-mk: Likewise.
11192         * build-aux/update-copyright: Likewise.
11194 2019-06-15  Bruno Haible  <bruno@clisp.org>
11196         Fix scripts to have valid executable format on Alpine Linux.
11197         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11198         Idea by Paul Eggert.
11199         * build-aux/useless-if-before-free: Use a prologue that starts with
11200         '#!/bin/sh'.
11201         * build-aux/announce-gen: Likewise.
11202         * build-aux/gitlog-to-changelog: Likewise.
11203         * build-aux/prefix-gnulib-mk: Likewise.
11204         * build-aux/update-copyright: Likewise.
11205         * tests/test-update-copyright.sh: Update test program accordingly.
11207 2019-06-10  Bruno Haible  <bruno@clisp.org>
11209         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
11210         Reported by Nikita Ermakov <arei@altlinux.org> in
11211         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
11212         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
11213         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
11215 2019-06-10  Bruno Haible  <bruno@clisp.org>
11217         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
11218         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11219         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
11220         a copy of the path argument.
11221         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11222         it.
11224 2019-06-10  Bruno Haible  <bruno@clisp.org>
11226         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
11227         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
11228         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11229         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
11230         a copy of the path argument.
11231         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11232         it.
11234 2019-06-10  Bruno Haible  <bruno@clisp.org>
11236         posix_spawn_file_actions_addfchdir: Add tests.
11237         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
11238         * tests/test-posix_spawn5.c: New file.
11239         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
11241 2019-06-10  Bruno Haible  <bruno@clisp.org>
11243         posix_spawn_file_actions_addfchdir: New module.
11244         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
11245         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
11246         union member 'fchdir_action'.
11247         * lib/spawn_faction_addfchdir.c: New file.
11248         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
11249         * m4/posix_spawn_faction_addfchdir.m4: New file.
11250         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
11251         'posix_spawn_file_actions_addfchdir' is present and whether
11252         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
11253         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
11254         posix_spawn_file_actions_addfchdir is declared.
11255         (gl_SPAWN_H_DEFAULTS): Initialize
11256         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11257         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11258         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11259         * modules/spawn (Makefile.am): Substitute
11260         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11261         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11263         * modules/posix_spawn_file_actions_addfchdir: New file.
11264         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
11265         signature.
11266         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11267         * doc/posix-functions/posix_spawnp.texi: Likewise.
11268         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
11269         Likewise.
11271 2019-06-10  Bruno Haible  <bruno@clisp.org>
11273         doc: Document existence of posix_spawn_file_actions_addchdir module.
11274         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
11275         the posix_spawn_file_actions_addchdir module.
11277 2019-06-10  Bruno Haible  <bruno@clisp.org>
11279         posix_spawn-internal: Fix module description.
11280         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
11281         from here...
11282         * modules/posix_spawnp (configure.ac): ... and here...
11283         * modules/posix_spawn-internal (configure.ac): ... to here.
11285 2019-06-10  Bruno Haible  <bruno@clisp.org>
11287         doc: Update and improve documentation of glibc functions.
11288         This is a series of commits that
11289         - updates the documentation to the state of glibc 2.29,
11290         - adds references to Linux man pages and glibc documentation,
11291         - marks Linux specific functions as such.
11292         These are the commits:
11293         doc: Update after removal of crypt functions from glibc 2.28.
11294         doc: Remove mention of function vm86 (does not exist on x86_64).
11295         doc: Remove mention of functions that are gone from glibc.
11296         doc: Mention that glibc no longer provides h_errno.
11297         doc: Mention the availability of specific functions in glibc versions.
11298         doc: Mention eaccess.
11299         doc: Add references to Linux man pages.
11300         doc: Add references to glibc documentation.
11301         doc: Mention inotify_* functions.
11302         doc: Mention ppoll.
11303         doc: Mention sched_getcpu.
11304         doc: Mention sync_file_range.
11305         doc: Mention epoll_pwait.
11306         doc: Mention eventfd, eventfd_read, eventfd_write.
11307         doc: Mention signalfd.
11308         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
11309         doc: Mention epoll_create1.
11310         doc: Mention getauxval.
11311         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
11312         doc: Mention nextdown, nextup.
11313         doc: Mention more ISO TS 18661-1 <math.h> functions.
11314         doc: Mention ISO TS 18661-1 <fenv.h> functions.
11315         doc: Mention getrandom, getentropy.
11316         doc: Mention strfromf, strfromd, strfroml.
11317         doc: Mention preadv2, pwritev2.
11318         doc: Mention copy_file_range.
11319         doc: Mention memfd_create.
11320         doc: Mention mlock2.
11321         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
11322         doc: Mention more ISO TS 18661-1 <math.h> functions.
11323         doc: Mention renameat2.
11324         doc: Mention statx.
11325         doc: Mention the ISO C11 multithreading header and functions.
11326         doc: Mention getcpu.
11327         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
11328         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
11329         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
11330         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
11331         doc: Some glibc functions also exist on Solaris 11.
11332         doc: Some glibc functions also exist on Solaris 11.4.
11333         doc: Some glibc functions also exist on FreeBSD.
11334         doc: Some glibc functions also exist on BeOS.
11335         doc: Some glibc functions also exist on Haiku.
11336         doc: Mark functions which exist only on Linux.
11337         doc: Mark functions which exist only on Linux and illumos.
11339 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11341         copy-file: fix typo
11342         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
11344         copy-file-range: simplify into a stub
11345         Based on a comment by Florian Weimer in:
11346         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
11347         It turns out that Emacs (which will use this module) won’t need an
11348         emulation and I suspect other programs won’t either, because these
11349         programs will need to fall back on read+write anyway.  Perhaps I
11350         am wrong and other programs will be able to use an emulation; if
11351         so, this patch can be reverted.
11352         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
11353         Just call it copy_file_range.
11354         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
11355         Check via AC_LINK_IFELSE.
11356         * modules/copy-file-range (Depends-on): Remove modules no longer used.
11358 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11360         copy-file: prefer copy_file_range
11361         * lib/copy-file.c: Do not include xalloc.h.
11362         (qcopy_file_preserving): Allocate a buffer only if
11363         copy_file_range does not suffice.  If the allocation fails
11364         don't give up; just use a small stack-based buffer.
11365         Prefer copy_file_range if it works.
11366         * modules/copy-file (Depends-on): Add copy-file-range.
11367         Remove xalloc.
11369         copy-file-range: new module
11370         * MODULES.html.sh: Add copy-file-range.
11371         * lib/copy-file-range.c, m4/copy-file-range.m4:
11372         * modules/copy-file-range: New files.
11373         * lib/unistd.in.h (copy_file_range): Declare.
11374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
11375         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
11376         * modules/unistd (unistd.h): Substitute them.
11378 2019-05-28  Bruno Haible  <bruno@clisp.org>
11380         binary-io: Attempted use of O_BINARY on consoles no longer fails.
11381         Reported by KO Myung-Hun <komh78@gmail.com> in
11382         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
11383         * lib/binary-io.h (__gl_setmode_check): Remove function.
11384         (set_binary_mode): Declare as notinline on DJGPP and EMX.
11385         * lib/binary-io.c (__gl_setmode_check): Remove function.
11386         (set_binary_mode): Define here on DJGPP and EMX. Inline
11387         __gl_setmode_check. In case of a tty, don't return an error code.
11389 2019-05-28  James Youngman  <jay@gnu.org>
11391         dirent-safer: Make opendir_safer usable from C++.
11392         * lib/dirent-safer.h: use extern "C".
11394 2019-05-28  James Youngman  <jay@gnu.org>
11396         canonicalize: Make canonicalize_filename_mode usable from C++.
11397         * lib/canonicalize.h: use extern "C".
11399 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
11401         prefix-gnulib-mk: Fix CPPFLAGS migration.
11402         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
11403         _a part of the library name.
11405 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11407         flexmember: update comments again
11408         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
11410         flexmember: update comment
11411         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
11413 2019-05-20  Bruno Haible  <bruno@clisp.org>
11415         setlocale: Improve fallback on macOS.
11416         * lib/setlocale.c (search): Optimize away a redundant strcmp()
11417         invocation.
11418         (locales_with_principal_territory): New array.
11419         (langcmp, get_main_locale_with_same_language): New functions.
11420         (locales_with_principal_language): New array.
11421         (terrcmp, get_main_locale_with_same_territory): New functions.
11422         (rpl_setlocale): When setlocale_single failed, try again with a locale
11423         that is more likely to exist. Don't warn if the environment variable
11424         SETLOCALE_VERBOSE is not set.
11426 2019-05-19  Bruno Haible  <bruno@clisp.org>
11428         localename: Fix default on macOS.
11429         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
11430         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
11431         (gl_locale_name_environ, gl_locale_name_default): Remove code for
11432         HAVE_CFLOCALECOPYCURRENT.
11433         * lib/localename.h (gl_locale_name_default): Update.
11435 2019-05-19  Karl Berry  <karl@freefriends.org>
11437         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
11438         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
11439         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
11441 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
11443         maintainer-makefile: catch uses of $< in non-implicit rules
11444         * top/maint.mk (sc_prohibit_magic_number_exit): New.
11446 2019-05-18  Bruno Haible  <bruno@clisp.org>
11448         threadlib: Provide an easy way to avoid mingw's winpthreads library.
11449         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
11450         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
11451         gl_use_threads accordingly.
11453 2019-05-18  Bruno Haible  <bruno@clisp.org>
11455         pthread_sigmask: Fix compilation error with --enable-threads=windows.
11456         Reported by Tim Rühsen in
11457         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
11458         and Michele Locati in
11459         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
11460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
11461         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
11462         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
11463         in use and regardless which threads API is chosen.
11465 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11467         close-stream, closein, closeout: simplify
11468         I noticed this opportunity for simplification while drafting a
11469         new, related module that I haven’t had time to finish yet.
11470         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
11471         * modules/close-stream (Files): Remove m4/close-stream.m4.
11472         (configure.ac): Omit gl_CLOSE_STREAM.
11473         * modules/closein (Files): Remove m4/closein.m4
11474         (configure.ac): Omit gl_CLOSEIN.
11475         * modules/closeout (Files): Remove m4/closeout.m4.
11476         (configure.ac): Omit gl_CLOSEOUT.
11478 2019-05-12  Bruno Haible  <bruno@clisp.org>
11480         libtool-next-version: New program.
11481         * build-aux/libtool-next-version: New file.
11483 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
11484             Bruno Haible  <bruno@clisp.org>
11486         version-etc: Ease translation.
11487         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
11488         URLs and formatting newlines out of translatable string.
11490 2019-05-11  Bruno Haible  <bruno@clisp.org>
11492         gnupload: Explain how to create symlinks.
11493         * build-aux/gnupload (usage): Add an example that creates symlinks.
11495 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11497         fpucw: port to gcc -pedantic
11498         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
11499         Use __extension__ if using ({ ... }).
11501         crypto/af_alg: port to strict C compilers
11502         * lib/af_alg.c: Include af_alg.h regardless, so that the
11503         compilation unit is nonempty.
11505 2019-05-10  Bruno Haible  <bruno@clisp.org>
11507         base64: Avoid false positive warning from Coverity.
11508         Reported by Kamil Dudka <kdudka@redhat.com>.
11509         Idea by Paul Eggert.
11510         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
11511         '& 0x3f' to the array index expressions. This convinces Coverity that
11512         there is no out-of-bounds array reference, regardless of the input.
11514 2019-05-09  Bruno Haible  <bruno@clisp.org>
11516         gettext: Update to gettext 0.20.
11517         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
11518         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
11519         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
11520         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
11521         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
11522         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
11523         (configure.ac): Request infrastructure compatible with gettext 0.20.
11524         * m4/glibc2.m4: Remove file.
11525         * m4/intdiv0.m4: Remove file.
11526         * m4/intl.m4: Remove file.
11527         * m4/intldir.m4: Remove file.
11528         * m4/intmax.m4: Remove file.
11529         * m4/printf-posix.m4: Remove file.
11530         * m4/uintmax_t.m4: Remove file.
11531         * m4/gettext.m4: Update from gettext 0.20.
11532         * m4/po.m4: Likewise.
11534 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11536         verify: remove verify_true
11537         * NEWS: Mention this.
11538         * lib/verify.h (verify_true): Remove.
11539         * tests/test-verify.c (item): Test verify_expr, not verify_true.
11541         Support C2X and C++17 static_assert
11542         C2X and C++17 finally added support for a simple, single-argument
11543         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
11544         doing back in 2005.  Implement static_assert on older platforms.
11545         The only remaining advantage of ‘verify’ is a shorter name.
11546         * doc/posix-headers/assert.texi (assert.h):
11547         * doc/verify.texi (Compile-time Assertions):
11548         Modernize for C2X and C++17.
11549         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
11550         New macros.
11551         (_GL_HAVE__STATIC_ASSERT): Remove.
11552         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
11553         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
11554         string.  All callers changed.
11555         (_GL_VERIFY): Require 3 or more args, of which only the first 2
11556         are used.  All callers changed.
11557         (_Static_assert): Allow either 1 or 2 args, and define if
11558         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
11559         !_GL_HAVE__STATIC_ASSERT.
11560         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
11561         of defining if !_GL_HAVE_STATIC_ASSERT.
11562         (verify_expr, verify): Don’t bother trying to copy the expression
11563         into the diagnostic, since 1-argument static_assert doesn’t.
11564         (verify): Prefer 1-argument _Static_assert if it works.
11565         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
11567 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11569         Fix _GL_HAVE__STATIC_ASSERT typo
11570         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
11571         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
11573 2019-05-05  Bruno Haible  <bruno@clisp.org>
11575         wcwidth: Ensure width 1, not 2, for ambiguous characters.
11576         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
11577         via Akim Demaille <akim.demaille@gmail.com>.
11578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
11579         en_US.UTF-8 locale, since that is more likely to be present than an
11580         fr_FR.UTF-8 locale.
11581         * tests/test-wcwidth.c (main): Check the width of U+2202.
11582         * doc/posix-functions/wcwidth.texi: Mention the issue.
11584 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11586         Port manywarnings to GCC 9
11587         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11588         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11589         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11590         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11591         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11592         --help=warnings output.
11593         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11594         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11595         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11597 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11599         Sync lib/mktime-internal.h from glibc
11600         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11601         * lib/mktime-internal.h: Autoupdate.
11603 2019-04-28  Bruno Haible  <bruno@clisp.org>
11605         tls tests: Prevent that the test takes too long.
11606         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11607         (main): Let the test fail if it takes more than 10 minutes.
11608         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11610 2019-04-27  Bruno Haible  <bruno@clisp.org>
11612         lock tests: Prevent that the test takes too long.
11613         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11614         (main): Let the test fail if it takes more than 10 minutes.
11615         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11617 2019-04-27  Bruno Haible  <bruno@clisp.org>
11619         localename: Fix crash on mingw (regression from 2018-11-23).
11620         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11621         locale name that is null.
11623 2019-04-27  Bruno Haible  <bruno@clisp.org>
11625         Fix gcc warnings on 64-bit mode mingw.
11626         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11627         * lib/gl_array_list.c: Likewise.
11628         * lib/gl_array_map.c: Likewise.
11629         * lib/gl_array_set.c: Likewise.
11630         * lib/gl_carray_list.c: Likewise.
11631         * lib/gl_sublist.c: Likewise.
11632         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11633         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11634         * lib/gl_hash_map.c (uintptr_t): Likewise.
11635         * lib/gl_hash_set.c (uintptr_t): Likewise.
11636         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11637         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11638         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11639         * lib/iconv.c (uintptr_t): Likewise.
11640         * lib/iconv_close.c (uintptr_t): Likewise.
11641         * tests/test-lock.c: Include <stdint.h>.
11642         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11643         'long'.
11644         * modules/clean-temp (Depends-on): Add stdint.
11645         * modules/array-list (Depends-on): Likewise.
11646         * modules/array-map (Depends-on): Likewise.
11647         * modules/array-set (Depends-on): Likewise.
11648         * modules/carray-list (Depends-on): Likewise.
11649         * modules/sublist (Depends-on): Likewise.
11650         * modules/lock-tests (Depends-on): Likewise.
11652 2019-04-27  Bruno Haible  <bruno@clisp.org>
11654         error: Tweak indentation.
11655         * lib/error.c: Correct indentation.
11657 2019-04-27  Bruno Haible  <bruno@clisp.org>
11659         term-style-control: Fix gcc warning on mingw.
11660         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11661         of i.
11663 2019-04-26  Bruno Haible  <bruno@clisp.org>
11665         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11666         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11668 2019-04-26  Bruno Haible  <bruno@clisp.org>
11670         relocatable-prog: Fix gcc warning on mingw.
11671         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11672         on EMX.
11674 2019-04-02  Bruno Haible  <bruno@clisp.org>
11676         gitsub.sh: New file.
11677         * top/gitsub.sh: New file.
11679 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11681         argmatch: use void* for raw memory pointers
11682         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11683         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11684         to "values", keep char* for strings.
11686 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11688         prefix-gnulib-mk: fix the support for gnulib-po
11689         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11690         Don't touch HAVE_* variables.
11691         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11693 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11695         di-set: allow free with 'ino_map' being NULL.
11696         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11697         is NULL.  Bug introduced in commit 3703dbbe88dd.
11698         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11699         as a test.
11701 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11703         * lib/str-two-way.h: Fix comment typo.
11705 2019-04-13  Bruno Haible  <bruno@clisp.org>
11707         x-to-1: Restore ability to use original calling convention.
11708         * build-aux/x-to-1.in: Add comments. Accept the original form of
11709         HELP2MAN argument as well as the form expected since 2012-12-12.
11711 2019-04-13  Bruno Haible  <bruno@clisp.org>
11713         x-to-1: Avoid failure due to missing perl modules.
11714         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11715         needs are installed.
11717 2019-04-13  Bruno Haible  <bruno@clisp.org>
11719         openmp-init: New module.
11720         * modules/openmp-init: New file.
11721         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11722         the changes from 2019-04-09.
11724 2019-04-12  Bruno Haible  <bruno@clisp.org>
11726         signbit: Fix compilation error when gnulib's math.h exists twice.
11727         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11729 2019-04-12  Bruno Haible  <bruno@clisp.org>
11731         openmp: Fix compilation error on platforms without OpenMP.
11732         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11734 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11736         mountlist: make parsing /proc/self/mountinfo more robust
11737         Cater for the following issues with mountinfo parsing (the first
11738         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11739         in <https://bugs.gnu.org/35137>).
11740         1. The fields source, target, mntroot and fstype may contain characters
11741         like '\r'; sscanf(3) fails to read such values with the %s format
11742         specifier because it would stop at such characters.
11743         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11744         The only true separator in that file is the ' ' character.
11745         2. The source field may be an empty string, which happens e.g. with
11746         "mount -t tmpfs '' /target".
11747         3. The fstype field may contain mangled characters as well which need
11748         unescaping.
11749         * lib/mountlist.c (terminate_at_blank): Add utility function.
11750         (read_file_system_list): In the block trying to read the mountinfo file,
11751         avoid using sscanf(3) with %s format; instead, parse the above fields
11752         separated by spaces one by one.
11753         This also handles the case when the source field is an empty string.
11754         Unescape the fstype field.
11756 2019-04-09  Bruno Haible  <bruno@clisp.org>
11758         openmp: Add workaround for 32-bit programs on AIX.
11759         * lib/omp.in.h: New file.
11760         * lib/omp-init.c: New file, based on lib/nproc.c.
11761         * m4/omp_h.m4: New file.
11762         * modules/openmp (Files): Add them.
11763         (Depends-on): Add include_next, c-ctype, setenv.
11764         (configure.ac): Invoke gl_OMP_H.
11765         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11766         (Include): Mention <omp.h>.
11768 2019-04-09  Bruno Haible  <bruno@clisp.org>
11770         nproc: Fix return value for privileged processes.
11771         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11772         getpid().
11774 2019-04-07  Bruno Haible  <bruno@clisp.org>
11776         Add copyright notices in several files.
11777         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11778         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11779         * lib/libunistring.valgrind: Likewise.
11780         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11781         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11782         * lib/memchr.valgrind: Likewise.
11783         * lib/memchr2.valgrind: Likewise.
11784         * lib/rawmemchr.valgrind: Likewise.
11785         * lib/relocatable.valgrind: Likewise.
11786         * lib/strchrnul.valgrind: Likewise.
11788 2019-03-25  Bruno Haible  <bruno@clisp.org>
11790         term-style-control tests: Fix link error.
11791         Reported by Tom G. Christensen in
11792         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11793         * modules/term-style-control-tests (Makefile.am): Link
11794         test-term-style-control-hello and test-term-style-control-yes against
11795         LIBINTL.
11797 2019-03-24  Bruno Haible  <bruno@clisp.org>
11799         term-style-control: Add tests.
11800         * tests/test-term-style-control-hello.c: New file.
11801         * tests/test-term-style-control-yes.c: New file.
11802         * modules/term-style-control-tests: New file.
11804         term-style-control: New module.
11805         * lib/term-style-control.h: New file, based on libtextstyle's
11806         term-ostream.oo.h and term-ostream.oo.c.
11807         * lib/term-style-control.c: New file, based on libtextstyle's
11808         term-ostream.oo.c.
11809         * modules/term-style-control: New file.
11811 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11813         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11814         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11815         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11817 2019-03-23  Bruno Haible  <bruno@clisp.org>
11819         Support cross-compilation to musl libc.
11820         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11821         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11822         musl libc.
11823         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11824         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11825         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11826         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11827         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11828         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11830         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11831         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11832         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11833         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11834         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11835         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11836         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11837         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11838         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11839         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11840         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11841         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11842         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11843         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11844         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11845         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11846         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11847         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11848         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11849         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11850         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11851         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11852         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11853         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11854         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11855         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11856         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11857         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11858         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11859         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11860         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11861         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11862         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11863         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11864         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11865         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11866         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11867         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11868         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11869         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11870         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11871         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11872         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11873         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11874         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11875         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11876         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11877         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11878         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11879         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11880         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11881         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11882         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11883         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11884         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11885         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11886         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11887         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11888         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11890         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11892         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11893         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11894         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11895         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11896         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11897         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11898         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11899         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11902 2019-03-23  Bruno Haible  <bruno@clisp.org>
11904         posix_spawn_file_actions_*: Document musl libc bugs.
11905         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11906         the bug.
11907         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11908         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11909         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11910         cross-compiling to a musl system, guess no.
11911         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11912         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11914 2019-03-23  Bruno Haible  <bruno@clisp.org>
11916         futimens: Document musl libc bug.
11917         * doc/posix-functions/futimens.texi: Mention the bug.
11918         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11919         cross-compiling, guess no on glibc and musl systems.
11921 2019-03-23  Bruno Haible  <bruno@clisp.org>
11923         Clarify that cross-compilation guesses are guesses.
11924         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11925         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11926         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11927         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11928         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11929         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11930         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11931         gl_cv_glob_lists_symlinks.
11932         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11933         'guessing ' to ac_cv_func_malloc_0_nonnull.
11934         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11935         'guessing ' to ac_cv_func_realloc_0_nonnull.
11936         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11937         'guessing ' to gl_cv_func_poll.
11938         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11939         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11940         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11942 2019-03-23  Bruno Haible  <bruno@clisp.org>
11944         strtold: Fix typo.
11945         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11947 2019-03-23  Bruno Haible  <bruno@clisp.org>
11949         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11950         Reported by Akim Demaille.
11951         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11952         [[noreturn]] would not work, use _Noreturn instead.
11954 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11956         libtextstyle-optional: Fix compiler warnings.
11957         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11958         as unused.
11960 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11962         bitset: fix memory leaks
11963         Reported by Bruno Haible.
11964         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11965         * lib/bitset/vector.c (vbitset_free): New.
11966         (vbitset_vtable): Use it.
11968 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11970         bitset: minor changes
11971         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11972         * lib/bitset/table.c: Formatting changes.
11973         Remove useless braces.
11974         Prefer using else in cascades of if/else-if with returns.
11975         * lib/bitset/vector.c: Reduce scopes.
11977 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11979         bitset: expose bitset_resize
11980         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11981         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11982         (main): Use a variable bitset as reference, since fixed does not support resize.
11984 2019-03-19  Bruno Haible  <bruno@clisp.org>
11986         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11987         Reported by Akim Demaille.
11988         * doc/noreturn.texi: New file.
11989         * doc/gnulib.texi: Include it.
11991 2019-03-19  Bruno Haible  <bruno@clisp.org>
11993         doc: Document how to use 'static inline'.
11994         * doc/static-inline.texi: New file.
11995         * doc/gnulib.texi: Include it.
11997 2019-03-19  Bruno Haible  <bruno@clisp.org>
11999         libtextstyle-optional: Add tests.
12000         * tests/test-libtextstyle.c: New file, based on libtextstyle's
12001         adhoc-tests/hello.c.
12002         * tests/test-libtextstyle-default.css: New file, copied from
12003         libtextstyle's adhoc-tests/hello-default.css.
12004         * modules/libtextstyle-optional-tests: New file.
12006         libtextstyle-optional: New module.
12007         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
12008         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
12009         * modules/libtextstyle-optional: New file.
12011 2019-03-19  Bruno Haible  <bruno@clisp.org>
12013         c-stack: Make signal handlers more reliable.
12014         * lib/c-stack.c (progname): New variable.
12015         (die): Use it.
12016         (c_stack_action): Initialize it.
12017         (segv_handler): Save and restore errno.
12019 2019-03-19  Bruno Haible  <bruno@clisp.org>
12021         Help making signal handlers more reliable.
12022         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
12023         _GL_ASYNC_SAFE into config.h.
12024         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
12025         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
12026         argument.
12027         * lib/fatal-signal.c (action_t, uninstall_handlers,
12028         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
12029         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
12030         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
12031         _GL_ASYNC_SAFE.
12032         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
12033         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
12035 2019-03-18  Bruno Haible  <bruno@clisp.org>
12037         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
12038         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
12039         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
12041 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
12043         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
12044         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
12045         GCC 4.8.
12047 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
12049         fts: minor simplification
12050         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
12052 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
12054         bitset, timevar: Depend on c99.
12055         Reported by Bruno Haible.
12056         * modules/bitset, modules/timevar (Depends-on): Add c99.
12058 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
12060         bitset: a bit (...) more tests
12061         * tests/test-bitset.c (check_attributes): Check zero and ones.
12063 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
12065         bitset: fix overflows.
12066         Reported by Bruno Haible.
12067         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
12068         * lib/bitset/table.c (tbitset_test): last_bit is the position of
12069         the bit in the array of bitset_word, so be sure to take its modulo
12070         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
12071         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
12073 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
12075         bitset: style changes.
12076         * lib/bitset/table.c: Use NULL, not 0, for pointers.
12077         Formatting changes.
12078         (tbitset_list): Reduce scopes.
12080 2019-03-16  Bruno Haible  <bruno@clisp.org>
12082         fatal-signal: Pass the signal number to the action.
12083         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
12084         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
12085         (fatal_signal_handler): Pass the signal number to the action.
12086         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
12087         signal number as parameter.
12088         (create_temp_dir): Update.
12089         * lib/wait-process.c (cleanup_slaves_action): New function.
12090         (register_slave_subprocess): Update at_fatal_signal invocation.
12091         * NEWS: Mention the change.
12093 2019-03-16  Bruno Haible  <bruno@clisp.org>
12095         fatal-signal: Add function that lists the fatal signals.
12096         * lib/fatal-signal.h (get_fatal_signals): New declaration.
12097         * lib/fatal-signal.c (get_fatal_signals): New function.
12099 2019-03-14  Bruno Haible  <bruno@clisp.org>
12101         isatty: Make it return true in Cygwin consoles on native Windows.
12102         * lib/isatty.c: Include <string.h>.
12103         (GetProcAddress): New macro.
12104         (GetNamedPipeClientProcessIdFuncType): New type.
12105         (GetNamedPipeClientProcessIdFunc): New variable.
12106         (QueryFullProcessImageNameFuncType): New type.
12107         (QueryFullProcessImageNameFunc): New variable.
12108         (initialized): New variable.
12109         (initialize): New function.
12110         (IsCygwinConsoleHandle): New function.
12111         (isatty): Invoke it.
12112         * doc/posix-functions/isatty.texi: Mention the issue.
12114 2019-03-14  Bruno Haible  <bruno@clisp.org>
12116         all: Update URLs to msdn.microsoft.com.
12117         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
12118         was moved to docs.microsoft.com.
12120 2019-03-13  Bruno Haible  <bruno@clisp.org>
12122         gnulib-tool: Clarify the coding style.
12123         Suggested by Pavel Raiskup <praiskup@redhat.com>.
12124         * gnulib-tool: Add comment about coding style.
12126 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
12128         strtod: fix clash with strtold
12129         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
12130         * lib/strtod.c (compute_minus_zero, minus_zero):
12131         Simplify by remving the macro / external variable,
12132         and having just a function.  User changed.  This avoids
12133         the need for an external variable that might clash.
12135 2019-03-10  Bruno Haible  <bruno@clisp.org>
12137         alloca-opt: Fix conflict mingw's new <alloca.h> file.
12138         Reported by Eli Zaretskii <eliz@gnu.org>.
12139         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
12140         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
12141         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
12143 2019-03-10  Bruno Haible  <bruno@clisp.org>
12145         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
12146         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
12147         is in use.
12148         * tests/test-printf-posix2.c: Likewise.
12150 2019-03-10  Bruno Haible  <bruno@clisp.org>
12152         uninorm tests: Free allocated memory.
12153         * tests/uninorm/test-u32-normalize-big.h
12154         (struct normalization_test_file): Remove 'const' from allocated member.
12155         (free_normalization_test_file): New declaration.
12156         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
12157         memory.
12158         (free_normalization_test_file): New function.
12159         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
12160         'struct normalization_test_file' contents.
12161         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
12162         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
12163         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
12165 2019-03-10  Bruno Haible  <bruno@clisp.org>
12167         di-set: Fix memory leak.
12168         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
12169         not free().
12171 2019-03-10  Bruno Haible  <bruno@clisp.org>
12173         tests: Free allocated memory.
12174         Reported by <deltatau@protonmail.com> via Assaf Gordon.
12175         * tests/test-astrxfrm.c (main): Free allocated memory.
12176         * tests/test-bitset.c (compare, check_attributes): Free allocated
12177         bitsets.
12178         * tests/test-filenamecat.c (main): Free allocated memory.
12179         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
12180         * tests/test-freadptr.c (main): Likewise.
12181         * tests/test-freadptr2.c (main): Free allocated memory.
12182         * tests/test-freadseek.c (main): Likewise.
12183         * tests/test-gc-arcfour.c (main): Close allocated context.
12184         * tests/test-gc-arctwo.c (main): Likewise.
12185         * tests/test-gc-des.c (main): Close all allocated contexts.
12186         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
12187         * tests/test-pipe-filter-ii1.c (main): Likewise.
12188         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
12189         allocated file actions.
12190         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
12191         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
12192         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
12193         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
12194         * tests/test-strfmon_l.c (main): Free allocated locales.
12195         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
12196         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
12197         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12198         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12199         * tests/unistr/test-chr.h (main): Free input32.
12200         * tests/unistr/test-strchr.h (test_strchr): Likewise.
12202 2019-03-10  Bruno Haible  <bruno@clisp.org>
12204         tests: Prepare for using valgrind.
12205         * tests/*.sh: Invoke all test programs through ${CHECKER}.
12206         * tests/*/*.sh: Likewise.
12207         * tests/test-freadptr.c (main): Update accordingly.
12208         * tests/test-freadseek.c (main): Likewise.
12210 2019-03-09  Bruno Haible  <bruno@clisp.org>
12212         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
12213         * lib/get-rusage-as.c (get_rusage_as): When compiled by
12214         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
12215         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
12216         before exiting.
12218 2019-03-09  Jim Meyering  <meyering@fb.com>
12220         test-userspec.c: don't print NULL
12221         * tests/test-userspec.c (main): A test release of gcc,
12222         9.0.1 20190310, warned that this test would attempt to
12223         print a NULL pointer via a %s printf format.  Fix that
12224         and remove the unnecessary preceding "!diag" conjunct.
12225         Also add a comment.
12227 2019-03-03  Bruno Haible  <bruno@clisp.org>
12229         getloadavg: Write NULL for the null pointer.
12230         Reported by Michal Privoznik <mprivozn@redhat.com>.
12231         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
12233 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
12235         alloca, tsearch-tests: Write NULL for the null pointer.
12236         * lib/alloca.c (i00afunc): Write NULL instead of 0.
12237         * tests/test-tsearch.c (mangle_tree): Likewise.
12239 2019-03-09  Bruno Haible  <bruno@clisp.org>
12241         strfmon_l: Fix -fsanitize=address finding.
12242         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
12243         <string.h>.
12244         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
12245         (directive_t, directives_t): New types.
12246         (fmon_parse): New function.
12247         (rpl_strfmon_l): Don't call va_arg more often than needed for the
12248         format string. Consume 'long double' arguments in places where the
12249         format string indicates so.
12250         * modules/strfmon_l (Depends-on): Add 'stdbool'.
12252 2019-03-09  Bruno Haible  <bruno@clisp.org>
12254         crypto/des: Fix undefined behaviour.
12255         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
12256         shift operations on 'int'.
12258 2019-03-09  Bruno Haible  <bruno@clisp.org>
12260         Fix undefined behaviour.
12261         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
12262         'unsigned int', to avoid shift operations on 'int'.
12263         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
12264         * tests/test-count-leading-zeros.c (main): Use a random number that has
12265         as many bits as TYPE, not only 2*15 or 2*31 bits.
12266         * tests/test-count-trailing-zeros.c (main): Likewise.
12267         * tests/test-count-one-bits.c (main): Likewise.
12268         * tests/test-memmem.c: Don't include "null-ptr.h".
12269         (main): Use zerosize_ptr() instead of null_ptr().
12270         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
12272 2019-03-08  Bruno Haible  <bruno@clisp.org>
12274         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
12275         Reported by Jeffrey Walton <noloader@gmail.com>.
12276         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
12277         invoke memset with a zero size.
12278         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12279         Likewise.
12280         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12281         Adjust accordingly.
12283 2019-03-08  Bruno Haible  <bruno@clisp.org>
12285         unistr/*, uniconv/*: Fix undefined behaviour.
12286         Reported by Jeffrey Walton <noloader@gmail.com>.
12287         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
12288         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
12289         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12290         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12292 2019-03-08  Bruno Haible  <bruno@clisp.org>
12294         unistr/u8-cmp: Fix undefined behaviour.
12295         Reported by Jeffrey Walton <noloader@gmail.com>.
12296         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
12298 2019-03-08  Bruno Haible  <bruno@clisp.org>
12300         unictype/numeric: Fix undefined behaviour.
12301         Reported by Jeffrey Walton <noloader@gmail.com>.
12302         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
12303         on shift overflow, caught by "gcc -fsanitize=undefined".
12304         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
12305         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12306         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12308 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12310         git-version-gen: fix --version copyright year
12311         * build-aux/git-version-gen, build-aux/move-if-change (version):
12312         --version output copyright year is now taken from script year,
12313         so that it no longer needs to be updated by hand.
12315 2019-03-04  Bruno Haible  <bruno@clisp.org>
12317         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
12318         This approach supports relocatable installation of shared libraries
12319         which depend on other shared libraries from the same package.
12320         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12321         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
12322         wrapper around the original LIBTOOL.
12323         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
12324         token '@loader_path' instead of '$ORIGIN'.
12325         * build-aux/libtool-reloc: New file.
12326         * modules/relocatable-prog (Files): Add it.
12327         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12328         the recent changes. Document the need to set the *_LDFLAGS of libraries.
12329         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
12330         Makefile.am, not in configure.ac.
12332 2019-03-04  Bruno Haible  <bruno@clisp.org>
12334         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
12335         * build-aux/install-reloc: Revert change.
12336         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12338 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12340         nstrftime: support the ‘+’ flag
12341         * lib/nstrftime.c (add, __strftime_internal):
12342         Add support for the ‘+’ flag introduced in POSIX.1-2017.
12343         (__strftime_internal): New arg ‘width’.  All uses changed.
12344         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
12346 2019-02-24  Bruno Haible  <bruno@clisp.org>
12348         relocatable-prog: Improve verbose output.
12349         * build-aux/install-reloc (func_verbose): Escape characters that would
12350         be interpreted by the shell.
12352 2019-02-24  Bruno Haible  <bruno@clisp.org>
12354         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
12355         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
12356         "sys/stat.h".
12357         * lib/lstat.c: Likewise.
12358         * lib/fstat.c: Likewise.
12359         * lib/fstatat.c: Likewise.
12361 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
12363         long-options: add parse_gnu_standard_options_only
12364         Discussed in https://bugs.gnu.org/33468 .
12366         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
12367         (parse_gnu_standard_options_only): Add function to process
12368         the GNU default options --help and --version and fail for
12369         any other unknown long or short option. See
12370         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
12371         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
12372         * modules/long-options (depends-on): Add stdbool, exitfail.
12373         * top/maint.mk (sc_prohibit_long_options_without_use): Update
12374         syntax-check rule, add new function name.
12376 2019-02-23  Bruno Haible  <bruno@clisp.org>
12378         relocatable-prog: Update documentation.
12379         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12380         the recent changes.
12382 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12384         nstrftime: tweak arg order
12385         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
12386         All callers changed.  Suggested by TAMUKI Shoichi in:
12387         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
12389 2019-02-23  Bruno Haible  <bruno@clisp.org>
12391         relocatable-prog: Use wrapper-free installation also on Mac OS X.
12392         Reported by Paul Smith <psmith@gnu.org>.
12393         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
12394         (func_relativize): New function, from gnulib-tool.
12395         Handle mode 'macosx' through invocations of 'otool' and
12396         'install_name_tool'.
12397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12398         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
12399         'install-reloc' invocation with mode 'macosx'.
12401 2019-02-23  Bruno Haible  <bruno@clisp.org>
12403         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
12404         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12405         Hurd with glibc >= 2.27.
12407 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12409         nstrftime: merge glibc strftime changes
12410         This incorporates:
12411         2019-02-11 Fix a few whitespace arrangement inconsistencies
12412         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
12413         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
12414         2019-01-11 strftime: use the "L_" macro with character literals
12415         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
12416         callers changed.  Default width of %Ey is now 2.  This is needed
12417         for proper handling of Japanese dates starting on 2019-05-01.
12419 2019-02-19  Bruno Haible  <bruno@clisp.org>
12421         relocatable-prog: Use $ORIGIN trick on more platforms.
12422         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12423         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
12424         Solaris >= 10, Haiku. But don't use it on Android.
12425         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
12426         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
12428 2019-02-19  Bruno Haible  <bruno@clisp.org>
12430         progreloc: Speed up executable lookup on various platforms.
12431         * lib/progreloc.c: Include <errno.h>.
12432         (safe_read, full_read): New functions.
12433         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
12434         prefer the information from the /proc file system to a PATH search.
12436 2019-02-19  Bruno Haible  <bruno@clisp.org>
12438         progreloc: Simplify code for Android.
12439         * lib/progreloc.c (executable_fd): Don't define on Android.
12440         (maybe_executable, find_executable): Don't use executable_fd on Android.
12442 2019-02-15  Bruno Haible  <bruno@clisp.org>
12444         gnulib-tool: Support --import with just a few tests, not --with-tests.
12445         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
12446         'inctests' when generating files; use 'inctests' only for computing the
12447         transitive closure.
12449 2019-02-14  Bruno Haible  <bruno@clisp.org>
12451         gnulib-tool: Improve handling of multiple --local-dir options.
12452         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
12453         options work.
12454         * gnulib-tool (func_path_prepend): Remove function.
12455         (func_path_foreach): Make IFS handling more robust.
12456         (local_gnulib_path): Collect --local-dir values using func_path_append,
12457         not func_path_prepend.
12458         (func_determine_path_separator): Make IFS handling more robust.
12459         (func_lookup_file_cb): New function.
12460         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
12461         func_lookup_local_file. Apply the patches in the reverse order of their
12462         origin in $local_gnulib_path.
12463         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
12464         * NEWS: Mention that the first --local-dir option is the one with
12465         highest priority.
12467 2019-02-10  Bruno Haible  <bruno@clisp.org>
12469         libtextstyle: New module.
12470         * m4/libtextstyle.m4: New file.
12471         * modules/libtextstyle: New file.
12473 2019-02-05  Bruno Haible  <bruno@clisp.org>
12475         declared.sh: Fix bug with variables of pointer type.
12476         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
12477         before the symbol to be omitted if the preceding character is a '*'.
12479 2019-02-04  Bruno Haible  <bruno@clisp.org>
12481         Add script for running tests under valgrind.
12482         * build-aux/run-test: New file, from GNU libunistring.
12483         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
12484         as well.
12486 2019-02-04  Bruno Haible  <bruno@clisp.org>
12488         declared.sh: Fix --version output.
12489         * build-aux/declared.sh (func_version): Update package name.
12491 2019-02-03  Bruno Haible  <bruno@clisp.org>
12493         Add script for determining the set of symbols to export from a library.
12494         * build-aux/declared.sh: New file, from GNU libunistring.
12495         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
12496         Mention it.
12498 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12500         vla: add commentary about VLA_ELEMS
12501         * lib/vla.h (VLA_ELEMS): Add commentary,
12502         some inspired by Bruno Haible’s proposal in:
12503         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
12505         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
12506         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
12507         assume the C99 signatures for strtod and strtold.  Programs that
12508         require stricter adherence to C99 should also use the strtod and
12509         strtold modules as needed, and we no longer need the
12510         HAVE_C99_STRTOLD macro.
12511         * NEWS: Mention this.
12512         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
12513         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
12514         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
12515         (Files): Remove m4/c-strtod.m4.
12516         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
12517         exists.
12519 2019-02-02  Bruno Haible  <bruno@clisp.org>
12521         fma: Improve code style.
12522         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
12524 2019-02-02  Colin Watson  <cjwatson@debian.org>
12526         *-map tests: Fix compilation error.
12527         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
12528         * tests/test-hash_map.c: Likewise.
12529         * tests/test-linkedhash_map.c: Likewise.
12531 2019-01-31  Bruno Haible  <bruno@clisp.org>
12533         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
12534         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
12535         GNULIB_defined_strtold_function): New macros.
12536         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
12537         (STRTOD): Ignore HAVE_C99_STRTOLD.
12538         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
12539         deemed buggy. But do use it on platforms where uselocale exists and is
12540         usable.
12541         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
12542         deemed buggy. On platforms where uselocale exists and is usable, use
12543         uselocale and strtod/strtold.
12544         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
12545         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
12546         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
12547         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
12548         (Depends-on): Add strtod.
12549         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
12550         (Depends-on): Add strtold.
12552 2019-01-31  Bruno Haible  <bruno@clisp.org>
12554         strtod, strtold: Use the locale's decimal point.
12555         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
12556         (decimal_point_char): New function, copied from lib/vasnprintf.c.
12557         (parse_number): Add a radixchar argument. Use it instead of '.'.
12558         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
12559         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
12560         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
12561         * tests/test-strtod1.c: New file.
12562         * tests/test-strtod1.sh: New file.
12563         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
12564         locale-fr.m4 and its dependencies.
12565         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12566         (Makefile.am): Arrange to compile test-strtod1.c and run
12567         test-strtod1.sh.
12568         * tests/test-strtold1.c: New file.
12569         * tests/test-strtold1.sh: New file.
12570         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
12571         locale-fr.m4 and its dependencies.
12572         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12573         (Makefile.am): Arrange to compile test-strtold1.c and run
12574         test-strtold1.sh.
12576 2019-01-31  Bruno Haible  <bruno@clisp.org>
12578         strtod, strtold tests: Simplify tests.
12579         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
12580         * tests/test-strtold.c (main): Likewise.
12582 2019-01-31  Bruno Haible  <bruno@clisp.org>
12584         strtod, strtold: Avoid unnecessary rounding errors.
12585         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
12586         decimal to DOUBLE conversion.
12588 2019-01-31  Bruno Haible  <bruno@clisp.org>
12590         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12591         * lib/strtod.c (STRTOD): When there is an extra character after the
12592         exponent marker 'p', reparse the number.
12593         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12594         * doc/posix-functions/strtold.texi: Likewise.
12596 2019-01-29  Bruno Haible  <bruno@clisp.org>
12598         strtold: Add tests.
12599         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12600         * modules/strtold-tests: New file.
12602 2019-01-29  Bruno Haible  <bruno@clisp.org>
12604         strtold: New module.
12605         * lib/stdlib.in.h (strtold): New declaration.
12606         * lib/strtold.c: New file.
12607         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12608         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12609         USE_LDEXP): New macros.
12610         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12611         USE_LONG_DOUBLE.
12612         (underlying_strtod): Remove function. Replace with some macros.
12613         Re-add the code for a missing underlying function that was removed on
12614         2013-02-19.
12615         * m4/strtold.m4: New file.
12616         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12617         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12618         REPLACE_STRTOLD.
12619         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12620         REPLACE_STRTOLD.
12621         * modules/strtold: New file.
12622         * doc/posix-functions/strtold.texi: Document the new module.
12624 2019-01-29  Bruno Haible  <bruno@clisp.org>
12626         strtod: Fix compilation error on IRIX 6.5.
12627         * modules/strtod (Depends-on): Add 'math'.
12629 2019-01-28  Bruno Haible  <bruno@clisp.org>
12631         Fix build error when building a shared libunistring on Android.
12632         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12633         (main): Add 'volatile', to defeat a GCC optimization that would
12634         eliminate the reference.
12635         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12636         (main): Add 'volatile', to defeat a GCC optimization that would
12637         eliminate the reference.
12638         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12639         (main): Add 'volatile', to defeat a GCC optimization that would
12640         eliminate the reference.
12641         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12642         (main): Add 'volatile', to defeat a GCC optimization that would
12643         eliminate the reference.
12645 2019-01-27  Bruno Haible  <bruno@clisp.org>
12647         Avoid build errors due to wrong references between modules.
12648         * lib/uninorm/canonical-decomposition.c: Include
12649         "uninorm/decomposition-table.h", not "decomposition-table.h".
12650         * lib/uninorm/decomposition.c: Likewise.
12651         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12652         not "decompose-internal.h".
12653         * lib/uninorm/u16-normalize.c: Likewise.
12654         * lib/uninorm/u32-normalize.c: Likewise.
12655         * lib/uninorm/uninorm-filter.c: Likewise.
12656         * lib/uninorm/nfkc.c: Likewise.
12657         * lib/uninorm/nfkd.c: Likewise.
12658         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12659         "caseprop.h".
12660         * lib/unicase/u8-ct-totitle.c: Likewise.
12661         * lib/unicase/u8-prefix-context.c: Likewise.
12662         * lib/unicase/u8-suffix-context.c: Likewise.
12663         * lib/unicase/u16-casemap.c: Likewise.
12664         * lib/unicase/u16-ct-totitle.c: Likewise.
12665         * lib/unicase/u16-prefix-context.c: Likewise.
12666         * lib/unicase/u16-suffix-context.c: Likewise.
12667         * lib/unicase/u32-casemap.c: Likewise.
12668         * lib/unicase/u32-ct-totitle.c: Likewise.
12669         * lib/unicase/u32-prefix-context.c: Likewise.
12670         * lib/unicase/u32-suffix-context.c: Likewise.
12671         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12672         "unicasemap.h".
12673         * lib/unicase/u8-toupper.c: Likewise.
12674         * lib/unicase/u8-ct-tolower.c: Likewise.
12675         * lib/unicase/u8-ct-toupper.c: Likewise.
12676         * lib/unicase/u16-tolower.c: Likewise.
12677         * lib/unicase/u16-toupper.c: Likewise.
12678         * lib/unicase/u16-ct-tolower.c: Likewise.
12679         * lib/unicase/u16-ct-toupper.c: Likewise.
12680         * lib/unicase/u32-tolower.c: Likewise.
12681         * lib/unicase/u32-toupper.c: Likewise.
12682         * lib/unicase/u32-ct-tolower.c: Likewise.
12683         * lib/unicase/u32-ct-toupper.c: Likewise.
12684         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12685         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12686         * lib/unicase/u16-ct-casefold.c: Likewise.
12687         * lib/unicase/u32-ct-casefold.c: Likewise.
12689 2019-01-27  Bruno Haible  <bruno@clisp.org>
12691         gperf: Fix error when this module is required by some test module.
12692         * modules/gperf (Applicability): Set to 'all'.
12694 2019-01-27  Bruno Haible  <bruno@clisp.org>
12696         tmpfile: Add support for Android.
12697         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12698         works.
12699         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12700         Android.
12701         * modules/tmpfile (Depends-on): Add 'stdbool'.
12702         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12703         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12705 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12707         bitsetv: allow free on NULL.
12708         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12710 2019-01-27  Bruno Haible  <bruno@clisp.org>
12712         test-framework-sh: Improve maintainability.
12713         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12715 2019-01-27  Bruno Haible  <bruno@clisp.org>
12717         tests: Don't assume that /tmp exists.
12718         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12719         * tests/test-copy-acl-1.sh: Likewise.
12720         * tests/test-file-has-acl-1.sh: Likewise.
12721         * tests/test-copy-file-1.sh: Likewise.
12723 2019-01-27  Bruno Haible  <bruno@clisp.org>
12725         tests: Accommodate a shell that is not in /bin/sh.
12726         * tests/init.sh (setup_): Set srcdir and builddir.
12727         (BOURNE_SHELL): New variable.
12728         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12729         * modules/file-has-acl-tests (Depends-on): Likewise.
12730         * modules/copy-file-tests (Depends-on): Likewise.
12731         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12732         scripts through $BOURNE_SHELL.
12733         * tests/test-set-mode-acl-2.sh: Likewise.
12734         * tests/test-copy-acl-1.sh: Likewise.
12735         * tests/test-copy-acl-2.sh: Likewise.
12736         * tests/test-file-has-acl-1.sh: Likewise.
12737         * tests/test-file-has-acl-2.sh: Likewise.
12738         * tests/test-copy-file-1.sh: Likewise.
12739         * tests/test-copy-file-2.sh: Likewise.
12740         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12741         invoker.
12742         * tests/test-copy-acl.sh (builddir): Likewise.
12743         * tests/test-file-has-acl.sh (builddir): Likewise.
12744         * tests/test-copy-file.sh (builddir): Likewise.
12745         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12746         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12747         * tests/test-vc-list-files-git.sh: Likewise.
12749 2019-01-27  Bruno Haible  <bruno@clisp.org>
12751         tests: Fix some "unused variable" warnings.
12752         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12753         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12754         * tests/test-striconveh.c (main): Move some variable into the
12755         '#if HAVE_ICONV'.
12756         * tests/test-striconveha.c (main): Likewise.
12757         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12758         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12759         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12760         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12761         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12762         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12763         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12764         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12765         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12766         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12767         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12768         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12769         * tests/test-tsearch.c (main): Move some variable into the
12770         '#if HAVE_INITSTATE'.
12772 2019-01-27  Bruno Haible  <bruno@clisp.org>
12774         unigbrk/uc-grapheme-breaks: Fix build failure.
12775         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12776         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12778 2019-01-27  Bruno Haible  <bruno@clisp.org>
12780         mountlist: Merge two .m4 files.
12781         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12782         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12783         * m4/ls-mntd-fs.m4: Remove file.
12784         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12786 2019-01-27  Bruno Haible  <bruno@clisp.org>
12788         tests: Enable Linux specific tests on Android.
12789         * tests/test-flock.c (main): Treat Android like Linux.
12790         * tests/test-openat-safer.c (main): Likewise.
12792 2019-01-27  Bruno Haible  <bruno@clisp.org>
12794         relocatable-prog: Use Linux code on Android.
12795         * lib/progreloc.c: Treat Android like Linux.
12797 2019-01-26  Bruno Haible  <bruno@clisp.org>
12799         getloadavg: Add support for Android.
12800         * lib/getloadavg.c: Treat Android like Linux.
12802 2019-01-26  Bruno Haible  <bruno@clisp.org>
12804         vma-iter: Add support for Android.
12805         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12806         * lib/vma-iter.c: Treat Android like Linux.
12807         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12809 2019-01-26  Bruno Haible  <bruno@clisp.org>
12811         fts: Optimize on Android.
12812         * lib/fts.c: Treat Android like Linux.
12814 2019-01-26  Bruno Haible  <bruno@clisp.org>
12816         fts: Add support for Android.
12817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12818         defined by this module and the ones in libc.
12819         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12821 2019-01-26  Bruno Haible  <bruno@clisp.org>
12823         mountlist: Use Linux code on Android.
12824         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12825         (unescape_tab, read_file_system_list): Enable Linux code on Android
12826         as well.
12827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12828         and endmntent.
12829         * modules/mountlist (Depends-on): Add 'getline'.
12831 2019-01-26  Bruno Haible  <bruno@clisp.org>
12833         localename tests: Fix test failure on Android.
12834         * modules/localename-tests (Depends-on): Add 'setlocale'.
12836 2019-01-26  Bruno Haible  <bruno@clisp.org>
12838         mountlist: Port better to Android.
12839         * lib/mountlist.c (MOUNTED): Redefine on Android.
12840         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12841         Android.
12843 2019-01-26  Bruno Haible  <bruno@clisp.org>
12845         striconveh: Fix use of uninitialized iconv_t.
12846         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12847         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12848         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12850 2019-01-26  Bruno Haible  <bruno@clisp.org>
12852         nonblocking-socket-tests: Fix test failure on Android 4.3.
12853         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12854         also on Android.
12856 2019-01-26  Bruno Haible  <bruno@clisp.org>
12858         sh-filename: Add support for Android 4.3.
12859         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12861 2019-01-26  Bruno Haible  <bruno@clisp.org>
12863         ptsname_r: Work around bug on Android 4.3.
12864         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12865         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12866         correct.
12867         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12868         is defined, just fix the return value.
12869         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12870         The behaviour of musl libc is nothing to be "fixed", since it is
12871         compliant with the next POSIX standard.
12873 2019-01-26  Bruno Haible  <bruno@clisp.org>
12875         ttyname_r: Work around bug on Android 4.3.
12876         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12877         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12878         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12879         * doc/posix-functions/ttyname.texi: Likewise.
12881 2019-01-25  Bruno Haible  <bruno@clisp.org>
12883         getprogname: Port to Android 4.3.
12884         * lib/getprogname.c (getprogname): On Android, take only the last
12885         component of __progname.
12887 2019-01-25  Bruno Haible  <bruno@clisp.org>
12889         wcrtomb: Work around bug on Android 4.3.
12890         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12891         the C locale.
12892         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12893         which does not have the 'wctomb' function.
12894         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12895         * tests/test-wcrtomb.c (main): Accept argument '5'.
12896         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12898 2019-01-25  Bruno Haible  <bruno@clisp.org>
12900         setlocale: Work around bug on Android 4.3.
12901         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12902         the "C" locale.
12903         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12904         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12906 2019-01-24  Bruno Haible  <bruno@clisp.org>
12908         memchr: Work around bug on Android <= 5.0.
12909         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12910         * doc/posix-functions/memchr.texi: Mention the Android bug.
12912 2019-01-24  Bruno Haible  <bruno@clisp.org>
12914         random: Fix compilation error on Android 4.3.
12915         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12916         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12917         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12918         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12919         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12921         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12922         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12923         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12924         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12925         REPLACE_INITSTATE, REPLACE_SETSTATE.
12926         * doc/posix-functions/random.texi: Correct the description of the
12927         situation on Android.
12928         * doc/posix-functions/srandom.texi: Likewise.
12929         * doc/posix-functions/rand.texi: Likewise.
12930         * doc/posix-functions/srand.texi: Likewise.
12932 2019-01-24  Bruno Haible  <bruno@clisp.org>
12934         mbtowc: Fix compilation error on Android 4.3.
12935         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12936         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12937         HAVE_MBTOWC.
12938         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12939         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12940         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12941         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12942         * doc/posix-functions/mbtowc.texi: Mention the change.
12944 2019-01-24  Bruno Haible  <bruno@clisp.org>
12946         fdatasync: Fix compilation error on Android 4.3.
12947         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12948         test whether fdatasync() exists.
12950 2019-01-24  Bruno Haible  <bruno@clisp.org>
12952         unlinkat: Fix compilation error on Android 4.3.
12953         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12954         also on Android.
12955         * doc/posix-functions/unlinkat.texi: Mention the issue.
12957 2019-01-24  Bruno Haible  <bruno@clisp.org>
12959         renameat: Fix compilation error on Android 4.3.
12960         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12961         * doc/posix-functions/renameat.texi: Mention the issue.
12963 2019-01-24  Bruno Haible  <bruno@clisp.org>
12965         fchownat: Fix compilation error on Android 4.3.
12966         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12967         use.
12968         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12969         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12970         * doc/posix-functions/fchownat.texi: Mention the issue.
12972 2019-01-23  Bruno Haible  <bruno@clisp.org>
12974         gnulib-tool: Support running testdirs on Android.
12975         * build-aux/test-driver.diff: New file.
12976         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12977         build-aux/test-driver after running automake.
12979 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12981         relocatable-prog: avoid warnings from Automake
12982         * modules/relocatable-prog: Don't declare PHONY dependencies in
12983         Automake conditionals.
12985 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12987         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12988         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12990 2019-01-23  Bruno Haible  <bruno@clisp.org>
12992         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12993         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12994         preceding -Wl,--as-needed option. Don't check whether the linker
12995         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12997 2019-01-23  Bruno Haible  <bruno@clisp.org>
12999         thread: Force linking with -lpthread, even when --as-needed is in use.
13000         Reported by Richard W.M. Jones <rjones@redhat.com> in
13001         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
13002         * lib/glthread/thread.h (pthread_create): Don't declare weak.
13004 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
13005             Bruno Haible  <bruno@clisp.org>
13007         relocatable: avoid compiler warnings (-Wshadow)
13008         * lib/relocatable.c (compute_curr_prefix): Rename local variables
13009         to avoid name collisions with global variables.
13011 2019-01-22  Bruno Haible  <bruno@clisp.org>
13013         vasnprintf: Don't use %n on Android.
13014         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
13015         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
13016         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
13018 2019-01-22  Bruno Haible  <bruno@clisp.org>
13020         *printf: Support cross-compilation to Android.
13021         * m4/printf.m4: Add cross-compilation guesses for Android.
13023 2019-01-21  Bruno Haible  <bruno@clisp.org>
13025         diacrit: Mark deprecated.
13026         * modules/diacrit (Status, Notice): Mark as deprecated.
13027         * NEWS: Mention it.
13029 2019-01-20  Bruno Haible  <bruno@clisp.org>
13031         rintl: Override broken implementation on NetBSD.
13032         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
13033         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
13034         REPLACE_RINTL.
13035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
13036         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
13037         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
13038         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
13040 2019-01-20  Bruno Haible  <bruno@clisp.org>
13042         log10l: Work around inaccurate implementation on NetBSD.
13043         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
13044         * lib/log10l.c: Comment out too simplistic override.
13045         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
13047 2019-01-20  Bruno Haible  <bruno@clisp.org>
13049         logl: Work around inaccurate implementation on NetBSD.
13050         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
13051         * lib/logl.c: Comment out unused code.
13052         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
13054 2019-01-20  Bruno Haible  <bruno@clisp.org>
13056         expm1l: Work around inaccurate implementation on NetBSD.
13057         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
13058         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
13059         REPLACE_EXPM1L.
13060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
13061         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
13062         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
13063         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
13065 2019-01-20  Bruno Haible  <bruno@clisp.org>
13067         expl: Work around inaccurate implementation on NetBSD.
13068         * lib/math.in.h (expl): Test also REPLACE_EXPL.
13069         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
13070         REPLACE_EXPL.
13071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
13072         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
13073         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
13074         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
13076 2019-01-20  Bruno Haible  <bruno@clisp.org>
13078         exp2l: Work around inaccurate implementation on NetBSD.
13079         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
13080         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
13082 2019-01-20  Bruno Haible  <bruno@clisp.org>
13084         floor, floorl: Avoid autoconf warnings.
13085         * modules/floor (configure.ac): Use AC_REQUIRE.
13086         * modules/floorl (configure.ac): Likewise.
13088 2019-01-20  Bruno Haible  <bruno@clisp.org>
13090         Defeat current GCC optimizations in math autoconf tests.
13091         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
13092         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13093         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13094         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13095         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13096         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13097         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13098         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13099         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13100         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13101         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13102         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13103         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13104         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13105         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
13106         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
13107         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
13108         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13109         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13110         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13111         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13112         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13113         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13114         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13115         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13116         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13117         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13118         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13119         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13120         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13121         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13122         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13123         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13126         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13127         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13128         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13130 2019-01-19  Pádraig Brady  <P@draigBrady.com>
13132         gettext: support disabling use of VLAs
13133         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
13135 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13137         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
13138         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
13140 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13142         fcntl: Fix syntax error (regression from 2018-10-05).
13143         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
13145 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13147         relocatable: improve documentation.
13148         * doc/relocatable-maint.texi (Supporting Relocation): For
13149         substitutions performed by config.status, we need more variables
13150         (for instance datarootdir defaults to '${prefix}/share' so we need
13151         prefix).
13153 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13155         backup: update dependencies
13156         * modules/backup-rename (Depends-on): It now depends on opendirat
13157         instead of opendir.  It also uses stdint, and xalloc-oversized.
13158         But no longer dirfd.
13159         * modules/backupfile (Depends-on): Add xalloc-oversized.
13161 2019-01-13  Bruno Haible  <bruno@clisp.org>
13163         getcwd: Fix test failure when building on a Linux 9p file system.
13164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
13165         EINVAL from mkdir like ENAMETOOLONG.
13166         * tests/test-getcwd.c (test_long_name): Likewise.
13168 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
13170         Fix typos found by codespell.
13171         * lib/*.[hc]: Fix typos in comments.
13172         * pygnulib/*.py: Fix typos in error messages and comments.
13174 2019-01-12  Bruno Haible  <bruno@clisp.org>
13176         doc: Fix documentation about container data types.
13177         Reported by Werner Lemberg <wl@gnu.org>.
13178         * doc/containers.texi (Container data types): Fix typo.
13180 2019-01-10  Bruno Haible  <bruno@clisp.org>
13182         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
13183         Reported by Reuben Thomas <rrt@sc3d.org>.
13184         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
13186 2019-01-06  Bruno Haible  <bruno@clisp.org>
13188         maintainer-makefile: Make the configure.ac section optional.
13189         * top/maint.mk (GREP, SED): Define if not defined.
13191 2019-01-06  Bruno Haible  <bruno@clisp.org>
13193         localename: Assume setlocale function.
13194         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
13195         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
13197 2019-01-06  Bruno Haible  <bruno@clisp.org>
13199         doc: Add documentation about container data types.
13200         * doc/containers.texi: New file.
13201         * doc/gnulib.texi (Particular Modules): Include it.
13203 2019-01-06  Bruno Haible  <bruno@clisp.org>
13205         doc: Update documentation about 'progname' module.
13206         * doc/progname.texi: Rename from doc/error.texi. Change node name and
13207         title. Rewrite.
13208         * doc/gnulib.texi (Particular Modules): Update.
13210 2019-01-06  Bruno Haible  <bruno@clisp.org>
13212         doc: Document the xstdopen and *-safer modules.
13213         * doc/xstdopen.texi: New file.
13214         * doc/gnulib.texi (Particular Modules): Include it.
13216 2019-01-06  Bruno Haible  <bruno@clisp.org>
13218         xstdopen: Add tests.
13219         * tests/test-xstdopen.c: New file.
13220         * tests/test-xstdopen.sh: New file.
13221         * modules/xstdopen-tests: New file.
13223         xstdopen: New module.
13224         * lib/xstdopen.h: New file.
13225         * lib/xstdopen.c: New file.
13226         * modules/xstdopen: New file.
13228 2019-01-06  Bruno Haible  <bruno@clisp.org>
13230         stdopen: Fix compilation error with IRIX cc.
13231         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
13233 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13235         xfreopen need not include stdio--.h
13236         * lib/xfreopen.c: Do not include stdio--.h.
13238         xfreopen need not depend on freopen-safer
13239         * modules/xfreopen (Depends-on):
13240         Depend on freopen, not freopen-safer.
13242         stdopen: modernize and simplify
13243         * lib/stdopen.c: Update copyright date
13244         Do not include sys/types.h; no longer needed these days.
13245         (stdopen): Use C99-style decl in loop.  Return int errno
13246         value, rather than just a bool.  Do not worry about fd mismatches,
13247         since the caller cares only if 0, 1, 2 are occupied.
13248         * lib/stdopen.h: No need to include <stdbool.h>.
13249         * m4/stdopen.m4: Remove.
13250         * modules/stdopen: New file.
13252         stdopen: copy from last use in coreutils
13253         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
13254         New files, taken from their last commit in coreutils
13255         2007-07-23T12:35:58Z!jim@meyering.net
13256         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
13258 2019-01-05  Bruno Haible  <bruno@clisp.org>
13260         argp: Don't pass an invalid argument to dgettext().
13261         Reported by He X <xw897002528@gmail.com>.
13262         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
13263         dgettext().
13265 2019-01-05  Bruno Haible  <bruno@clisp.org>
13267         argp: Don't pass an invalid argument to dgettext().
13268         Reported by He X <xw897002528@gmail.com>.
13269         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
13270         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
13271         dgettext().
13273 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13275         stdioext: port to newer 32-bit Android
13276         Problem reported by Tom Yan in:
13277         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
13278         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
13279         (fp_) [__ANDROID__]: Use it.
13281 2019-01-04  Bruno Haible  <bruno@clisp.org>
13283         lock: Fix link error with --enable-threads=pth.
13284         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
13285         Mark as weak.
13287 2019-01-04  Bruno Haible  <bruno@clisp.org>
13289         Fix link errors in unit tests.
13290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13291         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
13292         * modules/array-map-tests (Makefile.am): Link test-array_map against
13293         libintl.
13294         * modules/array-set-tests (Makefile.am): Link test-array_set against
13295         libintl.
13296         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
13297         libintl.
13298         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
13299         libintl.
13300         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
13301         against libintl.
13302         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
13303         against libintl.
13305 2019-01-04  Bruno Haible  <bruno@clisp.org>
13307         Fix incorrect 'Link' sections.
13308         * modules/regex (Link): Mention the link requirement of module 'lock'.
13309         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
13311 2019-01-04  Bruno Haible  <bruno@clisp.org>
13313         Fix some 'Link' sections.
13314         * modules/c-stack (Link): Add link directive from the 'gettext-h'
13315         dependency.
13316         * modules/getaddrinfo (Link): Likewise.
13318 2019-01-04  Bruno Haible  <bruno@clisp.org>
13320         Remove redundant 'Link' sections.
13321         * modules/canon-host (Link): Remove section.
13322         * modules/timevar (Link): Likewise.
13324 2019-01-04  Bruno Haible  <bruno@clisp.org>
13326         Remove incorrect 'Link' sections.
13327         * modules/acl (Link): Remove section. Use combined 'Link' sections from
13328         the dependencies instead.
13329         * modules/crypto/md5 (Link): Likewise.
13330         * modules/crypto/sha1 (Link): Likewise.
13331         * modules/crypto/sha256 (Link): Likewise.
13332         * modules/crypto/sha512 (Link): Likewise.
13333         * modules/faccessat (Link): Likewise.
13334         * modules/fdutimensat (Link): Likewise.
13335         * modules/iconv_open-utf (Link): Likewise.
13336         * modules/propername (Link): Likewise.
13337         * modules/qacl (Link): Likewise.
13338         * modules/unicodeio (Link): Likewise.
13339         * modules/utimecmp (Link): Likewise.
13340         * modules/utimensat (Link): Likewise.
13341         * modules/xstriconv (Link): Likewise.
13342         * modules/xstriconveh (Link): Likewise.
13344 2019-01-04  Bruno Haible  <bruno@clisp.org>
13346         gnulib-tool: New option --extract-recursive-link-directive.
13347         * gnulib-tool (func_usage): Document the new options
13348         --extract-recursive-dependencies, --extract-recursive-link-directive.
13349         (func_verify_module): Document output variables.
13350         (func_get_dependencies_recursively): New function.
13351         (func_get_link_directive_recursively): New function.
13352         Use them to implement the new options
13353         --extract-recursive-dependencies, --extract-recursive-link-directive.
13354         * doc/gnulib-tool.texi (Link-time requirements): New section.
13356 2019-01-04  Bruno Haible  <bruno@clisp.org>
13358         Clarify meaning of 'Link' section in module description.
13359         * doc/gnulib.texi (Module description): Clarify the meaning of the
13360         'Link' section versus the one of the dependencies.
13361         * NEWS: Mention the change.
13363 2019-01-04  Bruno Haible  <bruno@clisp.org>
13365         pselect: Fix module description.
13366         * modules/pselect (Link): Put one link option per line.
13368 2019-01-04  Bruno Haible  <bruno@clisp.org>
13370         cosl: Fix module description.
13371         * modules/cosl (Link): Fix typo.
13372         * modules/mathl (configure.ac): Likewise.
13374 2019-01-04  Bruno Haible  <bruno@clisp.org>
13376         c-xvasprintf: Fix module dependencies.
13377         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
13379 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
13381         bootstrap: die when some submodules are not initialized
13382         * build-aux/bootstrap: Make sure all submodules are initialized.
13384 2019-01-04  Bruno Haible  <bruno@clisp.org>
13386         bitsetv: Fix module dependencies.
13387         * lib/bitsetv.c: Include xalloc.h.
13388         * modules/bitsetv (Depends-on): Add 'xalloc'.
13390 2019-01-04  Bruno Haible  <bruno@clisp.org>
13392         xmemdup0: Remove redundant code.
13393         * lib/xmemdup0.h (xalloc_die): Remove declaration.
13395 2019-01-04  Bruno Haible  <bruno@clisp.org>
13397         backupfile: Fix module dependencies.
13398         * modules/backupfile (Depends-on): Add 'xalloc'.
13400 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13402         bitset, crypto/gc: fix conflicts with Solaris 11
13403         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
13404         avoid clash with Solaris 11 <sys/bitset.h>.
13405         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
13406         with Solaris 11 <xorg/gc.h>.
13408 2019-01-04  Bruno Haible  <bruno@clisp.org>
13410         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
13411         Reported by Andy Fiddaman <andy@omniosce.org>.
13412         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
13414 2019-01-03  Eric Blake  <eblake@redhat.com>
13416         maintainer-makefile: fix typo in previous patch
13417         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
13418         of Roman's work.
13420 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
13422         maintainer-makefile: prefer $(GREP) over grep
13423         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
13424         defined.
13425         * top/maint.mk: Use it everywhere.
13427         maintainer-makefile: split long argument lines
13428         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
13429         it would be too long for exec limits on BSD.
13431 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13433         mkfifo: bring back HAVE_MKFIFO macro
13434         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
13435         Problem reported by Andrew Janke in:
13436         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
13438 2018-12-21  Bruno Haible  <bruno@clisp.org>
13440         Assume Autoconf >= 2.63.
13441         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
13442         versions < 2.60.
13444 2018-12-21  Bruno Haible  <bruno@clisp.org>
13446         memcmp: Mention the clang bug.
13447         * tests/test-memcmp.c: Add comment about a known test failure.
13448         * doc/posix-functions/memcmp.texi: Mention the clang bug.
13450 2018-12-20  Jim Meyering  <meyering@fb.com>
13452         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
13453         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
13454           echo '123-x'|LC_ALL=C grep -E '.\bx'
13455         The goal is to revert the first, but reverting it requires to restore
13456         the function deleted in the second. I ran this to restore the deleted
13457         function:
13458           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
13459             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
13460             | patch -R -p1
13461         * lib/dfa.c (charclass_context): Restore deleted function.
13462         Reverting the primary commit removes this change:
13463         dfa: Simplify a building state
13464         * lib/dfa.c (build_state): Simplify a building state.
13466 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13468         version-etc: allow zero authors
13469         * lib/version-etc.c (version_etc_arn): If no authors are given,
13470         omit authorship info instead of dumping core.
13472 2018-12-19  Bruno Haible  <bruno@clisp.org>
13474         lchown tests: Be more permissive regarding errno values.
13475         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
13476         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
13477         alternative to ENOSYS.
13478         * modules/lchown-tests (Depends-on): Add 'errno'.
13479         * modules/fchownat-tests (Depends-on): Likewise.
13481 2018-12-18  Bruno Haible  <bruno@clisp.org>
13483         duplocale: Avoid test failure on AIX 7.
13484         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
13485         (configure.ac): Invoke gt_FUNC_USELOCALE.
13486         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
13487         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
13488         works.
13490 2018-12-18  Bruno Haible  <bruno@clisp.org>
13492         localename: Fix test failure on AIX 7.
13493         Reported by Assaf Gordon in
13494         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
13495         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
13496         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
13497         instead of ac_cv_func_uselocale.
13498         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
13499         HAVE_USELOCALE.
13500         * lib/localename-table.h: Likewise.
13501         * lib/localename-table.c: Likewise.
13502         * tests/test-localename.c: Likewise.
13503         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
13505 2018-12-18  Bruno Haible  <bruno@clisp.org>
13507         localename: Update comments regarding Cygwin.
13508         * lib/localename.c: Update comment.
13509         * doc/posix-functions/uselocale.texi: Update platforms list.
13510         * doc/posix-functions/newlocale.texi: Likewise.
13511         * doc/posix-functions/duplocale.texi: Likewise.
13512         * doc/posix-functions/freelocale.texi: Likewise.
13514 2018-12-16  Bruno Haible  <bruno@clisp.org>
13516         c-stack: Fix for Linux/sparc.
13517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
13518         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
13520 2018-12-16  Bruno Haible  <bruno@clisp.org>
13522         localename: Avoid test failure on some glibc systems.
13523         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13524         Unset environment variables that might disturb the first setlocale call,
13525         and verify that this setlocale call succeeds.
13527 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
13529         random: Fix build error on native Windows (regression from 2018-06-21).
13530         * lib/random.c (__srandom, __initstate, __setstate, __random,
13531         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
13532         to the symbols without '__' prefix.
13534 2018-12-16  Bruno Haible  <bruno@clisp.org>
13536         obstack, libc-config: Support HP-UX cc in C99 mode.
13537         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
13538         compiler, even when in C99 mode.
13539         * lib/cdefs.h (__flexarr): Likewise.
13540         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
13542 2018-12-16  Bruno Haible  <bruno@clisp.org>
13544         localename: Fix test failure on OpenBSD >= 6.2.
13545         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
13546         locale system. Define HAVE_FAKE_LOCALES in this case.
13547         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
13548         HAVE_USELOCALE.
13549         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
13550         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
13551         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
13552         platforms list.
13553         * doc/posix-functions/newlocale.texi: Likewise.
13554         * doc/posix-functions/duplocale.texi: Update platforms list.
13555         * doc/posix-functions/freelocale.texi: Likewise.
13557 2018-12-16  Bruno Haible  <bruno@clisp.org>
13559         duplocale tests: Re-enable the test on platforms without <monetary.h>.
13560         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
13561         of the test, on platforms without <monetary.h>.
13563 2018-12-16  Bruno Haible  <bruno@clisp.org>
13565         localename: Update comments.
13566         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
13568 2018-12-15  Jim Meyering  <meyering@fb.com>
13570         regex: fix indentation
13571         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
13573 2018-12-15  Bruno Haible  <bruno@clisp.org>
13575         openat-safer tests: Avoid test failure on NetBSD 8.
13576         * tests/test-openat-safer.c (main): Execute a Linux specific test only
13577         on Linux.
13579 2018-12-15  Jim Meyering  <meyering@fb.com>
13581         regex: work around a bug in glibc-2.27 and prior
13582         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
13583         assertion for /0|()0|\1|0/.
13584         * tests/test-regex.c (main): Add the same test here.
13586 2018-12-15  Bruno Haible  <bruno@clisp.org>
13588         localename: Fix use of uninitialized shell variable.
13589         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13590         gt_cv_locale_solaris114 always before use. Remove assignment without
13591         effect.
13593 2018-12-15  Bruno Haible  <bruno@clisp.org>
13595         dfa tests: Avoid test failure on Alpine Linux.
13596         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13597         command found on Alpine Linux.
13599 2018-12-15  Jim Meyering  <meyering@fb.com>
13601         dfa: avoid new warnings from gcc
13602         These would prevent building with -Werror and a Dec snapshot of gcc.
13603         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13604         Rename each inner instance to "p".
13605         (charclass_context): Remove unused static function.
13607 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13609         mkdir-p: improve diagnostic for FUSE mounts
13610         Problem reported by Niklas Hambüchen in:
13611         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13612         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13613         errno to mkdir errno if the stat errno is likely more interesting.
13615 2018-12-14  Bruno Haible  <bruno@clisp.org>
13617         hash-map: Add tests.
13618         * tests/test-hash_map.c: New file.
13619         * modules/hash-map-tests: New file.
13621         linkedhash-map: Add tests.
13622         * tests/test-linkedhash_map.c: New file.
13623         * modules/linkedhash-map-tests: New file.
13625         array-map: Add tests.
13626         * tests/test-array_map.c: New file.
13627         * modules/array-map-tests: New file.
13629         xmap: New module.
13630         * lib/gl_xmap.h: New file.
13631         * lib/gl_xmap.c: New file.
13632         * modules/xmap: New file.
13634         hash-map: New module.
13635         * lib/gl_hash_map.h: New file.
13636         * lib/gl_hash_map.c: New file.
13637         * modules/hash-map: New file.
13639         linkedhash-map: New module.
13640         * lib/gl_linkedhash_map.h: New file.
13641         * lib/gl_linkedhash_map.c: New file.
13642         * lib/gl_anyhash1.h: Update comments.
13643         * lib/gl_anyhash2.h: Likewise.
13644         * modules/linkedhash-map: New file.
13646         array-map: New module.
13647         * lib/gl_array_map.h: New file.
13648         * lib/gl_array_map.c: New file.
13649         * modules/array-map: New file.
13651         map: New module.
13652         * lib/gl_map.h: New file.
13653         * lib/gl_map.c: New file.
13654         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13655         conflict with gl_map.h.
13656         * modules/map: New file.
13658 2018-12-13  Bruno Haible  <bruno@clisp.org>
13660         select tests: Avoid test failure on Cygwin.
13661         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13663 2018-12-13  Bruno Haible  <bruno@clisp.org>
13665         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13666         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13668 2018-12-13  Bruno Haible  <bruno@clisp.org>
13670         localeconv tests: Avoid test failure on Cygwin.
13671         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13672         'mon_grouping' tests.
13674 2018-12-11  Bruno Haible  <bruno@clisp.org>
13676         omap: Don't dispose the old value when the function returns it.
13677         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13678         here.
13679         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13680         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13681         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13682         here.
13684         array-omap, avltree-omap, rbtree-omap: Tweak style.
13685         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13686         false.
13687         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13689         rbtree-omap: Add tests.
13690         * tests/test-rbtree_omap.c: New file.
13691         * modules/rbtree-omap-tests: New file.
13693         avltree-omap: Add tests.
13694         * tests/test-avltree_omap.c: New file.
13695         * modules/avltree-omap-tests: New file.
13697         array-omap: Add tests.
13698         * tests/test-array_omap.c: New file.
13699         * modules/array-omap-tests: New file.
13701         xomap: New module.
13702         * lib/gl_xomap.h: New file.
13703         * lib/gl_xomap.c: New file.
13704         * modules/xomap: New file.
13706         rbtree-omap: New module.
13707         * lib/gl_rbtree_omap.h: New file.
13708         * lib/gl_rbtree_omap.c: New file.
13709         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13710         Parameterize.
13711         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13712         * modules/rbtree-omap: New file.
13713         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13714         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13716         avltree-omap: New module.
13717         * lib/gl_avltree_omap.h: New file.
13718         * lib/gl_avltree_omap.c: New file.
13719         * lib/gl_avltree_ordered.h: Code moved to here from
13720         lib/gl_avltree_oset.c. Parameterize.
13721         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13722         * lib/gl_anytree_omap.h: New file.
13723         * modules/avltree-omap: New file.
13724         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13725         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13727         array-omap: New module.
13728         * lib/gl_array_omap.h: New file.
13729         * lib/gl_array_omap.c: New file.
13730         * modules/array-omap: New file.
13732         omap: New module.
13733         * lib/gl_omap.h: New file.
13734         * lib/gl_omap.c: New file.
13735         * modules/omap: New file.
13737 2018-12-11  Bruno Haible  <bruno@clisp.org>
13739         hash-set, linkedhash-set: Reduce code duplication.
13740         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13741         lib/gl_anyhash_set1.h.
13742         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13743         lib/gl_anyhash_set2.h. Parameterize.
13744         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13745         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13746         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13747         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13748         * lib/gl_rbtreehash_list.c: Likewise.
13749         * lib/gl_linkedhash_list.c: Likewise.
13750         (hash_resize_after_add): Remove function.
13751         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13752         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13753         * gl_hash_set.c: Likewise.
13754         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13755         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13756         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13757         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13758         * modules/hash-set (Files, Makefile.am): Likewise.
13760 2018-12-11  Bruno Haible  <bruno@clisp.org>
13762         array-set: Optimize.
13763         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13764         outside the loop, not inside the loop.
13766 2018-12-11  Bruno Haible  <bruno@clisp.org>
13768         times: Fix tests.
13769         * tests/test-times.c (doublecmp): Implement a total order.
13771 2018-12-11  Bruno Haible  <bruno@clisp.org>
13773         array-set, linkedhash-set, hash-set: Fix tests.
13774         * tests/test-array_set.c (cmp_objects_in_array): New function.
13775         (check_equals): Use it.
13776         * tests/test-hash_set.c: Likewise.
13777         * tests/test-linkedhash_set.c: Likewise.
13779 2018-12-08  Bruno Haible  <bruno@clisp.org>
13781         Fix comments.
13782         * lib/gl_list.h (gl_list_free): Clarify what it does.
13783         * lib/gl_oset.h (gl_oset_free): Likewise.
13784         * lib/gl_set.h (gl_set_free): Likewise.
13785         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13786         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13787         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13788         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13790 2018-12-03  Bruno Haible  <bruno@clisp.org>
13792         hash-set: Add tests.
13793         * tests/test-hash_set.c: New file.
13794         * modules/hash-set-tests: New file.
13796         linkedhash-set: Add tests.
13797         * tests/test-linkedhash_set.c: New file.
13798         * modules/linkedhash-set-tests: New file.
13800         array-set: Add tests.
13801         * tests/test-array_set.c: New file.
13802         * modules/array-set-tests: New file.
13804         xset: New module.
13805         * lib/gl_xset.h: New file.
13806         * lib/gl_xset.c: New file.
13807         * modules/xset: New file.
13809         hash-set: New module.
13810         * lib/gl_hash_set.h: New file.
13811         * lib/gl_hash_set.c: New file.
13812         * modules/hash-set: New file.
13814         linkedhash-set: New module.
13815         * lib/gl_linkedhash_set.h: New file.
13816         * lib/gl_linkedhash_set.c: New file.
13817         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13818         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13819         * lib/gl_anyhash_primes.h: New file, extracted from
13820         lib/gl_anyhash_list2.h.
13821         * lib/gl_anyhash_list2.h: Include it.
13822         (primes, next_prime): Remove definitions.
13823         * modules/linkedhash-set: New file.
13824         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13825         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13826         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13827         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13828         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13829         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13831         array-set: New module.
13832         * lib/gl_array_set.h: New file.
13833         * lib/gl_array_set.c: New file.
13834         * modules/array-set: New file.
13836         set: New module.
13837         * lib/gl_set.h: New file.
13838         * lib/gl_set.c: New file.
13839         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13840         gl_set.h.
13841         * modules/set: New file.
13843 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13845         bison: don't force the Yacc mode
13846         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13847         errors when Bison features are used in the grammar file.  Some of
13848         these features (such as %expect) were flagged non-yacc recently.  Most
13849         of the time, -y is actually used to please Automake's ylwrap which
13850         expects the output to be y.tab.c.
13851         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13853 2018-12-01  Bruno Haible  <bruno@clisp.org>
13855         gnupload: Document short options.
13856         * build-aux/gnupload (usage): Document the short options.
13858 2018-11-28  Ben Elliston  <bje@gnu.org>
13860         gnupload: Support option -h as alias of --help.
13861         * build-aux/gnupload: Support -h.
13863 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13865         memrchr: port better to clang
13866         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13867         longword *, to pacify clang -Wcast-align (Bug#33544).
13869 2018-11-29  Eric Blake  <eblake@redhat.com>
13871         docs: mention printf %m considerations
13872         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13873         is not portable, and is easy enough to work around.
13874         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13875         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13876         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13877         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13878         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13879         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13880         * doc/posix-functions/printf.texi (printf): Likewise.
13881         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13882         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13883         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13884         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13885         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13886         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13887         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13888         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13889         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13890         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13891         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13892         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13894 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13896         bitset: rename ebitset/expandable.* as tbitset/table.*
13897         See
13898         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13899         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13900         * lib/bitset/table.h, lib/bitset/table.c: these.
13901         Rename all the ebitset* symbols as tbitset*.
13902         Adjust dependencies.
13904 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13906         bitset: check the operations
13907         * tests/test-bitset.c (bitset_random): New.
13908         Use it.
13909         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13911 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13913         bitset: properly use false/true instead of 0/1 for Booleans
13914         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13915         0/1, as Booleans.
13917 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13919         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13920         For consistency with the name of the file.
13921         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13922         * lib/bitset/stats.c, lib/bitset/vector.c
13923         (BITSET_VARRAY): Rename as...
13924         (BITSET_VECTOR): this.
13926 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13928         strerror_r-posix: memmove, not memcpy
13929         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13930         since the source and destination might overlap in the call
13931         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13932         Simplify.
13934 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13936         bitsetv: new module
13937         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13939 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13941         bitset: add tests and doc
13942         First stabs at providing a documentation and test for the bitset
13943         module.
13944         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13946 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13948         bitset: new module
13949         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13950         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13951         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13952         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13953         * lib/bitset/vector.h, modules/bitset:
13954         New.
13956 2018-11-23  Bruno Haible  <bruno@clisp.org>
13958         localename: Fix gettext test failures on mingw.
13959         * lib/localename.c (gl_locale_name_posix): Convert the result of
13960         gl_locale_name_environ to XPG syntax.
13962 2018-11-23  Karl Berry  <karl@freefriends.org>
13964         * config/srclistvars.txt,
13965         * config/srclist.txt: remove all gettext references;
13966         the gettext maintainers will sync as needed.
13968 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13970         mktime: add libc-config dependency
13971         I missed this when we synced from glibc.
13972         * modules/mktime (Depends-on): Add libc-config.
13974 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13976         longlong: fix comment typo
13977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13979 2018-11-11  Bruno Haible  <bruno@clisp.org>
13981         havelib: Remove the need to include asm-underscore.m4.
13982         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13983         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13984         gl_HOST_CPU_C_ABI.
13985         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13986         (Depends-on): Remove host-cpu-c-abi.
13988 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13990         parse-datetime: simplify test for mktime failure
13991         * lib/parse-datetime.y (mktime_ok): Simplify.
13992         Remove args TZ and T; no longer needed.  Callers changed.
13994         posixtm: simplify test for mktime failure
13995         * lib/posixtm.c (posixtime): Simplify.
13997         nstrftime: simplify test for mktime failure
13998         * lib/nstrftime.c (__strftime_internal): Simplify.
14000 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14002         gnulib-common.m4: port _Noreturn to C++
14003         Problem reported by Akim Demaille in:
14004         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
14005         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
14006         Merge adjustments from _Noreturn.h and from glibc into the non-C++
14007         version.
14008         * lib/_Noreturn.h: Match gnulib-common.
14010 2018-10-30  Bruno Haible  <bruno@clisp.org>
14012         gnu-make: Fix for NetBSD 8 'make'.
14013         Reported by Reuben Thomas in
14014         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
14015         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
14016         output, ignoring exit codes.
14018 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
14020         maintainer-makefile: fix syntax-check rule for "same.h"
14021         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
14022         for 'same_nameat', too.
14024 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
14026         havelib: fix nested ‘configure’ chatter
14027         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
14028         AC_CACHE_CHECK calls, which resulted in confusing output like
14029         “checking for the common suffixes of directories in the library
14030         search path... checking for 64-bit host... no lib,lib”.
14032         backupfile: tweak for better code
14033         * lib/backupfile.c: Sort include directives, and remove
14034         unnecessary <limits.h> include.
14035         (FALLTHROUGH): New macro, copied from other modules.
14036         (backupfile_internal): Use it to avoid code duplication.
14037         This lets GCC 8.2.1 generate better code by inlining the
14038         call to check_extension.
14040 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14042         backupfile: new dir_fd args
14043         New module opendirat with code taken from fts.
14044         Use this module to let backupfile use a directory file descriptor.
14045         * NEWS: Document the incompatible change.
14046         * lib/backup-find.c (find_backup_file_name):
14047         * lib/backup-rename.c (backup_file_rename):
14048         New arg DIR_FD.
14049         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
14050         (SIZE_MAX): Remove.
14051         Include opendirat.h rather than dirent--.h.
14052         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
14053         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
14054         (backupfile_internal): New arg DIR_FD.  All callers changed.
14055         * lib/fts.c: Include opendirat.h.
14056         (opendirat): Move to opendirat.c.
14057         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
14058         * modules/backupfile (Depends-on): Remove dirfd, opendir.
14059         Add opendirat.
14060         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
14061         Add opendirat.
14063 2018-10-23  Bruno Haible  <bruno@clisp.org>
14065         localename: Simplify support for per-thread locales on Solaris 11.4.
14066         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
14067         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
14068         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
14069         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
14070         specific code.
14071         * lib/localename-table.h: Update comments.
14072         * lib/localename-table.c: Update comments.
14073         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
14074         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
14075         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
14076         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
14077         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
14078         HAVE_NAMELESS_LOCALES here.
14079         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
14080         m4/intlsolaris.m4.
14081         * modules/gettext (Files): Likewise.
14083 2018-10-22  Bruno Haible  <bruno@clisp.org>
14085         std-gnu11: Support Autoconf versions < 2.64.
14086         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
14087         when _AC_DO_LIMIT does not exist.
14089 2018-10-22  Bruno Haible  <bruno@clisp.org>
14091         Assume Autoconf >= 2.63.
14092         * DEPENDENCIES: Mention the requirement.
14094         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
14095         (func_get_filelist): Don't list m4/onceonly.m4 any more.
14096         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
14097         * m4/onceonly.m4: Remove file.
14099         * m4/openmp.m4: Remove file.
14100         * modules/openmp (Files): Remove m4/openmp.m4.
14102         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
14103         htmldir, dvidir, pdfdir, psdir, localedir.
14104         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
14106         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
14107         Autoconf < 2.60.
14108         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
14109         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
14111         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
14112         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
14113         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
14115         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
14116         exists.
14117         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
14119         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
14120         Autoconf < 2.61.
14122         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
14123         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
14124         Autoconf >= 2.52.
14126         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
14127         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
14128         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
14130 2018-10-22  Bruno Haible  <bruno@clisp.org>
14132         Assume Automake >= 1.11.
14133         * m4/configmake.m4: Update comments.
14134         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
14135         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
14136         of 'eval'.
14137         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
14138         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
14139         requires Automake >= 1.11.
14141 2018-10-22  Bruno Haible  <bruno@clisp.org>
14143         localename: Fix typo in comment.
14144         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
14146 2018-10-22  Bruno Haible  <bruno@clisp.org>
14148         Fix failure of 'gnulib-tool --create-testdir' with all modules.
14149         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
14151 2018-10-21  Bruno Haible  <bruno@clisp.org>
14153         locale: Ease integration with GNU libintl.
14154         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
14155         GNULIB_defined_freelocale): New macros.
14157 2018-10-21  Bruno Haible  <bruno@clisp.org>
14159         localename: Fine-tune support for per-thread locales on Solaris 11.4.
14160         * lib/localename-table.h: New file, extracted from lib/localename.c.
14161         * lib/localename-table.c: Likewise.
14162         * lib/localename.c: Include localename-table.h.
14163         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
14164         locale_hash_function instead of pointer_hash.
14165         * modules/localename (Files): Add lib/localename-table.h,
14166         lib/localename-table.c.
14167         (lib_SOURCES): Add localename-table.c.
14168         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
14169         for Solaris 11.4 locale system only on Solaris. Test for it
14170         independently whether getlocalename_l exists.
14171         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
14172         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
14173         HAVE_NAMELESS_LOCALES.
14174         * modules/gettext (Files): Add m4/intlsolaris.m4.
14176 2018-10-21  Bruno Haible  <bruno@clisp.org>
14178         Small update from gettext.
14179         * m4/intl.m4: Update from gettext:
14180         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
14181         mode on AIX.
14182         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
14183         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
14185 2018-10-16  Bruno Haible  <bruno@clisp.org>
14187         mountlist: Remove support for Cray with UNICOS 9.
14188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14189         MOUNTED_LISTMNTENT.
14190         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
14192 2018-10-16  Bruno Haible  <bruno@clisp.org>
14194         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
14195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
14196         STAT_STATFS2_FS_DATA.
14197         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
14198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14199         MOUNTED_GETMNT.
14200         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
14201         * lib/getloadavg.c (decstation): Remove definition and case.
14202         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
14203         * lib/getgroups.c: Likewise.
14204         * doc/posix-functions/getgroups.texi: Likewise.
14205         * lib/time.in.h: Update comments.
14207 2018-10-16  Bruno Haible  <bruno@clisp.org>
14209         getloadavg: Remove support for ConvexOS.
14210         * lib/getloadavg.c: Remove convex case.
14212 2018-10-16  Bruno Haible  <bruno@clisp.org>
14214         getloadavg: Remove support for Sony NEWS.
14215         * lib/getloadavg.c: Remove sony_news case.
14217 2018-10-16  Bruno Haible  <bruno@clisp.org>
14219         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
14220         * lib/fsusage.c: Remove _SEQUENT_ case.
14221         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14222         * lib/mountlist.c: Don't test for MNTTABNAME.
14223         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
14224         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
14225         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
14226         * lib/stat-size.h: Don't mention the Sequent bug.
14227         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
14229 2018-10-16  Bruno Haible  <bruno@clisp.org>
14231         fsusage: Remove support for AIX 3.
14232         * lib/fsusage.c: Remove code for AIX 3.
14233         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
14235 2018-10-16  Bruno Haible  <bruno@clisp.org>
14237         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
14238         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
14239         * lib/fsusage.c: Remove code for AIX PS/2.
14240         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
14241         * lib/getloadavg.c: Likewise.
14243 2018-10-16  Bruno Haible  <bruno@clisp.org>
14245         getloadavg: Remove support for HP-UX on m68k.
14246         * lib/getloadavg.c: Remove hp9000s300 case.
14248 2018-10-16  Bruno Haible  <bruno@clisp.org>
14250         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
14251         * lib/fsusage.c: Remove DOLPHIN case.
14252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14253         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
14255 2018-10-16  Bruno Haible  <bruno@clisp.org>
14257         getloadavg: Remove support for Alliant FX/2800.
14258         * lib/getloadavg.c: Remove alliant case.
14260 2018-10-16  Bruno Haible  <bruno@clisp.org>
14262         getloadavg: Remove support for tek4300.
14263         * lib/getloadavg.c: Remove tek4300 case.
14265 2018-10-16  Bruno Haible  <bruno@clisp.org>
14267         getloadavg: Remove support for Ardent.
14268         * lib/getloadavg.c: Remove ardent case.
14270 2018-10-16  Bruno Haible  <bruno@clisp.org>
14272         mountlist: Remove support for SVR2.
14273         Reported by Andrew Borodin <aborodin@vmail.ru> in
14274         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
14275         * lib/mountlist.c: Remove MOUNTED_FREAD case.
14276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14277         MOUNTED_FREAD.
14279 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14281         libc-config: merge from glibc
14282         * lib/cdefs.h (__glibc_has_attribute): New macro.
14284         regex: depend on libc-config
14285         * modules/regex (Depends-on): Add libc-config.
14286         This is needed after the recent autoupdate from glibc.
14288 2018-10-14  Bruno Haible  <bruno@clisp.org>
14290         localename: Add support for per-thread locales on Solaris 11.4.
14291         * lib/locale.in.h (newlocale, freelocale): New declarations.
14292         (duplocale): Declare also when the 'localename' module requests it.
14293         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
14294         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
14295         (struniq): Update.
14296         (struct locale_categories_names, struct locale_hash_node): New types.
14297         (LOCALE_HASH_TABLE_SIZE): New constant.
14298         (locale_hash_table, locale_lock): New variables.
14299         (pointer_hash, get_locale_t_name): New functions.
14300         (newlocale, duplocale, freelocale): New overridden functions.
14301         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
14302         * m4/intlsolaris.m4: New file.
14303         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
14304         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
14305         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
14306         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
14307         declared.
14308         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
14309         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14310         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
14311         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14312         * modules/localename (Files): Add intlsolaris.m4.
14313         (Depends-on): Add 'locale'.
14314         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
14315         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
14316         the signatures.
14318 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
14320         timevar: use gethrxtime to get wall clock time
14321         clock_gettime is not portable.  gethrxtime takes the best available
14322         option to get the wall clock time, including clock_gettime (monotonic
14323         clock), and gettime (non monotonic).
14324         Also, using xtime_t instead of float preserves the precision.
14325         Suggested by Bruno Haible.
14326         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
14327         * modules/timevar (Depends-on): We need gethrxtime.
14328         We no longer use times().
14329         (Link): Update.
14330         * lib/timevar.h (timevar_time_def): Use xtime_t.
14331         * lib/timevar.c (set_to_current_time): Use gethrxtime.
14332         (timevar_print): Instead of checking whether the timings themselves
14333         are large enough for the timevar to be printed, check the percentages.
14335 2018-10-14  Bruno Haible  <bruno@clisp.org>
14337         wcsnrtombs: Work around Solaris 11.4 bug.
14338         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
14339         macro.
14340         (gl_FUNC_WCSNRTOMBS): Invoke it.
14341         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
14343 2018-10-14  Bruno Haible  <bruno@clisp.org>
14345         mbsnrtowcs: Work around Solaris 11.4 bug.
14346         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
14347         macro.
14348         (gl_FUNC_MBSNRTOWCS): Invoke it.
14349         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
14351 2018-10-14  Bruno Haible  <bruno@clisp.org>
14353         doc: Update for Solaris 11.4.
14354         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
14355         mention Solaris 11.4.
14356         * m4/printf.m4: Update comments about Solaris.
14357         * m4/log.m4: Likewise.
14358         * m4/log10.m4: Likewise.
14359         * m4/logb.m4: Likewise.
14360         * m4/logbf.m4: Likewise.
14361         * m4/logbl.m4: Likewise.
14362         * m4/rename.m4: Likewise.
14363         * m4/wcrtomb.m4: Likewise.
14364         * m4/hostent.m4: Likewise.
14365         * m4/servent.m4: Likewise.
14367 2018-10-14  Bruno Haible  <bruno@clisp.org>
14369         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
14370         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
14371         pointer.
14372         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
14373         pointer.
14374         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
14375         pointer.
14376         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
14377         pointer.
14378         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
14379         pointer.
14381 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14383         bootstrap: fix wget command for po files.
14384         * build-aux/bootstrap (po_download_command_format): Fix comment,
14385         and adjust callers.
14387 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14389         timevar: improve the output format
14390         Suggested by Bruno Haible.
14391         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
14392         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
14393         wall, since its resolution is much higher.
14395 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14397         timevar: expect that getrusage is available.
14398         Don't keep both times and getrusage as backend: both are guaranteed by
14399         gnulib, a single one suffices.  Using getrusage is open to possibly
14400         tracking other types of resources in the future.
14401         * modules/timevar (Depends-on): Add getrusage.
14402         (configure.ac): Remove gl_TIMEVAR.
14403         (Files): Remove m4/timevar.m4.
14404         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
14405         * lib/timevar.h (timevar_enabled): Clarify documentation.
14406         * lib/timevar.c: Remove all the code about times.
14407         Remove all the CPP guards about getrusage: expect it to be present
14408         (courtesy of gnulib).
14410 2018-10-12  Bruno Haible  <bruno@clisp.org>
14412         mountlist: Improve support for Solaris in 64-bit mode.
14413         Reported by David Wood <David.Wood@deshaw.com> in
14414         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
14415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
14416         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
14417         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
14419 2018-10-12  Bruno Haible  <bruno@clisp.org>
14421         mountlist: Add support for Minix.
14422         Reported by Assaf Gordon in
14423         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
14424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
14425         AC_CHECK_FUNCS to check for 'getmntinfo'.
14426         * lib/mountlist.c: Update comments.
14428 2018-10-12  Bruno Haible  <bruno@clisp.org>
14430         Make better use of Autoconf.
14431         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
14432         * m4/manywarnings.m4: Likewise.
14433         * m4/manywarnings-c++.m4: Likewise.
14434         * m4/socklen.m4: Likewise.
14435         * m4/sockpfaf.m4: Likewise.
14436         * m4/stdarg.m4: Likewise.
14437         * m4/visibility.m4: Likewise.
14438         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
14439         indentation.
14440         * m4/ls-mntd-fs.m4: Likewise.
14442 2018-10-11  Bruno Haible  <bruno@clisp.org>
14444         mountlist: Modernize platform lists.
14445         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
14446         platforms, deemphasizing the obsolete ones.
14447         * lib/mountlist.c: Likewise.
14449 2018-10-11  Bruno Haible  <bruno@clisp.org>
14451         getprogname: Add support for 32-bit programs on HP-UX.
14452         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
14453         try the similar functions 32-bit programs on 64-bit HP-UX.
14455 2018-10-11  Bruno Haible  <bruno@clisp.org>
14457         getprogname: Work around program name truncation when possible.
14458         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
14459         possibly use pst_cmd instead.
14461 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14463         fts: cleanup after FTS_NOATIME removal
14464         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
14465         (FTS_STOP): Shrink to minimal values.  We don’t need to
14466         worry about binary compatibility in Gnulib, and the old way
14467         of doing things had a hole in the user options that caused
14468         FTS_OPTIONMASK to not work as desired.
14470 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
14472         fts: remove FTS_NOATIME
14473         This reverts commit da4d6974013c822af1498941e32db774b2031765.
14474         We cannot guarantee that O_NOATIME works: e.g. openat fails
14475         with EPERM if the effective user ID of the caller does not match
14476         the owner of the file and the caller is not privileged.
14477         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
14478         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
14479         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
14480         (FTS_OPTIONMASK): Adjust.
14481         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
14482         (fd_ring_check): Likewise.
14484 2018-10-08  Bruno Haible  <bruno@clisp.org>
14486         csharpcomp*, csharpexec*: Remove support for pnet.
14487         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
14488         HAVE_CSCC.
14489         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
14490         Don't test HAVE_CSCC.
14491         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
14492         (compile_csharp_class): Don't invoke it.
14493         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
14494         HAVE_ILRUN.
14495         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
14496         Don't test HAVE_ILRUN.
14497         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
14498         (execute_csharp_program): Don't invoke it.
14499         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
14500         any more.
14502 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
14504         renameatu: prefer renameat2 to syscall
14505         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
14506         Use renameat2 instead of syscall (Bug#32796).
14507         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
14509 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14511         bootstrap, gnulib-tool: use https instead of insecure rsync
14512         * build-aux/bootstrap (download_po_files, po_download_command_format):
14513         Don't try using rsync; always use wget over https to fetch PO files.
14514         * gnulib-tool (func_import): Likewise.
14515         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14517 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14519         bootstrap, gnulib-tool: correct the translations wget command
14520         * build-aux/bootstrap (po_download_command_format2): Restrict
14521         recursion to a single level.
14522         * gnulib-tool (func_import): Likewise.
14523         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14525 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14527         doc: the gnulib snapshots are not maintained
14528         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
14530 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14532         timevar: add to lib_SOURCES
14533         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
14535 2018-10-07  Bruno Haible  <bruno@clisp.org>
14537         dirent: Update documentation.
14538         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
14540 2018-10-05  Bruno Haible  <bruno@clisp.org>
14542         strpbrk: Make it possible to namespace the defined symbol.
14543         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
14545 2018-10-05  Bruno Haible  <bruno@clisp.org>
14547         strcspn: Make it possible to namespace the defined symbol.
14548         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
14550 2018-10-05  Bruno Haible  <bruno@clisp.org>
14552         raise: Make it possible to namespace the defined symbol.
14553         * lib/raise.c (raise): Undefine only after the replacement function has
14554         been defined.
14555         (raise): Renamed from rpl_raise.
14556         (raise_nothrow): Move to the end of the compilation unit.
14558 2018-10-05  Bruno Haible  <bruno@clisp.org>
14560         memcmp: Make it possible to namespace the defined symbol.
14561         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
14563 2018-10-05  Bruno Haible  <bruno@clisp.org>
14565         explicit_bzero: Make it possible to namespace the defined symbol.
14566         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
14567         glibc.
14569 2018-10-05  Bruno Haible  <bruno@clisp.org>
14571         mkdir-p: Depend on 'mkdir'.
14572         * modules/mkdir-p (Depends-on): Add 'mkdir'.
14574 2018-10-05  Bruno Haible  <bruno@clisp.org>
14576         tempname: Depend on 'mkdir'.
14577         Reported by Maarten Bosmans <mkbosmans@gmail.com>
14578         at <https://savannah.gnu.org/bugs/?33379>.
14579         * modules/tempname (Depends-on): Add 'mkdir'.
14581 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
14583         timevar: rely on gnulib modules for time portability.
14584         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
14585         * m4/timevar.m4: Don't check for clock_t and struct tms,
14586         guaranteed by gnulib.
14587         * lib/timevar.h: Use extern "C" protection.
14588         Include <stdio.h> for FILE.
14589         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14590         they are guaranteed by gnulib.
14591         Remove uses of clock as (now useless) fallback.
14593 2018-10-04  Bruno Haible  <bruno@clisp.org>
14595         sh-filename: New module.
14596         * m4/sh-filename.m4: New file.
14597         * modules/sh-filename: New file.
14598         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14599         "/bin/sh".
14600         * tests/test-posix_spawn1.c (main): Likewise.
14601         * tests/test-posix_spawn2.c (main): Likewise.
14602         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14603         is_envjavac_gcj43): Likewise.
14604         * lib/javaexec.c (execute_java_class): Likewise.
14605         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14606         * modules/posix_spawnp-tests (Depends-on): Likewise.
14607         * modules/javacomp (Depends-on): Likewise.
14608         * modules/javaexec (Depends-on): Likewise.
14610 2018-10-04  Bruno Haible  <bruno@clisp.org>
14612         spawn-pipe tests: Avoid test failure on native Windows.
14613         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14614         that fd 2 is closed.
14616 2018-10-04  Bruno Haible  <bruno@clisp.org>
14618         fcntl: Make it possible to namespace the defined symbol.
14619         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14620         been defined.
14621         (fcntl): Renamed from rpl_fcntl.
14622         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14623         from fcntl.
14624         (klibc_fcntl): Move to the end of the compilation unit.
14626 2018-10-02  Bruno Haible  <bruno@clisp.org>
14628         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14629         * tests/test-vasnprintf.c (test_function): Change the test added on
14630         2018-09-23 to check only the 18 most significant digits.
14632         vasnprintf tests: Avoid test failure on Cygwin.
14633         * tests/test-vasnprintf.c (test_function): Change the test added on
14634         2018-09-23 to check only the 42 most significant digits.
14636 2018-10-01  Bruno Haible  <bruno@clisp.org>
14638         mkostemp, mkostemps: Update documentation.
14639         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14640         * doc/glibc-functions/mkostemps.texi: Likewise.
14642 2018-10-01  Tom Tromey  <tom@tromey.com>
14644         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14645         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14646         on OS X.
14648 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14650         hmac-*: refactor to remove repetitive code
14651         * lib/hmac.c: A new parameterized single implementation.
14652         * lib/hmac-md5.c: Define parameters and include implementation.
14653         * lib/hmac-sha1.c: Likewise.
14654         * lib/hmac-sha256.c: Likewise.
14655         * lib/hmac-sha512.c: Likewise.
14656         * modules/crypto/hmac-md5: Reference the new implementation file.
14657         * modules/crypto/hmac-sha1: Likewise.
14658         * modules/crypto/hmac-sha256: Likewise.
14659         * modules/crypto/hmac-sha512: Likewise.
14660         * tests/test-hmac-md5.c: Refactor common code to a single function.
14661         * tests/test-hmac-sha1.c: Likewise.
14662         * tests/test-hmac-sha256.c: Likewise.
14663         * tests/test-hmac-sha512.c: Likewise.
14665 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14667         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14668         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14669         key length to that output by sha512, not the blocksize.
14670         Otherwise uninitialized data from the stack
14671         is used when computing the hash.
14672         * tests/test-hmac-sha512.c: Add a shortened key test case.
14673         Reported at https://github.com/coreutils/gnulib/pull/5
14675 2018-09-30  Bruno Haible  <bruno@clisp.org>
14677         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14678         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14679         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14680         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14681         'unsigned int' before comparison with an unsigned value.
14683 2018-09-30  Bruno Haible  <bruno@clisp.org>
14685         grantpt: Remove unnecessary dependency.
14686         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14688 2018-09-30  Bruno Haible  <bruno@clisp.org>
14690         timevar: Small tweaks.
14691         * lib/timevar.h: Fix comments. Add parameter names to function
14692         declarations.
14693         * lib/timevar.c: Include timevar.h immediately after config.h.
14694         * lib/timevar.def: Fix comments.
14695         * modules/timevar (Maintainer): List Akim Demaille.
14697 2018-09-30  Bruno Haible  <bruno@clisp.org>
14699         timevar: Include documentation in gnulib manual.
14700         * doc/timevar.texi: Change node and section name to 'Profiling of
14701         program phases'.
14702         In the code snippets, tweak the #includes and use GNU coding style.
14703         * doc/gnulib.texi: Include timevar.texi.
14705 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14707         timevar: import from Bison.
14708         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14709         New files.
14710         * lib/timevar.def: New file.
14711         * doc/timevar.texi: New file.
14713 2018-09-26  Bruno Haible  <bruno@clisp.org>
14715         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14716         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14717         * lib/javacomp.c (default_target_version): Likewise.
14719 2018-09-26  Bruno Haible  <bruno@clisp.org>
14721         javacomp-script, javacomp: Add support for Java 11.
14722         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14723         target-version 11.
14724         * lib/javaversion.h: Update comments.
14725         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14726         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14727         TARGET_VERSION_BOUND, target_version_index,
14728         corresponding_classfile_version): Accept source_version 11 and
14729         target_version 11.
14730         * lib/javacomp.h: Update comments accordingly.
14732 2018-09-23  Bruno Haible  <bruno@clisp.org>
14734         vasnprintf: Fix heap memory overrun bug.
14735         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14736         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14737         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14738         memory.
14739         * tests/test-vasnprintf.c (test_function): Add another test.
14741 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14743         maint: mktime.c now shared with glibc
14744         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14745         are now the same in Gnulib and glibc.
14747         mktime: fix _LIBC typo
14748         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14750 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14752         dfa: optimization for state merge
14753         * lib/dfa.c (merge2): New function.
14754         (merge_nfa_state): Use it.
14756 2018-09-18  Jim Meyering  <meyering@fb.com>
14758         dfa: trivial comment fix: s/is/if/
14759         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14761 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14763         dfa: use more-informative function name
14764         * lib/dfa.c (maybe_disable_superset_dfa):
14765         Rename from dfautf8noss.  Use change.
14767         dfa: tweak allocation performance
14768         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14769         Prefer ptrdiff_t for indexes some more.
14770         Use char for flags, as it’s wide enough.
14771         Allocate queue and flags together, with one malloc call.
14772         No need to use xnmalloc since the multiplication and
14773         addition cannot overflow (it’s already been checked by
14774         earlier allocation).  Prefer memset to open-coding.
14776         dfa: prune states as we go
14777         * lib/dfa.c (prune): Remove.
14778         dfa: reorder enum for efficiency
14779         (merge_nfa_state): Prune as we go instead of at the end.
14780         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14782         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14783         of the enumeration to make it easier for GCC to generate
14784         efficient code by using fewer comparisons to check for
14785         ranges of values.
14786         (atom): Take advantage of the reordering.
14788 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14790         dfa: optimize alternation in NFA
14791         Even when similar states exist in alternation, the DFA treats them
14792         as separate items, which may complicate the transition in NFA and
14793         cause slowdown.  This change assembles the states into one.  For
14794         example, ab|ac is changed into a(b|c).  This change speeds-up
14795         matching for many branched patterns.  For example, grep speeds up
14796         more than 30× in:
14798           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14799           time -p env LC_ALL=C grep -vf in in
14801         * lib/dfa.c (prune): New function.
14802         (merge_nfa_state): New function.  It merges similar NFA states.
14803         (dfaoptimize): New function.  It seeks merged and removed nodes.
14804         (dfaanalyze): Call new function.
14805         (dfautf8noss): Change name from dfaoptimize because of addition of new
14806         function.
14807         (dfacomp): Update caller.
14809         dfa: simplify initial state
14810         Simplifying the initial state enables easier optimization of the NFA.
14811         * lib/dfa.c (enum token): Add new element BEG.
14812         (prtok): Adjust due to adding element BEG.
14813         (dfaparse): Put BEG at a head of tokens.
14814         (state_index): Adjust due to adding element BEG.
14815         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14816         build initial state.
14817         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14819 2018-09-18  Bruno Haible  <bruno@clisp.org>
14821         file-has-acl: Fix test failure on Cygwin 2.9.
14822         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14823         * lib/acl-internal.h: Likewise.
14824         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14825         * lib/acl-internal.c: Update comments regarding Cygwin.
14826         * lib/acl_entries.c: Likewise.
14827         * lib/file-has-acl.c: Likewise.
14828         (file_has_acl): For Cygwin, use a different way to determine whether
14829         the "default" ACL of a directory is nontrivial.
14830         * lib/get-permissions.c: Update comments regarding Cygwin.
14831         * lib/set-permissions.c: Likewise.
14833 2018-09-18  Bruno Haible  <bruno@clisp.org>
14835         stat-time tests: Fix test failure on Cygwin.
14836         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14838 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14840         doc: OS X 10.11 lacked ns time functions
14841         According to <https://github.com/zeromq/libzmq/issues/2175>,
14842         nanosecond-resolution timestamp functions were introduced
14843         in macOS 10.12, so document the last version (OS X 10.11)
14844         where they were absent.
14846         gettime: nanotime never existed
14847         Problem reported by Bruno Haible in:
14848         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14849         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14850         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14852 2018-09-18  Bruno Haible  <bruno@clisp.org>
14854         doc: Update statement about target platforms.
14855         Reported by Simon Sobisch.
14856         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14857         restrictions on MSVC versions.
14859 2018-09-18  Bruno Haible  <bruno@clisp.org>
14861         posix_spawn tests: Fix link error on 64-bit Cygwin.
14862         * tests/test-posix_spawn1.c (environ): Remove declaration.
14863         * tests/test-posix_spawn2.c (environ): Likewise.
14864         * tests/test-posix_spawn3.c (environ): Likewise.
14865         * tests/test-posix_spawn4.c (environ): Likewise.
14866         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14867         * modules/posix_spawnp-tests (Depends-on): Likewise.
14869 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14871         timespec: new function current_timespec
14872         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14873         and don’t worry about it failing on a CLOCK_REALTIME arg.
14874         POSIX requires it to succeed and I don’t know of any
14875         counterexamples where the fallbacks would work.
14876         (current_timespec): New function, taken from Emacs.  It is more
14877         convenient than gettime, and can help register allocation.
14878         * lib/timespec.h: Include arg-nonnull.h.
14879         (current_timespec): New declaration.
14880         (gettime, settime): Declare args to be nonnull.
14881         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14883 2018-09-16  Bruno Haible  <bruno@clisp.org>
14885         setlocale: Improve locale handling on macOS 10.12 or newer.
14886         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14887         gl_locale_name_canonicalize.
14888         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14889         and LC_MESSAGES.
14890         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14892 2018-09-16  Bruno Haible  <bruno@clisp.org>
14894         Update list of locale names with scripts on macOS.
14895         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14896         match Mac OS X 10.13 and recent glibc.
14898 2018-09-16  Bruno Haible  <bruno@clisp.org>
14900         gettext: Use newer macOS APIs when possible.
14901         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14902         CFLocaleCopyPreferredLanguages.
14904 2018-09-16  Bruno Haible  <bruno@clisp.org>
14906         localename: Revisit macOS specific code.
14907         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14908         Fix comments about Mac OS X versions.
14910 2018-09-15  Bruno Haible  <bruno@clisp.org>
14912         setlocale: Improve support for locales not supported by libc.
14913         Reported by Dapeng Gao <peter@dpgao.cc> at
14914         <https://savannah.gnu.org/bugs/?54479>.
14915         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14916         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14917         to be set is not supported by libc: Emit warnings instead of failing.
14919 2018-09-15  Bruno Haible  <bruno@clisp.org>
14921         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14922         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14923         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14924         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14926         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14927         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14928         * doc/glibc-functions/strcasestr.texi: Likewise.
14930 2018-09-14  Bruno Haible  <bruno@clisp.org>
14932         doc: Fix bottom of top-level page.
14933         Reported by Akim Demaille <akim.demaille@gmail.com> in
14934         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14935         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14936         mode.
14937         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14938         accordingly.
14940 2018-09-12  Bruno Haible  <bruno@clisp.org>
14942         Add test case from a recent glibc bug.
14943         * tests/test-strstr.c (main): Add test of long needle.
14944         * tests/test-strcasestr.c (main): Likewise.
14945         * tests/test-c-strstr.c (main): Likewise.
14946         * tests/test-c-strcasestr.c (main): Likewise.
14947         * tests/test-memmem.c (main): Likewise.
14949 2018-09-12  Bruno Haible  <bruno@clisp.org>
14951         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14952         * tests/test-c-strstr.c (main): Add the same tests here as well.
14954 2018-09-12  Bruno Haible  <bruno@clisp.org>
14956         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14957         * tests/test-memmem.c (main): Free haystack.
14958         * tests/test-strcasestr.c (main): Likewise.
14959         * tests/test-c-strcasestr.c (main): Likewise.
14961 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14963         xstrtol: fix missing-TYPE_SIGNED typo
14964         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14966 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14968         timespec: fix resolution confusion
14969         In normal usage, clock resolution is given in seconds, but the
14970         code was mistakenly using inverse seconds and calling it
14971         “resolution”.  Fix this, partly by renaming two identifiers.
14972         The old names will be kept for a bit, to ease transition.
14973         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14974         New constants, replacing TIMESPEC_RESOLUTION and
14975         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14976         All uses changed.
14978 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14980         mktime: simplify in prep for glibc merge
14981         * lib/mktime.c, lib/timegm.c [_LIBC]:
14982         Include mktime-internal.h (a small file just for glibc)
14983         instead of using a typedef.
14985 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14987         intprops: minor clarification of code
14988         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14989         Use _GL_INT_CONVERT rather than reinventing it.
14991 2018-09-07  Bruno Haible  <bruno@clisp.org>
14993         Fix a comment.
14994         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14996 2018-09-07  Bruno Haible  <bruno@clisp.org>
14998         posix_spawn_file_actions_addchdir: Add tests.
14999         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
15000         * tests/test-posix_spawn4.c: New file.
15001         * modules/posix_spawn_file_actions_addchdir-tests: New file.
15003 2018-09-07  Bruno Haible  <bruno@clisp.org>
15005         posix_spawn_file_actions_addchdir: New module.
15006         Suggested by Eric Blake in
15007         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
15008         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
15009         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
15010         union member 'chdir_action'.
15011         * lib/spawn_faction_addchdir.c: New file.
15012         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
15013         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
15014         HAVE_WORKING_POSIX_SPAWN.
15015         * lib/spawn_faction_adddup2.c: Likewise.
15016         * lib/spawn_faction_addopen.c: Likewise.
15017         * m4/posix_spawn_faction_addchdir.m4: New file.
15018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
15019         'posix_spawn_file_actions_addchdir' is present and whether
15020         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
15021         instead of HAVE_WORKING_POSIX_SPAWN.
15022         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
15023         posix_spawn_file_actions_addchdir is declared.
15024         (gl_SPAWN_H_DEFAULTS): Initialize
15025         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15026         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15027         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
15028         * modules/spawn (Makefile.am): Substitute
15029         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15030         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15031         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
15032         * modules/posix_spawn_file_actions_addchdir: New file.
15033         * modules/posix_spawn_file_actions_addclose (Depends-on,
15034         configure.ac): Test also REPLACE_POSIX_SPAWN.
15035         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
15036         configure.ac): Likewise.
15037         * modules/posix_spawn_file_actions_addopen (Depends-on,
15038         configure.ac): Likewise.
15039         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
15040         signature.
15041         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15042         * doc/posix-functions/posix_spawnp.texi: Likewise.
15044 2018-09-06  Bruno Haible  <bruno@clisp.org>
15046         stddef: Override max_align_t on NetBSD 8.0/x86.
15047         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
15048         the value of __alignof__ (max_align_t).
15049         * doc/posix-headers/stddef.texi: Mention the issue.
15051 2018-09-06  Bruno Haible  <bruno@clisp.org>
15053         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
15054         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
15055         system fcntl.
15056         * doc/posix-functions/fcntl.texi: Document the issue.
15058 2018-09-06  Bruno Haible  <bruno@clisp.org>
15060         count-trailing-zeros tests: Rely on limits-h module.
15061         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
15062         definition.
15063         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
15065 2018-09-06  Bruno Haible  <bruno@clisp.org>
15067         count-leading-zeros tests: Rely on limits-h module.
15068         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
15069         definition.
15070         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
15072 2018-09-06  Bruno Haible  <bruno@clisp.org>
15074         count-one-bits tests: Rely on limits-h module.
15075         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
15076         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
15078 2018-09-06  Bruno Haible  <bruno@clisp.org>
15080         xstrtoll: Rely on limits-h module.
15081         * lib/xstrtol.c: Don't include intprops.h.
15082         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
15083         * modules/xstrtol (Depends-on): Remove 'intprops'.
15084         * modules/xstrtoll (Depends-on): Add 'limits-h'.
15086 2018-09-06  Bruno Haible  <bruno@clisp.org>
15088         strtoll, strtoull: Rely on limits-h module.
15089         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
15090         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
15091         * modules/strtoll (Depends-on): Add limits-h.
15092         * modules/strtoull (Depends-on): Likewise.
15094 2018-09-06  Bruno Haible  <bruno@clisp.org>
15096         intprops tests: Fix compilation error with pre-C99 compiler.
15097         * tests/test-intprops.c (verify_stmt): New macro.
15098         (VERIFY, main): Use it.
15100 2018-09-06  Bruno Haible  <bruno@clisp.org>
15102         limits-h: Provide numerical limits macros.
15103         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
15104         IRIX and for GCC.
15105         (WORD_BIT, LONG_BIT): Define.
15106         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
15107         <limits.h> does not define LLONG_MAX or WORD_BIT.
15108         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
15109         TYPE_MAXIMUM): New macros, from intprops.h.
15110         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
15111         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
15112         provides.
15114 2018-09-05  Bruno Haible  <bruno@clisp.org>
15116         fcntl: Don't access nonexistent optional argument.
15117         Reported by Frank Busse <f.busse@imperial.ac.uk> in
15118         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
15119         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
15120         don't consume an argument. For actions that take an 'int' argument,
15121         consume an 'int' argument.
15123 2018-09-05  Eric Blake  <eblake@redhat.com>
15125         doc: mention environ pitfall
15126         * doc/posix-functions/environ.texi (environ): Assigning NULL to
15127         environ is a glibc extension.
15129 2018-09-03  Bruno Haible  <bruno@clisp.org>
15131         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
15132         Reported by Antoine Luong <antoine.luong@c-s.fr> in
15133         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
15134         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
15135         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
15136         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
15138 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15140         mktime: fix unlikely race+overflow bug
15141         Problem reported by Alexandre Oliva in:
15142         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
15143         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
15144         to avoid an unlikely race if the compiler delays a load and
15145         if this cascades into a signed integer overflow.
15147 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15149         mktime, timegm: simplify glibc time64_t
15150         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
15151         Now long int, not time_t, since long int is the longstanding type
15152         for this in glibc and there is no need to change it even if time_t
15153         becomes 64 bits - even int would do, though this would be a change
15154         to the glibc generated code.  When this change is merged into
15155         glibc, it should simplify the time_t vs time64_t situation.
15157         mktime, timegm: simplify merge to glibc
15158         Move code around to make a merge to glibc easier to audit.
15159         This should not change behavior.
15160         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
15161         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
15162         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
15163         simplify later conditionals; default the others to zero.  In uses
15164         of these conditionals, explicitly spell out how _LIBC affects
15165         things, so it’s easier to review from a glibc viewpoint.
15166         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
15167         compartmentalize tzset issues.  Move system-dependent tzsettish
15168         code here from mktime.
15169         (mktime): Move tzsettish code to my_tzset, and move
15170         localtime_offset to within mktime so that it doesn’t
15171         need a separate ifdef.
15173 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
15175         intprops: avoid evaluation of some expressions
15176         This makes EXPR_SIGNED (e) easier to use, as it no longer
15177         evaluates the expression E.  Formerly, E was required to be free
15178         of side effects.
15179         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
15180         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
15181         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
15183 2018-08-23  Bruno Haible  <bruno@clisp.org>
15185         getcwd: Add cross-compilation guesses.
15186         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
15187         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
15188         Based on a patch by Paul Eggert.
15189         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
15190         guesses for all GNU systems.
15192 2018-08-19  Bruno Haible  <bruno@clisp.org>
15194         glob-h: Formalize side effects from other modules.
15195         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
15196         * m4/glob.m4 (gl_GLOB): Invoke it.
15198         fnmatch-h: Formalize side effects from other modules.
15199         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
15200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
15202         limits-h: Formalize side effects from other modules.
15203         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
15204         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
15206 2018-08-19  Bruno Haible  <bruno@clisp.org>
15208         getpass: Move declaration to <unistd.h>.
15209         * lib/unistd.in.h (getpass): New declaration.
15210         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
15211         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
15212         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
15213         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
15214         On glibc systems, don't set REPLACE_GETPASS to 1.
15215         * modules/getpass (Depends-on): Add 'unistd'.
15216         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
15217         (Include): Specify <unistd.h> instead of "getpass.h".
15218         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
15219         (configure.ac): Sync with the configure.ac section of modules/getpass.
15220         (Include): Specify <unistd.h> instead of "getpass.h".
15221         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
15222         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
15223         REPLACE_GETPASS.
15224         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
15225         REPLACE_GETPASS.
15226         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
15227         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
15228         and musl.
15229         * NEWS: Mention the change.
15231 2018-08-19  Bruno Haible  <bruno@clisp.org>
15233         glob: Fix over-optimization due to attribute __nonnull__.
15234         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
15236 2018-08-19  Bruno Haible  <bruno@clisp.org>
15238         glob: Fix another compilation error when glob.h is not replaced.
15239         Reported by Reuben Thomas <rrt@sc3d.org> in
15240         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
15241         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
15242         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
15244 2018-08-18  Bruno Haible  <bruno@clisp.org>
15246         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
15247         Reported by Reuben Thomas <rrt@sc3d.org> in
15248         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
15249         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
15250         in config.h.
15252 2018-08-18  Bruno Haible  <bruno@clisp.org>
15254         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
15255         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
15256         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
15257         Solution proposed by Eli Zaretskii.
15258         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
15259         * lib/gettimeofday.c (GetProcAddress): Likewise.
15260         * lib/link.c (GetProcAddress): Likewise.
15261         * lib/physmem.c (GetProcAddress): Likewise.
15262         * lib/poll.c (GetProcAddress): Likewise.
15263         * lib/select.c (GetProcAddress): Likewise.
15264         * lib/stat-w32.c (GetProcAddress): Likewise.
15266 2018-08-18  Bruno Haible  <bruno@clisp.org>
15268         glob: Fix another compilation error when glob.h is not replaced.
15269         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
15270         * lib/globfree.c: Include <libc-config.h>.
15272 2018-08-18  Bruno Haible  <bruno@clisp.org>
15274         glob: Fix compilation error when glob.h is not replaced.
15275         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
15276         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
15277         * lib/glob_pattern_p.c: Include <libc-config.h>.
15278         * modules/glob (Depends-on): Add libc-config.
15280 2018-08-18  Bruno Haible  <bruno@clisp.org>
15282         scratch_buffer: Add tests.
15283         * tests/test-scratch-buffer.c: New file.
15284         * modules/scratch_buffer-tests: New file.
15286 2018-08-18  Bruno Haible  <bruno@clisp.org>
15288         scratch_buffer: Fix include file.
15289         Reported by Reuben Thomas <rrt@sc3d.org> in
15290         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
15291         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
15292         double-inclusion guard.
15294 2018-08-18  Bruno Haible  <bruno@clisp.org>
15296         glob-h: Revert Paul Eggert's revert.
15297         * m4/glob_h.m4: Revert to previous state.
15298         * modules/glob-h: Likewise.
15300 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15302         glob-h: always build glob.h
15303         This works around a problem reported by Reuben Thomas in:
15304         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
15305         This workaround always builds glob.h, even on platforms that
15306         do not need it; perhaps this could be improved someday.
15307         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
15308         is always created now.
15309         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
15311 2018-08-13  Bruno Haible  <bruno@clisp.org>
15313         monetary: Simplify m4 code.
15314         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
15315         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
15317 2018-08-13  Bruno Haible  <bruno@clisp.org>
15319         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
15320         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
15321         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
15322         and by Paul J. Lucas <paul@lucasmail.org> in
15323         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
15324         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
15326 2018-08-11  Bruno Haible  <bruno@clisp.org>
15328         setlocale: Trivial simplification.
15329         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
15331 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15333         verify: port 'assume' to traditional tools
15334         * lib/verify.h (assume): Port better to Oracle Studio 12.6
15335         and other tools that use /*NOTREACHED*/ comments.
15337 2018-08-10  Bruno Haible  <bruno@clisp.org>
15339         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
15340         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15341         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
15342         'fnmatch-gnu' is in use.
15344 2018-08-07  Bruno Haible  <bruno@clisp.org>
15346         glob-h: Add tests.
15347         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
15348         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
15349         tests/test-glob-h.c.
15350         * modules/glob-h-tests: New file.
15351         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
15352         conditions.
15353         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
15354         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
15356 2018-08-07  Bruno Haible  <bruno@clisp.org>
15358         glob-h: New module.
15359         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
15360         replacements.
15361         * lib/glob.c: Include <config.h>.
15362         * m4/glob_h.m4: New file.
15363         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
15364         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15365         REPLACE_GLOB_PATTERN_P as appropriate.
15366         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
15367         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
15368         * modules/glob-h: New file.
15369         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
15370         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
15371         lstat, sys_stat. Change conditions.
15372         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15373         REPLACE_GLOB_PATTERN_P. Set module indicator.
15374         (Makefile.am): Remove code that is moved to glob-h.
15375         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
15376         * modules/posixcheck (Depends-on): Add glob-h.
15378 2018-08-06  Bruno Haible  <bruno@clisp.org>
15380         Force generation of substitute .h file when C++ support is enabled.
15381         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
15382         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
15383         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
15384         FNMATCH_H to non-empty.
15385         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
15386         ICONV_H to non-empty.
15387         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
15388         MONETARY_H to non-empty.
15389         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
15390         non-empty.
15392 2018-08-06  Bruno Haible  <bruno@clisp.org>
15394         fnmatch-h: Fix test compilation error on mingw (regression from today).
15395         * lib/fnmatch.in.h: Fix conditions.
15397 2018-08-06  Bruno Haible  <bruno@clisp.org>
15399         sys_resource: Relicense under LGPLv2+.
15400         John Malmberg's approval is in
15401         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
15402         * modules/sys_resource (License): Change to LGPLv2+.
15404 2018-08-06  Bruno Haible  <bruno@clisp.org>
15406         fnmatch-h: Add tests.
15407         * tests/test-fnmatch-h.c: New file.
15408         * modules/fnmatch-h-tests: New file.
15409         * tests/test-fnmatch-h-c++.cc: New file.
15410         * modules/fnmatch-h-c++-tests: New file.
15412 2018-08-06  Bruno Haible  <bruno@clisp.org>
15414         fnmatch-h: New module.
15415         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
15416         replacements.
15417         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
15418         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
15419         'posixcheck' warning.
15420         * m4/fnmatch_h.m4: New file.
15421         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
15422         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
15423         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
15424         as appropriate.
15425         * modules/fnmatch-h: New file.
15426         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
15427         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
15428         conditions.
15429         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
15430         indicator.
15431         (Makefile.am): Remove code that is moved to fnmatch-h.
15432         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
15433         REPLACE_FNMATCH.
15434         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
15435         * modules/posixcheck (Depends-on): Add fnmatch-h.
15437 2018-08-06  Bruno Haible  <bruno@clisp.org>
15439         Enable more C++ tests.
15440         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
15441         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
15442         * modules/strings-tests (Depends-on): Add strings-c++-tests.
15443         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
15444         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
15446 2018-08-06  Bruno Haible  <bruno@clisp.org>
15448         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
15449         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
15450         getopt.h.
15451         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
15453 2018-08-05  Bruno Haible  <bruno@clisp.org>
15455         utime-h: Generate header file when module 'posixcheck' is in use.
15456         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
15457         UTIME_H to non-empty.
15459 2018-08-05  Bruno Haible  <bruno@clisp.org>
15461         monetary: Generate header file when module 'posixcheck' is in use.
15462         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
15463         use, set MONETARY_H to non-empty.
15465 2018-08-05  Bruno Haible  <bruno@clisp.org>
15467         iconv-h: Generate header file when module 'posixcheck' is in use.
15468         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
15469         set ICONV_H to non-empty.
15471 2018-08-05  Bruno Haible  <bruno@clisp.org>
15473         Optimize the "checking whether ... is declared without a macro" checks.
15474         Suggested by Paul Eggert in
15475         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
15476         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
15477         Gnulib module 'posixcheck' is not in use.
15479 2018-08-05  Bruno Haible  <bruno@clisp.org>
15481         iconv-h: Enable 'posixcheck' warnings.
15482         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
15483         iconv_open.
15484         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
15486 2018-08-05  Bruno Haible  <bruno@clisp.org>
15488         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
15489         * m4/extern-inline.m4: Add more comments.
15490         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
15491         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
15492         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
15494 2018-08-04  Bruno Haible  <bruno@clisp.org>
15496         New module 'posixcheck'.
15497         * modules/posixcheck: New file.
15498         * m4/posixcheck.m4: New file.
15499         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
15500         (Which modules?): Reference it.
15502 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
15504         dfa: fix memory leak
15505         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
15507 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15509         ieee754-h: new module
15510         It looks like Emacs can use this for some NaN processing.
15511         Emacs uses it only on double NaNs so it should be safe.
15512         * MODULES.html.sh (func_all_modules): Add ieee754-h.
15513         * config/srclist.txt: Mention ieee754.h in a comment.
15514         * doc/glibc-headers/ieee754.texi (ieee754.h):
15515         Gnulib now has a substitute that should work
15516         except for long double and for non-IEEE platforms.
15517         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
15518         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
15520 2018-07-27  Bruno Haible  <bruno@clisp.org>
15522         iswcntrl: Mention minor problem on macOS.
15523         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
15525 2018-07-26  Colin Watson  <cjwatson@debian.org>
15527         bootstrap, gnulib-tool: fix translations rsync
15528         Previously, we created files such as $pobase/Makefile.in.in and then the
15529         subsequent rsync would immediately delete them.
15530         * build-aux/bootstrap (po_download_command_format): Avoid deleting
15531         non-.po files in target directory when rsyncing translations.
15532         * gnulib-tool (func_import): Likewise.
15533         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15535 2018-07-25  Jim Meyering  <meyering@fb.com>
15537         bootstrap: reinstate definition fo gnulib_mk.
15538         That variable is used at least by cppi.
15539         * build-aux/bootstrap (gnulib_mk): Restore definition.
15540         This reverts the deletion from v0.1-1844-gc66dba9ba.
15542 2018-07-23  Bruno Haible  <bruno@clisp.org>
15544         doc: For module names, use texinfo markup @code{} or @samp{}.
15545         * doc/alloca.texi: Mark gnulib module names with @code.
15546         * doc/alloca-opt.texi: Likewise.
15547         * doc/quote.texi: Likewise.
15548         * doc/posix-functions/freopen.texi: Likewise.
15549         * doc/posix-functions/open.texi: Likewise.
15550         * doc/posix-functions/readlink.texi: Likewise.
15551         * doc/posix-functions/readlinkat.texi: Likewise.
15552         * doc/posix-functions/stdout.texi: Likewise.
15553         * doc/posix-functions/stderr.texi: Likewise.
15554         * doc/posix-functions/unlink.texi: Likewise.
15555         * doc/posix-functions/unlinkat.texi: Likewise.
15556         * doc/posix-functions/utime.texi: Likewise.
15557         * doc/posix-functions/utimensat.texi: Likewise.
15558         * doc/posix-functions/utimes.texi: Likewise.
15559         * doc/posix-headers/stdint.texi: Likewise.
15560         * doc/glibc-functions/futimesat.texi: Likewise.
15561         * doc/glibc-functions/lutimes.texi: Likewise.
15562         * doc/glibc-functions/memmem.texi: Likewise.
15564 2018-07-23  Werner LEMBERG  <wl@gnu.org>
15566         doc: Avoid some overfull lines in the TeX output.
15567         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
15568         @example.
15569         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
15570         newline before the long URL.
15571         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
15572         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
15573         Add line breaks in code snippets.
15575 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15577         hard-locale: simplify by removing hard-locale.m4
15578         * m4/hard-locale.m4: Remove.
15579         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
15580         (configure.ac): Do not call gl_HARD_LOCALE.
15582         gnulib-tool: limit line length for git send-email
15583         * gnulib-tool (func_import): Break actioncmd log line
15584         into multiple lines.
15586 2018-07-16  Bruno Haible  <bruno@clisp.org>
15588         ffs: Ensure declaration on mingw.
15589         Reported by Daniel P. Berrangé <berrange@redhat.com>
15590         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15591         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15592         also declared.
15594 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15596         regex-tests: add dependency
15597         * modules/regex-tests (Depends-on): Add gettext-h.
15598         This is needed given the recent changes to regex,
15599         which no longer depends on gettext-h.
15601 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15603         regex: now in sync with glibc
15604         * config/srclist.txt: Gnulib and glibc regex code
15605         are synchronized again.
15607 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15609         renameatu: rename from renameat2
15610         It's looking like Glibc will add a renameat2 function
15611         that is incompatible with Gnulib renameat2; see:
15612         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15613         To help avoid future confusion, rename renameat2 to something else.
15614         Use the name 'renameatu', as the Gnulib function is close to the
15615         Glibc function.  Perhaps someday there will also be a renameat2
15616         Gnulib module, which mimicks the future glibc renameat2, but that
15617         can wait as nobody seems to need such a module now.
15618         * NEWS: Mention this.
15619         * lib/renameatu.c: Rename from lib/renameat2.c.
15620         * lib/renameatu.h: Rename from lib/renameat2.h.
15621         * modules/renameatu: Rename from modules/renameat2.
15622         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15623         All uses of "renameat2" in identifiers or file name
15624         changed to "renameatu", except for two instances in
15625         lib/renameatu.c that deal with the Linux kernel's
15626         renameat2 syscall.
15628 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15630         gnulib-tool: minor tweaks for --gnu-make
15631         * gnulib-tool: Do not allow --gnu-make in test modes,
15632         since they all require automake.
15633         (func_emit_lib_Makefile_am): Don’t emit automake comment
15634         if --gnu-make.
15636         regex: work around conditional-dependencies glitch
15637         * modules/regex (Depends-on): Add langinfo.
15638         Without this change, I had problems building an experimental
15639         version of GNU Emacs.  The symptom of the bug was a message
15640         ‘./configure: line 12726: test: =: unary operator expected’.
15641         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15642         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15643         was unset.  Although gl_FUNC_NL_LANGINFO has
15644         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15645         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15646         --conditional-dependencies sometimes arranges for the
15647         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15648         code.  Since the regex code includes <langinfo.h> it should be
15649         depending on the langinfo module anyway, and this happens to work
15650         around the bug, so install that as a workaround for now.  To
15651         reproduce the original problem, run the following shell script on
15652         the version of Gnulib just before this patch was installed.
15653                 rm -fr foo
15654                 mkdir foo
15655                 cat >foo/configure.ac <<'EOF'
15656                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15657                 gl_EARLY
15658                 gl_INIT
15659                 AC_OUTPUT
15660                 EOF
15661                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15662                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15663                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15664                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15665                 cd foo
15666                 aclocal -I m4
15667                 autoconf
15668                 ./configure --with-included-regex
15670 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15672         wchar: fix bug when checking for ‘inline’
15673         I discovered this when looking into using the regex module
15674         with Emacs.
15675         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15676         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15677         conftest1.c and conftest2.c but these files were not created.
15678         As far as I can see, this check never worked and nobody reported
15679         it until now, which is a bit worrisome.
15681 2018-06-30  Jim Meyering  <meyering@fb.com>
15683         bootstrap: s/--option val/--option=val/
15684         * build-aux/bootstrap (gnulib_tool_options): Change the
15685         spelling of "--option val" pairs to "--option=val", for
15686         aesthetics, and also so that this file no longer triggers
15687         a common help2man syntax-check warning when copied into
15688         projects like grep, gzip, etc.
15690 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15692         manywarnings: omit -Wswitch-default
15693         This should make things more consistent, as we already ignore
15694         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15695         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15696         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15697         Add -Wswitch-default.
15698         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15699         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15700         Remove -Wswitch-default.
15702         regex: revert most trimming
15703         Problems reported by Bruno Haible in:
15704         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15705         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15706         and wctype back in.  lock because regex users shouldn’t
15707         need to know that regex needs locking, and the rest because
15708         gnulib-tool should ordinarily ignore them anyway.
15710 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15712         regex: trim module dependencies
15713         * modules/regex (Depends-on): Remove gettext-h and lock,
15714         since the regex code should work OK without these modules,
15715         and Emacs uses it that way.  Also remove memcmp, memmove,
15716         and wctype, as these modules are obsolete and should not be
15717         needed any more.
15719 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15721         regex: glibc does not use intprops.h
15722         Maybe we can talk glibc into using intprops.h someday, but
15723         now doesn’t seem to be a good time.
15724         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15725         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15726         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15728 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15730         regex: port to recently proposed glibc regex merge
15731         This patch is inspired by Adhemerval Zanella's recent proposal
15732         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15733         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15734         the glibc side, without keeping Gnulib portable.
15735         * lib/regex.h: Fix a problem with glibc installed-header checking,
15736         as follows:
15737         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15738         (_Restrict_arr_): Prefer __restrict_arr if defined,
15739         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15740         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15741         (build_wcs_upper_buffer, build_upper_buffer)
15742         (re_string_translate_buffer, re_string_context_at):
15743         Move decls here from lib/regex_internal.h, for glibc internal tests.
15744         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15745         glibc BZ #18496.
15746         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15747         -Wunused-value.
15748         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15749         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15750         (bitset_mask): Now static inline, and without any __attribute__
15751         ((unused)) decoration, for glibc internal tests.
15753 2018-06-25  Bruno Haible  <bruno@clisp.org>
15755         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15756         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15757         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15758         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15759         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15760         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15761         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15762         / -lthread / -lpth does not get optimized away by a preceding
15763         --as-needed option.
15765 2018-06-25  Bruno Haible  <bruno@clisp.org>
15767         Continue to use spaces for indentation, not tabs.
15768         * MODULES.html.sh: Untabify.
15769         * doc/regex.texi: Likewise.
15770         * lib/acl-internal.c: Likewise.
15771         * lib/dfa.c: Likewise.
15772         * lib/exclude.c: Likewise.
15773         * lib/exclude.h: Likewise.
15774         * lib/get-permissions.c: Likewise.
15775         * lib/gettimeofday.c: Likewise.
15776         * lib/parse-datetime.y: Likewise.
15777         * lib/pselect.c: Likewise.
15778         * lib/set-permissions.c: Likewise.
15779         * lib/time.in.h: Likewise.
15780         * m4/canonicalize.m4: Likewise.
15781         * m4/gc.m4: Likewise.
15782         * m4/gnulib-common.m4: Likewise.
15783         * m4/pthread_sigmask.m4: Likewise.
15784         * m4/vararrays.m4: Likewise.
15785         * tests/test-digest.h: Likewise.
15786         * tests/test-fcntl-h.c: Likewise.
15787         * tests/test-timespec.c: Likewise.
15788         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15790 2018-06-25  Bruno Haible  <bruno@clisp.org>
15792         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15793         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15794         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15795         -Wjump-misses-init.
15797 2018-06-25  Jim Meyering  <meyering@fb.com>
15799         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15800         * lib/acl-internal.h (free_permission_context): Remove that
15801         attribute directive.  Otherwise, it would provoke this from GCC 9:
15802         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15803           returning 'void' [-Werror=attributes]
15805 2018-06-24  Jim Meyering  <meyering@fb.com>
15807         parse-datetime: accommodate gcc-4.8.5
15808         Bruno Haible reported the build failure in
15809         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15810         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15811         on declaration of new local.
15813 2018-06-24  Bruno Haible  <bruno@clisp.org>
15815         af_alg: Fail in continuable manner on Linux/powerpc64le.
15816         Reported by Assaf Gordon <assafgordon@gmail.com>
15817         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15818         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15819         byte send() as the first round.
15821 2018-06-24  Bruno Haible  <bruno@clisp.org>
15823         af_alg: Fix state of stream after sendfile() succeeds.
15824         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15825         the stream is correctly positioned afterwards.
15826         * modules/crypto/af_alg (Depends-on): Add fflush.
15827         * tests/test-digest.h (test_digest_on_files): Verify that after the
15828         operation the stream is positioned at end of file.
15830 2018-06-24  Jim Meyering  <meyering@fb.com>
15832         canon-host: take GCC9's advice rather than ignoring warning
15833         Pádraig Brady suggested not to ignore this GCC9 advice.
15834         * lib/canon-host.c: Undo preceding change.
15835         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15837         parse-datetime.y: avoid spurious GCC 9 warning
15838         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15839         a function local prior to the first "goto fail".  The prior use would
15840         evoke this:
15841         parse-datetime.y: In function 'parse_datetime2':
15842         parse-datetime.y:1791:19: error: jump skips variable initialization \
15843           [-Werror=jump-misses-init]
15844         parse-datetime.y:2385:2: note: label 'fail' defined here
15845         parse-datetime.y:188:43: note: '({anonymous})' declared here
15846         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15848         canon-host.c: avoid spurious GCC 9 warning
15849         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15851         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15852         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15853         * m4/manywarnings.m4: Remove them.
15854         Otherwise, building coreutils, I would see this:
15855         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15856         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15857         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15858           which is also used by default
15859         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15861 2018-06-24  Bruno Haible  <bruno@clisp.org>
15863         af_alg tests: Add another test.
15864         * tests/test-digest.h (test_digest_on_files): Also check a large file
15865         with a skipped header.
15866         * tests/test-md5.c: Include macros.h.
15867         * tests/test-sha1.c: Likewise.
15868         * tests/test-sha256.c: Likewise.
15869         * tests/test-sha512.c: Likewise.
15870         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15871         * modules/crypto/sha1-tests (Files): Likewise.
15872         * modules/crypto/sha256-tests (Files): Likewise.
15873         * modules/crypto/sha512-tests (Files): Likewise.
15875 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15877         maint: clarify comments about sticky EOF
15878         * lib/af_alg.c: Be more direct that we can't
15879         assume stickiness of EOF for portability reasons.
15880         * lib/md5.c: Clarify that this isn't just a glibc issue.
15881         * lib/sha1.c: Likewise.
15882         * lib/sha256.c: Likewise.
15883         * lib/sha512.c: Likewise.
15885 2018-06-24  Bruno Haible  <bruno@clisp.org>
15887         af_alg: Comment and style improvements.
15888         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15889         (afalg_buffer, afalg_stream): Improve comments.
15891 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15893         af_alg: disable kernel hash functions by default
15894         All the kernel routines were seen to be significantly slower
15895         with these relatively recent components on an i3-2310M system:
15896           kernel-4.10.6-200.fc25.x86_64
15897           openssl-1.0.2m-1.fc25.x86_64
15898         sha1 was nearly twice as slow in the kernel for example.
15899         Further considerations why this should not be the default, at:
15900         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15902         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15903         * m4/gl-openssl.m4: Tweak accordingly.
15905 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15907         af_alg: avoid hangs when reading from streams
15908         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15909         and thus avoid doing a fread() when feof() is set.
15910         * lib/md5.c: Ensure feof() is called before fread().
15911         * lib/sha1.c: Likewise.
15912         * lib/sha256.c: Likewise.
15913         * lib/sha512.c: Likewise.
15915 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15917         af_alg: fix error handling when hash not returned
15918         * lib/af_alg.c (afalg_stream): Handle the case where we've
15919         successfully written data to the kernel in the read/write loop,
15920         but the kernel doesn't respond with the hash.
15922 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15924         libc-config: merge from glibc
15925         * lib/cdefs.h (__inline, __restrict):
15926         Copy from current glibc.  This fixes glibc bug 17721,
15927         which Gnulib had already fixed in a different way.
15928         (__nonnull): Lessen the distance from glibc by using the
15929         glibc definition inside an ‘#ifndef __nonnull’.
15930         (__attribute_nonstring__): New macro, copied from
15931         current glibc.
15932         * lib/libc-config.h (__attribute_nonstring__): New undef.
15933         (__restrict): Remove; workaround no longer needed.
15934         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15935         support more compilers than the glibc __inline can.
15937 2018-06-24  Bruno Haible  <bruno@clisp.org>
15939         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15940         * lib/mbrtowc.c (enc_t): New enum type.
15941         (locale_enc, locale_enc_cached): New functions.
15942         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15943         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15944         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15945         instead.
15946         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15947         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15948         * modules/wcwidth (configure.ac): Invoke it.
15950 2018-06-24  Bruno Haible  <bruno@clisp.org>
15952         wchar-single: Fix test failure in wcwidth tests.
15953         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15954         skip the tests in the C locale.
15956 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15958         crypto: mention --without-linux-crypto in --with-openssl --help
15959         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15960         routines take precedence in --with-openssl help output.
15962 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15964         wchar-single: a new module to enable optimizations in wchar replacements
15965         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15966         GNULIB_WCHAR_SINGLE is enabled.
15967         * lib/wcwidth.c (wcwidth): Likewise.
15969 2018-06-23  Bruno Haible  <bruno@clisp.org>
15971         libc-config: Fix conflict with FreeBSD include files.
15972         * lib/cdefs.h (__nonnull): Remove definition.
15973         * lib/libc-config.h (__nonnull): Remove undefinition.
15975 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15977         random_r: do not crash if state is unaligned
15978         Problem reported by Bruce Korb in:
15979         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15980         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15981         with 'cc -O2 -xmemalign=8s'.
15982         * lib/random_r.c: Include string.h, for memcpy.
15983         (get_int32, set_int32): New functions.
15984         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15985         Use them to avoid assumption that state pointer is aligned.
15986         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15987         * tests/test-random_r.c (test_failed): New function.
15988         (main): Use it, to test for alignment bugs.
15990         random_r: omit unnecessary include
15991         * lib/random_r.c: Do not include limits.h.
15993         random, random_r: merge from glibc
15994         * lib/random.c, lib/random_r.c:
15995         Include libc-config.h if !_LIBC, not config.h unilaterally.
15996         * lib/random.c:
15997         Do not include stdint.h or time.h; not needed.
15998         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15999         (unsafe_state): Rename from generator.  All uses changed.
16000         Use C99-style initializers.
16001         (__random, __srandom, __initstate, __setstate): Rename from
16002         non-underscored version, but define it to non-underscored version
16003         on Gnulib.  Add a lock.
16004         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
16005         Likewise.
16006         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
16007         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
16008         (__srandom_r): Use int32_t instead of long int where int32_t will do.
16009         (__random_r): Use uint32 to fix glibc bug 17343.
16010         * modules/random, modules/random_r (Depends-on): Add libc-config.
16011         Depend on stdint only if $HAVE_RANDOM = 0.
16013 2018-06-19  Jim Meyering  <meyering@fb.com>
16015         README-release: also run any check-very-expensive tests
16016         * top/README-release: Adjust instructions so they run the
16017         check-very-expensive tests when there is such a target.
16019 2018-06-18  Bruno Haible  <bruno@clisp.org>
16021         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
16022         * m4/pthread_rwlock_rdlock.m4: Add comment.
16023         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
16024         are reader-preferring in glibc.
16025         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
16026         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
16028 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16030         crypto: use byteswap
16031         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
16032         * lib/sm3.c: Include <byteswap.h>.
16033         (SWAP): Use its macros rather than reinventing the wheel.
16034         * modules/crypto/md4, modules/crypto/md5-buffer:
16035         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
16036         * modules/crypto/sha512-buffer, modules/crypto/sm3:
16037         (Depends-on): Add byteswap.
16039 2018-06-17  Pádraig Brady  <P@draigBrady.com>
16041         gendocs.sh: fix support for legacy --texi2html
16042         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
16043         to the default makeinfo invocation.
16044         Reported by Bruce Korb
16046 2018-06-17  Bruno Haible  <bruno@clisp.org>
16048         gettext po infrastructure: Update from current gettext git.
16049         Reported by Akim Demaille <akim@lrde.epita.fr>.
16050         * build-aux/po/Makefile.in.in: Update from current gettext git.
16051         * build-aux/po/remove-potcdate.sin: Likewise.
16052         * config/srclist.txt: Temporarily disable sync for these files.
16054 2018-06-17  Bruno Haible  <bruno@clisp.org>
16056         getloadavg: Return 0 on Windows without Cygwin.
16057         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
16059 2018-06-17  Paul Smith  <psmith@gnu.org>
16061         getloadavg: Allow building on Windows without Cygwin
16062         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
16063         * m4/getloadavg.m4: Check for unistd.h.
16065 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
16067         Port crypto/af_alg to GCC 4.8.4
16068         Problem reported by Peter Simons in:
16069         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
16070         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
16072 2018-05-27  Colin Watson  <cjwatson@debian.org>
16074         bootstrap: document source fetching in --help
16075         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
16077 2018-04-09  Colin Watson  <cjwatson@debian.org>
16079         bootstrap: allow non-submodule control of gnulib
16080         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
16081         bootstrap.conf when fetching gnulib using "git clone" or via
16082         GNULIB_SRCDIR.
16084 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16086         crypto: omit stream ops Emacs doesn’t need
16087         * lib/md5.c (md5_stream):
16088         * lib/sha1.c (sha1_stream):
16089         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
16090         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16091         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
16092         defined.  Emacs needs this, as it does not use the stream
16093         operations and doesn’t need all the af_alg stuff we’ve recently
16094         added.  Perhaps a similar change is needed to the other crypto
16095         modules, but this patch changes only those needed for Emacs.
16096         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
16097         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
16098         New modules, used by Emacs.
16099         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16100         * modules/crypto/sha512: Rewrite to depend on the new modules.
16102 2018-05-20  Pádraig Brady  <P@draigBrady.com>
16104         fts: avoid a memory leak edge case
16105         * lib/fts.c (fts_open): Set an appropriate fts_level
16106         so that an immediate fts_close() will free the allocation.
16107         * tests/test-fts.c (fts_dealloc): Add a test case which
16108         will trigger under valgrind or address sanitizer.
16109         Fixes https://bugs.gnu.org/31439
16111 2018-05-20  Bruno Haible  <bruno@clisp.org>
16113         wcwidth tests: Fix link error.
16114         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
16115         $(LIBUNISTRING).
16117 2018-05-20  Bruno Haible  <bruno@clisp.org>
16119         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
16120         * modules/regex (Files): Add m4/glibc21.m4.
16122 2018-05-20  Bruno Haible  <bruno@clisp.org>
16124         localcharset: Optimize.
16125         * lib/localcharset.c (alias_table): Comment out no-op mappings for
16126         platforms where these don't matter. This reduces the table size,
16127         which in turn reduces the lookup time.
16129 2018-05-19  Bruno Haible  <bruno@clisp.org>
16131         localcharset: Map the locale encodings found in newer OSes.
16132         * lib/localcharset.c (alias_table): Add mapping for locale encodings
16133         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
16134         IRIX 6.5, Minix 3.3.
16135         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
16137 2018-05-19  Bruno Haible  <bruno@clisp.org>
16139         localcharset: Move mapping tables into the code. Use a binary search.
16140         * lib/localcharset.h: Document the GNU canonical names for character
16141         encodings here.
16142         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
16143         relocatable.h, configmake.h.
16144         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
16145         macros.
16146         (charset_aliases): Remove variable.
16147         (get_charset_aliases): Remove function.
16148         (struct table_entry): New type.
16149         (alias_table, locale_table): New constants.
16150         (locale_charset): Use the alias_table or locale_table to get the
16151         canonicalized encoding name.
16152         * lib/config.charset: Remove file.
16153         * lib/ref-add.sin: Remove file.
16154         * lib/ref-del.sin: Remove file.
16155         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
16156         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
16157         * modules/localcharset (Notice): Remove.
16158         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
16159         glibc21.m4.
16160         (Depends-on): Remove configmake.
16161         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
16162         (Makefile.am): Simplify.
16163         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
16165 2018-05-19  Bruno Haible  <bruno@clisp.org>
16167         localcharset: Add a manual test.
16168         * tests/test-localcharset.c: New file.
16169         * modules/localcharset-tests: New file.
16171 2018-05-19  Bruno Haible  <bruno@clisp.org>
16173         localcharset: Remove support for obsolete platforms.
16174         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
16175         Mac OS X 10.2. Comment out dubious entry for Solaris.
16177 2018-05-19  Jim Meyering  <meyering@fb.com>
16179         gnupload: adjust comment
16180         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
16181         more likely we'll remove the just-added code in a year or two.
16183 2018-05-19  Bruno Haible  <bruno@clisp.org>
16185         gnupload: Fix "gpg-agent is not available in this session" error.
16186         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
16188 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16190         crypto/af_alg: fix --help
16191         * m4/af_alg.m4: Avoid spurious newline in --help output.
16193 2018-05-13  Bruno Haible  <bruno@clisp.org>
16195         nl_langinfo: Fix compilation error on Android.
16196         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
16197         INT_CURR_SYMBOL, etc. only if these items are defined.
16199 2018-05-13  Bruno Haible  <bruno@clisp.org>
16201         truncate: Fix compilation error on Android.
16202         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
16203         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
16204         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
16205         HAVE_TRUNCATE.
16206         * modules/truncate: Likewise.
16207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
16208         not HAVE_TRUNCATE.
16209         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
16210         HAVE_TRUNCATE.
16211         * doc/posix-functions/truncate.texi: Mention the issue.
16213 2018-05-13  Bruno Haible  <bruno@clisp.org>
16215         pthread: Fix compilation error on Android.
16216         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
16217         recursive inclusion of this file.
16219 2018-05-13  Bruno Haible  <bruno@clisp.org>
16221         posix_spawn: Fix compilation error on Android.
16222         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
16223         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
16224         (posix_spawn_file_actions_t): Consider also the case
16225         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
16227 2018-05-13  Bruno Haible  <bruno@clisp.org>
16229         tsearch: Move from K&R C to ANSI C.
16230         * lib/tsearch.c (tfind): Convert definition to ANSI C.
16232 2018-05-13  Bruno Haible  <bruno@clisp.org>
16234         tsearch: Fix compilation error on Android.
16235         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
16236         is 0.
16237         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
16238         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
16239         GNULIB_defined_tsearch is true.
16240         (twalk): Define only if GNULIB_defined_twalk is true.
16241         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
16242         is 0.
16243         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
16244         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
16245         * modules/search (Makefile.am): Substitute HAVE_TWALK.
16247 2018-05-13  Bruno Haible  <bruno@clisp.org>
16249         imaxdiv: Fix compilation error on Android.
16250         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
16251         is not defined.
16252         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
16253         HAVE_DECL_IMAXDIV, is 0.
16254         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
16255         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
16257 2018-05-13  Bruno Haible  <bruno@clisp.org>
16259         Support selective inclusion mechanism of recent mingw.org header files.
16260         Reported by Eli Zaretskii <eliz@gnu.org>.
16261         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
16262         __need_ssize_t, or __need_time_t is defined, just include the system's
16263         <sys/types.h>.
16264         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
16265         include the system's <locale.h>.
16267 2018-05-13  Bruno Haible  <bruno@clisp.org>
16269         Avoid compilation error due to 'mmap' on Android.
16270         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
16271         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
16272         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
16273         Undefine on Android.
16275 2018-05-13  Bruno Haible  <bruno@clisp.org>
16277         Add cross-compilation guesses for Linux systems without glibc.
16278         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
16279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16280         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16281         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16282         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16283         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16284         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16285         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16286         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16287         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
16288         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16289         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16290         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16291         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16293         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16294         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16295         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16297 2018-05-13  Bruno Haible  <bruno@clisp.org>
16299         getpagesize: Fix compilation error on Android.
16300         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
16301         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
16302         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
16303         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
16304         HAVE_GETPAGESIZE accordingly.
16305         * modules/getcwd (Files): Add m4/getpagesize.m4.
16307 2018-05-13  Bruno Haible  <bruno@clisp.org>
16309         tcgetsid: Fix compilation error on Android.
16310         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
16311         AC_CHECK_FUNC.
16313 2018-05-13  Bruno Haible  <bruno@clisp.org>
16315         getpass: Fix configure test for Android.
16316         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
16317         AC_CHECK_FUNC.
16319 2018-05-13  Bruno Haible  <bruno@clisp.org>
16321         ffs: Fix compilation error on Android.
16322         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
16324 2018-05-13  Bruno Haible  <bruno@clisp.org>
16326         mkfifo: Fix compilation error on Android.
16327         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
16328         AC_CHECK_FUNC.
16330 2018-05-13  Bruno Haible  <bruno@clisp.org>
16332         c-strtod: Fix configure test for Android.
16333         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
16334         AC_CHECK_FUNC.
16336 2018-05-13  Bruno Haible  <bruno@clisp.org>
16338         random: Fix compilation error on Android.
16339         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
16340         AC_CHECK_FUNC.
16342 2018-05-13  Bruno Haible  <bruno@clisp.org>
16344         grantpt: Fix compilation error on Android.
16345         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
16346         AC_CHECK_FUNC.
16348 2018-05-13  Bruno Haible  <bruno@clisp.org>
16350         stdioext: Fix compilation errors with newer Android headers.
16351         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
16352         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
16353         fallbacks for Android.
16354         * lib/fpending.c: Update comments.
16355         * lib/fpurge.c: Likewise.
16356         * lib/freadable.h: Likewise.
16357         * lib/freadable.c: Likewise.
16358         * lib/freadahead.c: Likewise.
16359         * lib/freading.h: Likewise.
16360         * lib/freadptr.c: Likewise.
16361         * lib/fseterr.c: Likewise.
16362         * lib/fwritable.h: Likewise.
16363         * lib/fwritable.c: Likewise.
16364         * lib/fwriting.h: Likewise.
16365         * lib/fwriting.c: Likewise.
16367 2018-05-13  Bruno Haible  <bruno@clisp.org>
16369         doc: Add info about Android versions 2.0 to 8.1.
16370         * doc/**/*.texi: Add info about functions in all released versions of
16371         Bionic.
16373 2018-05-12  Bruno Haible  <bruno@clisp.org>
16375         fseeko: On mingw, don't use the hidden function _fseeki64.
16376         Reported by Eli Zaretskii <eliz@gnu.org>.
16377         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
16378         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
16380 2018-05-12  Bruno Haible  <bruno@clisp.org>
16382         glob: Choose 'dirent_type' in a way that works better on mingw.
16383         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
16384         * lib/glob.c (dirent_type): Define as uint_fast32_t.
16386 2018-05-12  Bruno Haible  <bruno@clisp.org>
16388         execute, spawn-pipe: Avoid warning about redefining 'close'.
16389         Reported by Eli Zaretskii <eliz@gnu.org>.
16390         * lib/execute.c: Undefine 'close' before redefining it.
16391         * lib/spawn-pipe.c: Likewise.
16393 2018-05-12  Bruno Haible  <bruno@clisp.org>
16395         nanosleep: Avoid test failure on mingw when it has nanosleep.
16396         Reported by Eli Zaretskii <eliz@gnu.org>.
16397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
16398         If it does not exist, use a simpler test program that does not call
16399         alarm().
16401 2018-05-10  Bruno Haible  <bruno@clisp.org>
16403         lock, cond, thread, tls: Use a different symbol as libpthread witness.
16404         Reported by Devin Hussey <husseydevin@gmail.com>.
16405         Based on a patch by Paul Eggert.
16406         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
16407         as witness of libpthread.
16408         * lib/glthread/cond.h (pthread_in_use): Likewise.
16409         * lib/glthread/thread.h (pthread_in_use): Likewise.
16410         * lib/glthread/tls.h (pthread_in_use): Likewise.
16412 2018-05-10  Bruno Haible  <bruno@clisp.org>
16414         cond tests: Fix compilation error on Solaris.
16415         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
16416         macro.
16418 2018-05-10  Bruno Haible  <bruno@clisp.org>
16420         doc: Add partial info about Android 4.3.
16421         * doc/*-functions/*.texi: Add info about functions that were added
16422         to Bionic between Android 4.3 and Android 9.0.
16424 2018-05-10  Bruno Haible  <bruno@clisp.org>
16426         doc: Add info about Android 9.0.
16427         * doc/**/*.texi: Add info about functions and headers in Bionic from
16428         Android 9.0.
16430 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
16432         af_alg: fix my typo in afalg_buffer
16433         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
16434         (afalg_stream): Simplify and avoid the need for a runtime test
16435         at the end.
16437         af_alg: recover better from crypto failures
16438         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
16439         input stream is seekable, by repositioning the stream back to
16440         where it was, possibly by just calling sendfile with an offset
16441         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
16442         cases, which lets our callers try again with user-mode code.
16443         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
16444         instead of on fflush and lseek.
16446         af_alg: distiguish I/O errors better
16447         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
16448         not -EIO, if it’s OK for the caller to try again with user-mode code.
16449         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
16450         some other error number) if fflush fails, as the caller should not
16451         try again that case.
16453         af_alg: avoid gotos
16454         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
16455         gotos, as they were a source of unreliability and made the code a
16456         bit harder to follow.
16458         af_alg: don’t leak file descriptors into children
16459         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
16460         This code should be compiled only on recent GNU/Linux platforms
16461         so we shouldn’t have to also depend on the accept4 module.
16463         af_alg: coalesce socket creation
16464         * lib/af_alg.c (alg_socket): New function.
16465         (afalg_buffer, afalg_stream): Use it.  This avoids some
16466         code duplication and gotos.
16468         af_alg: fix file descriptor leak
16469         * lib/af_alg.c (afalg_stream): Close leak.
16471         af_alg: Pacify --enable-gcc-warnings on GCC 8
16472         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
16473         and checking to pacify gcc -Wjump-misses-init on GCC 8.
16475 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16477         af_alg: Pacify --enable-gcc-warnings
16478         Problem reported by Assaf Gordon in:
16479         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
16480         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
16481         gcc -Wjump-misses-init.
16482         * lib/sha512.c (shaxxx_stream): Now static.
16484 2018-05-06  Bruno Haible  <bruno@clisp.org>
16486         af_alg: Add ability to use Linux kernel crypto API on data in memory.
16487         * lib/af_alg.h (afalg_buffer): New declaration.
16488         * lib/af_alg.c (afalg_buffer): New function.
16490 2018-05-06  Bruno Haible  <bruno@clisp.org>
16492         af_alg: Avoid warnings.
16493         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
16494         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
16496 2018-05-06  Bruno Haible  <bruno@clisp.org>
16498         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
16499         * tests/bench-digest.h: New file.
16500         * tests/bench-md5.c: New file.
16501         * tests/bench-sha1.c: New file.
16502         * tests/bench-sha224.c: New file.
16503         * tests/bench-sha256.c: New file.
16504         * tests/bench-sha384.c: New file.
16505         * tests/bench-sha512.c: New file.
16506         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
16507         tests/bench-digest.h.
16508         (Depends-on): Add getrusage, gettimeofday.
16509         (Makefile.am): Add variables to build bench-md5.
16510         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
16511         tests/bench-digest.h.
16512         (Depends-on): Add getrusage, gettimeofday.
16513         (Makefile.am): Add variables to build bench-sha1.
16514         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
16515         tests/bench-sha256.c, tests/bench-digest.h.
16516         (Depends-on): Add getrusage, gettimeofday.
16517         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
16518         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
16519         tests/bench-sha512.c, tests/bench-digest.h.
16520         (Depends-on): Add getrusage, gettimeofday.
16521         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
16523 2018-05-06  Bruno Haible  <bruno@clisp.org>
16525         af_alg: Fix a resource leak.
16526         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
16527         New local variable 'result'.
16529 2018-05-06  Bruno Haible  <bruno@clisp.org>
16531         af_alg: Fix bug with streams that are not at position 0.
16532         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
16533         assume that the stream is positioned at position 0.
16534         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
16535         of the stream.
16536         * lib/md5.h (md5_stream): Likewise.
16537         * lib/sha1.h (sha1_stream): Likewise.
16538         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
16539         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
16540         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
16542         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
16543         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
16544         stream that is not positioned at the beginning.
16546 2018-05-06  Bruno Haible  <bruno@clisp.org>
16548         af_alg: Add configure option to enable/disable use of Linux crypto API.
16549         Suggested by Assaf Gordon <assafgordon@gmail.com>.
16550         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
16551         USE_LINUX_CRYPTO_API.
16552         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
16553         * lib/af_alg.c: Likewise.
16555 2018-05-06  Bruno Haible  <bruno@clisp.org>
16557         Followup to 'af_alg: New module.'.
16558         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
16559         * modules/crypto/sha1 (Depends-on): Likewise.
16560         * modules/crypto/sha256 (Depends-on): Likewise.
16561         * modules/crypto/sha512 (Depends-on): Likewise.
16563 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16565         crypto/{md5,sha1,sha256,sha512}: simplify
16566         * lib/md5.c (md5_stream):
16567         * lib/sha1.c (sha1_stream):
16568         * lib/sha256.c (shaxxx_stream):
16569         Simplify, partly by assuming C99.
16570         * lib/sha256.c (shaxxx_stream):
16571         New function, which implements both sha256 and sha224.
16572         Simplify, partly by assuming C99.
16573         (sha256_stream, sha224_stream):
16574         Use it to avoid code duplication, removing a FIXME.
16575         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16576         Likewise.
16578         af_alg: Improve comments.
16579         * lib/af_alg.h: Use imperatives and tighten up wording.
16581 2018-05-05  Bruno Haible  <bruno@clisp.org>
16583         af_alg: Improve comments.
16584         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
16586 2018-05-05  Bruno Haible  <bruno@clisp.org>
16588         af_alg: New module.
16589         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16590         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16591         * lib/md5.c: Include "af_alg.h" unconditionally.
16592         (md5_stream): Invoke afalg_stream unconditionally.
16593         * lib/sha1.c: Include "af_alg.h" unconditionally.
16594         (sha1_stream): Invoke afalg_stream unconditionally.
16595         * lib/sha256.c: Include "af_alg.h" unconditionally.
16596         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16597         * lib/sha512.c: Include "af_alg.h" unconditionally.
16598         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16599         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16600         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16601         * modules/crypto/af_alg: New file.
16602         * modules/crypto/md5 (Files): Remove files that are now in the
16603         'crypto/af_alg' module.
16604         (Depends-on): Add crypto/af_alg.
16605         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16606         (Makefile.am): Don't mention af_alg.c here.
16607         * modules/crypto/sha1 (Files): Remove files that are now in the
16608         'crypto/af_alg' module.
16609         (Depends-on): Add crypto/af_alg.
16610         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16611         (Makefile.am): Don't mention af_alg.c here.
16612         * modules/crypto/sha256 (Files): Remove files that are now in the
16613         'crypto/af_alg' module.
16614         (Depends-on): Add crypto/af_alg.
16615         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16616         (Makefile.am): Don't mention af_alg.c here.
16617         * modules/crypto/sha512 (Files): Remove files that are now in the
16618         'crypto/af_alg' module.
16619         (Depends-on): Add crypto/af_alg.
16620         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16621         (Makefile.am): Don't mention af_alg.c here.
16623 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16625         crypto tests: pacify GCC
16626         * tests/test-digest.h (test_digest_on_files):
16627         Don’t assume digest size fits in int (!).
16629         af_alg: minor style improvements
16630         * lib/af_alg.c (afalg_stream): Prefer C99 style
16631         decl-after-statement, since we’re already assuming C99.  Clarify
16632         by strengthening the bind test and omit unnecessary assignment.
16634 2018-05-05  Bruno Haible  <bruno@clisp.org>
16636         af_alg: Fix bug on empty files.
16637         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16638         stream is empty.
16640 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16642         sys-limits.h: new file for crypto and safe I/O
16643         * lib/af_alg.c: Include sys-limits.h.
16644         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16645         (afalg_stream): Also reject negative sizes for sendfile; they
16646         should not happen and the code is a bit cleaner and faster this way.
16647         * lib/safe-read.c: Include sys-limits.h.
16648         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16649         * lib/sys-limits.h: New file, with values and commentary derived
16650         from the old safe-read.c and from GNU Emacs sysdep.c.
16651         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16652         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16653         Add lib/sys-limits.h to Files section.
16655 2018-05-05  Bruno Haible  <bruno@clisp.org>
16657         af_alg: Improve function signature.
16658         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16659         * lib/af_alg.c (afalg_stream): Likewise.
16660         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16662 2018-05-05  Bruno Haible  <bruno@clisp.org>
16664         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16665         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16666         * modules/crypto/sha1 (Depends-on): Likewise.
16667         * modules/crypto/sha256 (Depends-on): Likewise.
16668         * modules/crypto/sha512 (Depends-on): Likewise.
16670 2018-05-05  Bruno Haible  <bruno@clisp.org>
16672         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16673         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16674         * modules/crypto/sha1 (Depends-on): Likewise.
16675         * modules/crypto/sha256 (Depends-on): Likewise.
16676         * modules/crypto/sha512 (Depends-on): Likewise.
16678 2018-05-05  Bruno Haible  <bruno@clisp.org>
16680         af_alg: Add documentation.
16681         * lib/af_alg.h: Add comments.
16683 2018-05-05  Bruno Haible  <bruno@clisp.org>
16685         sha512: Add tests.
16686         * tests/test-sha512.c: New file.
16687         * modules/crypto/sha512-tests: New file.
16689 2018-05-05  Bruno Haible  <bruno@clisp.org>
16691         sha256: Add tests.
16692         * tests/test-sha256.c: New file.
16693         * modules/crypto/sha256-tests: New file.
16695 2018-05-05  Bruno Haible  <bruno@clisp.org>
16697         sha1 tests: Add test for sha1_stream.
16698         * tests/test-sha1.c: Include test-digest.h.
16699         (main): Invoke test_digest_on_files on 'sha1_stream'.
16700         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16702 2018-05-05  Bruno Haible  <bruno@clisp.org>
16704         md5 tests: Add test for md5_stream.
16705         * tests/test-digest.h: New file.
16706         * tests/test-md5.c: Include test-digest.h.
16707         (main): Invoke test_digest_on_files on 'md5_stream'.
16708         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16710 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16712         md5sum: Use AF_ALG when available.
16713         * lib/md5.c: Include af_alg.h.
16714         (md5_stream): Use afalg_stream when available.
16715         * modules/crypto/md5 (Files): Add the af_alg files.
16716         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16717         (Makefile.am): Add af_alg.c.
16719 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16721         sha512sum: Use AF_ALG when available.
16722         * lib/sha512.c: Include af_alg.h.
16723         (sha512_stream, sha384_stream): Use afalg_stream when available.
16724         * modules/crypto/sha512 (Files): Add the af_alg files.
16725         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16726         (Makefile.am): Add af_alg.c.
16728 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16730         sha256sum: Use AF_ALG when available.
16731         * lib/sha256.c: Include af_alg.h.
16732         (sha256_stream, sha224_stream): Use afalg_stream when available.
16733         * modules/crypto/sha256 (Files): Add the af_alg files.
16734         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16735         (Makefile.am): Add af_alg.c.
16737 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16739         sha1sum: Use AF_ALG when available.
16740         * lib/af_alg.h: New file.
16741         * lib/af_alg.c: New file.
16742         * lib/sha1.c: Include af_alg.h.
16743         (sha1_stream): Use afalg_stream when available.
16744         * m4/linux-if-alg.m4: New file.
16745         * modules/crypto/sha1 (Files): Add the new files.
16746         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16747         (Makefile.am): Add af_alg.c.
16749 2018-05-05  Bruno Haible  <bruno@clisp.org>
16751         all: Replace more http URLs by https URLs.
16752         * lib/localename.c: Use https: URL.
16753         * lib/timespec.h: Likewise.
16755 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16757         maint: port more modules to GCC 8
16758         * lib/dirname.h (base_name):
16759         * lib/exclude.h (new_exclude):
16760         * lib/xstrndup.h (xstrndup):
16761         Add malloc attribute.
16762         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16763         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16764         This pacifies GCC 8.
16765         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16766         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16768 2018-05-03  Bruno Haible  <bruno@clisp.org>
16770         Simplify code. Drop support for Borland C++ on Windows.
16771         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16772         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16773         'defined _WIN32'.
16774         * lib/canonicalize-lgpl.c: Likewise.
16775         * lib/classpath.c: Likewise.
16776         * lib/clean-temp.c: Likewise.
16777         * lib/csharpexec.c: Likewise.
16778         * lib/ctime.c: Likewise.
16779         * lib/dosname.h: Likewise.
16780         * lib/dup2.c: Likewise.
16781         * lib/errno.in.h: Likewise.
16782         * lib/error.c: Likewise.
16783         * lib/euidaccess.c: Likewise.
16784         * lib/execute.c: Likewise.
16785         * lib/fcntl.in.h: Likewise.
16786         * lib/fcntl.c: Likewise.
16787         * lib/filename.h: Likewise.
16788         * lib/findprog.c: Likewise.
16789         * lib/flock.c: Likewise.
16790         * lib/fopen.c: Likewise.
16791         * lib/freopen.c: Likewise.
16792         * lib/fstat.c: Likewise.
16793         * lib/fsync.c: Likewise.
16794         * lib/gc-gnulib.c: Likewise.
16795         * lib/get-rusage-data.c: Likewise.
16796         * lib/getaddrinfo.c: Likewise.
16797         * lib/getdelim.c: Likewise.
16798         * lib/getdtablesize.c: Likewise.
16799         * lib/gethostname.c: Likewise.
16800         * lib/getlogin.c: Likewise.
16801         * lib/getlogin_r.c: Likewise.
16802         * lib/getopt.c: Likewise.
16803         * lib/getpagesize.c: Likewise.
16804         * lib/getpass.c: Likewise.
16805         * lib/getrusage.c: Likewise.
16806         * lib/gettimeofday.c: Likewise.
16807         * lib/glob.c: Likewise.
16808         * lib/inttypes.in.h: Likewise.
16809         * lib/isapipe.c: Likewise.
16810         * lib/javaexec.c: Likewise.
16811         * lib/link.c: Likewise.
16812         * lib/localcharset.c: Likewise.
16813         * lib/localename.h: Likewise.
16814         * lib/localename.c: Likewise.
16815         * lib/localtime.c: Likewise.
16816         * lib/lseek.c: Likewise.
16817         * lib/mbsinit.c: Likewise.
16818         * lib/mkdir.c: Likewise.
16819         * lib/msvc-nothrow.h: Likewise.
16820         * lib/nanosleep.c: Likewise.
16821         * lib/nl_langinfo.c: Likewise.
16822         * lib/nonblocking.c: Likewise.
16823         * lib/nproc.c: Likewise.
16824         * lib/open.c: Likewise.
16825         * lib/openpty.c: Likewise.
16826         * lib/pathmax.h: Likewise.
16827         * lib/pipe-filter-aux.c: Likewise.
16828         * lib/pipe-filter-gi.c: Likewise.
16829         * lib/pipe-filter-ii.c: Likewise.
16830         * lib/pipe.c: Likewise.
16831         * lib/pipe2.c: Likewise.
16832         * lib/poll.c: Likewise.
16833         * lib/popen.c: Likewise.
16834         * lib/posix_openpt.c: Likewise.
16835         * lib/printf-parse.c: Likewise.
16836         * lib/progreloc.c: Likewise.
16837         * lib/putenv.c: Likewise.
16838         * lib/read.c: Likewise.
16839         * lib/relocatable.c: Likewise.
16840         * lib/rename.c: Likewise.
16841         * lib/same-inode.h: Likewise.
16842         * lib/secure_getenv.c: Likewise.
16843         * lib/select.c: Likewise.
16844         * lib/sethostname.c: Likewise.
16845         * lib/setlocale.c: Likewise.
16846         * lib/sigaction.c: Likewise.
16847         * lib/sigprocmask.c: Likewise.
16848         * lib/sleep.c: Likewise.
16849         * lib/spawn-pipe.h: Likewise.
16850         * lib/spawn-pipe.c: Likewise.
16851         * lib/spawni.c: Likewise.
16852         * lib/stat-time.h: Likewise.
16853         * lib/stat-w32.c: Likewise.
16854         * lib/stat.c: Likewise.
16855         * lib/stdio.in.h: Likewise.
16856         * lib/stdio-impl.h: Likewise.
16857         * lib/stdio-read.c: Likewise.
16858         * lib/stdio-write.c: Likewise.
16859         * lib/stdlib.in.h: Likewise.
16860         * lib/strerror_r.c: Likewise.
16861         * lib/strftime-fixes.c: Likewise.
16862         * lib/sys_stat.in.h: Likewise.
16863         * lib/sys_types.in.h: Likewise.
16864         * lib/sys_wait.in.h : Likewise.
16865         * lib/system-quote.h: Likewise.
16866         * lib/system-quote.c: Likewise.
16867         * lib/tmpdir.c: Likewise.
16868         * lib/tzset.c: Likewise.
16869         * lib/uname.c: Likewise.
16870         * lib/unistd.in.h: Likewise.
16871         * lib/utime.in.h: Likewise.
16872         * lib/utime.c: Likewise.
16873         * lib/utimecmp.c: Likewise.
16874         * lib/utimens.c: Likewise.
16875         * lib/vasnprintf.c: Likewise.
16876         * lib/vma-iter.h: Likewise.
16877         * lib/vma-iter.c: Likewise.
16878         * lib/wait-process.c: Likewise.
16879         * lib/wcsftime.c: Likewise.
16880         * lib/wctype.in.h: Likewise.
16881         * lib/write.c: Likewise.
16882         * tests/nap.h: Likewise.
16883         * tests/test-cloexec.c: Likewise.
16884         * tests/test-dup-safer.c: Likewise.
16885         * tests/test-dup2.c: Likewise.
16886         * tests/test-dup3.c: Likewise.
16887         * tests/test-fcntl.c: Likewise.
16888         * tests/test-get-rusage-data.c: Likewise.
16889         * tests/test-getaddrinfo.c: Likewise.
16890         * tests/test-getlogin.h: Likewise.
16891         * tests/test-isatty.c: Likewise.
16892         * tests/test-localename.c: Likewise.
16893         * tests/test-mbrtowc-w32.c: Likewise.
16894         * tests/test-nonblocking.c: Likewise.
16895         * tests/test-nonblocking-pipe-main.c: Likewise.
16896         * tests/test-nonblocking-socket-main.c: Likewise.
16897         * tests/test-nonblocking-socket.h: Likewise.
16898         * tests/test-pipe.c: Likewise.
16899         * tests/test-pipe2.c: Likewise.
16900         * tests/test-poll.c: Likewise.
16901         * tests/test-pthread_sigmask1.c: Likewise.
16902         * tests/test-select.h: Likewise.
16903         * tests/test-sethostname2.c: Likewise.
16904         * tests/test-sigprocmask.c: Likewise.
16905         * tests/test-spawn-pipe-child.c: Likewise.
16906         * tests/test-stat-time.c: Likewise.
16907         * tests/test-system-quote-main.c: Likewise.
16908         * tests/test-utimens-common.h: Likewise.
16909         * tests/test-wcrtomb-w32.c: Likewise.
16910         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16911         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16912         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16913         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16914         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16915         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16916         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16917         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16919         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16920         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16921         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16922         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16923         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16924         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16925         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16927 2018-05-02  Bruno Haible  <bruno@clisp.org>
16929         localename: Fix test failures on mingw.
16930         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16931         native Windows.
16932         (gl_locale_name_posix): Move code specific to native Windows here.
16933         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16934         Accept result without charset suffix, as it appears on mingw.
16936 2018-04-28  Paul Smith  <psmith@gnu.org>
16938         bootstrap: Avoid gnulib operations if not needed
16939         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16940         Set $gnulib_extra_files early so it can be overridden in .conf.
16941         Remove redundant --import flag from $gnulib_tool_options.
16942         Set $use_gnulib to false if no gnulib modules or files are needed.
16943         If $use_gnulib is false, don't do anything related to gnulib.
16944         A lot of this is just whitespace (indentation) changes.
16946 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16948         manywarnings: port to GCC 8.0
16949         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16950         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16951         fact that the GCC help message now mentions operands for
16952         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16953         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16954         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16955         and -Wunused-const-variable.
16956         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16957         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16958         -Wmissing-attributes, -Wmultistatement-macros,
16959         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16960         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16962 2018-04-24  Bruno Haible  <bruno@clisp.org>
16964         sys_socket: Make SO_REUSEPORT available across platforms.
16965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16966         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16967         * doc/posix-headers/sys_socket.texi: Mention the issue.
16968         * tests/test-poll.c (SO_REUSEPORT): Remove.
16969         * tests/test-select.h: Include <sys/socket.h>.
16970         (SO_REUSEPORT): Remove.
16971         * modules/select-tests (Depends-on): Add 'sys_socket'.
16973 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16975         localcharset: short-circuit the search for an alias on a Mac
16976         * lib/localcharset.c (get_charset_aliases): Add a tautological
16977         UTF-8 entry to speed up the search for this case.
16978         Most machines default to a UTF-8 locale nowadays, so begin the
16979         list of aliases with a dummy UTF-8 entry so it will be found
16980         immediately and a time-consuming search through the rest of
16981         the list is avoided.
16983 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16985         fts: add comment
16986         * lib/fts.c (fts_build): Explain why ==, not >.
16987         See remark by Bernhard Voelker in:
16988         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16990         fts: fix bug in find across filesystems
16991         This fixes a bug I introduced last summer.
16992         Problem reported by Kamil Dudka in:
16993         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16994         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16995         (leaf_optimization):
16996         New arg for file descriptor.  All callers changed.
16997         (fts_build): Check for whether inodes should be sorted
16998         before closing the directory.
17000 2018-04-07  Bruno Haible  <bruno@clisp.org>
17002         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
17003         Reported by Genki Sky <sky@genki.is>.
17004         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
17005         version 0.9.10 or newer.
17006         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
17007         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
17008         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
17009         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
17010         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
17012 2018-04-07  Bruno Haible  <bruno@clisp.org>
17014         execute: Update comment.
17015         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
17017 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17019         fts: treat CIFS like NFS
17020         Problem reported by Kamil Dudka in:
17021         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
17022         * lib/fts.c (S_MAGIC_CIFS): New macro.
17023         (dirent_inode_sort_may_be_useful, leaf_optimization):
17024         Treat CIFS like NFS.
17026 2018-03-28  Bruno Haible  <bruno@clisp.org>
17028         c-stack: Fix possible build failure on some platforms.
17029         * lib/c-stack.c (die): Define whenever this function is referenced.
17031 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
17033         time_rz: fix workaround for Mac OS X 10.6 infloop
17034         Problems reported by Charles A. Roelli (Bug#27736#117).
17035         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
17036         Also, discard output, which clutters the 'configure' log.
17038 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17040         havelib: port to Solaris 10 /bin/sh
17041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
17042         instead of '! test EXPR'.
17044 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
17046         time_rz: work around Mac OS X 10.6 infloop
17047         * doc/posix-functions/localtime.texi:
17048         * doc/posix-functions/localtime_r.texi: Mention the bug.
17049         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
17050         better to fix localtime and localtime_r instead, but that would be
17051         more work and is not needed to fix the Emacs problem.
17052         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
17054 2018-03-24  Jim Meyering  <meyering@fb.com>
17056         test-version-etc.sh: don't use diff directly: use init.sh's compare
17057         We'd rather not sacrifice readable "diff -u" output even for
17058         "diff -c" output (not supported by busybox) or for even less
17059         readable ed-style "diff" output.  So use init.sh's compare function
17060         * tests/test-version-etc.sh: Source init.sh and add "." to path.
17061         Remove "./" from invocation of test-version-etc, so we use path.
17062         And s/diff/compare/.
17063         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
17064         to get init.sh.
17065         Prompted by Eric Blake's comments in
17066         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
17068 2018-03-24  Bruno Haible  <bruno@clisp.org>
17070         javacomp-script, javacomp: Add support for Java 10.
17071         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
17072         target-version 10.
17073         * lib/javaversion.h: Update comments.
17074         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17075         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17076         TARGET_VERSION_BOUND, target_version_index,
17077         corresponding_classfile_version): Accept source_version 10 and
17078         target_version 10.
17079         * lib/javacomp.h: Update comments accordingly.
17081 2018-03-24  Bruno Haible  <bruno@clisp.org>
17083         javacomp-script, javacomp: Update comments.
17084         * m4/javacomp.m4: Update comments regarding gcj.
17085         * lib/javacomp.h: Likewise.
17087 2018-03-24  Bruno Haible  <bruno@clisp.org>
17089         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
17090         * lib/javaversion.h: Update comments.
17091         * lib/javacomp.h: Likewise.
17092         * lib/javacomp.c (default_target_version, source_version_index,
17093         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
17094         "1.9".
17095         (TARGET_VERSION_BOUND): Bump to 9.
17096         (target_version_index, corresponding_classfile_version): Recognize "9"
17097         instead of "1.9".
17098         (get_source_version_for_javac): New function.
17099         (is_envjavac_nongcj_usable, is_javac_usable): Add
17100         source_version_for_javac argument.
17101         (compile_java_class): Determine and pass source_version_for_javac.
17102         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
17103         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
17104         appropriate.
17106 2018-03-23  Jim Meyering  <meyering@fb.com>
17108         test-version-etc.sh: port to diff without -c
17109         * tests/test-version-etc.sh: Don't use diff's -c option.
17110         This caused spurious test failure on Alpine Linux, which
17111         uses busybox's diff. Reported by Assaf Gordon in
17112         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
17114 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17116         c-stack: port to recent GCC build
17117         Problem reported by The Fireplace (Bug#30913).
17118         * lib/c-stack.c (die): Define only if used.
17120 2018-03-20  Bruno Haible  <bruno@clisp.org>
17122         euidaccess: Port to native Windows.
17123         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
17124         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
17126 2018-03-19  Bruno Haible  <bruno@clisp.org>
17128         javacomp: Add support for Java 7, 8, 9.
17129         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17130         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17131         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
17132         and target_version 1,7, 1.8, 1.9.
17133         * lib/javacomp.h: Update comments accordingly.
17135 2018-03-19  Bruno Haible  <bruno@clisp.org>
17137         javacomp-script: Add support for Java 9.
17138         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
17139         target-version 1.9.
17141 2018-03-16  Bruno Haible  <bruno@clisp.org>
17143         glob: Don't compile replacements on recent glibc systems.
17144         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
17145         REPLACE_GLOB is 0, include the system's <glob.h> and use
17146         _GL_CXXALIAS_SYS.
17147         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
17148         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
17149         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
17150         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
17151         Remove snippet/warn-on-use.
17152         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
17153         (Makefile.am): Create glob.h always. Update list of substitutions in
17154         glob.h. Don't depend on $(WARN_ON_USE_H).
17156 2018-03-16  Bruno Haible  <bruno@clisp.org>
17158         glob: Fix link error on native Windows.
17159         * modules/glob (Depends-on): Add 'lstat'.
17161 2018-03-15  Bruno Haible  <bruno@clisp.org>
17163         glob: Fix compilation error in C++ mode.
17164         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
17166 2018-03-15  Bruno Haible  <bruno@clisp.org>
17168         host-cpu-c-abi: Support for RISC-V CPU.
17169         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
17170         riscv32 and riscv64 ABIs.
17171         References:
17172         https://github.com/riscv/riscv-toolchain-conventions
17173         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
17174         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
17176 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17178         fflush: be more paranoid about libio.h change
17179         Suggested by Eli Zaretskii in:
17180         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
17181         * lib/fbufmode.c (fbufmode):
17182         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17183         (disable_seek_optimization, rpl_fflush):
17184         * lib/fpending.c (__fpending):
17185         * lib/fpurge.c (fpurge):
17186         * lib/freadable.c (freadable):
17187         * lib/freadahead.c (freadahead):
17188         * lib/freading.c (freading):
17189         * lib/freadptr.c (freadptr):
17190         * lib/freadseek.c (freadptrinc):
17191         * lib/fseeko.c (fseeko):
17192         * lib/fseterr.c (fseterr):
17193         * lib/fwritable.c (fwritable):
17194         * lib/fwriting.c (fwriting):
17195         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
17197 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17199         maint: write-file-hooks -> before-save-hook
17200         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
17201         it's time to use the recommended replacement.
17202         Problem reported by Glenn Morris in:
17203         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
17204         * build-aux/announce-gen, build-aux/bootstrap:
17205         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
17206         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
17207         * build-aux/gnu-web-doc-update, build-aux/gnupload:
17208         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17209         * build-aux/update-copyright, build-aux/useless-if-before-free:
17210         * build-aux/vc-list-files:
17211         Update hook usage for files where Gnulib is the canonical source.
17213 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
17215         binary-io: pacify gcc -Wunused-parameter
17216         Problem reported by Reuben Thomas in:
17217         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
17218         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
17219         Use _GL_UNUSED where appropriate.
17221         fflush: adjust to glibc 2.28 libio.h removal
17222         Problem reported by Daniel P. Berrangé in:
17223         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
17224         * lib/fbufmode.c (fbufmode):
17225         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17226         (disable_seek_optimization, rpl_fflush):
17227         * lib/fpending.c (__fpending):
17228         * lib/fpurge.c (fpurge):
17229         * lib/freadable.c (freadable):
17230         * lib/freadahead.c (freadahead):
17231         * lib/freading.c (freading):
17232         * lib/freadptr.c (freadptr):
17233         * lib/freadseek.c (freadptrinc):
17234         * lib/fseeko.c (fseeko):
17235         * lib/fseterr.c (fseterr):
17236         * lib/fwritable.c (fwritable):
17237         * lib/fwriting.c (fwriting):
17238         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
17239         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
17240         Define if not already defined.
17242 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
17244         environ: fix link error on 32-bit Cygwin
17245         Problem reported for GNU Emacs by Ken Brown in:
17246         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
17247         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
17249 2018-02-24  Bruno Haible  <bruno@clisp.org>
17251         mbrtowc tests: Fix regression on glibc.
17252         Reported by Bernhard Voelker.
17253         * tests/test-mbrtowc.c (main): Fix expected value of wc.
17255 2018-02-24  Bruno Haible  <bruno@clisp.org>
17257         striconveha, uniconv/*: Avoid test failures on musl libc.
17258         * tests/iconvsupport.c: New file.
17259         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
17260         does not support the ISO-2022-JP-2 encoding.
17261         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
17262         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17263         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17264         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17265         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17266         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17267         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
17268         (Makefile.am): Link test-striconveha with iconvsupport.o.
17269         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
17270         tests/iconvsupport.c.
17271         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
17272         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
17273         tests/iconvsupport.c.
17274         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
17275         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
17276         tests/iconvsupport.c.
17277         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
17278         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
17279         tests/iconvsupport.c.
17280         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
17281         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
17282         tests/iconvsupport.c.
17283         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
17284         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
17285         tests/iconvsupport.c.
17286         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
17288 2018-02-24  Bruno Haible  <bruno@clisp.org>
17290         localename: Add support for musl libc.
17291         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
17292         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
17293         on Linux platforms which define NL_LOCALE_NAME.
17295 2018-02-24  Bruno Haible  <bruno@clisp.org>
17297         mbrtowc tests: Don't make assumptions about the charset the C locale.
17298         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
17299         particular mapping in the C locale.
17301 2018-02-24  Bruno Haible  <bruno@clisp.org>
17303         ptsname_r: Don't expect that this function sets errno.
17304         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
17305         from ptsname_r().
17306         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
17308 2018-02-23  Bruno Haible  <bruno@clisp.org>
17310         xmalloca: pacify gcc -Wbad-function-cast
17311         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
17313 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17315         nl_langinfo: pacify gcc -Wunused-function
17316         * lib/nl_langinfo.c (ctype_codeset): Do not define if
17317         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
17318         this case.  Without this change, I got a diagnostic when building
17319         coreutils on Fedora 27 with gcc 7.3.1 20180130.
17321         same: pacify gcc -Wunused-variable
17322         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
17323         Omit unused variable.
17325         malloca: pacify gcc -Wbad-function-cast
17326         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
17327         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
17328         To pacify GCC, I had to cast alloca’s result to some type other
17329         than void * before casting that to uintptr_t.
17331 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17333         utimecmp: new function utimecmpat
17334         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
17335         Do not include utimens.h.
17336         (utimecmpat): New function, generalizing utimecmp.
17337         (utimecmp): Now a thin layer around utimecmpat.
17338         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
17339         utimensat instead of on lstat and utimens.
17341         same: new function same_nameat
17342         * lib/same.c: Include fcntl.h.
17343         * lib/same.c (same_nameat): New function, generalizing same_name.
17344         (same_name): Now a thin layer around same_nameat.
17345         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
17346         * modules/same (Depends-on): Depend on fstatat, openat.
17348 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
17350         warnings: Add support for Objective C.
17351         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
17352         macro.
17354 2018-02-17  Bruno Haible  <bruno@clisp.org>
17356         lock: Fix test-once1 crash on FreeBSD11.
17357         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
17358         'pthread_create', not 'pthread_cancel'.
17360 2018-02-17  Bruno Haible  <bruno@clisp.org>
17362         lock: Add test of gl_once.
17363         * tests/test-once.c: New file.
17364         * modules/lock-tests (Files): Add it.
17365         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
17367 2018-02-17  Bruno Haible  <bruno@clisp.org>
17369         thread: Fix compilation error on IRIX.
17370         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
17371         needed; include it outside the C++ extern "C" {} block.
17372         * doc/posix-headers/pthread.texi: Mention the problem with
17373         pthread_atfork on IRIX.
17375 2018-02-04  Bruno Haible  <bruno@clisp.org>
17377         nl_langinfo: Override the system's nl_langinfo() when needed.
17378         Reported by Jim Meyering.
17379         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
17380         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
17382 2018-02-04  Bruno Haible  <bruno@clisp.org>
17384         signal-h, monetary, strings: Fix build failure in some cases.
17385         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17386         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
17387         as delimiter in sed command, not '|'.
17388         * modules/monetary (Makefile.am): Likewise.
17389         * modules/strings (Makefile.am): Likewise.
17391 2018-02-03  Jim Meyering  <meyering@fb.com>
17393         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
17394         * top/maint.mk (sc_file_system): Don't complain about
17395         "/proc/filesystems".
17397 2018-02-03  Bruno Haible  <bruno@clisp.org>
17399         stdlib: Fix compilation error on OpenIndiana.
17400         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
17401         <sys/time.h>.
17402         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17403         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
17405 2018-02-03  Bruno Haible  <bruno@clisp.org>
17407         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
17408         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
17409         and use $EGREP instead of 'grep -E'.
17410         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
17411         'grep -E'.
17413 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17415         malloca: Add a compile-time verification.
17416         * lib/malloca.c (small_t): Verify that it is wide enough.
17417         * modules/malloca (Depends-on): Add verify.
17419 2018-02-02  Bruno Haible  <bruno@clisp.org>
17421         malloca: Add an argument check.
17422         Suggested by Paul Eggert.
17423         * lib/malloca.c (freea): Check against an invalid argument.
17425 2018-02-02  Bruno Haible  <bruno@clisp.org>
17427         localename: Add support for OpenIndiana.
17428         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
17429         Solaris 11 variants with uselocale() but without getlocalename_l().
17431 2018-02-02  Bruno Haible  <bruno@clisp.org>
17433         malloca, xmalloca: Make multithread-safe.
17434         Reported by Florian Weimer <fweimer@redhat.com>.
17435         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
17436         * lib/malloca.h (malloca): In the stack allocation case, return a
17437         pointer that is a multiple of 2 * sa_alignment_max.
17438         (sa_increment): Remove enum item.
17439         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
17440         a pointer that is a multiple of 2 * sa_alignment_max.
17441         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
17442         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
17443         HASH_TABLE_SIZE, mmalloca_results): Remove.
17444         (small_t): New type.
17445         (mmalloca, free): Rewritten.
17446         * lib/malloca.valgrind: Remove file.
17447         * modules/malloca (Files): Remove it.
17448         (Depends-on): Remove verify.
17450 2018-01-31  Bruno Haible  <bruno@clisp.org>
17452         environ: Fix link error on 64-bit Cygwin.
17453         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
17454         __declspec(dllimport) attribute.
17455         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
17457 2018-01-30  Bruno Haible  <bruno@clisp.org>
17459         get-rusage-data: Add support for Minix 3.
17460         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
17462 2018-01-30  Bruno Haible  <bruno@clisp.org>
17464         vma-iter: Add support for Minix 3.
17465         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
17466         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
17468 2018-01-27  Bruno Haible  <bruno@clisp.org>
17470         Fix malfunction of socket functions on HP-UX in 64-bit mode.
17471         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
17472         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
17473         _HPUX_ALT_XOPEN_SOCKET_API.
17474         * modules/accept (Depends-on): Add 'extensions'.
17475         * modules/getpeername (Depends-on): Likewise.
17476         * modules/getsockname (Depends-on): Likewise.
17477         * modules/getsockopt (Depends-on): Likewise.
17478         * modules/recvfrom (Depends-on): Likewise.
17479         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
17480         * doc/posix-functions/getpeername.texi: Likewise.
17481         * doc/posix-functions/getsockname.texi: Likewise.
17482         * doc/posix-functions/getsockopt.texi: Likewise.
17483         * doc/posix-functions/recvfrom.texi: Likewise.
17485 2018-01-27  Bruno Haible  <bruno@clisp.org>
17487         getsockname tests: More tests.
17488         * tests/test-getsockname.c (open_server_socket): New function, mostly
17489         copied from test-poll.c.
17490         (main): Check that getsockname fills in addr.
17491         * modules/getsockname-tests (Depends-on): Add the necessary
17492         dependencies.
17493         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
17495 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17497         manywarnings: fix maintainer comment
17498         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
17499         it does not mistakenly think that ‘-1)’ is an option.
17501 2018-01-26  Bruno Haible  <bruno@clisp.org>
17503         langinfo: Fix last commit.
17504         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17505         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
17507 2018-01-24  Bruno Haible  <bruno@clisp.org>
17509         langinfo, nl_langinfo: Add support for alternative month names.
17510         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
17511         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
17512         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
17513         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
17514         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
17515         * doc/posix-functions/nl_langinfo.texi: Likewise.
17517 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17519         Merge strftime.c changes from glibc
17520         This incorporates:
17521         2017-11-14 [BZ #10871] Implement alternative month names
17522         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
17523         2017-06-20 Use locale_t, not __locale_t, throughout glibc
17524         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
17525         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
17526         Use locale_t, not __locale_t.
17527         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
17528         (__strftime_internal): Add support for alternate months.
17530 2018-01-23  Bruno Haible  <bruno@clisp.org>
17532         doc: Mention another prerequisite for using Gnulib.
17533         Reported at <https://stackoverflow.com/questions/48378214/>.
17534         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
17535         AC_CONFIG_HEADERS.
17537 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
17539         build: GuixSD doesn't have /bin/bash
17540         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
17542 2018-01-21  Bruno Haible  <bruno@clisp.org>
17544         Avoid test failures on Microsoft Windows Subsystem for Linux.
17545         * tests/test-fcntl.c (main): Allow a different errno.
17546         * tests/test-rename.h (test_rename): Likewise.
17547         * tests/test-renameat.c (main): Likewise.
17548         * tests/test-renameat2.c (main): Likewise.
17550 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17552         filenamecat: make base a suffix of result
17553         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
17554         (mfile_name_concat): Always make BASE a suffix of the result, as
17555         cp expects this.  To implement this, separate with '.' instead of
17556         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
17557         * tests/test-filenamecat.c (main): Adjust tests to match
17558         current behavior.  Check that BASE_IN_RESULT points to
17559         a copy of BASE and is a suffix of the resultk, and that DIR
17560         is a prefix of the result that is no longer than the prefix
17561         indicated by BASE_IN_RESULT.
17563 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
17565         update-copyright: Handle use of ©
17566         * build-aux/update-copyright ($circle_c_re): Update regex to
17567         handle use of © in headers.
17569 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
17571         Fix -Wundef warning in user-included header lib/cdefs.h.
17572         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
17574 2018-01-04  Bruno Haible  <bruno@clisp.org>
17576         pthread_sigmask: Avoid compilation error on mingw.
17577         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17578         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
17579         macro.
17581 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17583         test-framework-sh: ‘ps -ef’, not ‘ps ef’
17584         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
17585         Suggested by Bob Proulx (Bug#29968).
17586         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17588 2018-01-02  Eric Blake  <eblake@redhat.com>
17590         stat-time: silence -Wunused-parameter regression
17591         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17592         Prefer attribute over cast-to-void.
17593         (stat_time_normalize): Mark st as potentially unused.
17595 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17597         test-framework-sh: avoid netstat
17598         Problem reported by Kristýna Streitová (Bug#29947).
17599         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17600         deprecated on SuSE and it's not that important anyway.
17602 2018-01-01  Jim Meyering  <meyering@fb.com>
17604         update-copyright: add code to handle more special cases
17605         After running "make update-copyright" this year, five files
17606         required additional manual changes.  Automate those adjustments
17607         for next year.
17608         * Makefile (_year_and_prev): Define.
17609         (update-copyright): Add perl commands to induce this year's post-
17610         update-copyright adjustments.
17612 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17614         version-etc: new year
17615         * build-aux/gendocs.sh (version):
17616         * doc/gendocs_template:
17617         * doc/gendocs_template_min:
17618         * doc/gnulib.texi:
17619         * lib/version-etc.c (COPYRIGHT_YEAR):
17620         Update copyright dates by hand in templates and the like.
17622         maint: fix 'make update-copyright'
17623         * Makefile (update-copyright): Adjust to 2016-11-23 change
17624         to config/srclist-update, which changed the format of srclist.txt.
17626 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17628         chdir-safer: remove this module
17629         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17630         * NEWS: Document removal.
17631         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17632         * modules/chdir-safer: Remove these files.
17634 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17636         Add cross-compilation results for GNU/Hurd.
17637         * m4/calloc.m4: Add GNU/Hurd guess.
17638         * m4/cbrtl.m4: Likewise.
17639         * m4/ceil.m4: Likewise.
17640         * m4/ceilf.m4: Likewise.
17641         * m4/ceill.m4: Likewise.
17642         * m4/chown.m4: Likewise.
17643         * m4/duplocale.m4: Likewise.
17644         * m4/exp2l.m4: Likewise.
17645         * m4/expm1.m4: Likewise.
17646         * m4/fchdir.m4: Likewise.
17647         * m4/floor.m4: Likewise.
17648         * m4/floorf.m4: Likewise.
17649         * m4/fmod.m4: Likewise.
17650         * m4/fmodf.m4: Likewise.
17651         * m4/fmodl.m4: Likewise.
17652         * m4/getcwd.m4: Likewise.
17653         * m4/getgroups.m4: Likewise.
17654         * m4/gettimeofday.m4: Likewise.
17655         * m4/hypot.m4: Likewise.
17656         * m4/hypotf.m4: Likewise.
17657         * m4/hypotl.m4: Likewise.
17658         * m4/link-follow.m4: Likewise.
17659         * m4/link.m4: Likewise.
17660         * m4/linkat.m4: Likewise.
17661         * m4/log.m4: Likewise.
17662         * m4/log10.m4: Likewise.
17663         * m4/log10f.m4: Likewise.
17664         * m4/log1p.m4: Likewise.
17665         * m4/log1pf.m4: Likewise.
17666         * m4/log1pl.m4: Likewise.
17667         * m4/log2.m4: Likewise.
17668         * m4/log2f.m4: Likewise.
17669         * m4/logf.m4: Likewise.
17670         * m4/lstat.m4: Likewise.
17671         * m4/malloc.m4: Likewise.
17672         * m4/mbrlen.m4: Likewise.
17673         * m4/mbrtowc.m4: Likewise.
17674         * m4/mkdir.m4: Likewise.
17675         * m4/mkfifo.m4: Likewise.
17676         * m4/mknod.m4: Likewise.
17677         * m4/mkstemp.m4: Likewise.
17678         * m4/modf.m4: Likewise.
17679         * m4/modff.m4: Likewise.
17680         * m4/modfl.m4: Likewise.
17681         * m4/printf.m4: Likewise.
17682         * m4/pselect.m4: Likewise.
17683         * m4/ptsname.m4: Likewise.
17684         * m4/putenv.m4: Likewise.
17685         * m4/readlink.m4: Likewise.
17686         * m4/realloc.m4: Likewise.
17687         * m4/remainder.m4: Likewise.
17688         * m4/remainderf.m4: Likewise.
17689         * m4/remainderl.m4: Likewise.
17690         * m4/rmdir.m4: Likewise.
17691         * m4/round.m4: Likewise.
17692         * m4/roundf.m4: Likewise.
17693         * m4/roundl.m4: Likewise.
17694         * m4/select.m4: Likewise.
17695         * m4/setenv.m4: Likewise.
17696         * m4/signbit.m4: Likewise.
17697         * m4/sleep.m4: Likewise.
17698         * m4/stat.m4: Likewise.
17699         * m4/strerror.m4: Likewise.
17700         * m4/strtok_r.m4: Likewise.
17701         * m4/symlink.m4: Likewise.
17702         * m4/symlinkat.m4: Likewise.
17703         * m4/trunc.m4: Likewise.
17704         * m4/truncf.m4: Likewise.
17705         * m4/truncl.m4: Likewise.
17706         * m4/tzset.m4: Likewise.
17707         * m4/ungetc.m4: Likewise.
17708         * m4/usleep.m4: Likewise.
17709         * m4/wcwidth.m4: Likewise.
17711 2017-12-28  Bruno Haible  <bruno@clisp.org>
17713         gnulib-tool: Make --conditional-dependencies work better.
17714         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17715         * gnulib-tool (Options): Don't reject the combination of
17716         --conditional-dependencies with --with-tests.
17717         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17718         Don't reference $modules.
17719         (func_import, func_create_testdir): Pass it.
17721 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17723         regex: use re_malloc etc. consistently
17724         Problem and original patch reported by Arnold Robbins in:
17725         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17726         * lib/regcomp.c (re_comp):
17727         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17728         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17730 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17731             Paul Eggert  <eggert@cs.ucla.edu>
17733         glob: Silence warning about void pointer arithmetic.
17734         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17735         arithmetic.
17737 2017-12-15  Bruno Haible  <bruno@clisp.org>
17739         spawn-pipe: Silence a clang warning.
17740         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17741         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17742         in this file.
17744 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17746         explicit_bzero: port to macOS + Clang 9.0.0
17747         Problem reported by Marcus Johnson (Bug#29658).
17748         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17749         Don’t use asm.
17751 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17753         doc: Improve explanation of supporting relocatable libraries.
17754         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17755         properly how to build the relocatable module for
17756         libraries. (Method and example code from Bruno Haible.)
17758 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17760         doc: Use better texinfo tags in a few cases.
17761         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17762         instead of @samp in a few places.
17764 2017-12-11  Bruno Haible  <bruno@clisp.org>
17766         unistr/base: Update comment.
17767         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17769 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17771         test-faccessat.c: unlink temp file to avoid subsequent test failure
17772         * tests/test-faccessat.c: Remove the file to avoid failure
17773         to open the file on subsequent runs due to being created
17774         with no permissions.
17776 2017-12-10  Bruno Haible  <bruno@clisp.org>
17778         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17779         * doc/gnulib-tool.texi (Modified build rules): New node.
17781 2017-12-10  Bruno Haible  <bruno@clisp.org>
17783         doc: Tweak wording.
17784         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17785         "binaries".
17787 2017-12-05  Sam Steingold  <sds@gnu.org>
17788             Bruno Haible  <bruno@clisp.org>
17790         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17791         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17792         AC_EGREP_CPP pattern.
17794 2017-12-03  Bruno Haible  <bruno@clisp.org>
17796         all: Replace more http URLs by https URLs.
17797         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17798         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17799         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17800         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17802 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17804         Port better to CentOS 5
17805         Problems reported by Tom G. Christensen in:
17806         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17807         * doc/glibc-functions/strverscmp.texi (strverscmp):
17808         Document strverscmp bug with glibc 2.9 and earlier.
17809         * doc/posix-functions/tzset.texi (tzset):
17810         Document that TZ with angle brackets is POSIX-2001 and later.
17811         * tests/test-nstrftime.c: Include unistd.h.
17812         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17813         (TZ): Use it to skip tests with angle brackets in TZ,
17814         for older systems.
17816         stat: add missing module dependencies
17817         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17818         Add stat-time.
17820 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17822         stat: fix compilation failure on macOS Sierra
17823         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17824         https://savannah.gnu.org/bugs/?52546
17825         * lib/stat.c: Add missing include of stat-time.h.
17827 2017-11-28  Jim Meyering  <meyering@fb.com>
17829         test-faccessat.c: correct BASE definition to avoid parallel test failure
17830         * tests/test-faccessat.c (BASE): Define using this file's name, not
17831         that of test-lstat.c.  Using the latter caused this test to fail
17832         sometimes when run concurrently with test-lstat.
17834 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17836         unicase: fix VPATH build
17837         * modules/unicase/special-casing (Makefile.am): Ensure that the
17838         base directory is created when generating
17839         unicase/special-casing.h.
17841 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17843         libunistring: update to Unicode 9.0.0
17844         * lib/gen-uni-tables.c (fill_properties): Recognize
17845         Sentence_Terminal and Prepended_Concatenation_Mark.
17846         (is_property_default_ignorable_code_point): Exclude U+08E2.
17847         (fill_arabicshaping): Allow missing whitespace when parsing;
17848         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17849         (output_blocks): Increase the element size of the level1 table to
17850         accommodate more blocks.
17851         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17852         Update each class according to the standard.
17853         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17854         E_Base_GAZ characters.
17855         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17856         Glue_After_Zwj, and E_Base_GAZ characters.
17857         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17858         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17859         enum value.
17860         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17861         value.
17862         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17863         LBP_ZWJ, LBP_EB, and LBP_EM.
17864         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17865         enum value.
17866         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17867         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17868         declaration.
17869         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17870         (uniwbrk_table): Implement WB14.
17871         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17872         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17873         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17874         uc-is-grapheme-break.
17875         * modules/unigbrk/uc-grapheme-breaks: New module.
17876         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17877         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17878         enum value.
17879         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17880         * lib/unigbrk/u-grapheme-breaks.h: New file.
17881         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17882         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17883         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17884         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17885         29.
17886         * tests/unigbrk/test-uc-gbrk-prop.c
17887         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17888         GBP_GAZ, and GBP_EBG.
17889         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17890         * tests/unigbrk/test-uc-is-grapheme-break.c
17891         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17892         GBP_GAZ, and GBP_EBG.
17893         (main): Skip unsupported rules involving 3 or more characters,
17894         namely GB10, GB12, and GB13.
17895         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17896         * all generated files under lib/uni* and tests/uni*: Regenerate.
17897         * all the affected modules: Bump version.
17899 2017-11-26  Bruno Haible  <bruno@clisp.org>
17901         strfmon_l: Fix compilation error with glibc 2.5.
17902         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17903         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17904         * lib/monetary.in.h: Include also <locale.h>.
17906 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17908         posixtm: remove PDS_LEADING_YEAR
17909         This changes the API slightly, in a hopefully-innocuous way.
17910         Without this change the code had undefined behavior when a
17911         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17912         Problem reported by Pádraig Brady in:
17913         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17914         * NEWS: Mention this.
17915         * lib/posixtm.c (posix_time_parse): Treat the absence of
17916         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17917         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17918         present, but define it as zero, for compatibility with existing
17919         source code).  All other PDS_* values moved up.
17920         * tests/test-posixtm.c (LY): New macro.
17921         (T): Use it.  Do not expect a particular numeric encoding
17922         for PDS_CENTURY etc.
17924 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17926         stat: work around Solaris bug with tv_nsec < 0
17927         * doc/posix-functions/fstat.texi (fstat):
17928         * doc/posix-functions/fstatat.texi (fstatat):
17929         * doc/posix-functions/lstat.texi (lstat):
17930         * doc/posix-functions/stat.texi (stat):
17931         Mention Solaris 11 bug.
17932         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17933         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17934         * lib/lstat.c (rpl_lstat):
17935         * lib/stat.c (rpl_stat):
17936         Normalize resulting timestamps.
17937         * lib/fstatat.c (normal_fstatat): New function.
17938         (rpl_fstatat): Use it.
17939         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17940         (stat_time_normalize): New function.
17941         * m4/fstat.m4 (gl_FUNC_FSTAT):
17942         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17943         * m4/lstat.m4 (gl_FUNC_LSTAT):
17944         * m4/stat.m4 (gl_FUNC_STAT):
17945         Replace on Solaris.
17946         * modules/fstat (Depends-on):
17947         * modules/fstatat (Depends-on):
17948         Add stat-time.
17949         * modules/stat-time (Depends-on): Add errno, intprops.
17951 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17953         regex: merge from glibc
17954         * lib/regcomp.c (init_word_char): Add comments.
17956 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17958         regex: merge from glibc
17959         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17960         * lib/regex_internal.h (internal_function): Remove.
17961         All uses removed.
17963 2017-11-20  Bruno Haible  <bruno@clisp.org>
17965         crypto/gc-sm3: Fix buffer overrun.
17966         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17967         Reported by Coverity.
17969 2017-11-12  Jim Meyering  <meyering@fb.com>
17971         maint: shorten https://lists.gnu.org/archive/html/... links
17972         Each /archive/html/ part can be replace with /r/.
17973         Run this to induce the change:
17974         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17975         * ChangeLog: Perform that substitution.
17976         * Makefile: Likewise.
17977         * STATUS-libposix: Likewise.
17978         * build-aux/bootstrap: Likewise.
17979         * doc/maintain.texi: Likewise.
17980         * gnulib-tool: Likewise.
17981         * lib/allocator.h: Likewise.
17982         * lib/argp-ba.c: Likewise.
17983         * lib/argp-pv.c: Likewise.
17984         * lib/canon-host.c: Likewise.
17985         * lib/canonicalize-lgpl.c: Likewise.
17986         * lib/float.in.h: Likewise.
17987         * lib/fstat.c: Likewise.
17988         * lib/getdelim.c: Likewise.
17989         * lib/getprogname.c: Likewise.
17990         * lib/glthread/thread.h: Likewise.
17991         * lib/intprops.h: Likewise.
17992         * lib/mbsrtowcs-state.c: Likewise.
17993         * lib/safe-read.c: Likewise.
17994         * lib/signal.in.h: Likewise.
17995         * lib/stat.c: Likewise.
17996         * lib/stdbool.in.h: Likewise.
17997         * lib/stdio-impl.h: Likewise.
17998         * lib/stdio.in.h: Likewise.
17999         * lib/sysexits.in.h: Likewise.
18000         * lib/timespec.h: Likewise.
18001         * lib/wcsrtombs-state.c: Likewise.
18002         * m4/alloca.m4: Likewise.
18003         * m4/extern-inline.m4: Likewise.
18004         * m4/fstatat.m4: Likewise.
18005         * m4/gnulib-common.m4: Likewise.
18006         * m4/lib-ignore.m4: Likewise.
18007         * m4/printf.m4: Likewise.
18008         * m4/regex.m4: Likewise.
18009         * m4/stat-size.m4: Likewise.
18010         * m4/std-gnu11.m4: Likewise.
18011         * m4/stdbool.m4: Likewise.
18012         * m4/sys_types_h.m4: Likewise.
18013         * m4/threadlib.m4: Likewise.
18014         * m4/vararrays.m4: Likewise.
18015         * pygnulib/GLImport.py: Likewise.
18016         * tests/test-exp.h: Likewise.
18017         * tests/test-exp2.h: Likewise.
18018         * tests/test-expm1.h: Likewise.
18019         * tests/test-fflush2.c: Likewise.
18020         * tests/test-getopt_long.h: Likewise.
18021         * tests/test-intprops.c: Likewise.
18022         * tests/test-log.h: Likewise.
18023         * tests/test-log10.h: Likewise.
18024         * tests/test-log1p.h: Likewise.
18025         * tests/test-log2.h: Likewise.
18026         * tests/test-printf-posix.h: Likewise.
18027         * tests/test-regex.c: Likewise.
18028         * tests/test-snprintf-posix.h: Likewise.
18029         * tests/test-sprintf-posix.h: Likewise.
18030         * tests/test-stdalign.c: Likewise.
18031         * tests/test-stdbool.c: Likewise.
18032         * tests/test-vasnprintf-posix.c: Likewise.
18033         * tests/test-vasprintf-posix.c: Likewise.
18034         * top/maint.mk: Likewise.
18036 2017-11-12  Bruno Haible  <bruno@clisp.org>
18038         faccessat: Make the last change more robust.
18039         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
18040         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
18042 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18044         faccessat: port to macOS (Bug#29231)
18045         macOS faccessat has the same bug that lstat does: if the file
18046         name ends in '/' it ignores the trailing slash.
18047         Problem reported for Emacs by Vincent Zhang.
18048         * doc/posix-functions/faccessat.texi (faccessat): Document this.
18049         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
18050         around the initial includes.  Include errno.h, string.h, sys/stat.h.
18051         (orig_faccessat) [HAVE_FACCESSAT]: New function.
18052         Include "unistd.h" after defining it.
18053         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
18054         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
18055         Handle in the usual way.
18056         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
18057         lstat dereferences symlinks, since faccessat is likely to
18058         have the same problem.
18059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
18060         * modules/faccessat (Depends-on): Add fstatat.
18061         Depend if REPLACE_FACCESSAT is 1, too.
18062         (configure.ac): Link if REPLACE_FACCESSAT is 1.
18063         * modules/faccessat-tests (Depends-on): Add symlink.
18064         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
18065         * tests/test-faccessat.c (main): Test for the bug.
18067 2017-11-11  Bruno Haible  <bruno@clisp.org>
18069         getprogname: Fix compilation error on IRIX.
18070         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
18071         'namesize'.
18073 2017-11-11  Bruno Haible  <bruno@clisp.org>
18075         year2038: Tweak last patch.
18076         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
18078 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18080         year2038: be more insistent about 64-bit time_t
18081         Applications requiring access to arbitrary files should not be
18082         built with 32-bit time_t on hosts that have 64-bit timestamps,
18083         as this can lead to real trouble at runtime.
18084         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
18085         Check on all systems, not just MinGW.  Use a heuristic involving
18086         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
18087         output a failure or just a warning, to make it more likely that
18088         builders will select 64-bit time_t.
18090 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18092         havelib: fix typo in previous change
18093         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
18095         Don’t use AC_EGREP_CPP if affected by CFLAGS
18096         * m4/float_h.m4 (gl_FLOAT_H):
18097         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
18098         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
18099         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
18100         * m4/year2038.m4 (gl_YEAR2038):
18101         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
18102         likely to be affected by the choice of CFLAGS, since CFLAGS are
18103         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
18104         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
18106         fstatat: pacify GCC on unusual platform
18107         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
18108         Omit, as it’s unused in this case.
18110 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
18112         timespec: prefer ‘assume’ to ‘assure’
18113         This avoids some runtime tests.  The rest of the module makes
18114         similar assumptions and there is little point to testing here.
18115         * lib/timespec.h: Include verify.h instead of assure.h.
18116         (timespec_cmp): Use ‘assume’, not ‘assure’.
18117         Also, remove an unnecessary cast to ‘int’, as lots of other
18118         code in this module now causes -Wconversion to complain, and
18119         this is a problem with -Wconversion not with the code.
18121         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
18123         Port recent gnulib-tool change to Dash
18124         * gnulib-tool (func_create_testdir): Don't assume that the shell
18125         retokenizes after expanding "$@" inside the call to
18126         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
18128 2017-10-27  Jim Meyering  <meyering@fb.com>
18130         timespec.h: use "assure" to avoid a spurious warning
18131         * lib/timespec.h: Include "assure.h" and use it to help
18132         gcc7's -Wstrict-overflow avoid a false positive warning
18133         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
18134         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
18135         * modules/timespec (Depends-on): Add assure.
18137 2017-10-29  Bruno Haible  <bruno@clisp.org>
18139         Avoid several test failures with traditional locales on Haiku.
18140         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
18141         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
18142         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
18143         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
18144         LOCALE_ZH_CN=none.
18146 2017-10-29  Bruno Haible  <bruno@clisp.org>
18148         strerror_r-posix: Fix behaviour and test failure on Haiku.
18149         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
18150         are positive. Work around return value 0 instead of ERANGE on Haiku.
18151         For unknown error numbers, use a format string consistent with perror().
18152         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
18153         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
18154         are positive.
18156 2017-10-29  Bruno Haible  <bruno@clisp.org>
18158         get-rusage-data: Avoid crash on Haiku.
18159         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
18161 2017-10-29  Bruno Haible  <bruno@clisp.org>
18163         get-rusage-as: Avoid crash on Haiku.
18164         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
18166 2017-10-29  Bruno Haible  <bruno@clisp.org>
18168         ilogbl: Ensure replacement on Haiku.
18169         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
18170         REPLACE_ILOGBL if ilogbl does not work.
18171         (gl_FUNC_ILOGBL_WORKS): New macro.
18172         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
18173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
18174         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
18175         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
18176         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
18178 2017-10-29  Bruno Haible  <bruno@clisp.org>
18180         expl: Ensure replacement on Haiku.
18181         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
18182         zero.
18183         * doc/posix-functions/expl.texi: Mention the Haiku problem.
18185 2017-10-29  Bruno Haible  <bruno@clisp.org>
18187         math: Fix test failure on Haiku.
18188         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
18189         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
18190         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18191         * doc/posix-headers/math.texi: Mention the Haiku problem.
18193 2017-10-29  Bruno Haible  <bruno@clisp.org>
18195         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
18196         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
18197         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
18199 2017-10-29  Bruno Haible  <bruno@clisp.org>
18201         crypto/*: Verify that the header file is self-contained.
18202         * tests/test-gc-*.c: Include the module's header file immediately after
18203         <config.h>.
18204         * tests/test-hmac-*.c: Likewise.
18205         * tests/test-arcfour.c: Likewise.
18206         * tests/test-arctwo.c: Likewise.
18207         * tests/test-des.c: Likewise.
18208         * tests/test-md2.c: Likewise.
18209         * tests/test-md4.c: Likewise.
18210         * tests/test-md5.c: Likewise.
18211         * tests/test-rijndael.c: Likewise.
18212         * tests/test-sha1.c: Likewise.
18213         * tests/test-sm3.c: Likewise.
18215 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18216             Bruno Haible  <bruno@clisp.org>
18218         crypto/gc: fix build failure with -Werror=suggest-attribute=const
18219         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
18221 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18223         New module: crypto/gc-sm3
18224         * lib/gc.h: Declare SM3-related stuffs.
18225         * lib/gc-gnulib.c: Support sm3 in internal functions.
18226         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
18227         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
18228         * modules/crypto/gc-sm3: Define gc-sm3 module.
18229         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
18230         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
18231         * MODULES.html.sh: List gc-sm3 module.
18233 2017-10-29  Bruno Haible  <bruno@clisp.org>
18235         random, random_r: Mention different prototypes on Haiku.
18236         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
18237         * doc/glibc-functions/random_r.texi: Likewise.
18238         * doc/glibc-functions/initstate_r.texi: Likewise.
18239         * doc/glibc-functions/setstate_r.texi: Likewise.
18241 2017-10-28  Bruno Haible  <bruno@clisp.org>
18243         posix_spawn: Avoid spurious message in configure output.
18244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
18245         'cmp' command.
18247 2017-10-28  Bruno Haible  <bruno@clisp.org>
18249         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
18250         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
18251         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
18253 2017-10-28  Bruno Haible  <bruno@clisp.org>
18255         ioctl: Override non-POSIX declaration on Haiku.
18256         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
18257         * lib/sys_ioctl.in.h: Add comment about Haiku.
18258         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
18259         * doc/glibc-headers/sys_ioctl.texi: Likewise.
18261 2017-10-28  Bruno Haible  <bruno@clisp.org>
18263         crypto/sm3: Add overview documentation to the .h file.
18264         * lib/sm3.h: Add comments.
18266 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18268         New module: crypto/sm3
18269         This new module can be used to compute SM3 message digest of files or
18270         memory blocks according to the specification GM/T 004-2012
18271         Cryptographic Hash Algorithm SM3, published by State Cryptography
18272         Administration, China.
18273         The official SM3 cryptographic hash algorithm specification is
18274         available at
18275         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
18276         * lib/sm3.h: Declare the APIs of sm3 module.
18277         * lib/sm3.c: Implement SM3 hash algorithm.
18278         * m4/sm3.m4: m4 file for sm3 module.
18279         * modules/crypto/sm3: Define sm3 module.
18280         * tests/test-sm3.c: Implement SM3 test case.
18281         * modules/crypto/sm3-tests: Define sm3 test module.
18282         * MODULES.html.sh: List sm3 module.
18284 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18286         gc-libgcrypt: fix undefined enum type in switch statement
18287         Resolve the following build failure:
18288         lib/gc-libgcrypt.c: In function 'gc_hash_open':
18289         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
18290         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
18291              case 0:
18292              ^~~~
18293         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
18294         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
18296 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18298         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
18299         Resolve the following build failure:
18300         lib/gc-libgcrypt.c: In function 'gc_hash_read':
18301         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
18302         in signedness [-Werror=pointer-sign]
18303             digest = gcry_md_read (ctx->gch, 0);
18304                    ^
18305         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
18307 2017-10-26  Bruno Haible  <bruno@clisp.org>
18309         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
18310         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
18311         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
18313 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18315         glob: fix another heap buffer overflow
18316         Problem reported by Tim Rühsen in:
18317         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
18318         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
18320 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18322         quotearg: pacify compiler re unsigned
18323         * lib/quotearg.c (quotearg_n_options):
18324         Rewrite to avoid diagnostic from overly-picky compiler.
18325         Problem reported by Sami Kerola in:
18326         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
18328         glob: fix heap buffer overflow
18329         * lib/glob.c (glob): Fix off-by-one error introduced into
18330         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
18331         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
18332         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
18333         Fix suggested by Bruno Haible.
18335 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18337         glob: pacify fuzzer for mempcpy
18338         Problem reported by Tim Rühsen in:
18339         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
18340         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18342 2017-10-12  Bruno Haible  <bruno@clisp.org>
18344         doc: Fix syntax error (regression from 2017-10-03).
18345         * doc/posix-functions/strncpy.texi: Fix syntax error.
18347 2017-10-12  Bruno Haible  <bruno@clisp.org>
18349         doc: Update for Solaris 11.3.
18350         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
18351         mention Solaris 11.3.
18352         * m4/log2.m4: Fix comments.
18353         * m4/log2f.m4: Likewise.
18354         * m4/printf.m4: Update comments.
18355         * m4/rename.m4: Likewise.
18356         * m4/strncat.m4: Likewise.
18358         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
18360 2017-10-10  Bruno Haible  <bruno@clisp.org>
18362         doc: Improve doc about ioctl.
18363         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
18364         prototype.
18366 2017-10-09  Bruno Haible  <bruno@clisp.org>
18368         wcwidth: Don't use obsolete syntax of 'test'.
18369         Reported by Eric Blake.
18370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
18371         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
18373 2017-10-09  Bruno Haible  <bruno@clisp.org>
18375         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
18376         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
18377         and Daniel P. Berrange <berrange@redhat.com>.
18378         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
18379         on glibc systems. The getopt-pfx-core.h file declares exactly what
18380         unistd.h needs, nothing more.
18382 2017-10-08  Bruno Haible  <bruno@clisp.org>
18384         vma-iter: Improve support for FreeBSD.
18385         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
18386         vma_iterate.
18387         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
18389 2017-10-08  Bruno Haible  <bruno@clisp.org>
18391         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
18392         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
18394 2017-10-07  KO Myung-Hun  <komh@chollian.net>
18396         test-framework-sh: Fix 'invalid path dir' error.
18397         On OS/2, a path separator is ';' not ':'. And ':' is used as a
18398         separator between a drive letter and directory parts.
18399         As a result, an absolute path such as x:/path/to/dir on OS/2 is
18400         treated as an invalid path dir.
18401         * tests/init.sh (PATH_SEPARATOR): Set at startup.
18402         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
18403         instead of hard coded ':'.
18405 2017-10-07  Bruno Haible  <bruno@clisp.org>
18407         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
18408         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
18409         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
18410         (rof_open): On Linux, do multiple read() calls and make sure
18411         MIN_LEFTOVER bytes are left when read() returns.
18413 2017-10-07  Bruno Haible  <bruno@clisp.org>
18415         vma-iter: Improve support for GNU/Hurd.
18416         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
18417         API, not the /proc file system.
18419 2017-10-07  Bruno Haible  <bruno@clisp.org>
18421         test-framework-sh: Don't require bash on Windows and OS/2.
18422         Reported by KO Myung-Hun.
18423         * tests/test-init.sh: Use 'shopt' only when running in bash.
18425 2017-10-06  KO Myung-Hun  <komh@chollian.net>
18427         wcwidth: check a macro version of wcwidth () as well
18428         * lib/wchar.in.h: Revert commit from 2016-01-14.
18429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
18431 2017-10-06  Bruno Haible  <bruno@clisp.org>
18433         getopt-posix: Clarify copyright header.
18434         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
18435         * lib/getopt-pfx-core.h: Likewise.
18436         * lib/getopt-pfx-ext.h: Likewise.
18437         * lib/getopt-cdefs.in.h: Likewise.
18439 2017-10-03  Bruno Haible  <bruno@clisp.org>
18441         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
18442         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
18443         gl_HOST_CPU_C_ABI.
18445 2017-10-03  Bruno Haible  <bruno@clisp.org>
18447         doc: warn about misuse of strncpy and wcsncpy.
18448         * doc/posix-functions/strcpy.texi: Describe requirements on prior
18449         memory allocation.
18450         * doc/posix-functions/wcscpy.texi: Likewise.
18451         * doc/posix-functions/strncpy.texi: Describe what this function is not
18452         useful for.
18453         * doc/posix-functions/wcsncpy.texi: Likewise.
18455 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18457         fsuage: fix typo in previous change
18458         * lib/fsusage.c: Remove stray include of full-read.h.
18459         Problem reported by Sam Steingold for macOS (Bug#28669).
18461 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
18463         fsusage: remove SVR2 support
18464         SVR2 was obsolete by 1986 and is no longer supported by anybody,
18465         and its code was getting in the way of use of this module by
18466         Emacs, which has its own ‘read’ function anyway.
18467         * lib/fsusage.c: Do not include sys/filsys.h.
18468         (get_fs_usage): Remove SVR2-specific code.
18469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
18470         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
18471         * modules/fsusage (Depends-on): Do not depend on full-read.
18473         Simplify autoupdate of licenses
18474         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
18475         place.
18477 2017-10-01  Bruno Haible  <bruno@clisp.org>
18479         vma-iter: Add support for GNU/Hurd.
18480         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
18481         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18483 2017-09-30  Bruno Haible  <bruno@clisp.org>
18485         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
18486         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
18487         fail when module 'largefile' is in use.
18488         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
18489         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
18490         Don't test HAVE_SYS_PROCFS_H.
18492 2017-09-30  Bruno Haible  <bruno@clisp.org>
18494         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
18495         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
18496         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
18497         * modules/havelib (Depends-on): Add host-cpu-c-abi.
18499 2017-09-30  Bruno Haible  <bruno@clisp.org>
18501         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
18502         * lib/uniname/uniname.c (unicode_name_character): Add braces around
18503         scope of local variables.
18505 2017-09-28  Bruno Haible  <bruno@clisp.org>
18507         string: code style
18508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
18509         substitutable variables.
18510         * modules/string (Makefile.am): Likewise.
18512 2017-09-26  Bruno Haible  <bruno@clisp.org>
18514         uniname/uniname-tests: Tighten code.
18515         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
18516         local variables into one.
18518 2017-09-26  Bruno Haible  <bruno@clisp.org>
18520         vma-iter: Improvements for Linux and BSD platforms.
18521         - Add support for DragonFly BSD.
18522         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
18523         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
18524         Read the entire file into memory in a single system call.
18525         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
18526         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
18528 2017-09-26  Bruno Haible  <bruno@clisp.org>
18530         vma-iter: Provide the protection flags on FreeBSD.
18531         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
18532         skip three fields between the addresses and the protection flags.
18534 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18536         glob: remove bogus extern decl
18537         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18538         extern declaration.  Problem reported by Adhemerval Zanella in:
18539         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
18541 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18543         uniname/uniname-tests: integer overflow fix
18544         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
18545         Check for integer overflow.
18547         duplocale-tests: fix unlikely crash
18548         * tests/test-duplocale.c (get_locale_dependent_values):
18549         Don’t crash with absurdly long month names.
18551         maint: fix overflow checking in nap.h
18552         * modules/chown-tests:
18553         * modules/fchownat-tests, modules/fdutimensat-tests:
18554         * modules/futimens-tests, modules/lchown-tests:
18555         * modules/stat-time-tests, modules/utime-tests:
18556         * modules/utimens-tests, modules/utimensat-tests:
18557         Depend on intprops.
18558         * tests/nap.h: Include intprops.h.
18559         (diff_timespec): Handle overflow properly.
18561         sys_types: update URL
18562         * m4/sys_types_h.m4: Use https: URL.
18564         parse-datetime: fix dependency
18565         * modules/parse-datetime (Depends-on): Depend
18566         on nstrftime, not strftime.
18568         parse-datetime, posixtm: avoid uninit access
18569         * lib/parse-datetime.y (parse_datetime2):
18570         * lib/posixtm.c (posixtime):
18571         Do not access uninitialized storage, even though the resulting
18572         value is never used.
18574 2017-09-25  Bruno Haible  <bruno@clisp.org>
18576         vma-iter: Improvements for BSD platforms.
18577         - Add support for GNU/kFreeBSD.
18578         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
18579         - Speed up on OpenBSD.
18580         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
18581         (vma_iterate_bsd): New function.
18582         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
18583         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
18584         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18585         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18587 2017-09-23  Bruno Haible  <bruno@clisp.org>
18589         strfmon_l: New module.
18590         * modules/strfmon_l: New file.
18591         * lib/strfmon_l.c: New file.
18592         * m4/strfmon_l.m4: New file.
18593         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18594         * modules/strfmon_l-tests: New file.
18595         * tests/test-strfmon_l.c: New file.
18597         monetary: New module.
18598         * modules/monetary: New file.
18599         * lib/monetary.in.h: New file.
18600         * m4/monetary_h.m4: New file.
18601         * doc/posix-headers/monetary.texi: Mention the new module.
18602         * modules/monetary-tests: New file.
18603         * tests/test-monetary.c: New file.
18604         * modules/monetary-c++-tests: New file.
18605         * tests/test-monetary-c++.cc: New file.
18606         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18608 2017-09-23  Bruno Haible  <bruno@clisp.org>
18610         duplocale tests: Fix test crash on Linux/x86.
18611         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18612         locale from the current thread before freeing it.
18614 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18616         mktime: port to OpenVMS
18617         Problem reported by John E. Malmberg in:
18618         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18619         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18621 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18623         manywarnings: port to GCC on 64-bit MS-Windows
18624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18625         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18626         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18628 2017-09-13  Bruno Haible  <bruno@clisp.org>
18630         all: Replace many more http URLs by https URLs. Update stale URLs.
18631         * users.txt: Remove mention of 'newts'.
18632         * lib/localename.c: Update comment about LANG_SOTHO.
18634 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18636         all: Replace many http URLs by https URLs.
18638 2017-09-12  Bruno Haible  <bruno@clisp.org>
18640         doc: Prefer https URLs where possible.
18641         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18642         * doc/ld-output-def.texi: Remove unavailable URL.
18644 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18646         maintainer-makefile: FTP -> HTTPS
18647         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18648         of FTP, which is planned to be decommissioned on 2017-11-01.
18650 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18652         libc-config: Fix __GNUC_PREREQ macro.
18653         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18654         __GNUC_MINOR.
18656 2017-09-09  Bruno Haible  <bruno@clisp.org>
18658         gnulib-tool: Simplify commit from 2015-08-20.
18659         * gnulib-tool (func_add_or_update): Remove local variable
18660         is_binary_file.
18662 2017-09-08  Bruno Haible  <bruno@clisp.org>
18664         stddef: Avoid conflict with system-defined max_align_t.
18665         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18666         Reported by Werner Lemberg <wl@gnu.org> in
18667         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18668         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18669         (max_align_t): Define as a macro.
18670         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18671         definitions of rpl_max_align_t in different copies of gnulib-generated
18672         <stddef.h>.
18674 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18676         libc-config: port to MSVC
18677         Problems reported by Gisle Vanem in:
18678         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18679         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18680         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18681         * m4/__inline.m4: New file.
18682         * modules/libc-config (Files): Add it.
18683         (Depends-on): Use it.
18685         glob: Use enum for __glob_pattern_type result
18686         From a patch proposed by Adhemerval Zanella in:
18687         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18688         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18689         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18690         * lib/glob_internal.h (__glob_pattern_type):
18691         * lib/glob.c (glob):
18692         * lib/glob_pattern_p.c (__glob_pattern_p):
18693         Use them.
18695         glob: fix for use in glibc
18696         Problem reported by Adhemerval Zanella in:
18697         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18698         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18699         Do not redefine if _LIBC.
18701 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18703         glob: fix bugs with long login names
18704         Problem reported by Adhemerval Zanella in:
18705         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18706         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18707         (glob): Use the same scratch buffer for both getlogin_r and
18708         getpwnam_r.  Don’t require preallocation of the login name.  This
18709         simplifies storage allocation, and corrects the handling of
18710         long login names.
18712 2017-09-02  Bruno Haible  <bruno@clisp.org>
18714         dirent: Update doc.
18715         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18717 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18719         glob: fix getpwnam_r errno typo
18720         * lib/glob.c (glob): Fix longstanding misuse of errno after
18721         getpwnam_r, which returns an error number rather than setting
18722         errno.
18724         glob: fix typo in recent change
18725         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18726         Fix recently-introduced typo.
18728 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18730         glob: don't save and restore errno unnecessarily
18731         * lib/glob.c (glob): Don't save and restore errno
18732         merely because we have getpwnam_r.
18734         glob: don't assume getpwnam_r
18735         * lib/glob.c (glob): Port recent patches to platforms
18736         lacking getpwnam_r.
18738         scratch_buffer: don’t use private glibc API
18739         Suggested by Florian Weimer in:
18740         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18741         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18742         * lib/scratch_buffer_grow.c: Rename to
18743         lib/malloc/scratch_buffer_grow.c.
18744         * lib/scratch_buffer_grow_preserve.c: Rename to
18745         lib/malloc/scratch_buffer_grow_preserve.c.
18746         * lib/scratch_buffer_set_array_size.c: Rename to
18747         lib/malloc/scratch_buffer_set_array_size.c.
18748         * lib/scratch_buffer.h: New file.
18749         * modules/scratch_buffer (Files, Makefile.am):
18750         Adjust to source-file renaming.
18752 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18754         glob: use scratch_buffer instead of extend_alloca
18755         Much of the lib/glob.c part of this patch comes from a glibc patch
18756         proposed by Adhemerval Zanella in:
18757         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18758         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18759         included via glob.h, does this for us now.
18760         (__set_errno): Remove, as libc-config does this for us now.
18761         Include <scratch_buffer.h>.
18762         (GETPW_R_SIZE_MAX): Remove.
18763         (glob): Use struct scratch_buffer instead of extend_alloca.
18764         * lib/glob.in.h: Include libc-config.h rather than
18765         including <sys/cdefs.h> conditionally.
18766         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18767         (__glibc_unlikely, __restrict, weak_alias):
18768         Remove, as libc-config does this for us now.
18769         * m4/glob.m4 (gl_PREREQ_GLOB):
18770         Remove sys/cdefs.h tests; no longer needed.
18771         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18772         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18774         scratch_buffer: new module
18775         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18776         * lib/scratch_buffer_grow_preserve.c:
18777         * lib/scratch_buffer_set_array_size.c:
18778         New files, copied from glibc with very minor changes that can be
18779         copied back.
18780         * modules/scratch_buffer: New file.
18782         libc-config: new module
18783         * MODULES.html.sh: Add libc-config.
18784         * lib/cdefs.h: New file, copied from the GNU C Library with very
18785         minor changes that can be copied back.
18786         * lib/libc-config.h, modules/libc-config: New files.
18788 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18790         glob: match dangling symlinks
18791         This fixes a bug I inadvertently introduced to Gnulib when I
18792         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18793         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18794         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18795         * doc/posix-functions/glob.texi: Update list of affected platforms.
18796         * lib/glob.c (__lstat64): New macro.
18797         (is_dir): New function.
18798         (glob, glob_in_dir): Match symlinks even if they are dangling.
18799         (link_stat, link_exists_p): Remove.  All uses removed.
18800         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18801         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18802         * modules/glob-tests (Depends-on): Add symlink.
18803         * tests/test-glob.c: Include errno.h, unistd.h.
18804         (BASE): New macro.
18805         (main): Test dangling symlinks, if symlinks are supported.
18807         glob, backupfile: inode 0 is a valid inode number
18808         * doc/posix-functions/readdir.texi (readdir):
18809         * doc/posix-headers/dirent.texi (dirent.h):
18810         Document more readdir portability issues.
18811         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18812         (numbered_backup): Don’t treat inode 0 any differently from
18813         other inode values.
18814         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18815         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18816         All uses removed.
18817         * modules/glob (Depends-on): Remove d-ino.
18819         glob: simplify symlink detection
18820         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18821         uint8_t, as C99 does not require uint8_t.
18822         (struct readdir_result): Use it.  Do not define skip_entry unless
18823         it is needed; this saves a byte on platforms lacking d_ino.
18824         (readdir_result_type, readdir_result_skip_entry):
18825         New functions, replacing ...
18826         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18827         ... these functions, which were removed.  This makes the callers
18828         easier to read.  All callers changed.
18829         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18831 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18833         fts-tests: tag as a longrunning-test so not included by default
18834         * modules/fts-tests: This test takes about 20s on current systems,
18835         and uses about 285M of space on ext4.
18837 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18839         renameat2: fix compilation on alpine linux
18840         * m4/renameat.m4: Check for <linux/fs.h> presence.
18841         * lib/renameat2.h: Only include <linux/fs.h> if present.
18842         Reported by Assaf Gordon on Alpine Linux.
18844 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18846         glob: try to port recent changes to MS-Windows
18847         Problem reported by Bruno Haible in:
18848         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18849         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18850         * lib/glob.in.h (__glob_pattern_p): ... to here.
18852 2017-08-24  Eric Blake  <eblake@redhat.com>
18854         warnings: fix compilation with old autoconf
18855         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18856         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18857         AC_DEFUN.
18858         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18859         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18861 2017-08-24  Bruno Haible  <bruno@clisp.org>
18863         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18864         * modules/glob (Depends-on): Add c99.
18866 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18868         glob: fix typo that broke platforms lacking d_ino
18869         This typo also hurt performance on GNU/Linux and similar hosts.
18870         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18871         in previous change.
18873 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18875         glob: merge from glibc with Zanella glob changes
18876         Merge glob from glibc, with changes for glob proposed
18877         by Adhemerval Zanella in the thread starting here:
18878         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18879         plus some fixes for this merge.
18880         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18881         New files, ported from glibc.
18882         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18883         with __restrict.
18884         (__size_t): Remove.  All uses replaced by size_t.
18885         (size_t): Define by defining __need_size_t and including <stddef.h>.
18886         This should work even in non-glibc platforms, where any name
18887         pollution is OK.
18888         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18889         (struct stat64): Don’t worry about __GLOB_GNULIB.
18890         (glob, globfree, glob_pattern_p): Remove macros for
18891         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18892         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18893         but set errno.
18894         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18895         removed since the glibc behavior works on null pointers.
18896         Do not include stdio.h; old SunOS is irrelevant now.
18897         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18898         Include glob_internal.h.
18899         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18900         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18901         worked only coincidentally.
18902         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18903         Remove macros; now done in glob.in.h.
18904         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18905         (glob): Properly initialize glob structure with
18906         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18907         Remove old code using SHELL since Bash no longer
18908         uses this.
18909         (glob, prefix_array): Separate MS code better.
18910         (glob, glob_in_dir): Use C99 decls before statements when glibc
18911         does.
18912         (glob_in_dir): Remove old Amiga and VMS code.
18913         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18914         separate files.
18915         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18916         (__glibc_unlikely):
18917         Move here from glob.c.
18918         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18919         (weak_alias): New macro.
18920         (__size_t): Remove.  All uses replaced by size_t.
18921         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18922         * modules/glob (Files): Add +lib/glob_internal.h,
18923         lib/glob_pattern_p.c, lib/globfree.c.
18924         (Depends-on): Remove snippet/arg-nonnull.
18926 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18928         glob: port to clang's Undefined Sanitizer
18929         Problem reported by Tim Rühsen in:
18930         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18931         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18932         (glob_in_dir): Do not rely on undefined behavior in accessing
18933         struct members beyond their bounds.  Use a flexible array member
18934         instead.
18936 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18938         vc-list-files: port to Solaris 10
18939         * build-aux/vc-list-files: Don't assume test -e works.
18941 2017-08-21  Karl Berry  <karl@freefriends.org>
18943         * doc/posix-functions/srandom.texi (srandom): typo }.
18945 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18947         git-version-gen: port to Solaris 10
18948         Problem reported by Dagobert Michelsen in:
18949         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18950         * build-aux/git-version-gen (v_from_git):
18951         Use expr instead of shell substitution.
18953 2017-08-19  Bruno Haible  <bruno@clisp.org>
18955         host-cpu-c-abi: Improve detection of MIPS ABI.
18956         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18957         _MIPS_SIM.
18959 2017-08-17  Bruno Haible  <bruno@clisp.org>
18961         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18962         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18964 2017-08-17  Bruno Haible  <bruno@clisp.org>
18966         float: Fix LDBL_MIN value on FreeBSD/x86.
18967         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18969 2017-08-17  Bruno Haible  <bruno@clisp.org>
18971         random: Fix test compilation failure on Cygwin 1.5.25.
18972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18973         HAVE_DECL_SETSTATE.
18974         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18975         declared.
18976         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18977         HAVE_DECL_SETSTATE.
18978         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18979         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18980         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18981         * doc/posix-functions/random.texi: Likewise.
18982         * doc/posix-functions/setstate.texi: Likewise.
18983         * doc/posix-functions/srandom.texi: Likewise.
18985 2017-08-16  Bruno Haible  <bruno@clisp.org>
18987         stdnoreturn: Fix test compilation failure on Cygwin.
18988         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18989         <stdnoreturn.h> replacement.
18990         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18991         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18993 2017-08-16  Bruno Haible  <bruno@clisp.org>
18995         thread: Fix conflict with pthread_sigmask module.
18996         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18997         it's defined as a macro.
18998         * modules/thread (Depends-on): Add pthread_sigmask.
19000 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19002         rename: port better to NetBSD
19003         * doc/posix-functions/rename.texi (rename): NetBSD 7
19004         does not have the link-count bug.
19005         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
19006         broken merely because rename ("a", "b") removes "a" when the two
19007         names are hard links to the same file.
19009 2017-08-16  Bruno Haible  <bruno@clisp.org>
19011         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
19012         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
19013         the target file names with '$(srcdir)/'.
19014         * modules/unicase/locale-language (Makefile.am): Likewise.
19015         * modules/unicase/special-casing (Makefile.am): Likewise.
19016         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
19017         * modules/unictype/category-byname (Makefile.am): Likewise.
19018         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
19019         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
19020         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
19021         * modules/unictype/property-byname (Makefile.am): Likewise.
19022         * modules/unictype/scripts (Makefile.am): Likewise.
19023         * modules/uninorm/composition (Makefile.am): Likewise.
19025 2017-08-16  Bruno Haible  <bruno@clisp.org>
19027         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
19028         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
19029         value for OpenBSD.
19031 2017-08-16  Bruno Haible  <bruno@clisp.org>
19033         rename, renameat: Update doc regarding NetBSD.
19034         * doc/posix-functions/rename.texi: Clarify that when using
19035         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
19036         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
19037         version.
19039 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19041         renameat2: port better to macOS
19042         * lib/renameat2.c (renameat2): Use renameatx_np if available.
19044         futimens: don’t assume struct timespec layout
19045         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
19046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
19047         * tests/test-fdutimensat.c (main):
19048         * tests/test-futimens.h (test_futimens):
19049         * tests/test-lutimens.h (test_lutimens):
19050         * tests/test-utimens.h (test_utimens):
19051         * tests/test-utimensat.c (main):
19052         Don’t assume that struct timespec is a two-member structure in
19053         tv_sec, tv_nsec order.  Although this is true on all platforms we
19054         know about, POSIX does not guarantee it.
19056         rename: document+test NetBSD rename
19057         Test failure reported by Bruno Haible in:
19058         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
19059         This is an area where NetBSD is better-behaved than POSIX,
19060         so allow the NetBSD behavior in tests.
19061         * doc/posix-functions/rename.texi:
19062         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
19063         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
19065 2017-08-15  Bruno Haible  <bruno@clisp.org>
19067         renameat: Ensure declaration in <stdio.h> on NetBSD.
19068         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
19069         * doc/posix-functions/renameat.texi: Mention this problem.
19071 2017-08-15  Bruno Haible  <bruno@clisp.org>
19073         duplocale: Work around NetBSD 7.0 bug.
19074         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
19075         * lib/duplocale.c: Add comment about NetBSD problem.
19076         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
19078 2017-08-15  Bruno Haible  <bruno@clisp.org>
19080         duplocale tests: Verify use with *_l functions.
19081         * modules/duplocale-tests (configure.ac): Test for uselocale and
19082         some *_l functions.
19083         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
19084         from main.
19085         (get_locale_dependent_values_from, test_with_locale_parameter): New
19086         functions.
19087         (main): Test both test_with_uselocale and test_with_locale_parameter.
19089 2017-08-15  Bruno Haible  <bruno@clisp.org>
19091         extensions: Enable NetBSD specific extensions.
19092         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
19094 2017-08-14  Bruno Haible  <bruno@clisp.org>
19096         open, openat: Update doc about O_CLOEXEC.
19097         * doc/posix-functions/open.texi: More concrete list of platforms.
19098         * doc/posix-functions/openat.texi: Likewise.
19100 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19102         open: support O_CLOEXEC
19103         * NEWS, doc/posix-functions/open.texi:
19104         * doc/posix-functions/openat.texi: Document this.
19105         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
19106         (GNULIB_defined_O_CLOEXEC): New symbol.
19107         * lib/open.c: Include cloexec.h.
19108         (open): Support O_CLOEXEC.
19109         * lib/openat.c: Include cloexec.h.
19110         (rpl_openat): Support O_CLOEXEC.
19111         * lib/popen-safer.c: Do not include cloexec.h.
19112         (open_noinherit): Remove.
19113         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
19114         * lib/save-cwd.c: Do not include cloexec.h.
19115         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
19116         * m4/open-cloexec.m4: New file.
19117         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
19118         Replace 'open' if O_CLOEXEC is not present.
19119         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
19120         Replace 'openat' if O_CLOEXEC is not present.
19121         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
19122         * modules/open (Files): Add m4/open-cloexec.m4.
19123         (Depends-on): Depend on cloexec if replacing 'open'.
19124         * modules/openat (Files): Add m4/open-cloexec.m4.
19125         (Depends-on): Depend on cloexec if replacing openat.
19126         * modules/popen-safer (Depends-on): Remove cloexec.
19127         * modules/save-cwd (Depends-on): Remove cloexec, and add
19128         fd-safer-flag and 'open'.
19130 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
19132         reallocarray: minor fixes
19133         * doc/glibc-functions/reallocarray.texi: Update version numbers.
19134         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
19135         * modules/reallocarray (License): Change from GPL to LGPL.
19136         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
19137         Indent properly and don't use tabs.
19139 2017-08-13  Darshit Shah  <darnir@gnu.org>
19141         reallocarray: New module
19142         reallocarray is a new function in glibc 2.26 to safely allocate an array
19143         of memory locations with integer overflow protection.
19144         * MODULES.html.sh: Add reallocarray.
19145         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
19146         * lib/reallocarray.c: New file to implement module reallocarray.
19147         * lib/stdlib.in.h: Add function declarations for reallocarray.
19148         * m4/reallocarray.m4: New file.
19149         * m4/stdlib_h.m4: Declare reallocarray.
19150         * modules/reallocarray: New file.
19151         * modules/reallocarray-test: New file.
19152         * modules/stdlib: Coerce stdlib.h to export reallocarray.
19153         * tests/test-reallocarray.c: New test.
19155 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19157         dirent-safer: fix cloexec race
19158         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
19159         (opendir_safer): Use F_DUPFD_CLOEXEC.
19160         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
19161         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
19162         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
19163         instead of dup_safer.
19165         fts: fix cloexec races
19166         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
19167         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
19168         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
19169         (fd_ring_check): Set cloexec flag on new file descriptors.
19170         (fts_build, fd_ring_check): While we’re at it, make sure the
19171         resulting file descriptor is not 0, 1, or 2, since that is easy.
19173 2017-08-11  Bruno Haible  <bruno@clisp.org>
19175         fts tests: Fix link error.
19176         Reported by Tom G. Christensen in
19177         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
19178         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
19180 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19182         fts: port recent changes to CentOS 6
19183         Problem reported by Tom G. Christensen in:
19184         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
19185         * lib/fts.c (fsword): New type.
19186         (struct dev_type, filesystem_type): Use it.
19187         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
19188         Also, check for f_type only if fstatfs and sys/vfs.h work.
19190 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19192         tempname: do not depend on secure_getenv
19193         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
19194         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
19195         * modules/tempname (Depends-on): Remove secure_getenv.
19197 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
19199         extensions: add _OPENBSD_SOURCE
19200         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
19202 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
19203             Bruno Haible  <bruno@clisp.org>
19205         manywarnings: Add support for C++.
19206         * build-aux/g++-warning.spec: New file.
19207         * m4/manywarnings-c++.m4: New file.
19208         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
19209         redirects to manywarnings-c++.m4.
19210         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
19212 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19214         git-version-gen: another fix for tags with "-"
19215         * build-aux/git-version-gen: Improve fix for tags containing "-".
19216         Suggested by Markus Armbruster in:
19217         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
19219 2017-08-06  Bruno Haible  <bruno@clisp.org>
19221         warnings, manywarnings: Add support for multiple languages, not just C.
19222         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
19223         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
19224         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
19225         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
19226         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
19227         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
19228         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
19229         of the current language. If C++ is the current language, modify
19230         WARN_CXXFLAGS instead of WARN_CFLAGS.
19231         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
19232         gl_MANYWARN_ALL_GCC.
19233         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
19235 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
19237         git-version-gen: Fix for tags containing '-'
19239         Really old versions of git-describe (before v1.5.0, Feb 2007)
19240         don't have the number of commits in their long format output,
19241         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
19242         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
19243         recognizes both patterns, and normalizes the old format to the new one.
19245         Unfortunately, this normalization code gets confused when the tag
19246         contains '-'.  Reproducer:
19248             $ git-tag -m test v0.2-rc1
19249             $ build-aux/git-version-gen .tarball-version; echo
19250             build-aux/git-version-gen: WARNING: git rev-list failed
19251             UNKNOWN
19253         We take exact tag "v0.2-rc1" for the old format, extract the presumed
19254         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
19255         commits since tha tag.  Fails, because tag "v0.2" does not exist.
19257         * git-version-gen: We could perhaps drop support for versions from
19258         more than a decade ago.  But tightening the pattern match is easy
19259         enough, so do that.  Still breaks when you use version tags ending in
19260         something matching -g????, but you arguably get what you deserve then.
19262 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19264         valgrind-tests: use ls, and cache
19265         * m4/valgrind-tests.m4: Test ls, not bash.
19266         Problem reported by Reuben Thomas.
19267         Also, cache the result so that it can be overridden.
19269 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
19271         manywarnings: port to 64-bit GCC builds of Emacs
19272         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
19273         object size rather than hardwiring 2147483647.  This is needed to
19274         build GNU Emacs, which has one conditional (and used
19275         only-in-theory) call to malloc with a literal greater than
19276         2147483647.
19278 2017-08-04  Bruno Haible  <bruno@clisp.org>
19280         Relax the license of some modules with no runtime code.
19281         * modules/std-gnu11 (License): Set to 'unlimited'.
19282         * modules/c99 (License): Likewise.
19283         Reported by Reuben Thomas <rrt@sc3d.org>.
19284         * modules/d-ino (License): Set to 'LGPL'.
19285         * modules/host-os (License): Likewise.
19286         * modules/longlong (License): Likewise.
19288 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19290         renameat2: port to RHEL 7 + NFS
19291         * lib/renameat2.c (renameat2) [SYS_renameat2]:
19292         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
19293         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
19295 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19297         renameat2: port to non-renameat platforms
19298         Problem reported for MSVC-2015 by Gisle Vanem in:
19299         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
19300         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
19301         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
19303 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19305         manywarnings: port to 32-bit GCC bug
19306         Problem reported by Pino Toscano in:
19307         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
19308         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
19309         not 2**63 - 1, to work around the following GCC bug:
19310         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
19312 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
19314         backupfile: new function to validate backup suffix
19315         * lib/backupfile.c (set_simple_backup_suffix): New function.
19316         (backupfile_internal): Use it.
19318         canonicalize: fix EOVERFLOW commentary
19319         Problem reported by Bruno Haible in:
19320         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
19321         * lib/canonicalize.c (canonicalize_filename_mode):
19322         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
19324         Don't interpret EOVERFLOW to mean nonexistence
19325         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
19326         may be EOVERFLOW; this is likely more useful than reporting the
19327         stat errno.
19328         * lib/glob.c (link_stat): Rename from link_exists2_p and
19329         return -1/0 instead of 0/1.  Caller changed.
19330         * lib/glob.c (link_exists_p):
19331         * lib/renameat2.c (rename_noreplace, renameat2):
19332         * lib/tempname.c (try_nocreate):
19333         If errno == EOVERFLOW then the directory entry exists, so do not
19334         act as if it does not exist.
19336         backup-rename: new module
19337         It is like backupfile, except it avoids some race conditions,
19338         and it does not output to stderr or exit.
19339         * MODULES.html.sh: Add backup-rename.
19340         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
19341         * modules/backup-rename: New files.
19342         * lib/backupfile.c: Turn this into an internals file, which
19343         contains code common to backupfile and backup_rename.  Include
19344         backupfile-internal.h instead of backupfile.h.  Do not include
19345         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
19346         renameat2.h and fcntl.h.
19347         (BACKUP_NOMEM): New constant.
19348         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
19349         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
19350         (backupfile_internal): Rename from find_backup_file_name.
19351         Support new arg RENAME.
19352         (backup_args, backup_types, get_version, xget_version):
19353         Move to lib/backup-find.c.
19354         * lib/backupfile.h (backup_file_rename): New decl.
19355         * modules/backupfile (Files): Add lib/backup-internal.h,
19356         lib/backup-find.c.
19357         (Depends-on): Add dirfd, fcntl, renameat2.
19358         (lib_SOURCES): Add backup-find.c.
19360         renameat2: port better to older Solaris
19361         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
19362         Add goto to use a label, to silence picky compilers.
19364         fts-tests: port to gcc -Wwrite-strings
19365         * tests/test-fts.c (base, base_d): New static vars.
19366         (argv, remove_tree, main): Use them.
19368 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19370         relocatable-lib{,-lgpl}: improve documentation
19371         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
19372         Various other updates.
19374 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
19375             Bruno Haible  <bruno@clisp.org>
19377         relocatable-lib{,-lgpl}: add Valgrind suppressions
19378         * lib/relocatable.valgrind: New file.
19379         * modules/relocatable-lib (Files): Add relocatable.valgrind.
19380         * modules/relocatable-lib-lgpl: Likewise.
19382 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19384         relocatable: Make the license on the sources the GPL.
19385         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
19386         LGPL, which was a special case so that the relocatable source files
19387         could be used without gnulib-tool, to GPL. They can still be used under
19388         the LGPL, using the --lgpl option to gnulib-tool.
19390 2017-07-30  Bruno Haible  <bruno@clisp.org>
19392         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
19393         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
19394         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
19395         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
19396         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
19398 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19400         faccessat: document AT_SYMLINK_NOFOLLOW issue
19401         * doc/posix-functions/faccessat.texi: Modernize platform list.
19402         Document AT_SYMLINK_NOFOLLOW limitation.
19404         renameat2: port to Solaris 10
19405         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
19406         with AT_SYMLINK_NOFOLLOW (which is not portable).
19407         (renameat): Undef before using, to avoid endless recursion when
19408         the replacement renameat calls renameat2 which calls the
19409         replacement renameat.
19410         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
19411         * modules/renameat2 (Depends-on): Remove faccessat.
19412         * modules/renameat-tests (test_renameat_LDADD):
19413         * modules/renameat2-tests (test_renameat2_LDADD):
19414         Remove $(LIB_EACCESS).
19416         renameat2: new module
19417         Although the Linux syscall renameat2 is not in glibc (yet?), it is
19418         useful to have access to its RENAME_NOREPLACE flag.
19419         * MODULES.html.sh (func_all_modules): Add renameat2.
19420         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
19421         * modules/renameat2-tests, tests/test-renameat2.c: New files.
19422         * lib/renameat.c (renameat): Move most of the implementation
19423         to renameat2, and just call renameat2.
19424         * modules/renameat (Files): Remove lib/at-func2.c.
19425         (Depends-on): Depend only on renameat2.
19426         (Include): Remove <fcntl.h>.
19427         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
19428         since renameat (via renameat2) might use faccessat.
19430 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
19432         vc-list-files: Adjust the script to support git worktrees
19433         * build-aux/vc-list-files: Require existence, not directory.
19435 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19437         doc: bring MODULES.html.sh up to date
19438         Somehow a few months ago we stopped updating MODULES.html.sh.
19439         I don’t recall explicitly deciding this, so I updated it now.
19440         Alternatively I suppose we could remove it.
19441         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
19442         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
19443         truncate, utime, utime-h, windows-stat-inodes,
19444         windows-stat-override, windows-stat-timespec, year2038.  Sort.
19446 2017-07-26  Jim Meyering  <meyering@fb.com>
19448         fprintftime: fix build-break caused by recent renaming
19449         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
19450         "strftime.c".
19451         * modules/fprintftime: Depend directly on nstrftime.
19453 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19455         regex: work with GCC7's -Werror=implicit-fallthrough=
19456         * lib/regex_internal.h (FALLTHROUGH): New macro.
19457         * lib/regcomp.c (peek_token_bracket, parse_expression):
19458         * lib/regexec.c (check_node_accept): Use it.
19460 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19462         fts: simplify fts_build
19463         * lib/fts.c (fts_build): Simplify, and be lazier about
19464         calling leaf_optimization.
19466         fts: three levels of leaf optimization
19467         * lib/fts.c (enum leaf_optimization): New type with three values.
19468         (S_MAGIC_AFS): New macro.  Sort them.
19469         (leaf_optimization): Rename from leaf_optimization_applies, and
19470         return enum leaf_optimization instead of bool.  All uses changed.
19471         Add cases for unknown type and for AFS.
19472         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
19474         fts: cache dirent_inode_sort_may_be_useful too
19475         * lib/fts.c (struct dev_type): New struct.
19476         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
19477         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
19478         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
19479         Now takes FTSENT const *, not int.  All uses changed.  Use
19480         filesystem_type to cache.
19481         (link_count_optimize_ok): Remove.  Caller changed to use
19482         leaf_optimization_applies, which now uses shared cache.
19484         fts: introduce MIN_DIR_NLINK
19485         * lib/fts.c (MIN_DIR_NLINK): New constant.
19486         Use it instead of 2, whenever we are talking about link counts.
19488         fts: nlink_t signedness fixups
19489         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
19490         so that root need not be a special case later.
19491         (fts_read): Remove now-redundant test for fts_level.
19492         Do not assume that nlink_t is signed.
19493         (fts_build): Remove useless decrement of nlinks.
19494         (fts_stat): Avoid unlikely signed integer overflow later, if
19495         nlink_t is signed.
19497         fts-tests: new module
19498         * modules/fts-tests, tests/test-fts.c: New files.
19500 2017-07-23  Bruno Haible  <bruno@clisp.org>
19502         Rename module 'strftime' to 'nstrftime'.
19503         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
19504         * lib/nstrftime.c: Renamed from lib/strftime.c.
19505         * modules/nstrftime: Renamed from modules/strftime.
19506         (Files, Makefile.am): Update.
19507         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
19508         Fix comment.
19509         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
19510         (Files, Makefile.am): Update.
19511         * modules/strftime: New file, an obsolete indirection.
19512         * doc/posix-functions/strftime.texi: Update reference.
19513         * config/srclist.txt: Update info.
19514         * NEWS: Mention the change.
19516 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
19518         malloca: Silence a warning from clang's memory sanitizer.
19519         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
19520         (freea): Use it.
19522 2017-07-18  Bruno Haible  <bruno@clisp.org>
19524         host-cpu-c-abi: Fix detection of MIPS ABI.
19525         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
19526         ABI, not the CPU instruction set.
19528 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19530         explicit_bzero: new module
19531         The explicit_bzero function has been added to glibc.
19532         This module is intended to supports its use in GNU programs.
19533         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19534         * m4/explicit_bzero.m4, modules/explicit_bzero:
19535         New files.
19536         * doc/gnulib.texi (Glibc string.h): Link to new doc.
19537         * lib/string.in.h (explicit_bzero): Declare.
19538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
19539         * modules/string (string.h): Substitute its vars.
19541 2017-07-16  Bruno Haible  <bruno@clisp.org>
19543         threadlib: Support static linking.
19544         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
19545         set gl_cv_have_weak to 'no'.
19547 2017-07-16  Bruno Haible  <bruno@clisp.org>
19549         unicase/locale-language: Fix link dependencies.
19550         * modules/unicase/locale-language (Link): New section.
19551         * modules/unicase/locale-language-tests (Makefile.am): Link
19552         test-locale-language program with $(LIBTHREAD).
19554 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19556         sys_socket: Add support for OpenVMS.
19557         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
19558         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
19560 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19562         sys_resource: Add support for OpenVMS.
19563         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
19564         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
19566 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19567             Bruno Haible  <bruno@clisp.org>
19569         math: Add support for OpenVMS.
19570         * lib/math.in.h [__VMS]: Include <fp.h>.
19571         * doc/posix-headers/math.texi: Mention OpenVMS issues.
19573 2017-07-15  Bruno Haible  <bruno@clisp.org>
19575         getdtablesize: Add minimal support for OpenVMS.
19576         Reported by John E. Malmberg <wb8tyw@qsl.net>.
19577         * modules/getdtablesize (Description): Fix.
19578         * lib/getdtablesize.c: Fix comment.
19579         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
19580         getdtablesize() function, even though the test fails.
19581         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
19582         limitation on OpenVMS.
19584 2017-07-13  Bruno Haible  <bruno@clisp.org>
19586         Revisit cross-compilation guesses.
19587         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19589 2017-07-13  Bruno Haible  <bruno@clisp.org>
19591         Improve cross-compilation guesses for native Windows.
19592         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19593         Windows.
19594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19595         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19596         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19597         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19598         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19599         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19600         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19601         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19603         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19604         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19605         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19606         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19607         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19608         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19609         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19610         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19612         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19613         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19614         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19615         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19616         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19617         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19618         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19619         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19620         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19621         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19622         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19623         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19624         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19626         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19627         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19628         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19629         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19630         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19632         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19633         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19634         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19636         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19637         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19638         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19639         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19640         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19641         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19642         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19643         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19644         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19645         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19646         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19647         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19648         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19649         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19650         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19651         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19652         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19653         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19655         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19656         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19657         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19658         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19660         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19661         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19662         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19663         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19664         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19665         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19666         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19667         * m4/regex.m4 (gl_REGEX): Likewise.
19668         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19669         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19670         gl_FUNC_REMAINDERF_WORKS): Likewise.
19671         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19672         gl_FUNC_REMAINDERL_WORKS): Likewise.
19673         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19674         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19675         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19676         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19679         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19680         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19681         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19682         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19683         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19684         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19685         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19686         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19688         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19691         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19692         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19693         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19694         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19695         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19696         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19697         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19698         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19699         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19700         Likewise.
19701         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19702         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19703         Windows. Enable also on Autoconf 2.70.
19704         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19705         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19706         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19707         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19708         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19709         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19710         for native Windows.
19711         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19712         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19714 2017-07-13  Bruno Haible  <bruno@clisp.org>
19716         Improve cross-compilation guesses for native Windows.
19717         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19718         Windows.
19719         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19720         memchr.m4.
19721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19723 2017-07-13  Bruno Haible  <bruno@clisp.org>
19725         Improve cross-compilation guesses for native Windows.
19726         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19727         native Windows.
19728         (gl_FUNC_FFLUSH): Update accordingly.
19729         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19730         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19732 2017-07-11  Bruno Haible  <bruno@clisp.org>
19734         More systematic m4 quoting and indentation.
19735         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19736         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19737         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19739         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19740         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19741         gl_WINSIZE_IN_PTEM): Likewise.
19742         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19743         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19744         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19745         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19746         Correct indentation.
19747         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19749         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19751         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19754 2017-07-10  Bruno Haible  <bruno@clisp.org>
19756         round, roundf: Avoid compiler warning in configure test.
19757         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19760 2017-07-10  Bruno Haible  <bruno@clisp.org>
19762         getlogin tests: Avoid #ifdefs when sharing code between modules.
19763         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19764         * modules/getlogin-tests (Files): Likewise. Remove
19765         tests/test-getlogin_r.c.
19766         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19767         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19768         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19769         getlogin().
19771 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19773         getlogin: don’t assume one name per uid
19774         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19775         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19776         (ttyname): Remove test.
19777         * modules/getlogin_r-tests (ttyname): Remove test.
19778         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19779         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19780         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19781         getlogin rather than getlogin_r.  This avoids code duplication.
19782         (main): Use isatty and fstat rather than ttyname and stat.
19783         Use getpwnam instead of getpwuid, to be portable to test platforms
19784         that have multiple login names for the same uid.
19786 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19787             Bruno Haible  <bruno@clisp.org>
19789         glob: Fix more memory leaks.
19790         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19791         returning.
19792         Reported by Tim Rühsen.
19794 2017-07-10  Bruno Haible  <bruno@clisp.org>
19796         Make sure $host and $host_os are defined when used.
19797         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19798         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19799         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19800         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19801         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19803         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19804         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19805         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19806         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19807         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19808         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19810         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19811         m4_ifdef block.
19813 2017-07-09  Bruno Haible  <bruno@clisp.org>
19815         *printf: Fix cross-compilation guess for Solaris.
19816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19817         2010-12-21.
19819 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19820             Bruno Haible  <bruno@clisp.org>
19822         vasnprintf: port to macOS 10.13
19823         Problem reported by comex in:
19824         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19825         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19827 2017-07-06  Bruno Haible  <bruno@clisp.org>
19829         imaxdiv tests: Fix logic.
19830         * tests/test-imaxdiv.c (main): Use == instead of =.
19831         Reported by Coverity.
19833 2017-07-06  Bruno Haible  <bruno@clisp.org>
19835         uninorm/filter: Fix use-after-free bug.
19836         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19837         sortbuf == filter->sortbuf invariant.
19838         Reported by Coverity.
19840 2017-07-06  Bruno Haible  <bruno@clisp.org>
19842         glob: Fix more memory leaks.
19843         * lib/glob.c (glob): Free dirname before returning.
19844         Reported by Coverity and Tim Rühsen.
19846 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19848         parse-datetime: fix uninit var bug
19849         Reported by Bruno Haible in:
19850         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19851         * lib/parse-datetime.y (parse_datetime2): Do not use
19852         uninitialized.
19854 2017-07-05  Bruno Haible  <bruno@clisp.org>
19856         doc: Update for MSVC 14.
19857         * doc/posix-headers/*.texi: Add info about MSVC 14.
19858         * doc/posix-functions/*.texi: Likewise.
19859         * doc/pastposix-functions/*.texi: Likewise.
19860         * doc/glibc-headers/*.texi: Likewise.
19861         * doc/glibc-functions/*.texi: Likewise.
19863 2017-07-05  Bruno Haible  <bruno@clisp.org>
19865         sched: Fix build failure on native Windows (regression from 2017-06-19).
19866         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19868 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19870         stdioext: Port to OpenVMS.
19871         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19872         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19873         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19874         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19875         * lib/fpurge.c (fpurge): Likewise.
19876         * lib/freadable.c (freadable): Likewise.
19877         * lib/freadahead.c (freadahead): Likewise.
19878         * lib/freading.c (freading): Likewise.
19879         * lib/freadptr.c (freadptr): Likewise.
19880         * lib/freadseek.c (freadseek): Likewise.
19881         * lib/fseeko.c (fseeko): Likewise.
19882         * lib/fseterr.c (fseterr): Likewise.
19883         * lib/fwritable.c (fwriteable): Likewise.
19884         * lib/fwriting.c (fwriting): Likewise.
19886 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19888         glob: Declare variables at the very start of their scope.
19889         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19890         its separate scope, so the functions will compile on Haiku.
19892 2017-07-01  Bruno Haible  <bruno@clisp.org>
19894         logbl: Work around a glibc bug on PowerPC64LE.
19895         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19896         numbers.
19897         * doc/posix-functions/logbl.texi: Update.
19899 2017-06-29  Bruno Haible  <bruno@clisp.org>
19901         stat, fstat: Compile stat-w32.c only on platforms that need it.
19902         Suggested by Paul Eggert.
19903         * modules/stat (configure.ac): Request stat-w32.o only on native
19904         Windows.
19905         * modules/fstat (configure.ac): Likewise.
19907 2017-06-25  Bruno Haible  <bruno@clisp.org>
19909         stat: Improve last change.
19910         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19912 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19914         stat: port to xlc 12.01
19915         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19916         12.01 complains "Compilation unit is empty."
19918 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19920         xalloc-oversized: port to icc
19921         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19922         __builtin_mul_overflow if ICC is defined, as this results in
19923         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19924         20170213.
19926 2017-06-19  Bruno Haible  <bruno@clisp.org>
19928         classpath: Avoid including config.h twice, as it produces warnings.
19929         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19930         * lib/classpath.h: Conditionalize the include of config.h.
19932 2017-06-19  Bruno Haible  <bruno@clisp.org>
19933             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19935         sched: Fix compilation failure on OpenVMS.
19936         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19937         test whether <pthread.h> exists and defines struct sched_param.
19938         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19940 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19942         diffseq: port to GCC 7 with --enable-gcc-warnings
19943         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19944         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19945         not complain about big_snake being defined but not used.
19947 2017-06-15  Bruno Haible  <bruno@clisp.org>
19949         gettext-h: Update theoretical condition for use of variable size arrays.
19950         Reported by Paul Eggert.
19951         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19952         to include the theoretical condition for availability of variable size
19953         arrays, if we could trust the value of __STDC_VERSION__.
19955 2017-06-12  Bruno Haible  <bruno@clisp.org>
19957         Relicense some modules under LGPLv2+.
19958         Daiki Ueno's approval is in
19959         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19960         * modules/uniwidth/base (License): Change to LGPLv2+.
19961         * modules/uniwidth/width (License): Likewise.
19963 2017-06-11  Bruno Haible  <bruno@clisp.org>
19965         localename: Fix test failure on DragonFly BSD.
19966         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19967         like FreeBSD.
19969 2017-06-11  Bruno Haible  <bruno@clisp.org>
19971         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19972         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19973         * lib/float.in.h: Likewise.
19974         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19976 2017-06-11  Bruno Haible  <bruno@clisp.org>
19978         gnulib-tool: Clean up after autotools.
19979         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19980         useless directory left over by the Autotools.
19982 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19984         getopt-posix: port to glibc 2.25.90
19985         Problem reported by Daniel P. Berrange in:
19986         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19987         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19988         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19989         #undef if __GETOPT_PREFIX is defined.
19991 2017-06-11  Bruno Haible  <bruno@clisp.org>
19993         strtod-obsolete: Fix license.
19994         * modules/strtod-obsolete (License): Change to LGPL.
19996 2017-06-10  Jim Meyering  <meyering@fb.com>
19998         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19999         * lib/savewd.c (FALLTHROUGH): Define.
20000         (savewd_save, savewd_restore): Use this, rather than a comment,
20001         whenever one switch case falls through into the next.
20003 2017-06-08  Bruno Haible  <bruno@clisp.org>
20005         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
20006         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
20007         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
20008         case.
20010 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
20012         doc: remove robots, add prereqs
20013         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
20014         builds.  Simon's robot site does not seem to be up, so remove
20015         mentions of it for now.
20017 2017-06-08  Bruno Haible  <bruno@clisp.org>
20019         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
20020         * gnulib-tool (func_symlink_target): New function, extracted from
20021         func_symlink.
20022         (func_symlink, func_symlink_if_changed): Use it.
20024 2017-06-08  Bruno Haible  <bruno@clisp.org>
20026         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
20027         * gnulib-tool (func_ln_s): Determine cp_src correctly.
20029 2017-06-07  Bruno Haible  <bruno@clisp.org>
20031         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
20032         Reported by John E. Malmberg <wb8tyw@gmail.com> in
20033         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
20034         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
20035         override, pass 2 arguments to getcwd, not 3.
20037 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
20039         same-inode: port better to VMS 8.2 and later
20040         Problem reported by John E. Malmberg in:
20041         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
20042         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
20043         Use the usual POSIX definition.
20044         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
20046 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20048         error: fix POSIX violation for va_end
20049         Problem reported by Bruno Haible in:
20050         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
20051         * lib/error.c (error_tail): Do not call va_end here.
20052         (error, error_at_line): Call it here instead.
20054 2017-05-28  Bruno Haible  <bruno@clisp.org>
20056         c-strtod: Make it usable in C++ mode.
20057         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
20059 2017-05-25  Jim Meyering  <meyering@fb.com>
20061         quotearg: fix compilation failure due to FALLTHROUGH misuse
20062         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
20063         macro back to /* fall through */ comment.  The macro can apply only
20064         to a following case statement.  Reported by Assaf Gordon.
20066 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
20068         intprops: port to recent icc
20069         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
20070         but does not support __builtin_add_overflow etc.
20071         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
20072         Define to 0.
20074 2017-05-23  Karl Berry  <karl@freefriends.org>
20076         * config/srclist.txt (iconv.m4): sync broken, comment out
20077         until (hopefully) the next gettext release.
20079 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
20081         Remove repeated words in comments.
20083 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
20085         fallthrough: reinstate a FALLTHROUGH instance in quotearg
20086         quotearg.c: Reinstate this instance which is significant
20087         when the if branch is not taken.
20089 2017-05-21  Bruno Haible  <bruno@clisp.org>
20091         gnulib-tool: Add options to create hard links.
20092         * gnulib-tool (func_usage): Document options --hardlink,
20093         --local-hardlink, --more-hardlinks.
20094         (func_symlink): Renamed from func_ln.
20095         (func_symlink_if_changed): Renamed from func_ln_if_changed.
20096         (func_hardlink): New function.
20097         (copymode, lcopymode): New variables.
20098         (symbolic, lsymbolic): Remove variables.
20099         (Options): Implement options --hardlink, --local-hardlink,
20100         --more-hardlinks.
20101         (func_should_link): Renamed from func_should_symlink. Set copyaction.
20102         (func_add_file, func_update_file): Update invocation of
20103         func_should_link. Invoke func_hardlink when appropriate.
20104         (func_import): Update comments.
20105         (func_create_testdir): Update invocation of func_should_link. Invoke
20106         func_hardlink when appropriate.
20107         Finally, invoke 'git update-index --refresh' to mitigate the effects of
20108         the hard links on git.
20110 2017-05-20  Bruno Haible  <bruno@clisp.org>
20112         argp: Simplify bit manipulation.
20113         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
20114         on a signed integer type.
20116 2017-05-20  Bruno Haible  <bruno@clisp.org>
20118         Avoid wrong configure results with gcc -fsanitize=address.
20119         This completes the work done on 2016-02-06 on this topic.
20120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
20121         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20123         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20124         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
20125         returning.
20126         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
20127         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
20128         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20129         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20130         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20131         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
20132         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
20133         free allocated memory before returning.
20134         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20135         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
20136         objects before returning.
20137         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
20138         returning.
20140 2017-05-20  Bruno Haible  <bruno@clisp.org>
20142         gnulib-tool: Don't create hard links between gnulib and its testdirs.
20143         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
20145 2017-05-20  Bruno Haible  <bruno@clisp.org>
20147         argp, tsearch tests: Fix file list.
20148         * modules/argp-tests (Files): Add tests/macros.h.
20149         * modules/tsearch-tests (Files): Likewise.
20151 2017-05-20  Bruno Haible  <bruno@clisp.org>
20153         getopt-posix tests: Remove redundant include.
20154         * tests/test-getopt.h: Don't include "macros.h". It's already included
20155         by tests/test-getopt-main.h.
20157 2017-05-19  Jim Meyering  <meyering@fb.com>
20159         dfa: two small simplifications
20160         * lib/dfa.c (build_state): Avoid repeating longer expressions.
20162 2017-05-18  Jim Meyering  <meyering@fb.com>
20164         fallthrough: update for GCC 7/8
20165         * lib/quotearg.c (FALLTHROUGH): New macro.
20166         Use it whenever one switch case falls through into the next,
20167         replacing "/* Fall through */" comments.  This exposed one
20168         instance of an unwarranted "fall through" comment: unwarranted
20169         because it preceded a "goto" label not a case statement.
20170         * lib/freopen-safer.c (freopen_safer): Likewise.
20171         * lib/fts.c (leaf_optimization_applies): Likewise.
20172         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
20173         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
20174         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
20175         tests/macros.h for the definition.
20176         * tests/test-argp.c (group1_parser): Likewise.
20177         * tests/test-getopt.h (getopt_loop): Likewise.
20179 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20181         argp: fix shift bug
20182         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
20183         behavior on shift overflow, caught by gcc -fsanitize=undefined.
20185         argp: fix pointer-subtraction bug
20186         * lib/argp-help.c (hol_append): Don’t subtract pointers to
20187         different arrays, as this can run afoul of -fcheck-pointer-bounds.
20188         See the thread containing Bruno Haible’s report in:
20189         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
20191 2017-05-19  Bruno Haible  <bruno@clisp.org>
20193         printf-posix tests: Avoid test failure with "gcc --coverage".
20194         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20195         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
20196         than 5000000.
20197         * tests/test-fprintf-posix2.c (main): Likewise.
20199 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20201         closeout: don’t close stderr when sanitizing
20202         * NEWS: Document this.
20203         * lib/closeout.c (__has_feature): New macro, if not already defined.
20204         (SANITIZE_ADDRESS): New constant.
20205         (close_stdout): Don’t close stderr if sanitizing addresses.
20207 2017-05-19  Bruno Haible  <bruno@clisp.org>
20209         get-rusage-data tests: Avoid failure on Linux/glibc.
20210         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
20211         on glibc systems.
20213 2017-05-18  Bruno Haible  <bruno@clisp.org>
20215         localename: Include necessary header files on Cygwin.
20216         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
20217         where NL_LOCALE_NAME is defined.
20219 2017-05-18  Bruno Haible  <bruno@clisp.org>
20221         gettext: Update macros from gettext git.
20222         * m4/intldir.m4: Require Autoconf >= 2.60.
20223         * m4/progtest.m4: Fix typos in copyright notice.
20225 2017-05-18  Bruno Haible  <bruno@clisp.org>
20227         copy-file tests: Fix link error (regression from 2017-05-01).
20228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20229         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
20230         $(LIB_CLOCK_GETTIME).
20232 2017-05-18  Bruno Haible  <bruno@clisp.org>
20234         unicase/special-casing: Fix incompatibility with gperf-3.0.4
20235         (regression from 2017-02-13).
20236         * lib/unicase/special-casing.in.h: Renamed from
20237         lib/unicase/special-casing.h.
20238         * modules/unicase/special-casing (Files): Add
20239         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
20240         (Makefile.am): Add rule for generating unicase/special-casing.h.
20241         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
20242         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
20243         not "special-casing.h".
20244         * lib/unicase/u*.c: Likewise.
20246 2017-05-17  Bruno Haible  <bruno@clisp.org>
20248         README: Don't ask people to read a TeXinfo file.
20249         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20250         * README: Tell people how to read the HTML formatted manual.
20252 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20254         parse-datetime: Fix memleak
20255         * lib/parse-datetime.y (parse_datetime2): Cleanup on
20256         localtime_rz() failure.
20258 2017-05-16  Bruno Haible  <bruno@clisp.org>
20260         javacomp: Fix handle leak.
20261         Found by Coverity.
20262         * lib/javacomp.c (get_classfile_version): Close fd before returning.
20264 2017-05-16  Bruno Haible  <bruno@clisp.org>
20266         relocate: Make it easier to reclaim allocated memory.
20267         * lib/relocatable.h (relocate2): New declaration/macro.
20268         * lib/relocatable.c (relocate2): New function.
20269         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
20270         relocate2 function.
20271         * lib/localcharset.c (relocate2): Define fallback.
20272         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
20273         allocated memory.
20274         * lib/javaversion.c (relocate2): Define fallback.
20275         (javaexec_version): Invoke relocate2 instead of relocate. Free the
20276         allocated memory.
20278 2017-05-16  Bruno Haible  <bruno@clisp.org>
20280         relocate: Simplify EMX specific code.
20281         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
20282         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
20284 2017-05-16  Bruno Haible  <bruno@clisp.org>
20286         sigpipe tests: Fix file list.
20287         * modules/sigpipe-tests (Files): Add tests/macros.h.
20289 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20291         manywarnings: update for GCC 7
20292         * build-aux/gcc-warning.spec:
20293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20294         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
20295         requires a non-comment fallthrough attribute.  This is a bit
20296         cleaner than the comment versions.
20297         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
20298         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
20299         Use it whenever one switch case falls through into the next.
20300         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
20301         Use FALLTHROUGH macro.
20303 2017-05-15  Bruno Haible  <bruno@clisp.org>
20305         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
20306         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
20307         @ALLOCA@, not @LTALLOCA@.
20309 2017-05-15  Bruno Haible  <bruno@clisp.org>
20311         sys_select: Avoid "was expanded before it was required" warning.
20312         * modules/sys_select (configure.ac): Require, not invoke,
20313         gl_HEADER_SYS_SELECT.
20315 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20317         gnulib-tool: improve GNU Make debugging
20318         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
20319         Report autoconf diagnostics when it fails, in the output makefile.
20321 2017-05-14  Bruno Haible  <bruno@clisp.org>
20323         stat-time tests: Improve comment.
20324         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
20326 2017-05-14  Bruno Haible  <bruno@clisp.org>
20328         same-inode: Adapt for windows-stat-inodes.
20329         * lib/same-inode.h: Include <sys/types.h>.
20330         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
20331         * modules/same-inode (Depends-on): Add sys_types.
20333 2017-05-14  Bruno Haible  <bruno@clisp.org>
20335         windows-stat-inodes: New module.
20336         * m4/windows-stat-inodes.m4: New file.
20337         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
20338         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
20339         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
20340         (_GL_WINDOWS_STAT_INODES): New macro.
20341         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
20342         (GetFileInformationByHandleExFunc): New variable.
20343         (initialize): Initialize it.
20344         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
20345         st_ino appropriately.
20346         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
20347         a fallback, because it does not provide st_dev and st_ino values.
20348         * modules/fstat (Depends-on): Add 'verify'.
20349         * modules/windows-stat-inodes: New file.
20350         * doc/windows-stat-inodes.texi: New file.
20351         * doc/gnulib.texi: Include it.
20352         * doc/posix-headers/sys_stat.texi: Mention the new module.
20354 2017-05-14  Bruno Haible  <bruno@clisp.org>
20356         stat-time tests: Workaround for native Windows.
20357         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
20358         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
20359         New variables.
20360         (initialize_filenames): New function.
20361         (main): Invoke it.
20362         (cleanup, prepare_test): Update.
20364 2017-05-14  Bruno Haible  <bruno@clisp.org>
20366         stat-time: Adapt for windows-stat-timespec.
20367         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
20368         entire st_ctim field.
20370 2017-05-13  Jim Meyering  <meyering@fb.com>
20372         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
20373         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
20374         file that uses the assume macro, claiming that verify.h is unused.
20376 2017-05-13  Bruno Haible  <bruno@clisp.org>
20378         Use symbolic values for _WIN32_WINNT.
20379         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
20380         * lib/sethostname.c (_WIN32_WINNT): Likewise.
20382 2017-05-13  Bruno Haible  <bruno@clisp.org>
20384         year2038: New module.
20385         * m4/year2038.m4: New file.
20386         * modules/year2038: New file.
20387         * doc/year2038.texi: New file.
20388         * doc/gnulib.texi: Include it.
20390 2017-05-13  Bruno Haible  <bruno@clisp.org>
20392         largefile: Simplify.
20393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
20394         of _GL_WINDOWS_64_BIT_ST_SIZE.
20396 2017-05-13  Bruno Haible  <bruno@clisp.org>
20398         largefile: Improve and document.
20399         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
20400         the mingw headers already define 'stat' appropriately.
20401         * modules/largefile (Description): Clarify.
20402         * doc/largefile.texi: New file.
20403         * doc/gnulib.texi: Include it.
20404         * doc/posix-headers/sys_types.texi: Update.
20406 2017-05-13  Bruno Haible  <bruno@clisp.org>
20408         truncate: New module.
20409         * lib/unistd.in.h (truncate): New declaration.
20410         * lib/truncate.c: New file.
20411         * m4/truncate.m4: New file.
20412         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
20413         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
20414         REPLACE_TRUNCATE.
20415         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
20416         HAVE_TRUNCATE, REPLACE_TRUNCATE.
20417         * modules/truncate: New file.
20418         * tests/test-unistd-c++.cc (truncate): Test signature.
20419         * doc/posix-functions/truncate.texi: Mention the new module.
20421         * tests/test-truncate.c: New file.
20422         * modules/truncate-tests: New file.
20424 2017-05-13  Bruno Haible  <bruno@clisp.org>
20426         windows-stat-timespec: New module.
20427         * modules/windows-stat-timespec: New file.
20428         * m4/windows-stat-timespec.m4: New file.
20429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
20430         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
20431         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
20432         fields st_atim, st_mtim, st_ctim.
20433         (st_atime, st_mtime, st_ctime): Define as macros.
20434         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
20435         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
20436         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
20437         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
20438         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
20439         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
20440         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20441         FILETIME to 'struct timespec', not 'time_t'.
20442         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20443         FILETIME to 'struct timespec', not 'time_t'.
20444         * lib/stat-time.h (STAT_TIMESPEC): Define also if
20445         _GL_WINDOWS_STAT_TIMESPEC.
20446         * doc/windows-stat-timespec.texi: New file.
20447         * doc/gnulib.texi: Include it.
20449 2017-05-13  Bruno Haible  <bruno@clisp.org>
20451         windows-stat-override: New module.
20452         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
20453         definition. Define GNULIB_defined_struct_stat.
20454         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
20455         link error if this symbol is used and the corresponding module is not
20456         in use.
20457         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
20458         GNULIB_OVERRIDES_STRUCT_STAT.
20459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20460         GNULIB_OVERRIDES_STRUCT_STAT.
20461         * modules/sys_stat (Makefile.am): Substitute
20462         GNULIB_OVERRIDES_STRUCT_STAT.
20463         * modules/windows-stat-override: New file.
20465 2017-05-13  Bruno Haible  <bruno@clisp.org>
20467         fstat: Fix module dependency conditions.
20468         * modules/fstat (Depends-on): Fix typo.
20470 2017-05-13  Bruno Haible  <bruno@clisp.org>
20472         stat, fstat: Complete removal of old native Windows code.
20473         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
20474         * lib/fstat.c: Likewise.
20475         * lib/stat-w32.c: Likewise.
20477 2017-05-13  Bruno Haible  <bruno@clisp.org>
20479         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
20480         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
20482 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20484         getopt-posix: port to mingw
20485         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
20486         Problem reported by Daniel P. Berrage in:
20487         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
20489 2017-05-11  Bruno Haible  <bruno@clisp.org>
20491         gettimeofday: Increase precision on mingw.
20492         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
20493         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
20494         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
20495         GetSystemTimePreciseAsFileTime based implementation always.
20496         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
20497         mingw.
20499 2017-05-11  Bruno Haible  <bruno@clisp.org>
20501         poll: Fix confusion between SOCKETs and FDs on native Windows.
20502         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
20503         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
20505 2017-05-11  Bruno Haible  <bruno@clisp.org>
20507         doc: Clarify doc about socket functions on native Windows.
20508         This reworks doc that was added on 2008-09-29.
20509         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
20510         clearer wording.
20511         * doc/posix-functions/accept.texi: Use clearer wording.
20512         * doc/posix-functions/bind.texi: Likewise.
20513         * doc/posix-functions/connect.texi: Likewise.
20514         * doc/posix-functions/getpeername.texi: Likewise.
20515         * doc/posix-functions/getsockname.texi: Likewise.
20516         * doc/posix-functions/getsockopt.texi: Likewise.
20517         * doc/posix-functions/ioctl.texi: Likewise.
20518         * doc/posix-functions/listen.texi: Likewise.
20519         * doc/posix-functions/recv.texi: Likewise.
20520         * doc/posix-functions/recvfrom.texi: Likewise.
20521         * doc/posix-functions/send.texi: Likewise.
20522         * doc/posix-functions/sendto.texi: Likewise.
20523         * doc/posix-functions/setsockopt.texi: Likewise.
20524         * doc/posix-functions/shutdown.texi: Likewise.
20525         * doc/posix-functions/socket.texi: Likewise.
20527 2017-05-10  Bruno Haible  <bruno@clisp.org>
20529         poll: Fix link error on native Windows.
20530         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
20532 2017-05-10  Bruno Haible  <bruno@clisp.org>
20534         time: Fix missing initialization of HAVE_TIMEZONE_T.
20535         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
20536         here...
20537         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
20538         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
20539         gl_HEADER_SYS_TIME_H_DEFAULTS.
20540         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
20541         (configure.ac): Remove useless quoting.
20543 2017-05-10  Bruno Haible  <bruno@clisp.org>
20545         Implement a way to opt out from MSVC support, part 2.
20546         * modules/msvc-inval (Include): Document recommended idiom.
20547         * modules/msvc-nothrow (Include): Likewise.
20549         Implement a way to opt out from MSVC support.
20550         This is useful for Emacs.
20551         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
20552         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
20553         * lib/error.c: Likewise.
20554         * lib/fcntl.c: Likewise.
20555         * lib/flock.c: Likewise.
20556         * lib/fstat.c: Likewise.
20557         * lib/fsync.c: Likewise.
20558         * lib/ioctl.c: Likewise.
20559         * lib/isapipe.c: Likewise.
20560         * lib/lseek.c: Likewise.
20561         * lib/nonblocking.c: Likewise.
20562         * lib/poll.c: Likewise.
20563         * lib/select.c: Likewise.
20564         * lib/sockets.h: Likewise.
20565         * lib/sockets.c: Likewise.
20566         * lib/stdio-read.c: Likewise.
20567         * lib/stdio-write.c: Likewise.
20568         * lib/utimens.c: Likewise.
20569         * lib/w32sock.h: Likewise.
20570         * lib/w32spawn.h: Likewise.
20571         * tests/test-cloexec.c: Likewise.
20572         * tests/test-dup-safer.c: Likewise.
20573         * tests/test-dup2.c: Likewise.
20574         * tests/test-dup3.c: Likewise.
20575         * tests/test-fcntl.c: Likewise.
20576         * tests/test-pipe.c: Likewise.
20577         * tests/test-pipe2.c: Likewise.
20578         * lib/ftruncate.c: Likewise.
20579         (chsize_nothrow): Renamed from chsize.
20580         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
20581         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20582         * lib/close.c: Likewise.
20583         * lib/dup.c: Likewise.
20584         * lib/fclose.c: Likewise.
20585         * lib/raise.c: Likewise.
20586         * tests/test-fgetc.c: Likewise.
20587         * tests/test-fputc.c: Likewise.
20588         * tests/test-fread.c: Likewise.
20589         * tests/test-fwrite.c: Likewise.
20590         * lib/getdtablesize.c: Likewise.
20591         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20592         * lib/isatty.c: Don't include msvc-inval.h if
20593         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20594         Include <io.h> as an alternative to msvc-nothrow.h.
20595         * lib/read.c: Likewise.
20596         * lib/write.c: Likewise.
20597         * lib/dup2.c: Likewise.
20598         (dup2_nothrow): New function.
20599         (ms_windows_dup2): Use it.
20600         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20601         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20602         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20603         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20604         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20605         * m4/read.m4 (gl_FUNC_READ): Likewise.
20606         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20607         * doc/windows-without-msvc.texi: New file.
20608         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20609         section.
20611 2017-05-10  Bruno Haible  <bruno@clisp.org>
20613         wait-process: Adjust native Windows support.
20614         * lib/wait-process.c: Use the usual condition for recognizing a native
20615         Windows platform.
20617 2017-05-10  Bruno Haible  <bruno@clisp.org>
20619         doc: New chapter "Native Windows Support".
20620         * doc/gnulib.texi (Native Windows Support): New chapter.
20621         * doc/windows-libtool.texi: Small wording changes.
20622         * doc/windows-sockets.texi: Small wording and formatting changes.
20624 2017-05-10  Bruno Haible  <bruno@clisp.org>
20626         doc: Move section "Library version handling".
20627         * doc/gnulib.texi: Move section "Library version handling"
20628         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20630 2017-05-10  Bruno Haible  <bruno@clisp.org>
20632         doc: Move section "Running self-tests under valgrind".
20633         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20634         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20636 2017-05-10  Bruno Haible  <bruno@clisp.org>
20638         doc: New chapter "Build Infrastructure Modules".
20639         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20641 2017-05-10  Bruno Haible  <bruno@clisp.org>
20643         Prepare for reordering sections in the manual.
20644         * doc/gnulib.texi: Move several sections to separate files. Include
20645         these files.
20646         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20647         * doc/obsolete.texi: Likewise.
20648         * doc/extra-tests.texi: Likewise.
20649         * doc/transversal.texi: Likewise.
20650         * doc/namespace.texi: Likewise.
20651         * doc/check-version.texi: Likewise.
20652         * doc/windows-sockets.texi: Likewise.
20653         * doc/windows-libtool.texi: Likewise.
20654         * doc/licenses-texi.texi: Likewise.
20655         * doc/build-automation.texi: Likewise.
20656         * doc/c-locale.texi: Likewise.
20658 2017-05-10  Bruno Haible  <bruno@clisp.org>
20660         Fix instructions how to update manual on www.gnu.org.
20661         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20663 2017-05-09  Bruno Haible  <bruno@clisp.org>
20665         tzset: Expand comment about TZ problem on native Windows.
20666         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20667         Paul Eggert.
20668         * lib/ctime.c (rpl_ctime): Likewise.
20669         * lib/localtime.c (rpl_localtime): Likewise.
20670         * lib/mktime.c (mktime): Likewise.
20671         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20672         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20674 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20676         intprops: don’t depend on ‘verify’
20677         Problem reported by Ævar Arnfjörð Bjarmason in:
20678         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20679         * lib/intprops.h: Do not include verify.h, and move compile-time
20680         checks from here ...
20681         * tests/test-intprops.c (main): ... to here, if they’re not here
20682         already.  Check widths of other standard integer types.
20683         * modules/intprops (Depends-on): Remove ‘verify’.
20685 2017-05-07  Bruno Haible  <bruno@clisp.org>
20687         utimens: On native Windows, support 100ns resolution also if fd < 0.
20688         * lib/utime.in.h: Include <time.h>.
20689         (_gl_utimens_windows): New declaration.
20690         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20691         (utime): Invoke it.
20692         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20693         instead of utime.
20694         * modules/utime (Depends-on): Add 'time'.
20696 2017-05-07  Bruno Haible  <bruno@clisp.org>
20698         utimens: Improve error code on native Windows.
20699         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20700         error code EACCES, not EINVAL.
20702 2017-05-07  Bruno Haible  <bruno@clisp.org>
20704         utime: Handle more Windows error codes.
20705         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20706         Based on explanations by Billy O'Neal.
20708 2017-05-05  Bruno Haible  <bruno@clisp.org>
20710         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20711         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20712         union.
20713         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20714         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20715         value of cipher->IV.
20717 2017-05-05  Bruno Haible  <bruno@clisp.org>
20719         wctype-h-c++-tests: Update.
20720         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20722 2017-05-05  Bruno Haible  <bruno@clisp.org>
20724         wchar-c++-tests: Update.
20725         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20727 2017-05-05  Bruno Haible  <bruno@clisp.org>
20729         utime-h-c++-tests: New module.
20730         * tests/test-utime-h-c++.cc: New file.
20731         (utime): Declare, missing since 2017-04-30.
20732         * modules/utime-h-c++-tests: New file.
20734 2017-05-05  Bruno Haible  <bruno@clisp.org>
20736         unistd-c++-tests: Update.
20737         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20738         (read): Declare, missing since 2011-04-15.
20739         (sethostname): Declare, missing since 2011-12-03.
20741 2017-05-05  Bruno Haible  <bruno@clisp.org>
20743         time-c++-tests: Update.
20744         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20745         (localtime, gmtime): Declare, missing since 2017-04-30.
20746         (ctime): Declare, missing since 2017-04-30.
20747         (strftime): Declare, missing since 2017-04-30.
20748         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20749         2015-07-24.
20751 2017-05-05  Bruno Haible  <bruno@clisp.org>
20753         sys_resource-c++-tests: New module.
20754         * tests/test-sys_resource-c++.cc: New file.
20755         (getrusage): Declare, missing since 2012-04-13.
20756         * modules/sys_resource-c++-tests: New file.
20758 2017-05-05  Bruno Haible  <bruno@clisp.org>
20760         strings-c++-tests: New module.
20761         * tests/test-strings-c++.cc: New file.
20762         (ffs): Declare, missing since 2011-07-12.
20763         * modules/strings-c++-tests: New file.
20765 2017-05-05  Bruno Haible  <bruno@clisp.org>
20767         string-c++-tests: Update.
20768         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20769         (ffsll): Declare, missing since 2011-07-15.
20771 2017-05-05  Bruno Haible  <bruno@clisp.org>
20773         stdlib-c++-tests: Update.
20774         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20775         2011-10-18.
20776         (ptsname_r): Declare, missing since 2011-11-07.
20777         (qsort_r): Declare, missing since 2014-08-29.
20778         (random, srandom, initstate, setstate): Declare, missing since
20779         2012-01-14.
20780         (secure_getenv): Declare, missing since 2013-02-05.
20782 2017-05-05  Bruno Haible  <bruno@clisp.org>
20784         stdio-c++-tests: Update.
20785         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20787 2017-05-05  Bruno Haible  <bruno@clisp.org>
20789         signal-h-c++-tests: Update.
20790         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20792 2017-05-05  Bruno Haible  <bruno@clisp.org>
20794         math-c++-tests: Update.
20795         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20796         (fma): Declare, missing since 2011-10-17.
20797         (fmal): Declare, missing since 2011-10-17.
20799 2017-05-05  Bruno Haible  <bruno@clisp.org>
20801         locale-c++-tests: Update.
20802         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20803         2012-03-25.
20805 2017-05-05  Bruno Haible  <bruno@clisp.org>
20807         inttypes-c++-tests: New module.
20808         * tests/test-inttypes-c++.cc: New file.
20809         (strtoimax): Declare, missing since 2012-01-05.
20810         (strtoumax): Declare, missing since 2012-01-05.
20811         * modules/inttypes-c++-tests: New file.
20813 2017-05-05  Bruno Haible  <bruno@clisp.org>
20815         dirent-c++-tests: Update.
20816         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20817         (rewinddir): Declare, missing since 2011-09-13.
20818         (dirfd): Declare, missing since 2010-03-08.
20820 2017-05-04  Bruno Haible  <bruno@clisp.org>
20822         argp: Fix mistake in 2017-04-23 commit.
20823         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20824         assume that strerror_r returns 'int', not 'char *'.
20826 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20828         argp: Fix typo.
20829         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20831 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20833         utimens: port to Emacs + MS-Windows
20834         Skip the new MS-Windows-specific code if Emacs.
20835         * lib/utimens.c [EMACS_CONFIGUATION]:
20836         Avoid new MS-Windows-specific code.
20837         (USE_SETFILETIME): New macro.
20838         (fdutimens): Use it.
20840 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20842         tzset: update doc for TZ problems on MS-Windows
20843         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20844         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20845         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20846         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20847         * doc/posix-functions/wcsftime.texi:
20848         Mention some issues with TZ under MS-Windows.
20850 2017-05-01  Bruno Haible  <bruno@clisp.org>
20852         copy-file: Fix build error on mingw.
20853         * modules/copy-file (Depends-on): Add 'close'.
20855 2017-05-01  Bruno Haible  <bruno@clisp.org>
20857         tzset: Work around TZ problem on native Windows.
20858         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20859         Windows, set REPLACE_TZSET to 1.
20860         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20861         invoke '_tzset' instead of 'tzset'.
20862         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20864         * modules/time_rz (Depends-on): Add tzset.
20865         * lib/time_rz.c (tzset): Remove fallback definition.
20866         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20868 2017-05-01  Bruno Haible  <bruno@clisp.org>
20870         mktime: Fix dependencies.
20871         * modules/mktime (Depends-on): Add 'time'.
20873 2017-05-01  Bruno Haible  <bruno@clisp.org>
20875         New module 'localtime-buffer', split off from module 'gettimeofday'.
20876         * lib/localtime-buffer.h: New file.
20877         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20878         * lib/time.in.h (tzset): New declaration.
20879         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20880         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20881         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20882         moved to lib/localtime-buffer.c or lib/tzset.c.
20883         * m4/localtime-buffer.m4: New file.
20884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20885         HAVE_TZSET, REPLACE_TZSET.
20886         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20887         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20888         gl_LOCALTIME_BUFFER_NEEDED.
20889         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20890         since 2007-01-18.
20891         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20892         tzset.
20893         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20894         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20895         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20896         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20897         * modules/localtime-buffer: New file.
20898         * modules/time (Depends-on): Remove 'gettimeofday'.
20899         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20900         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20901         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20902         (Files): Add lib/tzset.c.
20903         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20904         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20905         gl_TIME_MODULE_INDICATOR.
20906         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20908 2017-05-01  Bruno Haible  <bruno@clisp.org>
20910         copy-file: Preserve sub-second time stamps.
20911         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20912         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20913         transport the time stamps from the original file to the destination
20914         file.
20915         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20916         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20917         utime-h.
20919 2017-05-01  Bruno Haible  <bruno@clisp.org>
20921         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20922         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20923         also on MSVC.
20924         Reported by Eli Zaretskii <eliz@gnu.org>.
20926 2017-05-01  Bruno Haible  <bruno@clisp.org>
20928         wchar: Fix compilation error with the original mingw.org mingw.
20929         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20930         <stddef.h> instead.
20931         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20932         gl_WCTYPE_H.
20933         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20934         gl_TYPE_WINT_T_PREREQ instead.
20935         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20936         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20937         Reported by Eli Zaretskii <eliz@gnu.org>.
20939 2017-04-30  Bruno Haible  <bruno@clisp.org>
20941         utimecmp: Add support for native Windows.
20942         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20944 2017-04-30  Bruno Haible  <bruno@clisp.org>
20946         utimens: Add support for native Windows.
20947         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20948         (fdutimens): Provide a native Windows implementation, like utime.c with
20949         added tv_nsec support.
20950         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20951         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20953 2017-04-30  Bruno Haible  <bruno@clisp.org>
20955         wcsftime: New module.
20956         * lib/wchar.in.h (wcsftime): New declaration.
20957         * lib/wcsftime.c: New file.
20958         * m4/wcsftime.m4: New file.
20959         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20960         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20961         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20963         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20964         * modules/wcsftime: New file.
20965         * doc/posix-functions/wcsftime.texi: Mention the new module.
20967 2017-04-30  Bruno Haible  <bruno@clisp.org>
20969         strftime-fixes: New module.
20970         * lib/time.in.h (strftime): New declaration.
20971         * lib/strftime-fixes.c: New file.
20972         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20973         (gl_FUNC_STRFTIME): Remove macro.
20974         * m4/strftime-fixes.m4: New file.
20975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20976         REPLACE_STRFTIME.
20977         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20978         REPLACE_STRFTIME.
20979         * modules/strftime-fixes: New file.
20980         * doc/posix-functions/strftime.texi: Mention the new module.
20982 2017-04-30  Bruno Haible  <bruno@clisp.org>
20984         mktime: Work around TZ problem on native Windows.
20985         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20986         from the native Windows workaround.
20987         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20988         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20989         'guessing no'.
20990         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20991         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20992         NEED_MKTIME_WINDOWS.
20993         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20994         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20995         NEED_MKTIME_INTERNAL.
20996         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20997         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20998         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20999         not REPLACE_MKTIME.
21000         * doc/posix-functions/mktime.texi: Mention the native Windows
21001         workaround.
21003 2017-04-30  Bruno Haible  <bruno@clisp.org>
21005         localtime: New module.
21006         * lib/time.in.h (localtime): Declare also if requested by module
21007         'localtime'.
21008         * lib/localtime.c: New file.
21009         * m4/localtime.m4: New file.
21010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
21011         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
21012         * modules/localtime: New file.
21013         * doc/posix-functions/localtime.texi: Mention the new module.
21015 2017-04-30  Bruno Haible  <bruno@clisp.org>
21017         ctime: New module.
21018         * lib/time.in.h (ctime): New declaration.
21019         * lib/ctime.c: New file.
21020         * m4/ctime.m4: New file.
21021         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
21022         REPLACE_CTIME.
21023         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
21024         * modules/ctime: New file.
21025         * doc/posix-functions/ctime.texi: Mention the new module.
21027 2017-04-30  Bruno Haible  <bruno@clisp.org>
21029         gettimeofday: Provide higher resolution on native Windows.
21030         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
21031         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
21032         (initialize): Initialize it.
21033         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
21034         'struct timeval'. Don't use _ftime().
21035         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
21036         <sys/timeb.h> and _ftime.
21038 2017-04-30  Bruno Haible  <bruno@clisp.org>
21040         Document the problem with the Cygwin environment variable TZ.
21041         * doc/posix-functions/tzset.texi: Add note about TZ.
21042         * doc/posix-functions/ctime.texi: Likewise.
21043         * doc/posix-functions/localtime.texi: Likewise.
21044         * doc/posix-functions/mktime.texi: Likewise.
21045         * doc/posix-functions/strftime.texi: Likewise.
21046         * doc/posix-functions/wcsftime.texi: Likewise.
21047         * doc/pastposix-functions/ftime.texi: Likewise.
21049 2017-04-30  Bruno Haible  <bruno@clisp.org>
21051         utime-tests: New module.
21052         * tests/test-utime.c: New file, based on tests/test-utimens.h.
21053         * tests/test-utimens-common.h: Include <sys/stat.h>.
21054         * modules/utime-tests: New file.
21056 2017-04-29  Bruno Haible  <bruno@clisp.org>
21058         utime: New module.
21059         * lib/utime.in.h: Add comment for snippets.
21060         (utime): New declaration.
21061         * lib/utime.c: New file.
21062         * m4/utime.m4: New file.
21063         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
21064         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
21065         REPLACE_UTIME.
21066         * modules/utime-h (Depends-on): Add snippets.
21067         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
21068         Insert snippets.
21069         * modules/utime: New file.
21070         * doc/posix-functions/utime.texi: Mention the new module.
21072 2017-04-29  Bruno Haible  <bruno@clisp.org>
21074         utime-h: Modernize handling of 'struct utimbuf'.
21075         * lib/utime.in.h: Include next <utime.h> if it exists.
21076         (utimbuf): Define to _utimbuf on native Windows.
21077         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
21078         Set UTIME_H on native Windows.
21079         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
21080         * modules/utime-h (Depends-on): Add include_next.
21081         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
21082         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
21084         * lib/utimens.c (utimbuf): Remove fallback definition.
21085         * m4/utimens.m4 (gl_UTIMENS): Don't require
21086         gl_CHECK_TYPE_STRUCT_UTIMBUF.
21087         * m4/utimbuf.m4: Remove file.
21088         * modules/utimens (Files): Remove m4/utimbuf.m4.
21090 2017-04-29  Bruno Haible  <bruno@clisp.org>
21092         Make use of module 'utime-h'.
21093         * modules/copy-file (Depends-on): Add utime-h.
21094         * lib/copy-file.c: Assume that <utime.h> exists.
21095         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
21097         * modules/utimens (Depends-on): Add utime-h.
21098         * lib/utimens.c: Assume that <utime.h> exists.
21100 2017-04-29  Bruno Haible  <bruno@clisp.org>
21102         utime-h: New module.
21103         * m4/utime_h.m4: New file.
21104         * lib/utime.in.h: New file.
21105         * modules/utime-h: New file.
21106         * doc/posix-headers/utime.texi: Mention the new module.
21108         * tests/test-utime-h.c: New file.
21109         * modules/utime-h-tests: New file.
21111 2017-04-30  Bruno Haible  <bruno@clisp.org>
21113         Fix a few typos.
21114         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
21115         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
21116         * doc/posix-functions/fstat.texi: Fix a plural typo.
21117         * doc/posix-functions/stat.texi: Likewise.
21118         * m4/include_next.m4: Update comments.
21120 2017-04-29  Bruno Haible  <bruno@clisp.org>
21122         error: Fix mistake in 2017-04-23 commit.
21123         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
21124         assume that strerror_r returns 'int', not 'char *'.
21126 2017-04-29  Bruno Haible  <bruno@clisp.org>
21128         stat: Fix time_t values and other problems on native Windows platforms.
21129         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
21130         implementations of stat().
21131         * lib/stat.c: Include filename.h instead of dosname.h. Include
21132         malloca.h, stat-w32.h.
21133         (is_unc_root): New function.
21134         (rpl_stat): New implementation for native Windows. Remove
21135         REPLACE_FUNC_STAT_DIR code.
21136         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
21137         Don't define REPLACE_FUNC_STAT_DIR.
21138         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
21139         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21140         (Depends-on): Remove dosname. Add filename, malloca.
21141         (configure.ac): Also compile lib/stat-w32.c.
21143 2017-04-29  Bruno Haible  <bruno@clisp.org>
21145         fstat: Fix time_t values on native Windows platforms.
21146         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
21147         * lib/stat-w32.h: New file.
21148         * lib/stat-w32.c: New file.
21149         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
21150         stat-w32.h instead.
21151         (fstat_nothrow): Remove function.
21152         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
21153         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
21154         always.
21155         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
21156         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21157         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
21158         (configure.ac): Also compile lib/stat-w32.c.
21160 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21162         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
21163         Problem reported by Assaf Gordon and Gavin Smith in:
21164         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
21165         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
21166         #define this, too.
21168 2017-04-29  Bruno Haible  <bruno@clisp.org>
21170         strerror_r-posix: Fixes for MSVC 14.
21171         * lib/strerror_r.c: Include <stdarg.h>.
21172         (strerror_r): Provide error messages for errno values 100...140.
21173         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
21175 2017-04-28  Bruno Haible  <bruno@clisp.org>
21177         noreturn: New module.
21178         * lib/noreturn.h: New file.
21179         * modules/noreturn: New file.
21180         * tests/test-noreturn.c: New file.
21181         * modules/noreturn-tests: New file.
21182         * tests/test-noreturn-c++.cc: New file.
21183         * modules/noreturn-c++-tests: New file.
21185 2017-04-27  Bruno Haible  <bruno@clisp.org>
21187         wctype-h: Fix compilation error with the original mingw.org mingw.
21188         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
21189         HAVE_CRTDEFS_H.
21190         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
21191         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
21192         <stddef.h> instead.
21193         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
21195 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21197         nap.h: Fix compilation on non windows platforms
21198         * tests/nap.h: Move misplaced endif.
21200 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21201         and Paul Eggert  <eggert@cs.ucla.edu>
21203         time_rz: fix heap buffer overflow vulnerability
21204         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
21205         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
21206         whether there is enough buffer space available, thus avoiding
21207         the problematic promotion of signed to unsigned causing an invalid
21208         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
21209         the start of the buffer.
21210         * tests/test-parse-datetime.c (main): Add a test case written by
21211         Paul Eggert, which overwrites enough of the heap so that
21212         standard glibc will fail with "free(): invalid pointer"
21213         without the patch applied.
21215 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21217         xalloc: add missing integer overflow check
21218         * lib/xalloc.h (x2nrealloc): Also check for multiplication
21219         overflow when P is null.
21221 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21223         parse-datetime: make it standalone
21224         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
21225         (_GL_ATTRIBUTE_FORMAT): New macro.
21226         These are needed to get './gnulib-tool --test parse-datetime' to work.
21228 2017-04-23  Bruno Haible  <bruno@clisp.org>
21230         nap.h: Port to native Windows.
21231         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
21232         use nap_fd instead. On native Windows, close and reopen nap_fd.
21233         (nap_works): Don't compare the ctimes, because on native Windows, these
21234         are the creation times.
21235         (nap): Update.
21237 2017-04-23  Bruno Haible  <bruno@clisp.org>
21239         nap.h: Fix logic.
21240         * tests/nap.h (nap): Avoid signed integer overflow in loop.
21242 2017-04-23  Bruno Haible  <bruno@clisp.org>
21244         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
21245         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
21246         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
21247         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
21248         * lib/argp-help.c (__argp_failure): Likewise.
21250 2017-04-23  Bruno Haible  <bruno@clisp.org>
21252         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
21253         * m4/strerror_r.m4: Revert changes since 2016-10-16.
21254         * lib/strerror_r.c: Likewise.
21256 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21258         Target a C99 subset, not a C89 subset
21259         For many years Gnulib has targeted C89 and has resisted using C99
21260         features, as some Gnulib-using programs still wanted to target
21261         C89.  As this no longer seems to be the case, relax the porting
21262         requirements to allow some C99 features.  This is merely a change
21263         to the documentation, to give other Gnulib developers a chance to
21264         weigh in on the topic.
21265         * doc/extern-inline.texi (extern inline):
21266         * doc/gnulib-readme.texi (Portability guidelines):
21267         * doc/gnulib-tool.texi (Initial import):
21268         * doc/gnulib.texi (Header files):
21269         Modernize to talk about C99 and C11 instead of C89 and C99.
21270         * doc/gnulib-readme.texi (Portability guidelines):
21271         Now a section, not merely a subsection, so that it
21272         can be split up.  Modernize a bit.
21273         (C language versions, C99 features assumed)
21274         (C99 features avoided):
21275         New sections.
21277 2017-04-23  Bruno Haible  <bruno@clisp.org>
21279         doc: New section "Modules that modify the way other modules work".
21280         * doc/gnulib.texi (Modules that modify the way other modules work): New
21281         section.
21283 2017-04-23  Bruno Haible  <bruno@clisp.org>
21285         stat-time: Update comments.
21286         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
21287         * tests/test-utimens-common.h: Add reference regarding st_ctime on
21288         Windows.
21290 2017-04-01  Bruno Haible  <bruno@clisp.org>
21292         glob: Fix more memory leaks.
21293         * lib/glob.c (glob): Free allocated memory before returning.
21294         Reported by Coverity via Tim Rühsen.
21296 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21298         poll: improve fast check for out-of-range NFD
21299         * lib/poll.c: Do not include intprops.h.
21300         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
21301         * modules/poll (Depends-on): Remove intprops.
21303         ftoastr: cite a newer paper
21304         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
21305         instead of Loitsch 2010.
21307 2017-04-22  Bruno Haible  <bruno@clisp.org>
21309         poll: Enable argument check also in the Windows implementation.
21310         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
21311         Reported by Paul Eggert.
21313 2017-04-22  Bruno Haible  <bruno@clisp.org>
21315         getlogin_r: Work around bug in Mac OS X 10.12.
21316         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
21317         bug.
21318         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
21319         given size minus 1, call getlogin_r a second time, on a larger buffer.
21320         * modules/getlogin_r (Depends-on): Add malloca.
21321         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
21323 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21325         parse-datetime: fix %z and prefer signed int
21326         %z problem reported by Pádraig Brady in:
21327         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
21328         While fixing it, I decided to prefer signed ints to size_t, as
21329         they are less error-prone (e.g., ubsan catches overflow).
21330         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
21331         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
21332         counts, since signed integers make for better debugging.
21333         (date): Don’t assume %z works in printf formats.
21334         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
21335         sizes of buffers known to be small, e.g., because we’re using snprintf.
21336         (parse_datetime2): Simplify call to debug_mktime_not_ok.
21338 2017-04-22  Bruno Haible  <bruno@clisp.org>
21340         *printf: Work around rounding bug on Mac OS X.
21341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
21342         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
21343         Mac OS X and FreeBSD.
21344         * doc/glibc-functions/*printf.texi: Likewise.
21346 2017-04-22  Bruno Haible  <bruno@clisp.org>
21348         vasnprintf tests: Avoid warnings.
21349         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
21350         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
21351         test.
21353 2017-04-22  Bruno Haible  <bruno@clisp.org>
21355         sys_file tests: Avoid warning.
21356         * tests/test-sys_file.c (main): Add a default clause to the switch
21357         statement.
21359 2017-04-22  Bruno Haible  <bruno@clisp.org>
21361         sethostname: Update doc.
21362         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
21363         Mac OS X.
21365 2017-04-22  Bruno Haible  <bruno@clisp.org>
21367         quotearg tests: Avoid warnings.
21368         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
21369         false.
21371 2017-04-22  Bruno Haible  <bruno@clisp.org>
21373         poll: Enable argument check.
21374         * lib/poll.c: Include intprops.h.
21375         (poll): Check value of nfd correctly.
21376         * modules/poll (Depends-on): Add intprops.
21378 2017-04-22  Bruno Haible  <bruno@clisp.org>
21380         get-rusage-data: Avoid warnings on Mac OS X.
21381         * lib/get-rusage-data.c: On Mac OS X, don't define
21382         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
21383         (get_rusage_data) [Mac OS X]: Just return 0.
21385 2017-04-22  Bruno Haible  <bruno@clisp.org>
21387         xbinary-io: Fix build error.
21388         * modules/xbinary-io (Depends-on): Add gettext-h.
21389         * lib/xbinary-io.c: Include gettext.h and define _().
21390         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
21391         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
21393 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21395         parse-datetime: overflow and debug cleanups
21396         This long patch was triggered by this bug report from Ruediger Meier:
21397         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
21398         I fixed the bug he noted, then found some others nearby, and then
21399         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
21400         up some of the code to follow GNU standards while I was at it.
21401         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
21402         use c_isdigit.
21403         (EPOCH_YEAR): Remove; unused.
21404         (TM_YEAR_BASE): Now an enum rather than a macro.
21405         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
21406         time zone offset, since timezones now are in terms of seconds and
21407         not minutes.
21408         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
21409         appropriate.  Verify that intmax_t is wide enough.
21410         (time_overflow, time_zone_str): New functions, used to deal
21411         more reliably with overflow.
21412         (dbg_printf): Add printf attribute, to help catch integer width errors.
21413         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
21414         (%union, to_hour, yylex, parse_datetime2):
21415         Use intmax_t instead of long int and/or long_time_t.
21416         All uses changed.
21417         (DBGBUFSIZE): Move earlier.
21418         (relative_time, set_hhmmss, parser_control):
21419         Just use int for nanoseconds and for time zones; that’s wide enough.
21420         (parser_control): Use bool for members like year_seen that can
21421         be booleans instead of counters.  All uses changed.
21422         Remove debug_default_input_timezone; no longer needed.
21423         All uses removed.
21424         (apply_relative_time): Return a bool overflow flag.
21425         All uses changed to check for overflow.
21426         (apply_relative_time, zone, date, relunit, relunit_snumber)
21427         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
21428         Check for integer overflow portably.
21429         (str_days): Use just int for N, as it’s wide enough.
21430         Prefer 2D char arrays to arrays of char * when it looks like
21431         2D is a win on typical platforms.
21432         Prefer snprintf to strncpy/strncat, for simplicity;
21433         all buffers are smaller than INT_MAX so this is safe.
21434         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
21435         (debug_print_current_time): Don’t assume tv_nsec is of type long,
21436         as this is not true on x32.  Output "." before any nanoseconds.
21437         (debug_print_current_time, parse_datetime2):
21438         Output local zones using a more-consistent format.
21439         (debug_print_current_time, date, parse_datetime2):
21440         (main) [TEST]:
21441         Don’t assume time_t is the same width as long.
21442         (print_rel_part): New function, replacing ...
21443         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
21444         (debug_print_relative_time): Use bool for boolean.
21445         (local_zone): dsts_seen now counts only tDST instances.
21446         (date): Fix printf of size_t to use %z.  Do not assume numeric
21447         tokens have negative values merely because the context suggests
21448         a syntax with "-" separating tokens.
21449         (time_zone_hhmm): Return bool success indicator, which checks for
21450         overflow.  Store result into PC->time_zone instead.  All callers
21451         changed.
21452         (tm_year_str): New function.  Return a bool success indicator and
21453         store the result into a buffer.  All callers changed.  Output the
21454         numerically correct string even if adding 1900 to the year would
21455         overflow.
21456         (to_tm_year): New function, replacing the old to_year.  All
21457         callers changed.
21458         (tm_diff): Sync with glibc.
21459         (lookup_word): Use to_uchar instead of doing it by hand.
21460         (TZBUFSIZE): Now local to the only function that needs it.
21461         (debug_strfdatetime): Simplify now that time zones are int seconds.
21462         (debug_strfdate): Work even if tm_year + 1900 would overflow.
21463         (get_effective_timezone): Remove.  All uses removed.
21464         (parse_datetime2): Use fprintf in pieces instead of snprintfing
21465         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
21466         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
21467         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
21468         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
21469         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
21470         * modules/parse-datetime (Depends-on): Add inttypes.
21472 2017-04-21  Bruno Haible  <bruno@clisp.org>
21474         gettext-h: Avoid -Wundef warning.
21475         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
21476         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
21477         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
21479 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
21481         error: Avoid "function declaration isn't a prototype" warning.
21482         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
21484 2017-04-21  Bruno Haible  <bruno@clisp.org>
21486         vasnprintf: Fix for MSVC 14.
21487         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
21488         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
21489         of !HAVE_SNPRINTF_RETVAL_C99.
21491 2017-04-21  Bruno Haible  <bruno@clisp.org>
21493         mbrtowc tests: Fix test failures on MSVC 14.
21494         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
21495         behaviour for invalid input.
21497 2017-04-21  Bruno Haible  <bruno@clisp.org>
21499         mbsinit: Fix for MSVC 14.
21500         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
21501         implementation that is in sync with mbrtowc.c. On other platforms, use
21502         an adequate ad-hoc implementation.
21504 2017-04-21  Bruno Haible  <bruno@clisp.org>
21506         Fix test-mbrtowc5.sh failure on native Windows.
21507         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
21508         "C".
21510 2017-04-21  Bruno Haible  <bruno@clisp.org>
21512         Avoid accidental use of native Windows APIs on Cygwin.
21513         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
21514         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
21515         * lib/localename.c (WINDOWS_NATIVE): Likewise.
21517 2017-04-20  Bruno Haible  <bruno@clisp.org>
21519         Remove red warnings from the generated MODULES.html.
21520         * modules/fcntl (Description): Disambiguate function references.
21521         * modules/getcwd-lgpl (Description): Likewise.
21522         * modules/hostent (Description): Likewise.
21523         * modules/servent (Description): Likewise.
21524         * modules/tempname (Description): Likewise.
21526 2017-04-20  Bruno Haible  <bruno@clisp.org>
21528         verify tests: Fix spurious failure with parallel make.
21529         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
21530         EXTRA_PROGRAMS.
21531         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
21532         * tests/test-verify-try.c: New file.
21533         * modules/verify-tests (Files): Add it.
21534         (EXTRA_PROGRAMS): Add test-verify-try.
21535         (MOSTLYCLEANFILES): Update accordingly.
21536         Reported by Adam James Stewart <ajstewart@anl.gov>.
21538 2017-04-18  Bruno Haible  <bruno@clisp.org>
21540         vma-iter: Fix compilation error on Solaris 7.
21541         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
21542         like on IRIX, OSF/1.
21543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21545 2017-04-18  Bruno Haible  <bruno@clisp.org>
21547         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
21548         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
21549         included.
21550         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
21551         <sys/procfs.h>.
21552         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
21553         <sys/procfs.h> cannot be included.
21554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21556 2017-04-18  Bruno Haible  <bruno@clisp.org>
21558         getopt-gnu: Add comments.
21559         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
21560         * modules/getopt-gnu (configure.ac): Likewise.
21562 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
21564         regex: port better to Solaris 10
21565         Solaris 10 <locale.h> includes <libintl.h>, which #defines
21566         gettext, and this causes a double #define.
21567         Problem reported by Gavin Smith in:
21568         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
21569         * lib/regex_internal.h (gettext): #undef before #defining.
21571 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21573         intprops: improve comments
21574         * lib/intprops.h: Improve and shorten commentary.
21575         For the record, if we ever run into a pedantic compiler that
21576         behaves differently from GCC when converting an out-of-range value
21577         to a signed integer, we can work around the problem with something
21578         like the following code, where UCT is the signed counterpart of T
21579         (UCT is sometimes narrower than UT) and all callers are changed
21580         accordingly:
21581         #if __SUNPRO_C <= 0x5120
21582         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21583            ((t) ((ut) (a) op (ut) (b)))
21584         #else
21585         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21586            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21587             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21588                + TYPE_MINIMUM (t)) \
21589             : (t) (uct) ((ut) (a) op (ut) (b)))
21590         #endif
21592 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21594         intprops: try to avoid tickling similar bugs
21595         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21596         needs to be the same width as T; it can be wider.
21597         Change callers so that UT is at least as wide as unsigned int,
21598         as I suspect that this is less likely to run into compiler bugs.
21600         intprops: port to Oracle Studio 12.3 x86
21601         Problem reported by Gavin Smith in:
21602         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21603         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21604         Convert unsigned to signed via the usual rather than the standard way,
21605         to avoid a compiler bug in Oracle Studio 12.3 x86.
21607 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21609         getopt: prefer - to _ in new file names
21610         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21611         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21612         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21613         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21614         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21615         All uses changed.
21617         getopt: port recent getopt changes to macOS
21618         Problem reported by Harald Maier (Bug#26398).
21619         The macOS C compiler uses __nonnull for its own purposes and that
21620         clashes with glibc's __nonnull.
21621         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21622         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21623         * lib/getopt_core.h (getopt):
21624         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21625         Use _GL_ARG_NONNULL, not __nonnull.
21626         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21627         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21628         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21629         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21631 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21633         getopt-gnu: omit some duplicate code
21634         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21635         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21636         gnulib-tool already does this.
21637         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21638         getopt-posix, which we depend on.
21640         getopt-posix: use angle-bracket include
21641         * lib/getopt1.c: Include <config.h>, not "config.h".
21643 2017-04-06  Zack Weinberg  <zackw@panix.com>
21645         getopt: annotate files with relationship to glibc
21647         As the final act in this patchset, adjust the message at the top of
21648         each file to indicate which files are synced with glibc.  (This has
21649         already been done for most of the headers.)
21651         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21652         Mention in top-of-file boilerplate that these files are shared
21653         between glibc and gnulib.
21656         getopt: split up getopt.in.h and eliminate __need_getopt
21658         Over in glibc, all of the __need macros are being phased out in favor
21659         of small headers that declare only the necessary components, as this
21660         is much simpler and less prone to bugs.  As getopt is shared with
21661         glibc, gnulib needs to do the same for __need_getopt.
21663         __need_getopt is misnamed; what it really means is "we want only the
21664         getopt features specified in POSIX, not the GNU extensions".  glibc
21665         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21666         these files can be shared verbatim with gnulib.  The portability
21667         wrapper, on the other hand, they have renounced altogether; glibc's
21668         getopt.h will no longer be shared with gnulib at all.  In exchange,
21669         certain glibc-specific quirks (having to do with __posix_getopt) no
21670         longer need appear in gnulib's headers at all.
21672         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21673         splits up the current gnulib-side portability wrapper into three
21674         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21675         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21676         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21677         unistd.in.h just use them.  All new files are clearly marked with
21678         whether they are shared with glibc.
21680         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21681         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21682         with glibc, and ...
21683         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21684         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21685         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21686         instead of defining __need_getopt and including the full getopt.h.
21688         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21689         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21690         * modules/getopt-posix (Files): Add new headers and sort list.
21691         (Depends-on): No longer need snippet/arg-nonnull.
21692         (Makefile.am): Generate getopt_cdefs.h.
21695         getopt: better handling of ambiguous options
21697         glibc's getopt uses alloca to construct a linked list of possibilities
21698         for an "ambiguous" long option.  In gnulib, malloc should be used
21699         instead.  Providing for both cases complicates things a fair bit.
21701         This patch rewrites ambiguous-option handling to use a boolean vector
21702         instead of a linked list.  There is then only one allocation that
21703         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21704         and in gnulib we define __libc_use_alloca to always be false, so we
21705         don't need ifdefs in the middle of the function.  This should also be
21706         slightly more efficient in the normal case of long options being fully
21707         spelled out -- I think most people aren't even aware they _can_
21708         sometimes abbreviate long options.
21710         One interesting consequence is that the list of possibilities is now
21711         printed in exactly the order they appear in the list of long options,
21712         instead of the first possibility being shuffled to the end.
21714         (The patch looks bigger than it really is because there's a fair bit
21715         of reindentation and code rearrangement.)
21717         * lib/getopt.c: When used standalone, define __libc_use_alloca
21718         as always false and alloca to abort if called.
21719         (process_long_option): Rewrite handling of ambiguous long options
21720         to use a single boolean vector, not a linked list; use
21721         __libc_use_alloca to decide whether to allocate this using alloca.
21724         getopt: refactor long-option handling
21726         There were two copies of the bulk of the code to handle long options.
21727         Now there is only one.
21729         This change temporarily removes the logic to avoid using alloca when
21730         standalone; the next patch in the series will restore it.
21732         * lib/getopt.c (process_long_option): New function split out
21733         from _getopt_internal_r.
21734         (_getopt_internal_r): Replace both copies of the long-option
21735         processing code with calls to process_long_option.
21738         getopt: tidy up _getopt_initialize a bit
21740         _getopt_data.__posixly_correct is completely redundant to
21741         _getopt_data.__ordering, and some work that logically belongs in
21742         _getopt_initialize was being done by _getopt_internal_r, making the
21743         code harder to understand.
21745         As a side effect, getenv will no longer be called if the first
21746         character of the options string is '+' or '-', which is probably a
21747         Good Thing.  (Perhaps we should have a flag character that
21748         specifically asks for the permutation behavior?)
21750         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21751         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21752         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21755         getopt: merge from glibc: repetition reduction
21757         The definitions of the entry point functions 'getopt' and
21758         '__posix_getopt' can be made substantially less repetitive with a
21759         helper macro.
21761         While I was merging the const-correctness changes from gnulib into
21762         glibc I noticed there are still some unnecessary casts in
21763         _getopt_internal_r.
21765         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21766         a macro.  Consistently cast 'argv' to 'char **' when calling
21767         _getopt_internal.
21768         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21771         getopt: clean up error reporting
21773         getopt can print a whole bunch of error messages, and when used
21774         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21775         cancellation point and getopt isn't, and also applying fprintf to a
21776         stream in wide-character mode is not allowed.  So every single error
21777         reporting case has an #ifdef _LIBC block in which it calls internal
21778         libc functions instead.  The counterpart patch series in glibc makes
21779         it possible to simplify all of that down to a set of #defines at the
21780         top of the file; core code is written as if it is safe to just call
21781         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21782         call any *other* stdio functions.)
21784         * lib/getopt.c: When _LIBC is defined, define fprintf to
21785         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21786         to _IO_funlockfile.  When neither _LIBC nor
21787         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21788         funlockfile as no-ops.
21789         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21790         standalone error-printing code can now be used for libc as well.
21791         Add an flockfile/funlockfile pair around one case where the error
21792         message is printed in several chunks.  Don't use fputc.
21795         getopt: fix fencepost error in ambiguous-W-option handling
21797         getopt_long contains an undocumented (AFAICT) feature in which, if you
21798         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21799         treated as equivalent to '--foo'.  This is implemented with a partial
21800         second copy of the code for handling long options, and that code
21801         increments optind one too many times when recovering from an ambiguous
21802         abbreviated option, which can cause the main loop to walk past the end
21803         of argv and crash.
21805         I discovered this while writing a test case that tries to exercise all
21806         of getopt's error reporting paths; I wouldn't be surprised to learn
21807         that this feature is never used by real applications.
21809         * lib/getopt.c (_getopt_internal_r): Don't increment
21810         d->optind a second time when reporting ambiguous -W options.
21813         getopt: clean up getopt.c and getopt1.c file headers
21815         In getopt.c, there is no need to include wchar.h at all, and it is
21816         safe nowadays to assume that stdlib.h does declare getenv (several
21817         other gnulib modules make this assumption).
21819         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21820         by using "" inclusions consistently, and there is no actual need to
21821         include stdlib.h (except in the #ifdef TEST block, where it should be
21822         unconditional), nor to provide a backup definition of NULL at all.
21824         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21825         Move inclusion of stdlib.h to #ifdef TEST block and make
21826         unconditional.  Do not define NULL.
21827         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21828         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21829         * modules/getopt-gnu, modules/getopt-posix: Don't call
21830         gl_PREREQ_GETENV.
21833         getopt: harmonize comments with glibc
21835         The comments explaining how the behavior of 'getopt' varies depending
21836         on whether it's the standalone version and whether there are special
21837         characters at the beginning of the options string were inconsistent
21838         between gnulib and glibc, and also out of sync with the code.
21840         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21843         getopt: remove USE_NONOPTION_FLAGS
21845         getopt includes code to parse an environment variable named
21846         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21847         in decimal); but all of it has been #ifdefed out since 2001, with no
21848         official way to turn it back on.
21850         According to commentary in glibc's config.h.in, bash version 2.0
21851         set this environment variable to indicate argv elements that were
21852         the result of glob expansion and therefore should not be treated
21853         as options, but the feature was "disabled later" because "it
21854         caused problems".  According to bash's CHANGES file, "later" was
21855         release 2.01; it gives no more detail about what the problems
21856         were.
21858         Version 2.0 of bash was released on the last day of 1996, and version
21859         2.01 in June of 1997.  Twenty years later, I think it is safe to
21860         assume that this environment variable isn't coming back.
21862         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21863         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21864         __libc_argc and __libc_argv externs, which were only used by
21865         #ifdef USE_NONOPTION_FLAGS blocks.
21868         getopt: tabify, in preparation for merge with glibc
21870         glibc sticks to the GNU default of indenting with a mix of
21871         8-column tabs and spaces; make the gnulib copy match.
21873         getopt.h is not included because it is *not* going to be merged in its
21874         present form.
21876         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21878 2017-04-02  Bruno Haible  <bruno@clisp.org>
21880         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21881         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21882         like it was done in modules/relocatable-lib on 2011-05-21 and in
21883         modules/relocatable-prog on 2011-08-15.
21884         Reported by Reuben Thomas <rrt@sc3d.org>.
21886 2017-03-31  Bruno Haible  <bruno@clisp.org>
21888         glob: Fix invalid free() call.
21889         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21890         static storage to home_dir.
21891         Reported by Coverity via Tim Rühsen.
21893 2017-03-31  Bruno Haible  <bruno@clisp.org>
21895         glob: Fix memory leaks.
21896         * lib/glob.c (glob): Free allocated memory before returning.
21897         Reported by Coverity via Tim Rühsen.
21899 2017-03-31  Bruno Haible  <bruno@clisp.org>
21901         md5, sha1, sha256, sha512: Add comments regarding correctness.
21902         * lib/md5.h (buflen): Add comments regarding range.
21903         * lib/sha1.h (buflen): Likewise.
21904         * lib/sha256.h (buflen): Likewise.
21905         * lib/sha512.h (buflen): Likewise.
21906         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21907         * lib/sha1.c (sha1_process_bytes): Likewise.
21908         * lib/sha256.c (sha256_process_bytes): Likewise.
21909         * lib/sha512.c (sha512_process_bytes): Likewise.
21910         Reported by Coverity via Tim Rühsen.
21912 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21914         getopt: merge from glibc
21915         This does not change anything substantial; it merely simplifies
21916         hypothetical merges back to glibc.
21917         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21918         Change copyright notice to match what is in glibc.
21919         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21920         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21921         __open_memstream rather than open_memstream and __glibc_likely
21922         instead of __builtin_expect.
21923         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21925 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21927         dfa: make [0-9] faster in non-C locales
21928         Problem reported by John P. Linderman (Bug#26193).
21929         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21930         If both ends of the range are ASCII digits, do not worry about
21931         multi-character collating sequences and the like.  Be consistent
21932         about using isalpha as a precondition for setbit_case_fold_c.
21934 2017-03-19  Bruno Haible  <bruno@clisp.org>
21936         lock: Fix compilation error with HP-UX IA64 cc.
21937         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21938         weak on non-glibc platforms.
21940 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21942         stdalign: tweak version# and test for HP-UX IA64
21943         Problems reported by Bruno Haible in:
21944         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21945         * lib/stdalign.in.h (_Alignas):
21946         * m4/stdalign.m4 (gl_STDALIGN_H):
21947         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21948         used octal (as that is how they document it), but it is decimal in
21949         practice now and the ancient implementations no longer matter.
21950         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21952 2017-03-19  Bruno Haible  <bruno@clisp.org>
21954         vma-iter: Add support for Solaris.
21955         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21956         approach.
21957         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21958         * lib/get-rusage-as.c: Update comment about Solaris.
21959         * lib/get-rusage-data.c: Likewise.
21961 2017-03-19  Bruno Haible  <bruno@clisp.org>
21963         vma-iter: Prefer HP-UX specific API on HP-UX.
21964         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21965         * lib/vma-iter.h: Update.
21966         Just in case HP-UX ever implements mquery().
21968 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21970         stdalign: restore previous behavior for HP-UX IA64
21971         See Bruno Haible's email in:
21972         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21973         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21974         * lib/stdalign.in.h (_Alignas):
21975         Assume the '061200' applies to Itanium, not to PA-RISC.
21976         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21978 2017-03-17  Bruno Haible  <bruno@clisp.org>
21980         stat-time, timespec: Support use of the header files in C++ mode.
21981         * lib/stat-time.h: Add "C" linkage declaration.
21982         * lib/timespec.h: Likewise.
21984 2017-03-17  Bruno Haible  <bruno@clisp.org>
21986         stdalign: Make it work with HP-UX cc.
21987         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21988         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21989         for HP-UX cc.
21991 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21993         flexmember: try to detect HP-UX 11.31 cc bug
21994         Problem reported by Bruno Haible in:
21995         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21996         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21997         Attempt to detect bug in HP-UX 11.31 cc.
21999 2017-03-16  Bruno Haible  <bruno@clisp.org>
22001         stdint: Fix test compilation failure with HP-UX 11 cc.
22002         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
22003         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
22004         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
22005         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
22007 2017-03-14  Bruno Haible  <bruno@clisp.org>
22009         gnulib-tool: Don't produce a tests directory with only snippet .h files.
22010         * gnulib-tool (func_modules_transitive_closure_separately): If
22011         testsrelated_modules ends up with no "real" modules, aside from
22012         modules with applicability 'all', set it to empty.
22014 2017-03-14  Bruno Haible  <bruno@clisp.org>
22016         vma-iter: Add support for HP-UX.
22017         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
22018         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
22019         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
22020         * lib/get-rusage-as.c: Update comment about HP-UX.
22021         * lib/get-rusage-data.c: Likewise.
22022         (get_rusage_data): Use get_rusage_data_via_setrlimit.
22024 2017-03-14  Bruno Haible  <bruno@clisp.org>
22026         limits-h: Make it work with HP-UX cc.
22027         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
22028         defined.
22030 2017-03-14  Bruno Haible  <bruno@clisp.org>
22032         Fix test failures on DragonFlyBSD.
22033         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
22034         * tests/test-select.h (test_bad_fd): Likewise.
22035         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
22037 2017-03-14  Bruno Haible  <bruno@clisp.org>
22039         freadahead: Silence warning on DragonFlyBSD.
22040         * lib/freadahead.c (__sreadahead): Declare ourselves.
22042 2017-03-14  Bruno Haible  <bruno@clisp.org>
22044         vma-iter: Add comment about AIX.
22045         * lib/vma-iter.c: Add comment about why this module is not implemented
22046         on AIX.
22048 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22050         snippets: move unadjusted snippet sources to lib
22051         Problem reported by Michal Privoznik in:
22052         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
22053         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
22054         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
22055         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
22056         * lib/unused-parameter.h: Rename from
22057         build-aux/snippet/unused-parameter.h.
22058         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
22059         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
22060         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
22061         * modules/snippet/c++defs (Files:, CXXDEFS_H):
22062         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
22063         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
22064         Adjust to file renamings.
22066 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
22068         gnulib-tool: don't automatically distribute files from top/
22069         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
22070         not distribute top/README-release by default, don't distribute files
22071         from top/ unconditionally.
22072         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
22073         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
22075 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22077         gnulib-tool: fix typo in comment output
22078         * gnulib-tool (func_import): Fix typo with previous change.
22080         snippets: work around GNU Make 3.82 VPATH
22081         When using 'gnulib-tool --gnu-make' on Emacs, and building
22082         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
22083         an out-of-source (VPATH) build failed because the sans-copyright
22084         snippet file was not built before the file that used it.
22085         Presumably this is some sort of VPATH thing.  Work around the
22086         problem by using the original snippet, i.e., don’t bother to
22087         remove its copyright notice.
22088         * modules/snippet/_Noreturn, modules/snippet/link-warning:
22089         Don’t assume Automake in comments.  Omit long-incorrect comment.
22090         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
22091         (MOSTLYCLEANFILES):
22092         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
22093         (MOSTLYCLEANFILES):
22094         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
22095         (MOSTLYCLEANFILES):
22096         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
22097         (MOSTLYCLEANFILES):
22098         Remove.
22099         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
22100         * modules/snippet/c++defs (CXXDEFS_H):
22101         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
22102         * modules/snippet/warn-on-use (WARN_ON_USE_H):
22103         Don’t bother to remove the copyright notice; just use the
22104         original snippet as-is.
22106 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22108         gnulib-tool: minor --gnu-make fixups
22109         * gnulib-tool (func_emit_lib_Makefile_am):
22110         Remove useless code that was a blind alley during implementation.
22111         Problem reported by Thien-Thi Nguyen in:
22112         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
22113         (func_import): Note the "--gnu-make" option in the output comment.
22115 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
22117         gnulib-tool: new option --gnu-make
22118         This is for applications like GNU Emacs that use GNU Make
22119         features instead of Automake.
22120         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
22121         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
22122         Do not assume Automake.
22123         * gnulib-tool (func_determine_path_separator)
22124         (func_modules_transitive_closure, func_update_file)
22125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22126         (func_import): Add support for --gnu-make.
22128 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
22130         gnulib-common.m4: avoid aclocal.m4 bloat
22131         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
22132         Hide AM_PROG_AR from aclocal, so that aclocal does not
22133         install irrelevant macro definitions into aclocal.m4.
22135 2017-03-10  Bruno Haible  <bruno@clisp.org>
22137         vma-iter: Let callers know about error.
22138         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
22139         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
22141 2017-03-05  Bruno Haible  <bruno@clisp.org>
22143         Fix value of LD for 64-bit compilers on AIX.
22144         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
22145         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
22147 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
22149         dtotimespec: simplify
22150         * lib/dtotimespec.c (dtotimespec): Simplify.
22152 2017-03-04  Bruno Haible  <bruno@clisp.org>
22154         test-calloc-gnu: Reenable test also for GCC 7.
22155         * tests/test-calloc-gnu.c (eight): New function.
22156         (main): Don't skip test; use eight() instead.
22158 2017-03-04  Jim Meyering  <meyering@fb.com>
22160         test-calloc-gnu: port to GCC7
22161         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
22162         that attempts to calloc more than SIZE_MAX bytes, because GCC7
22163         and newer would detect that at compilation time.
22165 2017-03-04  Bruno Haible  <bruno@clisp.org>
22167         tests: Avoid compiler warning about uses of null_ptr.
22168         * tests/null-ptr.h: New file.
22169         * tests/test-canonicalize.c: Include null-ptr.h.
22170         (null_ptr): Remove function.
22171         * tests/test-canonicalize-lgpl.c: Likewise.
22172         * tests/test-memmem.c: Likewise.
22173         * tests/test-ptsname_r.c: Likewise.
22174         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
22175         * modules/canonicalize-lgpl-tests: Likewise.
22176         * modules/memmem-tests: Likewise.
22177         * modules/ptsname_r-tests: Likewise.
22178         Reported by Jim Meyering.
22180 2017-03-03  Bruno Haible  <bruno@clisp.org>
22182         doc: Mention Mac OS X deficiencies regarding semaphores.
22183         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
22184         * doc/posix-functions/sem_destroy.texi: Likewise.
22185         * doc/posix-functions/sem_getvalue.texi: Likewise.
22187 2017-03-03  Bruno Haible  <bruno@clisp.org>
22189         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
22190         Reported by Assaf Gordon <assafgordon@gmail.com> via
22191         Pádraig Brady <P@draigBrady.com>.
22192         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
22193         semaphores.
22194         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
22195         (atomic_int_semaphore): New macro.
22197 2017-02-28  Bruno Haible  <bruno@clisp.org>
22199         perror tests: Tweak for z/OS.
22200         Reported by Daniel Richard G. <skunk@iskunk.org>.
22201         * tests/test-perror.sh: Don't fail z/OS style perror output.
22203 2017-02-26  Bruno Haible  <bruno@clisp.org>
22205         nproc: Refactor large function.
22206         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
22207         from num_processors.
22208         (num_processors): In this function, only deal with OMP.
22210 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22212         nproc: adjust handling of OpenMP environment variables
22213         to match the return value from omp_get_num_threads(), i.e.:
22214          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
22215          - Treat 0 as an invalid value and ignore
22216         Also remove the call to omp_get_num_threads() because
22217         it's ineffective without the omp pragmas in place.
22218         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
22219         so that it can be ignored.
22220         (num_processors): Honor OMP_THREAD_LIMIT even without
22221         OMP_NUM_THREADS being set.  Also fix a typo in the environment
22222         variable being checked, from the previous recent commit.
22224 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22226         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
22227         * lib/nproc.c (parse_omp_threads): A new function refactored
22228         from num_processors() to support parsing both of the
22229         above environment variables.
22230         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
22231         to accurately reflect the current OpenMP nesting level.
22232         Also support the OMP_THREAD_LIMIT environment variable
22233         to limit the max value determined from OMP_NUM_THREADS.
22234         * modules/nproc: Depend on minmax header.
22235         Suggested by Oliver Heimlich.
22237 2017-02-25  Bruno Haible  <bruno@clisp.org>
22239         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
22240         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
22242 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22244         ftoastr: port to -Wdouble-promotion
22245         Work around -Wdouble-promotion false alarm in recent GCCs.
22246         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
22247         (ftoastr_snprintf, FTOASTR): Use it.
22249 2017-02-21  Bruno Haible  <bruno@clisp.org>
22251         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
22252         Reported by Rene Saavedra <rennes@openmailbox.org> in
22253         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
22254         * lib/glthread/lock.h: On glibc systems without
22255         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
22256         implementation of rwlocks.
22257         * lib/glthread/lock.c: Likewise.
22259 2017-02-20  Bruno Haible  <bruno@clisp.org>
22261         lock tests: Fix build failure on z/OS.
22262         Reported by Daniel Richard G. <skunk@iskunk.org>.
22263         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
22264         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
22265         exist.
22267 2017-02-19  Bruno Haible  <bruno@clisp.org>
22269         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
22270         This helps when CC=clang.
22271         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
22272         of /usr/bin/gcc.
22274         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
22275         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
22277 2017-02-19  Bruno Haible  <bruno@clisp.org>
22279         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
22280         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
22281         --with-tests --single-configure is specified.
22283 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22285         users.txt: Update links, use HTTPS where possible
22286         * users.txt: Updated to HTTPS where possible,
22287         fixed some links to new locations.
22289 2017-02-16  Bruno Haible  <bruno@clisp.org>
22291         xbinary-io: Fix inlining.
22292         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
22294 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22296         xbinary-io: rename from xsetmode
22297         This patch is taken from suggestions by Bruno Haible in:
22298         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
22299         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
22300         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
22301         not ENOTTY, when it is an inappropriate device.
22302         * lib/binary-io.h (SET_BINARY): Resurrect.
22303         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
22304         (xset_binary_mode_error): Rename from xsetmode_error.
22305         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
22306         (xset_binary_mode): Rename from xsetmode.
22307         All uses changed.
22308         * modules/xbinary-io: Rename from modules/xsetmode.
22309         Update file names.
22310         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
22311         * NEWS: Update to match revised behavior.
22313 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22315         tests: Adjust to recent SET_BINARY change
22316         * tests/test-binary-io.c (main):
22317         * tests/test-binary-io.sh: Remove test for SET_BINARY.
22318         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
22319         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
22320         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
22322         xsetmode: new module
22323         This is to fix a problem noted by Eric Blake.
22324         Code was using xfreopen to change files to binary mode, but this
22325         fails for stdout when in append mode.  Such code should use
22326         xsetmode instead.
22327         * NEWS: Document incompatible changes to binary-io module.
22328         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
22329         New function.
22330         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
22331         (set_binary_mode): New function, which also checks for tty.
22332         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
22334 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22336         headers: fix begin-end typos
22337         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
22338         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
22340         selinux-h: port to PGI 16.10
22341         * lib/se-selinux.in.h: Don't assume that include_next skips over
22342         duplicate -I DIR options.
22344         argp: port to PGI 16.10
22345         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
22347 2017-02-13  Darshit Shah  <darnir@gnu.org>
22349         unicase: Update function protoype to match definition.
22350         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
22351         uses 'size_t' as the datatype for the 'len' parameter in the functions
22352         it generates. Update the prototype specified here to match the newly
22353         generated function.
22355 2017-02-12  Bruno Haible  <bruno@clisp.org>
22357         times test: Avoid gcc warnings on Linux/x32.
22358         * tests/test-times.c (main): Really cast printf arguments from clock_t
22359         to 'long int'.
22361 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22363         glob: port better to emscripten
22364         Problem reported by Bruno Haible in:
22365         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
22366         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
22368 2017-02-11  Bruno Haible  <bruno@clisp.org>
22370         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
22371         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
22372         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
22373         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
22374         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
22375         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
22376         Distinguish hppa64 from hppa.
22378 2017-02-10  Bruno Haible  <bruno@clisp.org>
22380         search: Don't assume that tsearch() exists if 'VISIT' is defined.
22381         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
22382         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
22383         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
22385 2017-02-09  Bruno Haible  <bruno@clisp.org>
22387         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
22388         * doc/gnulib.texi (Libtool and Windows): Recommend
22389         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
22390         Reported by Reuben Thomas <rrt@sc3d.org>.
22392 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22394         stddef-tests: port to SIZE_MAX <= INT_MAX
22395         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
22396         Do not assume that INT_MAX < SIZE_MAX.
22398 2017-02-01  Bruno Haible  <bruno@clisp.org>
22400         lock tests: Fix link error.
22401         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
22402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22404 2017-01-31  Bruno Haible  <bruno@clisp.org>
22406         lock: Fix link error (regression from 2017-01-05).
22407         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
22408         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
22409         pthread_rwlockattr_destroy weak.
22410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22412 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22414         Port to PGI 16.10 x86-64
22415         This patch fixes one real bug in gl_anylinked_list2.h, along with
22416         some minor glitches that are not bugs.  It does not silence PGI’s
22417         thousands of bogus warnings when compiling test-intprops.c.
22418         Fortunately, the warnings do not cause a failure.
22419         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
22420         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
22421         My goodness, PGI goes back a long ways - this predates C89!
22422         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
22423         For example, ASYNCSAFE (const void *) should expand to
22424         ‘const void *volatile’, not to ‘volatile const void *’.
22425         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
22426         * lib/verify.h (verify) [!__GNUC__]:
22427         Use shorter albeit meaningless string to bypass silly compiler limits.
22428         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
22429         * tests/nan.h (NaNf, NaNd, NaNl):
22430         Use static functions to avoid misguided compiler diagnostics.
22431         Is there some reason we don’t use static functions on all platforms?
22433 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22435         parse-datetime: handle timezones reentrantly
22436         This API change was prompted by a report by Pádraig Brady in:
22437         https://bug.debian.org/851934#10
22438         To help fix the bug, make parse_datetime2 more reentrant.
22439         * NEWS: Document this incompatible change.
22440         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
22441         Add two arguments, the timezone and the timezone name.
22442         All callers changed.  If TZ="..." is specified, use it for
22443         calculating defaults.
22444         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
22445         this code should be usable in a library.
22446         (mktime_ok, get_effective_timezone):
22447         Accept timezone arg too.  All callers changed.
22448         (get_tz): Remove.
22449         (get_effective_timezone): Check for failures.
22451 2017-01-20  Eric Blake  <eblake@redhat.com>
22453         localename: port to cygwin 2.6
22454         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
22455         Cygwin.
22456         * modules/localename (Depends-on): Add extensions, since
22457         NL_LOCALE_NAME() is not visible without it.
22459 2017-01-17  Pádraig Brady  <P@draigBrady.com>
22461         parse-datetime: fix dependence on AC_PROG_SED
22462         * modules/parse-datetime: Use `sed` directly like all other modules.
22463         Reported by J William Piggott
22465 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22467         intprops: update doc URLs
22468         * doc/intprops.texi (Integer Range Overflow): Update URLs.
22470 2017-01-16  Bruno Haible  <bruno@clisp.org>
22472         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
22473         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
22474         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
22475         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
22476         distinguish s390 and s390x.
22477         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
22478         * NEWS: Mention the change regarding 'armel'.
22480 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22482         localeinfo: case_folded_counterparts and WEOF
22483         * NEWS: Document this.
22484         * lib/localeinfo.c (case_folded_counterparts):
22485         First arg is now wint_t, not wchar_t.  This generalizes the
22486         function to also work on WEOF, where it returns 0.
22488         dfa: port to gcc -fsanitize=undefined
22489         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
22490         as this runs afoul of gcc -fsanitize=undefined.
22492 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
22494         strftime: %z is -00 if unknown
22495         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
22496         the caller's responsibility to set 'negative_number'.  All uses changed.
22497         (__strftime_internal): Put '-' before a zero UTC offset if the time
22498         zone abbreviation starts with "-", which is the recently-introduced
22499         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
22500         * tests/test-strftime.c: Test for this.
22502 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22504         dfa: port to older GCC
22505         Problem reported by Assaf Gordon in:
22506         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
22507         * modules/c99: New module.  This merely attempts to use the latest
22508         C version, which should be enough to solve this particular problem.
22509         The idea is to document which Gnulib modules assume C99 or later.
22510         * modules/dfa (Depends-on): Add it.
22512 2017-01-10  Bruno Haible  <bruno@clisp.org>
22514         Update DEPENDENCIES.
22515         * DEPENDENCIES: List only https URLs. Update recommended version for
22516         autoconf, automake, gperf.
22518 2017-01-10  Jim Meyering  <meyering@fb.com>
22520         maint.mk: enforce spelling of "timestamp" (i.e., no space)
22521         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22522         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
22524 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22526         dfa: minor simplification with emptyset
22527         * lib/dfa.c (build_state): Simplify by using emptyset.
22529 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22531         dfa: shrink constraints from 4 bits to 3
22532         * lib/dfa.c (newline_constraint, letter_constraint)
22533         (other_constraint, prev_newline_dependent)
22534         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
22535         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
22536         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
22537         Constraints need only 3 bits, not 4.  Using smaller integers
22538         shrinks the code a bit and makes grep a tad faster on x86-64.
22540         dfa: omit unnecessary ptrdiff_t check
22541         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
22542         overflow, since xnmalloc does that now.
22544         dfa: omit unnecessary allocation
22545         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
22546         an all-zero follow set works just fine.
22548         dfa: omit unused local
22549         * lib/dfa.c (build_state): Fix up recent change.
22551         maint: remove stray .texi files
22552         Although these were superseded by other files like
22553         doc/posix-functions/ctime.texi, the old files were not removed.
22554         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
22556 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22558         getprogname: fix port to IRIX
22559         * lib/getprogname.c (getprogname) [__sgi]:
22560         Don't dump core if malloc returns NULL.
22562         dfa: fix reallocation bug when matching newlines
22563         Problem reported for sed by S. Gilles (Bug#25390).
22564         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
22565         (dfastate): Reallocate before moving any newline transition ...
22566         (build_state): ... instead of reallocating here, where it is too late.
22568 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22570         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
22571         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
22573 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22575         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
22576         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
22578 2017-01-07  Bruno Haible  <bruno@clisp.org>
22580         stdioext: Port to Minix 3.2 and newer.
22581         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
22582         * lib/fseeko.c (fseeko): Likewise.
22583         Reported by Nelson Beebe via Paul Eggert.
22585 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22587         getprogname: port to IRIX
22588         * lib/getprogname.c (getprogname): Port to IRIX.
22589         Based on an idea by Bastien Roucariès at:
22590         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22591         via code from Bruno Haible at:
22592         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22594         localename-tests: port to NetBSD 7
22595         Problem reported by Nelson H. F. Beebe.
22596         * tests/test-localename.c:
22597         Test newlocale and uselocale only if both exist.
22599         glob, intprops, xalloc: work around Clang bug
22600         Work around LLVM bug 16404, which is still not fixed.
22601         https://llvm.org/bugs/show_bug.cgi?id=16404
22602         Problem reported by Nelson H. F. Beebe.
22603         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22604         Remove.
22605         * lib/glob.c (size_add_wrapv):
22606         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22607         * lib/xalloc-oversized.h (xalloc_oversized):
22608         Do not use overflow builtins if Clang.
22610         dfa: fix 'return' typo
22611         Problem reported by Nelson H. F. Beebe.
22612         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22614 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22616         parse-datetime: fix generated paths for coverage files
22617         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22618         within parse-datetime.c, so that gcc generates appropriate .gcno
22619         files, allowing lcov to proceed without error.  Previously it
22620         would error trying to find "lib/lib/parse-datetime.y".
22622 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22624         maint.mk: support parallel execution of coverage
22625         * top/maint.mk (coverage): Run dependencies serially,
22626         thus supporting parallel processing of each one,
22627         particularly build-coverage, which builds and runs tests.
22629 2017-01-05  Bruno Haible  <bruno@clisp.org>
22631         lock tests: Prefer semaphore over mutex.
22632         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22633         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22634         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22635         Suggested by Torvald Riegel <triegel@redhat.com>.
22637 2017-01-05  Bruno Haible  <bruno@clisp.org>
22639         lock: Provide guarantee to avoid writer starvation for rwlocks.
22640         The rationale is: 1) Read-preferring read-write locks are prone to
22641         writer starvation if the number of reader threads multiplied by the
22642         percentage of time they have the lock held is too high. 2) Write-
22643         preferring read-write locks are the only reliable way to avoid this.
22644         3) There have been reports of 'test-lock' hanging on glibc systems
22645         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22646         and glibc indeed implements read-preferring rwlocks by default, see
22647         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22648         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22649         * m4/pthread_rwlock_rdlock.m4: New file.
22650         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22651         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22652         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22653         of rwlock initialization on glibc systems without
22654         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22655         of rwlocks altogether on non-glibc systems without
22656         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22657         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22658         * lib/glthread/lock.c [USE_POSIX_THREADS]
22659         (glthread_rwlock_init_for_glibc): New function.
22660         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22661         comment.
22662         [USE_PTH_THREADS]: New implementation of rwlocks.
22663         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22664         readers.
22665         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22666         (Depends-on): Add 'extensions'.
22667         * tests/test-rwlock1.c: New file.
22668         * lock-tests (Files): Add it.
22669         (Depends-on): Add usleep.
22670         (Makefile.am): Add test-rwlock1 to the tests.
22672 2017-01-05  Bruno Haible  <bruno@clisp.org>
22674         thread: Fix pth port.
22675         * lib/glthread/thread.h (pth_init): Declare weak.
22676         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22677         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22678         function.
22680 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22682         parse-datetime: fix debug message on lone year number
22683         Input dates such as
22684           date -d "Apr 11 22:59:00 2011"
22685         are parsed as date (Apr 11, with default year 2016), then time, then a
22686         number (2011). Based on the combination of previously seen tokens,
22687         'digits_to_date_time' determines 2011 to be a year value.
22688         This fixes the debug messages to correctly show the updated year.
22689         Before:
22690             $ date --debug -d 'Apr 11 22:59:00 2011'
22691             date: parsed date part: (Y-M-D) 2016-04-11
22692             date: parsed time part: 22:59:00
22693             date: parsed number part: today/this/now
22694         After:
22695             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22696             date: parsed date part: (Y-M-D) 2016-04-11
22697             date: parsed time part: 22:59:00
22698             date: parsed number part: year: 2011
22699         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22700         'debug_year_seen' member fields.
22701         (digits_to_date_time): Update 'year_seen' as needed.
22702         (debug_print_current_time): Inform about year updates.
22703         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22705         parse-datetime: fix local timezone debug messages
22706         "Local timezones" are strings that affect only DST relative to the
22707         default timezone. The debug messages in parse-datetime.y printed
22708         wrong information when encountering local timezones.
22709         Examples:
22710         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22711              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22712              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22713         When the default timezone relates to the zone strings, EET/EEST are
22714         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22715         value (0/1, respectively):
22716              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22717              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22718         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22719         was seen, inform about DST change, don't print actual timezone.
22720         (debug_strfdatetime): If local timezone was seen, use default timezone
22721         (and adjust as needed) instead of using incorrect timezone.
22722         (parse_datetime2): Use correct time-zone source string, and adjust
22723         default timezone as needed.
22725         parse-datetime: add debug warning about DST changes
22726         Incorrect date arithmetic due to daylight saving time (DST) are a
22727         common (false) bug report in coreutils.
22728         Detect two such cases and print a warning:
22729         1. year/month/day adjustments (performed on 'struct tm'),
22730            where 'mktime' returns a different isdst value.
22731         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22732            where the result of 'localtime(3)' on the value will return a
22733            different isdst value.
22734         Note: DST changes could be harmless or unnoticeable.
22735         Examples (with 'TZ=America/New_York'):
22736         Unnoticeable: result is 2016-Dec-14
22737            $ date -d '2016-06-15 EDT + 6 months' +%b
22738            Dec
22739         Unnoticeable: result is 2016-Dec-15 11:00:00
22740            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22741            2016-12-15
22742         This is unexpected:
22743            $ date -d '2016-06-01 EDT + 6 months' +%F
22744            2016-11-30
22745         The new debug warnings will show:
22746            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22747            ...
22748            date: warning: daylight saving time changed after date adjustment
22749            ...
22750         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22751         print an appropriate warning message.
22753         parse-datetime: add debug warning about date arithmetic
22754         Date arithmetic are done directly on the fields of 'struct tm',
22755         which can result in invalid dates. Normalization with 'mktime(3)'
22756         will then produce a different date - which might cause unexpected
22757         results.
22758         Examples:
22759           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22760           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22761         Note that date normalization is not inherently wrong and not rejected,
22762         as it has legitimate uses:
22763           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22764         If the user asked to adjust months but 'mday' changed,
22765         or user asked to adjust years but 'month' changed - warn about it.
22766             $ ./src/date --debug -d '2016-10-31 - 1 month'
22767             ...
22768             date: warning: when adding relative months/years, \
22769                            it is recommended to specify the 15th of the month
22770             ...
22771             date: warning: month/year adjustment resulted in shifted dates:
22772             date:      adjusted Y M D: 2016 09 31
22773             date:    normalized Y M D: 2010 10 01
22774             ...
22775         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22776         a warning message. Improve recommendation of when to use 15 of the
22777         month or noon for date arithmetic.
22779         parse-datetime: fix debug message of relative part after timezone
22780         Relative part (e.g '+8 days') after a timezone string was not
22781         reported (was only reported after a timezone number). Due to the
22782         parser's structure, timezone strings with numbers were handled
22783         separately.
22784         before:
22785              # Timezone number + relative part: OK
22786              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22787              ...
22788              date: parsed relative part: -8 day(s)
22789              # Timezone string + relative part: missing
22790              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22791              [ missing message ]
22792         After: messages are printed in both cases.
22793         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22795         parse-datetime: fix incorrect debug message on lone number
22796         A lone number is an absolute value, not a relative time part.
22797         before:
22798            $ date --debug -d '20130101'
22799            date: parsed number part: today/this/now
22800         After:
22801            $ ./src/date --debug -d '20130101'
22802            date: parsed number part: (Y-M-D) 2013-01-01
22803         * lib/parse-datetime.y ('item'/'number' tokens): Call
22804         'debug_print_current_time' instead of 'debug_print_relative_time'.
22806 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22808         doc: modernize for C11 etc.
22809         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22810         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22811         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22813         dfa: prefer functions to FETCH_WC macro
22814         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22815         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22816         wint_t result into DFA->lex.wctok instead of to a separate arg.
22817         All callers changed.  Move more local decls closer to where
22818         they're used.
22820         dfa: narrow more local var scopes
22821         * lib/dfa.c: Move more local decls to be more local.
22823         dfa: remove duplicate assignment
22824         Problem reported by Bruno Haible in:
22825         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22826         * lib/dfa.c (parse_bracket_exp): Simplify.
22828 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22830         dfa: simplify constraint-dependency checking
22831         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22832         (prev_other_constraint): Remove.
22833         (prev_newline_dependent, prev_letter_dependent):
22834         Simplify, to avoid an unnecessary bitwise AND operation.
22836         dfa: prefer functions and constants to macros
22837         * lib/dfa.c: Prefer constants to macros where either will do.
22838         (streq, isasciidigit, newline_constraint)
22839         (letter_constraint, other_constraint, succeeds_in_context)
22840         (prev_newline_constraint, prev_letter_constraint)
22841         (prev_other_constraint, prev_newline_dependent)
22842         (prev_letter_dependent, accepting, accepts_in_context):
22843         Now static functions instead of function-like macros.
22844         Use lower-case names accordingly.  All uses changed.
22846         dfa: narrow more local var scopes
22847         * lib/dfa.c: Move some more local decls down to nearer where
22848         they're needed.
22850 2016-12-31  Jim Meyering  <meyering@fb.com>
22852         dfa: narrow the scope of many local variables
22853         * lib/dfa.c: Now that we are no longer constrained to c89, move
22854         declarations of many variables (often indices) "down" into the
22855         scope(s) where used or to the point of definition.  This is a
22856         no-semantic-change diff.
22858 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22860         version-etc: new year
22861         * build-aux/gendocs.sh (version):
22862         * doc/gendocs_template:
22863         * doc/gendocs_template_min:
22864         * doc/gnulib.texi:
22865         * lib/version-etc.c (COPYRIGHT_YEAR):
22866         Update copyright dates by hand in templates and the like.
22867         * all files: Run 'make update-copyright'.
22869 2016-12-31  Eric Blake  <eblake@redhat.com>
22871         do-release-commit-and-tag: avoid shell syntax error
22872         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22873         contain spaces when rebasing.
22875         maint.mk: hoist gnulib_dir definition earlier
22876         * top/maint.mk (gnulib_dir): Move near top of file.
22878 2016-12-31  Jim Meyering  <meyering@fb.com>
22880         maint.mk: do not always evaluate intprops-related shell
22881         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22882         using gnulib_dir undefined (gnulib_dir is defined later in the
22883         file, which will be fixed separately), and besides, there is no
22884         need to incur the cost of this shell invocation for every single
22885         use of this .mk file.  Reported by Eric Blake in
22886         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22888 2016-12-30  Jim Meyering  <meyering@fb.com>
22890         maint.mk: improve sc_prohibit_intprops_without_use
22891         * top/maint.mk (_intprops_names): Don't hard-code the list of
22892         symbol names.  Instead, derive it on the fly.
22894 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22896         dfa: shorten sbit, success
22897         * lib/dfa.c (struct regex_syntax.sbit):
22898         (struct dfa.success): Use char, not int, for array elements, since
22899         they are all in the range 0..7.
22901         dfa: simplify multibyte_prop etc.
22902         This follows up on a change made when dfa.c was in grep, namely grep
22903         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22904         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22905         That earlier simplification allows for some more simplification
22906         and trimming down here.
22907         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22908         (struct lexer_state): New mamber brack.
22909         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22910         since they must be in the range 0..3 now.
22911         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22912         the brack member now supersedes them.
22913         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22914         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22915         (dfaparse): Remove unnecessary initializations of already-0 storage.
22916         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22917         (dfassbuild): No need to clear sup->mbcsets.
22919         dfa: minor performance tweak
22920         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22922         dfa: wrap charclass inside a struct
22923         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22924         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22925         about 5% faster, where list.txt is generated by 'aspell dump
22926         master | head -n 100000 >list.txt'.  See Bug#22239.
22927         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22928         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22929         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22930         Adjust to this, e.g., by using charclass * rather than charclass.
22931         All callers changed as needed.
22932         (copyset): Remove.  All uses changed to simple assignment.
22933         (parse_bracket_exp): Use zeroset instead of memset.
22935 2016-12-30  Jim Meyering  <meyering@fb.com>
22937         maint.mk: update list of intprops.h symbol names
22938         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22939         This avoids a false failure of the sc_prohibit_intprops_without_use
22940         rule in grep.
22942 2016-12-29  Eric Blake  <eblake@redhat.com>
22944         getopt: fix parallel test failure
22945         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22946         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22947         * tests/test-getopt-main.h (main): Use different file names
22948         in case test-getopt-gnu and test-getopt-posix run in parallel.
22950 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22952         xalloc: x2nrealloc check for ptrdiff_t overflow
22953         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22954         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22956 2016-12-24  Bruno Haible  <bruno@clisp.org>
22958         lock test: Fix performance problem on multi-core machines.
22959         * tests/test-lock.c (USE_VOLATILE): New macro.
22960         (struct atomic_int): New type.
22961         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22962         functions.
22963         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22964         as 'struct atomic_int'.
22965         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22966         reclock_checker_thread, test_recursive_lock): Use the new functions.
22967         Reported by Eric Blake in
22968         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22969         and by Pádraig Brady in
22970         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22972 2016-12-19  Bruno Haible  <bruno@clisp.org>
22974         vma-iter: Fix endless loop on 64-bit Windows.
22975         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22976         'unsigned long'.
22978 2016-12-19  Bruno Haible  <bruno@clisp.org>
22980         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22981         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22982         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22983         Invoke gt_TYPE_WINT_T instead.
22984         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22985         * modules/stdint (Files): Add m4/wint_t.m4.
22986         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22987         * modules/wctype-h (Makefile.am): Likewise.
22988         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22989         not only on MSVC.
22990         * lib/wctype.in.h (wint_t): Likewise.
22992 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22994         getopt-posix-tests: fix Makefile typo
22995         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22996         Fix typo: the last ‘_’ was missing in the name.
22997         I suspect that the typo explains this build failure:
22998         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22999         although I can’t reproduce the problem on Solaris 10 sparc.
23001 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23003         dfa: improve worst-case 'replace' performance
23004         See my note in Bug#22357#71.
23005         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
23006         (merge_constrained): New function, which is like
23007         the old 'merge' function, except with a new argument C2.
23008         Simplify the body by avoiding the need for different sections
23009         of code depending on whether one input is exhausted.
23010         (merge): Use the new function.
23011         (delete): Return the constraint of the deleted position,
23012         not the entire position.  Caller changed.
23013         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
23015 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23017         dfa: performance improvement for removal of epsilon closure
23018         See Bug#22357#32.
23019         * lib/dfa.c (delete): Use binary search to find deleted index.
23020         (replace): New function.  It replaces a position with the followed set.
23021         (epsclosure): Replace it with a new algorithm.  Update caller.
23023 2016-12-18  Bruno Haible  <bruno@clisp.org>
23025         Split tests for getopt-posix and getopt-gnu.
23026         * tests/test-getopt-posix.c: New file.
23027         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
23028         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
23029         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
23030         GNULIB_TEST_GETOPT_GNU.
23031         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
23032         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
23033         (Makefile.am): Test test-getopt-posix instead of test-getopt.
23034         * modules/getopt-gnu-tests: New file.
23035         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
23037 2016-12-18  Bruno Haible  <bruno@clisp.org>
23039         posix-modules: Add options for specific platforms.
23040         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
23041         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
23042         Invoke func_tmpdir. Filter out the excludes.
23044 2016-12-18  Bruno Haible  <bruno@clisp.org>
23046         getopt: Fix link error for users of getopt() in <unistd.h>.
23047         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
23048         __need_getopt is defined. Undefine all macros before defining them.
23049         * modules/getopt (Include): Clarify that including <unistd.h> is also
23050         OK.
23051         * tests/test-getopt.c: Add comment.
23053 2016-12-17  Bruno Haible  <bruno@clisp.org>
23055         getaddrinfo tests: Avoid compilation error on MSVC.
23056         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
23057         getaddrinfo on native Windows.
23059 2016-12-17  Bruno Haible  <bruno@clisp.org>
23061         getlogin, getlogin_r: Fix link errors on MSVC.
23062         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
23063         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
23064         (Link): New section.
23065         * modules/getlogin_r (Files): Add m4/getlogin.m4.
23066         (configure.ac): Require gl_LIB_GETLOGIN.
23067         (Link): New section.
23068         * NEWS: Mention the new link requirements.
23069         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
23070         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
23072 2016-12-17  Bruno Haible  <bruno@clisp.org>
23074         Un-deprecate the 'progname' module.
23075         * NEWS: Describe the appropriate use-cases of 'progname' versus
23076         'getprogname'. Based on discussion summary at
23077         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
23079 2016-12-17  Bruno Haible  <bruno@clisp.org>
23081         Reorganize NEWS a bit.
23082         * NEWS: Move some not so important changes away from section
23083         "Important Notes".
23085 2016-12-17  Bruno Haible  <bruno@clisp.org>
23087         tanhf: Avoid redefinition error on MSVC.
23088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
23089         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
23090         may be defined as an inline function.
23091         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
23092         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
23094 2016-12-17  Bruno Haible  <bruno@clisp.org>
23096         tanf: Avoid redefinition error on MSVC.
23097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
23098         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
23099         may be defined as an inline function.
23100         * modules/math (Makefile.am): Substitute REPLACE_TANF.
23101         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
23103 2016-12-17  Bruno Haible  <bruno@clisp.org>
23105         sqrtf: Avoid redefinition error on MSVC.
23106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
23107         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
23108         may be defined as an inline function.
23109         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
23110         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
23112 2016-12-17  Bruno Haible  <bruno@clisp.org>
23114         sinhf: Avoid redefinition error on MSVC.
23115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
23116         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
23117         may be defined as an inline function.
23118         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
23119         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
23121 2016-12-17  Bruno Haible  <bruno@clisp.org>
23123         sinf: Avoid redefinition error on MSVC.
23124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
23125         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
23126         may be defined as an inline function.
23127         * modules/math (Makefile.am): Substitute REPLACE_SINF.
23128         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
23130 2016-12-17  Bruno Haible  <bruno@clisp.org>
23132         logf: Avoid redefinition error on MSVC.
23133         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
23134         may be defined as an inline function.
23136 2016-12-17  Bruno Haible  <bruno@clisp.org>
23138         log10l: Avoid redefinition error on MSVC.
23139         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
23140         may be defined as an inline function.
23142 2016-12-17  Bruno Haible  <bruno@clisp.org>
23144         log10f: Avoid redefinition error on MSVC.
23145         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
23146         may be defined as an inline function.
23148 2016-12-17  Bruno Haible  <bruno@clisp.org>
23150         hypotl: Avoid redefinition error on MSVC.
23151         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
23152         may be defined as an inline function.
23154 2016-12-17  Bruno Haible  <bruno@clisp.org>
23156         hypotf: Avoid redefinition error on MSVC.
23157         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
23158         may be defined as an inline function.
23160 2016-12-17  Bruno Haible  <bruno@clisp.org>
23162         fmodl: Avoid redefinition error on MSVC.
23163         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
23164         may be defined as an inline function.
23166 2016-12-17  Bruno Haible  <bruno@clisp.org>
23168         fmodf: Avoid redefinition error on MSVC.
23169         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
23170         may be defined as an inline function.
23172 2016-12-17  Bruno Haible  <bruno@clisp.org>
23174         expf: Avoid redefinition error on MSVC.
23175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
23176         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
23177         may be defined as an inline function.
23178         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
23179         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
23181 2016-12-17  Bruno Haible  <bruno@clisp.org>
23183         coshf: Avoid redefinition error on MSVC.
23184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
23185         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
23186         may be defined as an inline function.
23187         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
23188         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
23190 2016-12-17  Bruno Haible  <bruno@clisp.org>
23192         cosf: Avoid redefinition error on MSVC.
23193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
23194         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
23195         may be defined as an inline function.
23196         * modules/math (Makefile.am): Substitute REPLACE_COSF.
23197         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
23199 2016-12-17  Bruno Haible  <bruno@clisp.org>
23201         atan2f: Avoid redefinition error on MSVC.
23202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
23203         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
23204         may be defined as an inline function.
23205         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
23206         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
23208 2016-12-17  Bruno Haible  <bruno@clisp.org>
23210         atanf: Avoid redefinition error on MSVC.
23211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
23212         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
23213         may be defined as an inline function.
23214         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
23215         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
23217 2016-12-17  Bruno Haible  <bruno@clisp.org>
23219         asinf: Avoid redefinition error on MSVC.
23220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
23221         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
23222         may be defined as an inline function.
23223         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
23224         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
23226 2016-12-17  Bruno Haible  <bruno@clisp.org>
23228         acosf: Avoid redefinition error on MSVC.
23229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
23230         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
23231         may be defined as an inline function.
23232         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
23233         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
23235 2016-12-17  Bruno Haible  <bruno@clisp.org>
23237         Avoid redefinition errors on MSVC.
23238         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
23239         the function may be defined as an inline function.
23240         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
23241         the function may be defined as an inline function.
23243 2016-12-17  Bruno Haible  <bruno@clisp.org>
23245         Avoid redefinition errors on MSVC.
23246         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
23247         * lib/unistd.in.h: Include <stdio.h> when necessary.
23249 2016-12-17  Bruno Haible  <bruno@clisp.org>
23251         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
23252         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
23253         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
23254         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
23255         WINT_MAX.
23257 2016-12-17  Bruno Haible  <bruno@clisp.org>
23259         Avoid autoconf warning.
23260         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
23261         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
23263 2016-12-17  Bruno Haible  <bruno@clisp.org>
23265         fpending: Revert workaround against Emacs bug.
23266         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
23267         The Emacs bug is fixed by Eli Zaretskii in
23268         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
23270 2016-12-17  Bruno Haible  <bruno@clisp.org>
23272         getlogin_r tests: Port to mingw.
23273         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
23274         regression introduced on 2014-05-19.
23276 2016-12-17  Bruno Haible  <bruno@clisp.org>
23278         getlogin: Port to newer mingw.
23279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
23280         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
23281         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
23282         HAVE_GETLOGIN.
23283         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
23284         HAVE_GETLOGIN.
23285         * doc/posix-functions/getlogin.texi: Mention the issue.
23286         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
23287         regression introduced on 2014-05-14.
23289 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23291         builtin-expect: improve port to IBM XL C
23292         Problem reported for z/OS by Daniel Richard G. in:
23293         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
23294         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23295         Test for <builtins.h> directly.
23297         builtin-expect: port to IBM XL C
23298         Problem reported for z/OS by Daniel Richard G. in:
23299         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
23300         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23301         Also allow __builtin_expect defined via a standard include file.
23303         regex: fix dependency
23304         Problem reported by Bruno Haible in:
23305         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
23306         * modules/regex: Depend on builtin-expect.
23308         builtin-expect: new module
23309         Fix fnmatch to use it.
23310         Problem reported for z/OS by Daniel Richard G.
23311         * lib/fnmatch.c (__builtin_expect):
23312         * lib/glob.c (__builtin_expect):
23313         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
23314         * lib/memmem.c (__builtin_expect) [!_LIBC]:
23315         * lib/scandir.c (__builtin_expect):
23316         * lib/strstr.c (__builtin_expect) [!_LIBC]:
23317         Remove macro; config.h now does this.
23318         * lib/gl_anytreehash_list1.h (add_to_bucket):
23319         * lib/regex_internal.h (BE):
23320         Assume __builtin_expect.
23321         * m4/builtin-expect.m4, modules/builtin-expect: New files.
23322         * modules/avltreehash-list, modules/fnmatch, modules/glob:
23323         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
23324         * modules/scandir, modules/strstr-simple:
23325         Depend on builtin-expect.
23327 2016-12-15  Bruno Haible  <bruno@clisp.org>
23329         init.sh: Add possibility to not delete temporary files.
23330         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
23331         to yes, don't erase the temporary directory.
23333 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23335         regex: fix integer-overflow bug in never-used code
23336         Problem reported by Clément Pit–Claudel in:
23337         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
23338         * lib/regex_internal.h: Include intprops.h.
23339         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
23340         behavior on integer overflow.
23341         * modules/regex (Depends-on): Add intprops.
23343         fpending: fix port to MinGW on Emacs
23344         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
23345         Problem reported by Eli Zaretskii in:
23346         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
23347         Is Plan 9 still a valid porting target, anyway?
23349 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23351         safe-alloc: use xalloc-oversized
23352         * lib/safe-alloc.c: Include xalloc-oversized.h.
23353         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
23354         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
23356         xalloc: do not exceed PTRDIFF_MAX
23357         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
23358         xalloc_oversized check, since objects larger than PTRDIFF_MAX
23359         bytes have pointer-subtraction problems.
23361         malloca: do not exceed PTRDIFF_MAX
23362         * lib/malloca.h: Include xalloc-oversized.
23363         (nmalloca): Use xalloc_oversized instead of rolling our own.
23364         * modules/malloca (Depends-on):
23365         * modules/relocatable-prog-wrapper (Depends-on):
23366         Add xalloc-oversized.
23368         quotearg: pacify GCC better
23369         * modules/quotearg (Depends-on): Add minmax, stdint.
23370         * lib/quotearg.c: Include minmax.h, stdint.h.
23371         (nslots): Now int, as there seems little point to going to extra
23372         work merely to support the INT_MAX slot, which nobody ever uses.
23373         (quotearg_n_options): Redo size-overflow checks to pacify GCC
23374         and to catch (mostly-theoretical) ptrdiff_t problems too.
23375         This can be done via one comparison.
23377 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
23379         xalloc-oversized: check for PTRDIFF_MAX too
23380         This avoids undefined behavior when subtracting pointers to
23381         objects containing more than PTRDIFF_MAX bytes.
23382         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
23383         Also return 1 if the result would exceed PTRDIFF_MAX>
23384         * modules/xalloc-oversized (Depends-on):
23385         Add stdint.
23387         dfa: fix glitches in previous commit
23388         Sorry, I don't know how I managed to commit the wrong version.
23389         * lib/dfa.c (MIN): Move up.
23390         (xpalloc): Now static.
23392         dfa: fix some unlikely integer overflows
23393         I found these while reviewing the recent Coverity-related fix.
23394         This patch changes part of dfa.c to prefer ptrdiff_t instead of
23395         size_t for object counts.  Using ptrdiff_t is the style typically
23396         used in Emacs; although it wastes a sign bit as sizes can never be
23397         negative, it makes -fsanitize=undefined more likely to catch
23398         integer overflows in index calculation, and nowadays the upside is
23399         typically more important than the downside.  Although perhaps the
23400         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
23401         of dfa.c already does, since it uses state_num which is signed),
23402         that is a bigger change and is not needed to fix the bugs I found.
23403         * lib/dfa.c: Include stdint.h and intprops.h.
23404         (TOKEN_MAX): New macro.
23405         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
23406         (charclass_index, parse_bracket_exp, addtok, insert, merge)
23407         (realloc_trans_if_necessary, free_mbdata):
23408         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
23409         This is safe because xpalloc checks that the sizes do not exceed
23410         either SIZE_MAX or PTRDIFF_MAX.
23411         (xpalloc): New function, mostly taken from Emacs.
23412         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
23413         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
23414         (charclass_index): Check for integer overflow in computing
23415         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
23416         added to it later.
23417         (alloc_position_set): Check for integer overflow.  On typical
23418         platforms this check has zero overhead, since the constant
23419         expression is false.
23420         (realloc_trans_if_necessary):
23421         Remove assertion, which I hope Coverity no longer needs.
23423         * modules/dfa (Depends-on): Add intprops, stdint.
23425 2016-12-12  Jim Meyering  <meyering@fb.com>
23427         dfa: add an assertion to avoid coverity false positive
23428         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
23429         warned that "newalloc1 - 2" could overflow.
23431 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
23433         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
23434         * dfa.h (DFA_CASE_FOLD): Remove.
23435         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
23437 2016-12-13  John W. Eaton  <gnu@jweaton.org>
23439         link: fix test to declare use of rename()
23440         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
23441         -Werror=implicit-function-declaration
23443 2016-12-12  Bruno Haible  <bruno@clisp.org>
23445         fpending: Port to native Windows with MSVC.
23446         * lib/fpending.c: Include stdio-impl.h.
23447         (__fpending): Include all known implementations. Err out if it's not
23448         ported.
23449         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
23450         * modules/fpending (Files): Add lib/stdio-impl.h.
23451         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
23453 2016-12-12  Bruno Haible  <bruno@clisp.org>
23455         stdioext: Port to native Windows with MSVC.
23456         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
23457         (struct _gl_real_FILE): New type.
23458         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
23459         Windows.
23460         * lib/fbufmode.c (fbufmode): Add code for native Windows.
23461         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
23462         other SystemV derived implementations.
23463         * lib/fpurge.c (fpurge): Likewise.
23464         * lib/freadable.c (freadable): Likewise.
23465         * lib/freadahead.c (freadahead): Likewise.
23466         * lib/freading.c (freading): Likewise.
23467         * lib/freadptr.c (freadptr): Likewise.
23468         * lib/freadseek.c (freadptrinc): Likewise.
23469         * lib/fseeko.c (fseeko): Likewise.
23470         * lib/fseterr.c (fseterr): Likewise.
23471         * lib/fwritable.c (fwritable): Likewise.
23472         * lib/fwriting.c (fwriting): Likewise.
23473         Reported by Gisle Vanem <gvanem@yahoo.no>.
23475 2016-12-11  Jim Meyering  <meyering@fb.com>
23477         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
23478         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
23479         to work with most shells, but not with the one provided by many
23480         Solaris 10 systems, so running configure with such a /bin/sh evokes
23481         e.g., "./configure: syntax error at line 33602: `(' unexpected".
23482         Reported by Assaf Gordon in
23483         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
23485 2016-12-10  Bruno Haible  <bruno@clisp.org>
23487         threadlib: Optimize out runtime test on Solaris >= 10.
23488         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
23489         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
23490         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
23492 2016-12-10  Bruno Haible  <bruno@clisp.org>
23494         stdint: Update doc about Solaris 9.
23495         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
23497 2016-12-09  Bruno Haible  <bruno@clisp.org>
23499         c-ctype tests: Fix link error on Solaris 9.
23500         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
23501         Reported at <https://savannah.gnu.org/bugs/?46827>.
23503 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23505         dfa: fix performance bug that recomputes trans
23506         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
23507         25 on-demand changes.  The bug caused build_state to reset all
23508         d->trans elements to -2 even when d->trans was already non-null.
23509         Use C99 style decls after statements in this function.
23511         same-inode: port to MinGW
23512         Here st_ino is always 0, so change the definition of SAME_INODE so
23513         that 1 means the two files are the same, 0 with st_ino != 0 means
23514         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
23515         reported by Bruno Haible (Bug#25146).
23516         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
23517         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
23519 2016-12-04  Bruno Haible  <bruno@clisp.org>
23521         javacomp-script: Support Java 7 and 8.
23522         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
23523         target-version 1.7, 1.8.
23525 2016-12-02  Daiki Ueno  <ueno@gnu.org>
23527         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
23528         GPLv2" rewriting.
23530 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
23532         * gnulib-tool (func_import): Adhere to the license guideline when
23533         rewriting the license text to "LGPLv3+ or GPLv2":
23534         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
23536 2016-12-02  Bruno Haible  <bruno@clisp.org>
23538         localcharset: Avoid theoretical buffer overrun.
23539         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
23540         return value from setlocale if it would lead to a buffer overrun.
23542 2016-12-01  Bruno Haible  <bruno@clisp.org>
23544         Relicense some modules under LGPLv2+.
23545         Kevin Cernekee's approval is in
23546         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
23547         * modules/fseterr (License): Change to LGPLv2+.
23548         * modules/mbchar (License): Likewise.
23549         * modules/mbiter (License): Likewise.
23550         * modules/mbsnlen (License): Likewise.
23551         * modules/wcwidth (License): Likewise.
23553 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23555         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
23556         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
23557         OS/2 kLIBC.
23559 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23561         alphasort, scandir: Port to OS/2 kLIBC
23562         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
23563         declaration.
23564         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
23566 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23568         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
23569         * lib/relocatable.c (relocate): Do not touch pathname if it is started
23570         with '/@unixroot'.
23572 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23574         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
23575         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
23576         OS/2 kLIBC unless TCPV40HDRS is defined.
23578 2016-11-29  Jim Meyering  <meyering@fb.com>
23580         dfa: avoid new infinite loop
23581         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
23582         * lib/dfa.c (dfastate): When constructing a new state table, we could
23583         initially declare that we had found a match, and later find that
23584         constraints eliminate that possibility, yet continue to use the
23585         now stale "matched" indicator.  That would lead to an infinite loop.
23586         The solution is to update "matched" when necessary.
23587         Introduced by commit v0.1-983-g403adf1.
23589 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23591         dfa: avoid match middle in multibyte character
23592         * lib/dfa.c (transit_state): If fails in matching single byte characters
23593         on a state including period expression in non-UTF8 multibyte locales,
23594         skip trailing bytes.
23595         (dfa_supported): Revert previous change.
23597 2016-11-27  Jim Meyering  <meyering@fb.com>
23599         dfa: avoid false match in non-UTF8 multibyte locales
23600         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23601         as "not supported" so that callers will resort to using regex-based
23602         matcher.  This will surely hurt performance, but correctness trumps
23603         performance here, and the affected locales are less and less relevant,
23604         these days.  See grep's bug report https://bugs.gnu.org/24975.
23606 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23608         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23609         * lib/ptsname_r.c: Include the appropriate headers.
23610         [__sun]: Delete sys/sysmacros.h include.
23611         [_AIX || __osf__]: Likewise.
23612         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23614 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23616         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23617         * lib/md4.c (md4_process_bytes): The existing define is made internal
23618         in recent versions of glibc, so also use this new public define.
23619         * lib/md5.c (md5_process_bytes): Likewise.
23620         * lib/sha1.c (sha1_process_bytes): Likewise.
23621         * lib/sha256.c (sha256_process_bytes): Likewise.
23622         * lib/sha512.c (sha512_process_bytes): Likewise.
23624 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23626         maint: use a more standard return from mbrtowc test
23627         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23628         from the test program as this often indicates an
23629         unhandled case in the test program.
23630         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23631         (gl_MBRTOWC_SANITYCHECK): Likewise.
23632         (gl_MBRTOWC_NULL_ARG2): Likewise.
23633         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23635 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23637         freopen: work around glibc bug with closed fd
23638         Work around glibc bug#15589, where freopen mishandles the case
23639         where stdin etc. are already closed.
23640         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23641         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23642         instead of __need_FILE, as the latter does not work with glibc.
23643         Include <fcntl.h>, for open flags.
23644         (rpl_freopen): Work around glibc bug.
23645         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23646         * modules/freopen (Depends-on): Add fcntl-h.
23647         * tests/test-freopen.c (main): Test for bug.
23649 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23651         fnmatch: fix typo introduced on 2016-08-17
23652         This fixes the port to non-GCC compilers that lack __builtin_expect.
23653         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23655         dfa: simplify with new function fillset
23656         * lib/dfa.c (fillset): New function.
23657         Use it for clarity when applicable.
23659         dfa: fix glitches with on-demand states
23660         Also, adjust commentary to better match new code.
23661         Some of these glitches predate the recent change.
23662         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23663         only non-initial states.
23664         (dfastate): Rename locals to better match new roles.
23665         Move them into nested scopes if this is easy.
23666         Omit unnecessary calls to zeroset.
23667         Simplify test for whether to throw in the positions of state 0.
23668         Omit C99-ism (decl after statement) since Gawk still wants C89.
23669         (build_state): Omit unnecessary test and assignment.
23670         Fix some confusion that counted transition tables inaccurately
23671         and could cause a memory leak.
23672         (dfaexec_main): Redo to make it clearer to the compiler that
23673         -1 and -2 are the only negative state numbers here.
23675 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23677         dfa: addition of new state on demand
23678         * src/dfa.c (dfastate): Add argument UC, the current input character.
23679         Fill only a group including the character in transition table.
23680         (realloc_trans_if_necessary): Add the dummy state which means that a
23681         transition table is assigned but the next state is not assigned.
23682         (build_state): Return the next state.  All callers updated.
23683         (transit_state_singlebyte): If we get the dummy state,
23684         fill the transition table.
23685         (dfaexec_main): Handle the dummy state.
23686         (free_mbdata, dfafree): Consider the dummy state.
23688 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23690         srclist: sync with released gettext
23691         * config/srclist.txt: Set "release" option to the files under
23692         $GETTEXT.
23694 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23696         srclist: add "release" option
23697         * config/srclist.txt: Change the format so that the first column
23698         of each line points to the top-level directory of the source
23699         archive.
23700         * config/srclist-update: Accept "release" option that checks files
23701         from the most recently tagged revision in the source archive.
23703 2016-11-21  Bruno Haible  <bruno@clisp.org>
23705         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23706         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23707         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23708         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23709         Inline and remove member function 'rpl ()' of the wrapper struct.
23711 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23713         dfa: fix logic typo
23714         Problem reported by Stephane Chazelas (Bug#24973).
23715         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23716         non-simple locales like fr_FR to be treated as simple.
23718 2016-11-20  Jim Meyering  <meyering@fb.com>
23720         fix test driver leaks: exclude, malloc, realloc
23721         * tests/test-exclude.c (main): Fix trivial leak.
23722         * tests/test-malloc-gnu.c (main): Likewise.
23723         * tests/test-realloc-gnu.c (main): Likewise.
23724         With these changes, grep's tests are now leak free.
23725         I.e., running them with ASAN elicits no failure:
23726           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23727             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23729 2016-11-11  Bruno Haible  <bruno@clisp.org>
23731         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23732         * modules/libunistring: (License): Change from LGPL to
23733         "LGPLv3+ or GPLv2".
23734         * modules/libunistring-optional: Likewise.
23735         * modules/unicase/*: Likewise.
23736         * modules/uniconv/*: Likewise.
23737         * modules/unictype/*: Likewise.
23738         * modules/unigbrk/*: Likewise.
23739         * modules/unilbrk/*: Likewise.
23740         * modules/uniname/*: Likewise.
23741         * modules/uninorm/*: Likewise.
23742         * modules/unistdio/*: Likewise.
23743         * modules/unistr/*: Likewise.
23744         * modules/uniwbrk/*: Likewise.
23745         * modules/uniwidth/*: Likewise.
23747 2016-11-12  Bruno Haible  <bruno@clisp.org>
23749         Relicense some modules under LGPLv2+.
23750         Paul Eggert's approval is in
23751         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23752         Eric Blake's approval is in
23753         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23754         Ludovic Courtès's approval is in
23755         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23756         * modules/isnand-nolibm (License): Change to LGPLv2+.
23757         * modules/isnanf-nolibm (License): Likewise.
23758         * modules/isnanl-nolibm (License): Likewise.
23760 2016-11-19  Bruno Haible  <bruno@clisp.org>
23762         Relicense some modules under LGPLv2+.
23763         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23764         modules/vasnprintf.
23765         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23766         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23767         All other significant changes to the files in lib/ of these modules
23768         are from me.
23769         * modules/memcmp2 (License): Change to LGPLv2+.
23770         * modules/amemxfrm (License): Likewise.
23771         * modules/fpieee (License): Likewise.
23772         * modules/fpucw (License): Likewise.
23773         * modules/frexp-nolibm (License): Likewise.
23774         * modules/frexpl-nolibm (License): Likewise.
23775         * modules/printf-frexp (License): Likewise.
23776         * modules/printf-frexpl (License): Likewise.
23777         * modules/printf-safe (License): Likewise.
23778         * modules/signbit (License): Likewise.
23780 2016-11-17  Bruno Haible  <bruno@clisp.org>
23782         Enable Unicode decoder safety unconditionally.
23783         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23784         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23785         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23786         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23787         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23788         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23789         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23790         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23791         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23792         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23793         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23794         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23795         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23796         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23797         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23798         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23799         * lib/unistr/u32-next.c (u32_next): Likewise.
23800         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23801         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23802         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23803         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23804         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23805         CONFIG_UNICODE_SAFETY tests unconditionally.
23806         * tests/unistr/test-u32-mblen.c (main): Likewise.
23807         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23808         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23809         * tests/unistr/test-u32-next.c (main): Likewise.
23810         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23811         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23812         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23813         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23814         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23815         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23816         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23817         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23818         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23819         * lib/unistr/u16-check.c (u16_check): Update comment.
23820         * NEWS: Mention the changes that callers should be aware of.
23822 2016-11-19  Bruno Haible  <bruno@clisp.org>
23824         relocatable-prog-wrapper: Fix breakage on Cygwin.
23825         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23826         (Depends-on): Remove intprops.
23827         * lib/relocwrapper.c: Update dependency tree.
23828         (strerror): Undefine.
23829         * build-aux/install-reloc (func_create_wrapper): Do not compile
23830         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23832 2016-11-19  Bruno Haible  <bruno@clisp.org>
23834         strerror: Make it compile in C++ mode.
23835         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23837 2016-11-15  Pedro Alves  <palves@redhat.com>
23839         sys_time: add gnulib::timeval for C++
23840         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23841         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23842         timeval macro.
23844 2016-11-14  Pedro Alves  <palves@redhat.com>
23846         snippet/c++defs: fix real-floating arg functions in C++ mode
23847         Also, define isfinite, isinf, isnan, signbit in the gnulib
23848         namespace instead of in the global namespace.
23849         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23850         (_GL_END_NAMESPACE): New.
23851         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23852         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23853         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23854         instead of in the global namespace.
23855         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23856         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23857         of in the global namespace.
23859 2016-11-13  Jim Meyering  <meyering@fb.com>
23861         strftime: don't use __THROW
23862         Each use of __THROW would provoke this from gcc-7-to-be:
23864           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23865             on unit local functions [-Wattributes]
23866           static int iso_week_days (int, int) __THROW;
23867           ^~~~~~
23868         * lib/strftime.c (__THROW): Don't define.
23869         Remove each use of __THROW.
23870         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23871         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23873 2016-11-14  Paul Eggert  <eggert@union>
23875         obstack: port to gcc -fcheck-pointer-bounds
23876         Problem found by 'make check' failure on bleeding-edge coreutils
23877         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23878         6.2.0-5ubuntu12), configured via "./configure
23879         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23880         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23881         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23882         New macro, copied from fts_.h.
23883         (struct _obstack_chunk.contents): Use it.
23885 2016-11-14  Eric Blake  <eblake@redhat.com>
23887         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23889         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23891 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23893         strptime: fix compile error in recent change
23894         * lib/strptime.c (__strptime_internal): Fix ported code.
23896 2016-11-11  Bruno Haible  <bruno@clisp.org>
23898         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23899         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23900         (func_import): Extend determination of license_incompatibilities.
23901         (func_create_testdir): Extend table of license compatibility. Handle
23902         also the licenses GPLv3+, GPL, LGPLv3+.
23904 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23906         strftime: tune %q
23907         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23909         Merge strftime.c changes from glibc
23910         This incorporates:
23911         2007-10-16 [BZ #5184] Add tzset_called argument
23912         2008-06-13 [BZ #6612] pass reference to tzset_called around
23913         2009-10-30 Implement Burmese language locale for Myanmar
23914         2010-01-09 Add support for XPG7 testing
23915         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23916         2015-10-20 Convert miscellaneous function definitions to prototype style
23917         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23918         it anyway and this lessens the difference between gnulib and glibc.
23919         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23920         (__THROW): Define if standard headers do not.
23921         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23922         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23923         Declare with __THROW.
23924         (__strftime_internal): Rename from strftime_case_. Add arg for
23925         whether tzset is called.  All uses changed.  Call tzset at most
23926         once.  Allow %OC, for Burmese.
23927         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23928         Don't assume values are in range.
23930 2016-11-12  Eric Blake  <eblake@redhat.com>
23932         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23933         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23934         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23935         different value.
23937 2006-11-12  Pedro Alves  <palves@redhat.com>
23939         Fix gnulib C++ namespace support and std::frexp
23940         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23941         _GL_CXXALIASWARN.
23943 2006-11-12  Pedro Alves  <palves@redhat.com>
23945         GNULIB_NAMESPACE::func need not pull in rpl_func
23946         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23947         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23948         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23949         struct instead of a function pointer.
23951 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23953         manywarnings: fix -Wno-missing-field-initializers detection
23954         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23955         to be independent of -Wunused-variable.  I.E. ensure the latter
23956         warning doesn't occur so that detection of the former is accurate.
23958 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23960         strftime,strptime: support %q to represent the quarter
23961         * lib/strftime.c (strftime_case_): Add %q case.
23962         * lib/strptime.c (__strptime_internal): Likewise.
23963         * tests/test-strftime.c (quarter_test): A new test case.
23965 2016-11-03  Eric Blake  <eblake@redhat.com>
23967         bootstrap: Fix get_version() for AIX 5.3
23968         * build-aux/bootstrap (get_version): Factor out sed script, since
23969         indented comments choke AIX 5.3 sed.
23970         Reported-by: Michael Felt <aixtools@gmail.com>
23972 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23974         intprops: port to older XL C
23975         Problem reported by Alexander Samoilov in:
23976         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23977         http://savannah.nongnu.org/bugs/?49448
23978         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23979         Define to 1 only for XL C 12.1 or later, since this bug
23980         occurs in XL C for AIX 6.0 but not in 12.1.
23982 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23984         backupfile: initialize default suffix within the implementation
23985         * lib/backupfile.c (find_backup_file_name): Initialize the
23986         global variable here, to simplify usage, and to only call
23987         getenv() when needed.
23989 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23991         futimens: remove FIXME for old Linux kernels
23992         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23993         this in 2012" FIXME, like that for utimensat.
23995         utimensat: remove FIXME for old Linux kernels
23996         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23998         this in 2012" FIXME, by assuming the file system bug is absent
23999         unless demonstrated to be present.  We no longer need to worry
24000         about Linux kernel 2.6.32 when building with newer kernels.
24002 2016-10-16  Bruno Haible  <bruno@clisp.org>
24004         qsort_r: Fix macrology for platforms that lack the function.
24005         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
24006         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
24007         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
24008         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
24009         not exist.
24010         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
24011         the function exists.
24012         * modules/qsort_r: Add comments.
24014 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24016         sys_types: fix Texinfo typos
24017         * doc/glibc-functions/gnu_dev_major.texi:
24018         * doc/glibc-functions/gnu_dev_makedev.texi:
24019         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
24021 2016-10-26  John David Anglin  <dave.anglin@bell.net>
24023         getprogname: port to HP-UX
24024         See Bug#24805.
24025         * lib/getprogname.c (getprogname) [__hpux]: Port.
24026         * tests/test-getprogname.c (STREQ) [__hpux]:
24027         Special-case for HP-UX limitations on program name length.
24029 2016-10-20  Bruno Haible  <bruno@clisp.org>
24031         Update doc about target platforms.
24032         * doc/gnulib-intro.texi (Target Platforms): Update list.
24034 2016-10-15  Bruno Haible  <bruno@clisp.org>
24036         opendir, readdir, closedir: Relicense under LGPLv2+.
24037         * modules/opendir (License): Change to LGPLv2+.
24038         * modules/readdir (License): Likewise.
24039         * modules/closedir (License): Likewise.
24041 2016-10-16  Bruno Haible  <bruno@clisp.org>
24043         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
24045         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
24046         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
24047         HAVE_DECL_STRERROR_R.
24049 2016-10-16  Bruno Haible  <bruno@clisp.org>
24051         Make the 'argp' module work without the 'error' module.
24052         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
24054 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
24056         diffseq: restore TOO_EXPENSIVE heuristic
24057         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
24058         (Bug#24715).  The simplest solution is to restore the
24059         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
24060         using a higher threshold to avoid Bug#16848 on smaller files.
24061         * lib/diffseq.h (struct context): Restore member too_expensive.
24062         (struct partition): Restore members lo_minimal, hi_minimal.
24063         (diag, compareseq): Restore arg find_minimal.  All uses changed.
24064         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
24065         1993 to make 'diff' run faster (but not as well) on large inputs,
24066         but use a threshold of 4096 instead of the old 256.
24067         * lib/fstrcmp.c (strcmp_bounded):
24068         * lib/git-merge-changelog.c (compute_differences):
24069         Adjust to diffseq.h changes.
24071 2016-10-22  Bruno Haible  <bruno@clisp.org>
24073         iconv: Avoid compilation error when bootstrapping GNU libiconv.
24074         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
24075         declaration yet, define ICONV_CONST to empty.
24077 2016-10-15  Bruno Haible  <bruno@clisp.org>
24079         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
24080         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
24081         module.
24083 2016-10-16  Bruno Haible  <bruno@clisp.org>
24085         system-quote tests: Avoid compiler warning on AIX.
24086         * tests/test-system-quote-child.c (fopen): Redefine like the system's
24087         <stdio.h> does.
24089 2016-10-16  Bruno Haible  <bruno@clisp.org>
24091         Fix some "gcc -Wall" warnings.
24092         * tests/test-ffsl.c (main): Use variable x, not i.
24093         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
24094         freopen.
24095         * tests/test-sethostname1.c (main): Explicitly ignore the return value
24096         of sethostname.
24098 2016-10-16  Bruno Haible  <bruno@clisp.org>
24100         gnulib-tool: Make --create-testdir on all modules work again.
24101         * gnulib-tool (func_create_testdir): Don't include the
24102         non-recursive-gnulib-prefix-hack module.
24104 2016-10-21  Daiki Ueno  <ueno@gnu.org>
24106         libunistring: change the maintainer to 'all'
24107         * modules/gen-uni-tables, modules/libunistring:
24108         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
24109         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
24110         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
24111         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
24112         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
24113         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
24114         * modules/uniwidth/*: Change the maintainer to 'all'.
24116 2016-10-16  Bruno Haible  <bruno@clisp.org>
24118         Simplify "configure: checking ..." messages.
24119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
24120         AC_MSG_NOTICE.
24121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24123 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
24125         quotearg-tests: pacify gcc -Wall
24126         Problem reported by Bruno Haible in:
24127         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
24128         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
24129         * tests/test-quotearg.h: ... from here.
24131 2016-10-20  Pádraig Brady  <P@draigBrady.com>
24133         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
24134         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
24135         Needed on Centos <= 4.
24137 2016-10-20  Jim Meyering  <meyering@fb.com>
24139         printf.m4: fix a bug in detecting printf %j support
24140         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
24141         uintmax_t is defined in neither stdint.h nor inttypes.h.
24142         Before, this macro might have mistakenly set
24143         gl_cv_func_printf_sizes_c99=yes on such a system.
24144         Spotted by Zev Weiss.
24146 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
24148         sched: substitute HAVE_SYS_CDEFS_H too
24149         Problem reported by Tom G. Christensen in:
24150         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
24151         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
24152         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
24154 2016-10-19  Pádraig Brady  <P@draigBrady.com>
24156         quotearg: never write beyond the returned length
24157         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
24158         scan of the string when we initially encounter a single quote when
24159         shell quoting, so that if we then switch to a more concise quoting method
24160         we will not have written beyond that returned length.
24161         This is significant for sh-quote, which has separate routines
24162         to determine the length and do the actual quoting.
24163         * tests/test-quotearg.h: Reinstate the buffer bounds checking
24164         now that we never write more than the returned length.
24166 2016-10-18  Bruno Haible  <bruno@clisp.org>
24168         getprogname tests: Avoid failure in packages that use libtool.
24169         * tests/test-getprogname.c (main): Strip "lt-" prefix.
24170         Based on a patch by Jim Meyering.
24172 2016-10-16  Bruno Haible  <bruno@clisp.org>
24174         getprogname: Fix test failure on Cygwin. Comments.
24175         * lib/getprogname.h: Add comments.
24176         * lib/getprogname.c: Add comments. Fix #elif indentation.
24177         * tests/test-getprogname.c (main): On Cygwin, expect a result without
24178         ".exe" suffix.
24180 2016-10-16  Bruno Haible  <bruno@clisp.org>
24182         Make sure the libunistring detection rejects older versions with a
24183         known bug.
24184         * modules/unistr/u8-strtok (configure.ac): Bump required version.
24185         * modules/unistr/u16-strtok (configure.ac): Likewise.
24186         * modules/unistr/u32-strtok (configure.ac): Likewise.
24188 2016-10-18  Bruno Haible  <bruno@clisp.org>
24190         sh-quote, system-quote: revert regression of unit test.
24191         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
24192         * tests/test-system-quote-main.c (check_one): Likewise.
24194 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24196         quotearg: fix stale tests
24197         * tests/test-quotearg.c [locale_results]: Add the missing str7
24198         entries to the expected results.
24199         * tests/test-system-quote-main.c (check_one): Don't enforce that we
24200         don't write beyond the returned length, since that's no longer the
24201         case if we switch to a more concise quoting style.
24202         * tests/test-sh-quote.c (check_one): Likewise.
24203         (main): Adjust for the new more concise quoting style.
24204         Reported by Bruno Haible.
24206 2016-10-16  Jim Meyering  <meyering@fb.com>
24208         non-recursive-gnulib-prefix-hack: fix inconsequential typo
24209         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
24210         to "$1".  This macro is always invoked with $1 == lib.
24211         Spotted by Bruno Haible
24213 2016-10-16  Bruno Haible  <bruno@clisp.org>
24215         Fix a test crash.
24216         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
24217         fails.
24219 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24221         test-limits-h: suppress -Woverlength-strings
24222         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
24224 2016-10-15  Bruno Haible  <bruno@clisp.org>
24226         gettime, timespec, utimens: Relicense under LGPL.
24227         * modules/gettime (License): Change to LGPL.
24228         * modules/timespec (License): Likewise.
24229         * modules/utimens (License): Likewise.
24231 2016-10-14  Bruno Haible  <bruno@clisp.org>
24232             Pádraig Brady  <P@draigBrady.com>
24234         canonicalize-lgpl: Support the case path_max > INT_MAX.
24235         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
24236         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
24238 2016-10-13  Jim Meyering  <meyering@fb.com>
24240         getprogname: IBM z/OS: avoid NULL-dereference
24241         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
24242         upon strdup failure.
24244 2016-10-12  Jim Meyering  <meyering@fb.com>
24246         test-stdint: use _GL_VERIFY rather than "verify" for some tests
24247         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
24248         and an abbreviated diagnostic rather than verify with the full one,
24249         because the full-length strings would evoke warnings from gcc with
24250         -Woverlength-strings.
24252 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24254         stdint: port SIZE_MAX to glibc s390
24255         Problem reported by Eric Blake in:
24256         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
24257         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
24258         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
24259         correct type, if possible.
24261 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
24263         getprogname: port to IBM z/OS
24264         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
24266 2016-10-11  Jim Meyering  <meyering@fb.com>
24268         maint: remove stray space after "." in AC_DEFINE comment.
24269         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
24270         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24272 2016-10-05  Jim Meyering  <meyering@fb.com>
24274         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24275         * lib/long-options.c (parse_long_options): Add a break statement
24276         to avoid this new warning/failure:
24277         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24278           --create-testdir --dir=/t/x --with-tests --test long-options
24279         ../../gllib/long-options.c: In function 'parse_long_options':
24280         ../../gllib/long-options.c:66:12: error: this statement may \
24281           fall through [-Werror=implicit-fallthrough]
24282                    (*usage_func) (EXIT_SUCCESS);
24283                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24285 2016-10-05  Jim Meyering  <meyering@fb.com>
24287         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24288         Testing this module would fail when using GCC 7 like this:
24289         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24290           --dir=/tmp/x --with-tests --test utimecmp
24291         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24292         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24293           [-Werror=bool-operation]
24294                          time_t s = src_s & ~ (res == 2 * BILLION);
24295                                             ^
24296         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24297           [-Werror=bool-operation]
24298                src_s &= ~ (res == 2 * BILLION);
24299                         ^
24300         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24301         Instead, make it explicit that we intend to apply it to 0 or 1.
24303 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24305         dfa: save memory for states
24306         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
24307         states if dfa has a lot of caches.
24309 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
24311         wchar, wctype-h: fix for MinGW 3.22.2
24312         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
24313         special invocation, to fix issues with MinGW 3.22.2 wchar.h
24314         when included from <string.h>.
24315         * lib/wctype.in.h [__MINGW32__]: Add special invocation
24316         convention for MinGW 3.22.2, to solve issues with their
24317         wctype.h when included from <ctype.h>.
24319 2016-10-05  Jim Meyering  <meyering@fb.com>
24321         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24322         * lib/long-options.c (parse_long_options): Add a break statement
24323         to avoid this new warning/failure:
24324         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24325           --create-testdir --dir=/t/x --with-tests --test long-options
24326         ../../gllib/long-options.c: In function ‘parse_long_options’:
24327         ../../gllib/long-options.c:66:12: error: this statement may \
24328           fall through [-Werror=implicit-fallthrough]
24329                    (*usage_func) (EXIT_SUCCESS);
24330                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24332         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24333         Testing this module would fail when using GCC 7 like this:
24334         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24335           --dir=/tmp/x --with-tests --test utimecmp
24336         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24337         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24338           [-Werror=bool-operation]
24339                          time_t s = src_s & ~ (res == 2 * BILLION);
24340                                             ^
24341         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24342           [-Werror=bool-operation]
24343                src_s &= ~ (res == 2 * BILLION);
24344                         ^
24345         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24346         Instead, make it explicit that we intend to apply it to 0 or 1.
24348 2016-10-03  Pádraig Brady  <P@draigBrady.com>
24350         quotearg: minimize shell quoting using double quotes
24351         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
24352         quote in encountered then use double quotes (c style quoting)
24353         when possible, as it simplifies the quoting.
24354         * tests/test-quotearg-simple.c: Add test cases.
24355         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
24356         for the fact we now may write beyond the returned length.
24358 2016-10-02  Jim Meyering  <meyering@fb.com>
24360         vasnprintf.c: avoid spurious warning from GCC 7
24361         The presence of cpp directives renders this "FALLTHROUGH" comment
24362         ineffective, so does not suppress the -Wimplicit-fallthrough warning
24363         from GCC 7 built from git on 2016-10-02.
24364         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
24365         directives, so that it takes effect once again.  This is clearly
24366         not a proper change, and I will revert it once this bug is fixed:
24367         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
24369 2016-10-01  Jim Meyering  <meyering@fb.com>
24371         getprogname: correct the test for a __progname variable
24372         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
24373         and AC_LINK_IFELSE to check for a global __progname.  If found,
24374         define HAVE_VAR___PROGNAME.
24375         * lib/getprogname.c (getprogname): Reflect the new name of the
24376         feature- checked preprocessor symbol:
24377         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
24379 2016-09-28  Jim Meyering  <meyering@fb.com>
24381         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
24382         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
24383         fall-through case with a /* fallthrough */ comment.
24385         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
24386         * lib/dfa.c (dfassbuild): Mark the end of this case with a
24387         /* fallthrough */ comment.
24389         getprogname: avoid __progname vs program_invocation_short_name pitfall
24390         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
24391         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
24392         not with Fedora 24's glibc-2.23.1-10.
24393         * lib/getprogname.c (__progname): Move this declaration down...
24394         (getprogname): ... into the #elif block where used, and make it
24395         explicitly "extern".
24397         getprogname: port to OpenBSD 5.1
24398         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
24399         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
24400         * modules/getprogname (configure.ac): Move most of this code...
24401         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
24402         increment serial number, and add a test for __progname.
24403         https://bugs.gnu.org/24562
24404         Reported by Nelson H. F. Beebe.
24406 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24408         sched: port to GCC 6.2.1 on macOS Sierra
24409         Problem reported by Denis Davydov in:
24410         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
24411         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
24412         Include <sys/cdefs.h> before <sched.h>.
24413         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
24414         so that we needn’t worry about the sched.h include bug here.
24415         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
24416         and include it before <sched.h> if it exists, when
24417         checking for <sched.h>.
24419         tests/init.sh: port Alpine fix to AIX 7.1
24420         * tests/init.sh (compare_): When attempting to use diff -U3,
24421         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
24422         diff -u not outputting a space after leading '+', as the users
24423         of 'compare' should not be that picky about its output format.
24424         In the AIX 7.1 case, return with diff exit status (or with 2 if
24425         trouble), instead of some random nonzero exit status.
24426         * tests/test-init.sh (test_compare): Remove space after leading
24427         '+', so that AIX 7.1 'diff' passes the test.
24429 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24431         nl_langinfo: pacify GCC
24432         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
24433         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
24435         stdint: also set GL_GENERATE_LIMITS_H
24436         Problem reported by Jim Meyering in:
24437         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
24438         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
24440         limits-h, stdint: Don't assume extensions, fix typo
24441         * m4/limits-h.m4 (gl_LIMITS_H):
24442         * m4/stdint.m4 (gl_STDINT_H):
24443         Don't assume AC_USE_SYSTEM_EXTENSIONS.
24444         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
24445         reported by Jim Meyering in:
24446         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
24448 2016-09-21  Jim Meyering  <meyering@fb.com>
24450         getprogname: port to AIX
24451         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
24452         and strdup to obtain a short program name string.  Using code from
24453         Bruno Haible and an idea from Bastien ROUCARIÈS, in
24454         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24455         Assaf Gordon reported that this new file would fail to compile on
24456         AIX-7.1 32bit.
24458 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24460         extensions: fix typo in comment
24461         * m4/extensions.m4: Sync from Autoconf master.
24463         stdint: support new _WIDTH macros
24464         * doc/posix-headers/stdint.texi: Document this.
24465         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
24466         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
24467         support for INTMAX_WIDTH, etc. as well as for support for just C99.
24468         * modules/stdint (Depends-on): Add limits-h.
24469         (Makefile.am): Substitute HAVE_C99_STDINT_H.
24470         * modules/stdint-tests (Depends-on): Add extensions, so that
24471         INTMAX_MAX etc. are defined.
24472         * tests/test-stdint.c: Verify the new macros.
24474         limits-h: new module
24475         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
24476         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
24477         * doc/posix-headers/limits.texi: Document new module.
24478         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
24479         * modules/limit-h-tests, tests/test-limits-h.c: New files.
24481         stdio: don't redefine __USE_MINGW_ANSI_STDIO
24482         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
24483         if it is already defined.  Apparently GNU Emacs relies on this.  See:
24484         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
24486 2016-09-15  Eric Blake  <eblake@redhat.com>
24488         sys_types: avoid glibc 2.25 warnings about major()
24489         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
24490         older autoconf.
24491         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
24492         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
24493         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
24494         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
24496         mountlist: include sysmacros.h for glibc
24497         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
24498         AC_HEADER_MAJOR.
24499         * lib/mountlist.c (includes): Use correct headers.
24501 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24503         extensions: port to more ISO C TSes
24504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
24505         master, to add support for more recent ISO C TRs and TSes.
24507 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24509         intprops: new macro TYPE_WIDTH
24510         * lib/intprops.h (TYPE_WIDTH): New macro.
24511         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
24512         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
24513         * lib/parse-datetime.y (parse_datetime2):
24514         Use it.
24516         extensions: port to recent ISO C TRs
24517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24518         Sync from Autoconf master, to add support for recent ISO C TRs.
24519         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
24520         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
24521         the MinGW option is not an extension.
24523 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24525         dfa: port to Solaris 9
24526         Problems reported by Tom G. Christensen in:
24527         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
24528         * modules/dfa (Depends-on): Add isblank.
24529         * modules/dfa-tests (dfa_match_aux_LDADD):
24530         Rename from test_stat_LDADD, to fix typo.
24531         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
24533 2016-09-10  Jim Meyering  <meyering@fb.com>
24535         strverscmp: avoid link failure on OS X
24536         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
24537         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
24539 2016-08-16  Jim Meyering  <meyering@fb.com>
24541         dfa: new module, importing grep's DFA matcher
24542         Since grep's DFA matcher is now being used by two gnulib-enabled
24543         projects, grep and sed, it makes sense to version-control its
24544         sources and unit tests in one place: here.
24545         * modules/dfa: New module.
24546         * modules/dfa-tests: New file.
24547         * lib/dfa.c: New file, from grep.
24548         * lib/dfa.h: Likewise.
24549         * lib/localeinfo.c: Likewise.
24550         * lib/localeinfo.h: Likewise.
24551         * tests/dfa-match-aux.c: Likewise.
24552         * tests/dfa-invalid-char-class.sh: Likewise.
24553         * tests/dfa-match.sh: Likewise, with minor changes.
24554         * MODULES.html.sh (Misc): Add "dfa" to this list.
24556 2016-09-09  Jim Meyering  <meyering@fb.com>
24558         getprogname-tests: don't depend on assert-h
24559         * modules/getprogname-tests (Depends-on): Remove assert-h.
24560         It was not needed, and in fact would cause build failure for
24561         coreutils on some systems.  Reported by Assaf Gordon in https:
24562         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
24564 2016-09-07  Jim Meyering  <meyering@fb.com>
24566         getprogname-tests: work also when EXEEXT is nonempty
24567         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
24568         * tests/test-getprogname.c (main): Use it.
24569         Suggested by Gisle Vanem.
24571 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
24573         getprogname: fix errors in previous change
24574         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
24575         s/program_invocation_name/base/
24576         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
24578 2016-09-08  Pádraig Brady  <P@draigBrady.com>
24580         parse-datetime: restrict debug output to input string
24581         * lib/parse-datetime.y (parse_datetime2): If we parse
24582         all of the input but determine it's invalid, ensure
24583         we don't output the now invalid input pointer.
24584         This issue was seen with `date -d 'now +1'`.
24586 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24588         flexmember: new macro FLEXALIGNOF
24589         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24590         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24591         this macro.  Update comments.
24593 2016-09-07  Jim Meyering  <meyering@fb.com>
24595         getprogname: port to systems with __argv (mingw, msvc)
24596         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24597         last_component: more general than open coding it with hard-coded "/".
24598         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24599         * modules/getprogname (Depends-on): Add dirname-lgpl.
24600         (configure.ac): Check for __argv in <stdlib.h>.
24601         * modules/getprogname-tests: New file.
24602         * tests/test-getprogname.c: New file.
24603         Suggested by Gisle Vanem in
24604         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24606 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24608         flexmember: port better to GCC + valgrind
24609         With a char[] flexible array member in a struct with nontrivial
24610         alignment, GCC-generated code can access past the end of the
24611         array, because GCC assumes there are padding bytes to get the
24612         struct aligned.  So the common idiom of malloc (offsetof (struct
24613         s, m), n) does not properly allocate an n-byte trailing member, as
24614         malloc’s argument should be the next multiple of alignof (struct s).
24615         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24616         Although C11 apparently permits this GCC optimization (i.e., there
24617         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24618         See the thread containing:
24619         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24620         * lib/flexmember.h: New file.
24621         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24622         * lib/localename.c, lib/time_rz.c:
24623         Include flexmember.h.
24624         * lib/fnmatch_loop.c (struct patternlist):
24625         * lib/localename.c (struct hash_node):
24626         Use FLEXIBLE_ARRAY_MEMBER.
24627         * lib/fnmatch_loop.c (EXT):
24628         * lib/fts.c (fts_alloc):
24629         * lib/glob.c (glob_in_dir):
24630         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24631         * lib/localename.c (gl_lock_define_initialized):
24632         * lib/time_rz.c (tzalloc):
24633         Use FLEXSIZEOF instead of offsetof.
24634         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24635         Check that the size of the struct can be taken.
24636         * modules/flexmember (Files): Add lib/flexmember.h.
24637         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24638         Add flexmember.
24640 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24642         getprogname: port to Solaris 10
24643         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24644         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24645         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24647         stdalign: correct mistake in alignof doc
24648         Problem reported by Joseph Myers in:
24649         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24650         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24651         alignof(S) where S is a structure containing a flexible array
24652         member.  The Gnulib substitute does not support this, but C11 does.
24654 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24656         main.mk: remove sc_program_name, since there is no more need to
24657         use set_program_name in tools (getprogname is enough for most
24658         of the cases).
24659         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24660         * top/maint.mk (sc_program_name): Remove.
24662 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24664         Port tests away from progname, since modules that need the
24665         program name already depend on getprogname.
24666         * modules/acl-tests (Depends-on): Remove progname.
24667         * modules/argmatch (Depends-on): Likewise.
24668         * modules/argmatch-tests (Depends-on): Likewise.
24669         * modules/argp-tests (Depends-on): Likewise.
24670         * modules/argp-version-etc-tests (Depends-on): Likewise.
24671         * modules/array-list-tests (Depends-on): Likewise.
24672         * modules/array-oset-tests (Depends-on): Likewise.
24673         * modules/avltree-list-tests (Depends-on): Likewise.
24674         * modules/avltree-oset-tests (Depends-on): Likewise.
24675         * modules/avltreehash-list-tests (Depends-on): Likewise.
24676         * modules/carray-list-tests (Depends-on): Likewise.
24677         * modules/copy-file-tests (Depends-on): Likewise.
24678         * modules/exclude-tests (Depends-on): Likewise.
24679         * modules/fchownat-tests (Depends-on): Likewise.
24680         * modules/fdopendir-tests (Depends-on): Likewise.
24681         * modules/filenamecat-tests (Depends-on): Likewise.
24682         * modules/fstatat-tests (Depends-on): Likewise.
24683         * modules/fstrcmp-tests (Depends-on): Likewise.
24684         * modules/linked-list-tests (Depends-on): Likewise.
24685         * modules/linkedhash-list-tests (Depends-on): Likewise.
24686         * modules/mkdirat-tests (Depends-on): Likewise.
24687         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24688         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24689         * modules/obstack-printf-tests (Depends-on): Likewise.
24690         * modules/openat-tests (Depends-on): Likewise.
24691         * modules/parse-datetime-tests (Depends-on): Likewise.
24692         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24693         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24694         * modules/quotearg-simple-tests (Depends-on): Likewise.
24695         * modules/quotearg-tests (Depends-on): Likewise.
24696         * modules/rbtree-list-tests (Depends-on): Likewise.
24697         * modules/rbtree-oset-tests (Depends-on): Likewise.
24698         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24699         * modules/spawn-pipe-tests (Depends-on): Likewise.
24700         * modules/system-quote-tests (Depends-on): Likewise.
24701         * modules/uniname/uniname-tests (Depends-on): Likewise.
24702         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24703         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24704         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24705         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24706         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24707         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24708         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24709         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24710         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24711         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24712         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24713         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24714         * modules/unlinkat-tests (Depends-on): Likewise.
24715         * modules/version-etc-tests (Depends-on): Likewise.
24716         * modules/xalloc-die-tests (Depends-on): Likewise.
24717         * modules/xmemdup0-tests (Depends-on): Likewise.
24718         * modules/xprintf-posix-tests (Depends-on): Likewise.
24719         * modules/xvasprintf-tests (Depends-on): Likewise.
24720         * tests/test-argmatch.c: Do not include progname.h.
24721         (main) Stop calling set_program_name.
24722         * tests/test-argp-version-etc.c: Likewise.
24723         * tests/test-argp.c: Likewise.
24724         * tests/test-argv-iter.c: Likewise.
24725         * tests/test-array_list.c: Likewise.
24726         * tests/test-array_oset.c: Likewise.
24727         * tests/test-avltree_list.c: Likewise.
24728         * tests/test-avltree_oset.c: Likewise.
24729         * tests/test-avltreehash_list.c: Likewise.
24730         * tests/test-carray_list.c: Likewise.
24731         * tests/test-copy-acl.c: Likewise.
24732         * tests/test-copy-file.c: Likewise.
24733         * tests/test-exclude.c: Likewise.
24734         * tests/test-fchownat.c: Likewise.
24735         * tests/test-fdopendir.c: Likewise.
24736         * tests/test-filenamecat.c: Likewise.
24737         * tests/test-fstatat.c: Likewise.
24738         * tests/test-fstrcmp.c: Likewise.
24739         * tests/test-linked_list.c: Likewise.
24740         * tests/test-linkedhash_list.c: Likewise.
24741         * tests/test-mkdirat.c: Likewise.
24742         * tests/test-nonblocking-pipe-main.c: Likewise.
24743         * tests/test-nonblocking-socket-main.c: Likewise.
24744         * tests/test-obstack-printf.c: Likewise.
24745         * tests/test-openat.c: Likewise.
24746         * tests/test-parse-datetime.c: Likewise.
24747         * tests/test-pipe-filter-gi1.c: Likewise.
24748         * tests/test-pipe-filter-gi2-main.c: Likewise.
24749         * tests/test-pipe-filter-ii1.c: Likewise.
24750         * tests/test-pipe-filter-ii2-main.c: Likewise.
24751         * tests/test-quotearg-simple.c: Likewise.
24752         * tests/test-quotearg.c: Likewise.
24753         * tests/test-rbtree_list.c: Likewise.
24754         * tests/test-rbtree_oset.c: Likewise.
24755         * tests/test-rbtreehash_list.c: Likewise.
24756         * tests/test-sameacls.c: Likewise.
24757         * tests/test-set-mode-acl.c: Likewise.
24758         * tests/test-spawn-pipe-main.c: Likewise.
24759         * tests/test-system-quote-main.c: Likewise.
24760         * tests/test-unlinkat.c: Likewise.
24761         * tests/test-version-etc.c: Likewise.
24762         * tests/test-xalloc-die.c: Likewise.
24763         * tests/test-xfprintf-posix.c: Likewise.
24764         * tests/test-xmemdup0.c: Likewise.
24765         * tests/test-xprintf-posix.c: Likewise.
24766         * tests/test-xvasprintf.c: Likewise.
24767         * tests/uniname/test-uninames.c: Likewise.
24768         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24769         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24770         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24771         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24772         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24773         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24774         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24775         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24776         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24777         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24778         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24779         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24780         * tests/test-c-stack.c: (program_name): Do not define.
24781         (main): Do not set program_name.
24782         * tests/test-closein.c: Likewise.
24783         * tests/test-xstrtol.c: Likewise.
24784         * tests/test-yesno.c: Likewise.
24786 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24788         Port modules to use getprogname explicitly, instead of requiring
24789         progname to be used (or program_name to be provided).
24790         * lib/argmatch.c: Do not include progname.h.
24791         [TEST] (program_name): Do not define.
24792         [TEST] (main): Call getprogname instead of using program_name.
24793         * lib/c-stack.c: Do not include progname.h.
24794         (program_name): Do not define.
24795         (die): Call getprogname instead of using program_name.
24796         * lib/chdir-long.c: Do not include progname.h.
24797         [TEST_CHDIR] (main): Do not set program_name.
24798         * lib/error.c [!_LIBC]: Include progname.h.
24799         [!_LIBC] (program_name): Define using getprogname.
24800         * lib/euidaccess.c: Do not include progname.h.
24801         [TEST] (main): Do not set program_name.
24802         * lib/git-merge-changelog.c: Include getprogname.h instead of
24803         progname.h.
24804         (usage): Call getprogname instead of using program_name.
24805         (main): Likewise.  Stop calling set_program_name.
24806         * lib/group-member.c: Do not include progname.h.
24807         [TEST] (main): Do not set program_name.
24808         * modules/argmatch (Depends-on): Add getprogname.
24809         * modules/c-stack (Depends-on): Likewise.
24810         * modules/error (Depends-on): Likewise.
24811         * modules/git-merge-changelog (Depends-on): Likewise.
24812         Also remove progname.
24814 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24816         * NEWS: Document the deprecation of the 'progname' module.
24818 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24820         getprogname: new module
24821         This provides a LGPL module for getting the name of the current
24822         program, using the same API found on *BSD systems.
24823         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24824         * modules/getprogname: New files.
24825         * MODULES.html.sh (Misc): Add getprogname.
24827 2016-09-02  Jim Meyering  <meyering@fb.com>
24829         manywarnings: add -fno-common
24830         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24831         to the list.  Quoting the manual, "Compiling with -fno-common is
24832         useful on targets for which it provides better performance, or if
24833         you wish to verify that the program will work on other systems that
24834         always treat uninitialized variable declarations this way [putting
24835         it in the data section]."  If diffutils had been using this sooner,
24836         it would have prevented this duplicate declaration issue:
24837         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24839 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24841         parse-datetime: Fix typo.
24842         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24844 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24846         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24847         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24848         GCC 5 and 6 that have __builtin_sub_overflow but not
24849         __builtin_sub_overflow_p.  With the recent changes, these
24850         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24851         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24852         since the former needs just one runtime comparison whereas the
24853         latter needs two.
24855         strverscmp: sync with glibc
24856         Although this doesn't exactly synchronize with glibc
24857         byte-for-byte, it makes the code behave the same as glibc.
24858         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24859         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24860         difference shouldn't matter in practical use.  All uses changed
24861         back to isdigit.
24862         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24863         (next_state): Now unsigned char array; redo elements.
24864         (result_type): Now signed char array; redo elements.
24865         (__strverscmp): Fix glibc bug 9913 by using new states.
24866         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24868 2016-08-29  Jim Meyering  <meyering@fb.com>
24870         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24871         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24872         similarly to how it was done to intprops.h.
24874 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24876         intprops.h: port recent changes to GCC 6.2.0
24877         * lib/intprops.h (__has_builtin): Move earlier.
24878         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24879         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24880         the last argument can be null.  All uses changed.
24881         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24882         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24883         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24884         and it's not clear which GCC versions it works for.
24885         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24886         its definiens.
24888         intprops.h: use __typeof__ with GCC 7
24889         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24890         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24891         This avoids computing the expression's value (which might overflow!).
24893 2016-08-29  Jim Meyering  <meyering@fb.com>
24895         intprops.h, xalloc-oversized.h: work with gcc 7
24896         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24897         __builtin_mul_overflow each accept a NULL pointer as the third
24898         argument.  However in gcc 7, that is no longer accepted.
24899         Instead, one must use the "_p"-suffixed names, with which, the
24900         third parameter is no longer a pointer.
24901         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24902         the definition: not true for gcc 7 and subsequent.
24903         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24904         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24905         Provide new definitions for gcc 7 and subsequent.
24906         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24907         that works with gcc-7.
24909         intprops.h: fix missing-backslash problems
24910         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24911         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24913 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24915         intprops: fix paren typo on old platforms
24916         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24917         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24918         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24919         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24920         && !defined LLONG_MAX]:
24921         Remove stray paren.
24923         intprops: port to OpenVMS
24924         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24925         * doc/posix-headers/limits.texi: Document the problem.
24926         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24927         Define if not already defined.
24929 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24931         parse-datetime: improve debug implementation
24932         Follow-up to commit 12ad79069 ("add optional debug printing").
24933         Improve parse-datetime's debug implementation: remove macros,
24934         replace global debug flag variable with a function parameter,
24935         use nstrftime for formatting.
24936         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24937         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24938         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24939         debug flag. Existing interface 'parse_datetime' left unmodified.
24940         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24941         (struct parser_control): add 'parse_datetime_debug' member variable.
24942         (parse_datetime): Call new function 'parse_datetime2' without debug.
24943         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24944         pc.parse_datetime_debug variable as needed.
24945         (to_year): Accept new flags parameter, instead of using global variable.
24946         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24947         use struct 'debug' variable instead of global variable.
24948         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24949         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24950         correspnding functions directly instead of using macros.
24951         * modules/parse-datetime: Add gnulib's strftime module.
24953 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24955         c-strcase-tests: port to EBCDIC
24956         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24957         which assume ASCII encoding semantics to run only in ASCII
24958         mode, as they fail in EBCDIC.
24960         sigpipe-tests: fix typo
24961         * tests/test-sigpipe.sh: C, not B.
24963 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24965         canonicalize-lgpl: fix errno after malloca fails
24966         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24967         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24968         * lib/canonicalize-lgpl.c (__realpath):
24969         Don't assume malloca sets errno on failure.
24971 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24973         strtod: port errno handling to z/OS
24974         * lib/strtod.c (strtod): Save and restore errno more reliably.
24976 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24978         strtod: port to z/OS
24979         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24980         implementation.
24982 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24984         strtod: port to z/OS
24985         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24986         implementation.
24988         regex, string: rename to avoid '__string'
24989         * lib/regex.h, lib/string.in.h: Do not use the identifier
24990         '__string', as it is effectively reserved by string.h on z/OS.
24992         c-strcase-tests, wcwidth-tests: depend on c-ctype
24993         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24994         Add c-ctype.
24996 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24998         thread: port to z/OS
24999         * lib/glthread/thread.c, lib/glthread/thread.h:
25000         Rudimentary gl_thread support for z/OS.
25002         maint: port tests to z/OS errno behavior
25003         * tests/test-nonblocking-reader.h:
25004         * tests/test-nonblocking-writer.h:
25005         Accommodate z/OS errno code preferences. (I believe this should
25006         still be within spec; IBM is good at following the letter if not
25007         the spirit of such things.)
25009         maint: preprocessor changes to support z/OS
25010         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
25011         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
25012         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
25013         * tests/test-nonblocking-pipe.h:
25015         fclose, strstr-simple, wchar: port to z/OS
25016         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
25017         Changes to the Autoconf M4 code to support z/OS.  Note that
25018         fclose() is broken in a different way on z/OS than it is on other
25019         systems, thus the special-case in fclose.m4.
25021         iconv_open-utf-tests, iconv-tests: port to EBCDIC
25022         * tests/test-iconv-utf.c, tests/test-iconv.c:
25023         Added appropriately conditional #pragmas so that the test strings
25024         in test-iconv-utf.c are correctly interpreted in ASCII instead of
25025         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
25026         addressed in a more portable way by simply rewriting all the ASCII
25027         literal characters as octal escapes, but then you would lose the
25028         partial readability that the strings have now. Also, iconv_open()
25029         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
25031         c-strcase-tests, wcwidth-tests: port to EBCDIC
25032         * tests/test-c-strcasecmp.c: Include c-ctype.h.
25033         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
25034         * tests/test-wcwidth.c: Likewise.
25036 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25038         stdbool: don't require _Bool for C++
25039         Problem reported by David Seifert in:
25040         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
25041         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
25042         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
25043         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
25044         stricter about checking that bool and _Bool are compatible in C.
25046 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25048         getdelim: remove dependency on realloc-posix
25049         * lib/canonicalize-lgpl.c (alloc_failed)
25050         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
25051         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
25052         Use __set_errno where needed, for consistency.
25053         * lib/getdelim.c (alloc_failed): New function.
25054         (getdelim): Use it.
25056 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
25058         parse-datetime: add optional debug printing
25059         Print parsing information, warnings, and errors to stderr.
25060         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
25061         * lib/parse-datetime.y:
25062         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
25063         (PROGRESS*): Same as DEBUG, for progress reporting.
25064         (dbg_printf): Print message to stderr, with 'date' prefix.
25065         (struct parser_control): Add 'debug_*_seen' variables.
25066         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
25067         (debug_print_current_time, debug_print_relateive_time): Prints the
25068         current/relative date/time value of parser_control.
25069         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
25070         (to_year): Warn about 2-digit year parsing.
25071         (yylex):   Warn about unrecognized words.
25072         (get_effective_timezone): Returns current timezone in minutes.
25073         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
25074         clearly and unambigiously as possible.
25075         (debug_mktime_not_ok): Print detailed information about failed
25076         date/time values.
25077         (parse_datetime): Add DEBUG messages for failures, warnings. Add
25078         PROGRESS messages for status messages.
25079         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
25081 2016-08-06  Jim Meyering  <meyering@fb.com>
25083         tests/init.sh: exclude dash with bad "local" semantics
25084         * tests/init.sh (gl_shell_test_script_): Add a function to
25085         eliminate a shell like "dash" (unlike bash, zsh) that has
25086         surprising/risky "local var='...'" semantics.  Inspired by
25087         the problem and discussion in https://bugs.gnu.org/24116#11.
25089 2016-08-02  Ján Tomko  <jtomko@redhat.com>
25091         maint.mk: expand the prohibit_doubled_word regex
25092         This check has a static list of words that are checked for
25093         repetitions.  Expand it before running the perl script to
25094         avoid using expensive captures.  This decreases the cost
25095         for libvirt from 1.66s to 0.66s.
25096         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
25097         (sc_prohibit_doubled_word): Use it.
25099 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25101         useless-if-before-free: skip non-matching lines early
25102         * build-aux/useless-if-before-free: First match each line with the
25103         simple/quick /\bif\b/ and reject if there is no match. This often
25104         saves the cost of the much more involved regular expression.
25105         For libvirt, this decreases the cost from 1.44s to 1.02s.
25107 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25109         maint.mk: speed up sc_po_check
25110         sc_po_check would skip files based on their names, or on the
25111         existence of files with derived names. Rewrite it to use perl
25112         instead of shell to make the check faster.
25113         * top/maint.mk (perl_translatable_files_list_): Define.
25114         (sc_po_check): Use it.
25116 2016-07-30  Ján Tomko  <jtomko@redhat.com>
25118         maint.mk: speed up require_config_h_first
25119         Instead of spawning three processes per file,
25120         rewrite the check in perl and run it once for all the files.
25121         * top/maint.mk (perl_config_h_first_): Define.
25122         (sc_require_config_h_first): Use it in place of shell code.
25124 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25126         maint.mk: speed up sc_po_check
25127         sc_po_check would skip files based on their names, or on the
25128         existence of files with derived names. Rewrite it to use perl
25129         instead of shell to make the check faster.
25130         * top/maint.mk (perl_translatable_files_list_): Define.
25131         (sc_po_check): Use it.
25133 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25135         obstack: pacify GCC 6 with -Wnull-dereference
25136         Problem reported by Assaf Gordon in:
25137         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
25138         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
25139         Declare with __attribute_noreturn__.
25140         * lib/obstack.h (__attribute_noreturn__): New macro.
25142 2016-07-13  Eric Blake  <eblake@redhat.com>
25144         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
25145         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
25146         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
25148 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
25150         doc: mention glibc SSIZE_MAX buglet
25151         * doc/posix-headers/limits.texi (limits.h): Document the bug.
25153 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
25155         printf-posix: Fix mingw build
25156         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
25157         expression for detecting C symbol prefixes but forgot to qoute square
25158         brackets in the command line arguments for grep.  That way when
25159         building with mingw the condition was false although it ought to be
25160         true instead.  In particular scenarios this led to the following
25161         compile error:
25163             Cannot export rpl_printf: symbol not found
25164             Cannot export rpl_scanf: symbol not found
25165             collect2: error: ld returned 1 exit status
25167         Fix this by properly quoting square brackets.
25169 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25171         mktime: call tzset as per POSIX
25172         Problem reported by Ludovic Courtès in:
25173         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
25174         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
25175         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
25177 2016-06-26  Pádraig Brady  <P@draigBrady.com>
25179         fts: handle readdir() errors
25180         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
25181         but also upon error when it will also set errno.  Therefore
25182         flag the error case from readdir().  We treat the case where
25183         no items are read the same as if the dir can't be accessed,
25184         i.e. by setting fts_errno to FTS_DNR.
25186 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
25188         intprops: port better to GCC 7
25189         GCC 7 __builtin_add_overflow supports a new usage form, where the
25190         last argument is a null pointer, and which merely returns 1 if an
25191         overflow would occur.  This is a constant expression if all
25192         arguments are constants, and should generate faster code when code
25193         needs to be generated.
25194         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
25195         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
25196         Use builtin operations if available.
25197         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
25198         operations are available, as it's almost surely faster.
25200 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
25202         intprops-test: port to GCC 6
25203         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
25204         since the bug is not fixed in GCC 6.1.
25206 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
25208         xalloc-oversized: port to GCC 7; fewer warnings
25209         GCC 7 will have a better way to deal with integer overflow.
25210         Plus, fix a warnings problem reported by Tim Ruehsen in:
25211         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
25212         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
25213         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
25214         For GCC 5, use __xalloc_oversized if both args are constants,
25215         or if pedantic.
25217 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
25219         regex: port to Sun C
25220         Reported by Daiki Ueno.
25221         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
25222         __restrict, in prototype.  This fixes a problem I introduced in
25223         the 2016-02-19 merge from glibc.
25225 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25227         stdbool: Restore __bool_true_false_are_defined check
25228         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
25229         __bool_true_false_are_defined is still defined, even with C++11.
25231 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
25233         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
25234         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
25236 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25238         Use GCC_LINT, not lint
25239         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
25240         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
25241         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
25242         Document problem with lint and _Noreturn.
25243         * lib/diffseq.h (IF_LINT, IF_LINT2):
25244         * lib/fts.c (sccsid):
25245         * lib/getndelim2.c (IF_LINT):
25246         * lib/gl_anylinked_list2.h (gl_linked_iterator)
25247         (gl_linked_iterator_from_to):
25248         * lib/gl_anytree_list2.h (gl_tree_iterator)
25249         (gl_tree_iterator_from_to):
25250         * lib/gl_anytree_oset.h (gl_tree_iterator):
25251         * lib/gl_array_list.c (gl_array_iterator)
25252         (gl_array_iterator_from_to):
25253         * lib/gl_array_oset.c (gl_array_iterator):
25254         * lib/gl_carray_list.c (gl_carray_iterator)
25255         (gl_carray_iterator_from_to):
25256         * lib/idcache.c:
25257         * lib/inet_ntop.c (IF_LINT):
25258         * lib/regcomp.c (build_charclass_op, create_tree):
25259         * lib/regex_internal.c (re_acquire_state)
25260         (re_acquire_state_context):
25261         * lib/trigl.c (rcsid):
25262         * lib/trim.c (IF_LINT):
25263         * lib/vasnprintf.c (IF_LINT):
25264         * lib/verify.h (assume):
25265         Treat GCC_LINT like lint.
25267 2016-05-29  Bruno Haible  <bruno@clisp.org>
25269         secure_getenv: Port to many more platforms.
25270         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
25271         functions.
25272         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
25273         for non-BSD Unix platforms and for native Windows.
25274         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
25275         Prompted by a request from Nikos Mavrogiannopoulos.
25277 2016-05-27  Eric Blake  <eblake@redhat.com>
25279         canonicalize: Fix broken probe for realpath.
25280         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
25281         in logic introduced in 54615b95.
25283 2016-05-26  Eric Blake  <eblake@redhat.com>
25285         unsetenv: relax to LGPLv2+
25286         * modules/unsetenv (License): Match setenv license.
25288 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
25290         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
25291         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
25292         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
25293         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
25294         (commonarg, dirargs, dirs, infoarg, generate_ascii)
25295         (generate_html, generate_info, generate_tex, outdir)
25296         (source_extra, split, srcfile, texarg): Move above 'version'.
25297         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
25299 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25301         manywarnings: update for GCC 6.1
25302         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
25303         Add GCC 6.1 options that apply to C.
25304         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
25305         do not apply to C, are obsolescent, etc.
25307 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
25309         glob: size_t overflow checks
25310         * lib/glob.c (__has_builtin): New macro.
25311         (size_add_wrapv, glob_use_alloca): New static functions.
25312         (glob, glob_in_dir): Check for size_t overflow in several places,
25313         and fix some size_t checks that were not quite right.
25315         glob: don't assume INT_MAX < SIZE_MAX
25316         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
25317         latter is not portable to (probably theoretical) hosts where
25318         SIZE_MAX <= INT_MAX.
25320 2016-05-09  Bruno Haible  <bruno@clisp.org>
25322         Fix undefined behaviour in gettext.h.
25323         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
25324         pointer's value after the storage it points to has been freed.
25325         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
25326         Spotted by Coverity.
25328 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
25330         git-version-gen: avoid undefined shift
25331         Problem reported by Mosè Giordano in:
25332         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
25333         * build-aux/git-version-gen: Avoid undefined behavior if invoked
25334         with --prefix or --fallback but without a later argument.  While
25335         we're at it, omit unnecessary quotes.
25337 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
25339         glob: merge glibc changes into lib/glob.c
25340         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
25341         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
25342         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
25343           struct dirent [BZ #19779]
25344         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
25345           callback gl_readdir
25346         2015-10-20 Convert miscellaneous function definitions to prototype style
25347         2015-10-20 Convert 113 more function definitions to prototype style
25348           (files with assertions)
25349         2015-06-12 Fix getlogin_r namespace (bug 18527).
25350         2014-02-10 Use glibc_likely instead __builtin_expect.
25351         2013-10-20 When glob pattern contains a trailing slash match only
25352           directories. Fixes bug 10278.
25353         2013-09-04 glob: silence -Wattribute warnings
25354         2013-06-07 Avoid use of "register" as optimization hint.
25355         2012-09-25 Use size_t instead of int for internal variables in glob
25356           (bug 14621)
25357         2011-07-20 Check for overflows in expressions
25358         2011-05-28 Remove unused variable
25359         2011-05-22 Add a few more alloca size checks
25360         2010-03-27 Whitespace fixes
25361         2010-03-27 Fix one more issue with the glob patch
25362         2010-03-24 Fix glob with empty pattern
25363         2008-05-27 Remove useless more "if" tests before "free"
25364         * modules/glob (Depends-on): Add stdint.
25366 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25368         mktime: port to stricter signed overflow checking
25369         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
25370         (long_int): Require width for INT_MAX * 3 * (seconds per year),
25371         instead of merely for INT_MAX * 2.  In practice platforms that
25372         do the latter also do the former.
25373         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
25374         (shr): New static function, replacing SHR.  All uses changed.
25375         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
25376         and TIME_T_MAX.  All uses changed.
25377         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
25378         Use long_int, not time_t.
25379         (long_int_avg): New static function, replacing time_t_avg.
25380         All uses changed.  Round toward positive infinity, as that
25381         generates slightly better code.
25382         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
25383         by INT_ADD_WRAPV.
25384         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
25385         (convert_time): New static function.
25386         (ranged_convert): Use it
25387         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
25388         Use simpler test for loop exit.
25389         (__mktime_internal): Store negative of guessed offset, to simplify
25390         overflow checking.  Remove no-longer-needed test for small time_t
25391         overflows.
25393         mktime: speed up DEBUG_MKTIME benchmarks
25394         Call tzset just once, at the start, rather than for every test
25395         case.  This lets us measure the CPU cost of mktime as opposed to
25396         that of tzset.  This is relevant when TZ is not set and glibc is
25397         being used.  This speeds up tests by a factor of 40 on my Fedora
25398         23 x86-64 platform.
25399         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
25400         to call tzset and as a sanity check.  Later on, use localtime_r
25401         instead of localtime.
25403         mktime: resurrect DEBUG_MKTIME testing
25404         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
25405         Include <string.h>, for strcmp.
25407         mktime: simplify DEBUG_MKTIME
25408         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
25409         Simplify later usage accordingly.
25411         Port mktime_internal offset to unsigned time_t
25412         This avoids some assumptions about wraparound arithmetic on
25413         signed integer overflow.
25414         * lib/mktime-internal.h (mktime_offset_t): New type.
25415         (mktime_internal): Use it in decl.
25416         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
25418         * lib/mktime.c (__mktime_internal, localtime_offset):
25419         * lib/timegm.c (timegm): Use it.
25420         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
25421         (gl_FUNC_MKTIME): Require it.
25423 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25425         xstrtol: prohibit monstrosities like "1bB"
25426         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
25427         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
25428         "B" only if the first suffix needs a base.
25429         * tests/test-xstrtol.sh: Test this.
25431 2016-04-21  Pádraig Brady  <P@draigBrady.com>
25433         xstrtod: reinstate setting of *result upon ERANGE
25434         * lib/xstrtod.c (XSTRTOD): The user may decide to use
25435         the returned limits upon ERANGE, so allow and document that.
25437 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
25439         xstrtod: modify *result only if no errors
25440         * lib/xstrtod.c (XSTRTOD).
25442 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25444         btowc: document problems in C locale
25445         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
25446         with mbrtowc.  See: http://bugs.gnu.org/23269#32
25448 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25450         mktime: improve integer overflow checking
25451         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
25452         (WRAPV): Remove; no longer needed.
25453         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
25454         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25455         Remove.  Use intprops.h defns instead.
25456         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
25457         Use bool for Boolean, for clarity.
25458         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
25459         detect integer overflow.
25460         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
25462         intprops: check two's complement assumption
25463         Suggested by Eric Blake in:
25464         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
25465         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
25466         short, int, long, and (if available) long long are two's complement.
25467         * modules/intprops (Depends-on): Add 'verify'.
25469         intprops, mktime, strtol: assume two's complement
25470         These macros were not portable to every conforming C11 ones'
25471         complement platform.  It's not worth the hassle of porting to some
25472         platforms that use ones' complement or signed magnitude, as such
25473         platforms are almost purely theoretical nowadays and porting even
25474         to some of them makes the code harder to review for little
25475         practical benefit.  Problem reported by Florian Weimer in:
25476         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
25477         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25478         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
25479         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
25480         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25481         (TYPE_SIGNED_MAGNITUDE):
25482         Remove.  All uses rewritten to assume two's complement, which is
25483         all we can reasonably test nowadays anyway.
25484         * top/maint.mk (_intprops_names): Remove the removed macros.
25486 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25488         stdint: port to strict C11 left shift
25489         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
25490         Pacify clang -Wshift-negative-value, which should be an issue only
25491         on clang setups where stdint.h does not conform to C11 or to C++11.
25492         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
25494 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25496         mbrtowc: work around glibc bug#19932
25497         Fix mbrtowc so that it never returns -1 in the C locale,
25498         as this conflicts with a future version of POSIX
25499         http://austingroupbugs.net/view.php?id=663#c2738
25500         and causes problems with GNU grep: http://bugs.gnu.org/23234
25501         See glibc bug 19932:
25502         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
25503         * doc/posix-functions/mbrlen.texi (mbrlen):
25504         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25505         Document the glibc bug.
25506         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
25507         Include hard-locale.h, locale.h.
25508         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
25509         if the bug is possible.
25510         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
25511         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
25512         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
25513         * modules/mbrtowc (Depends-on): Add hard-locale.
25514         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
25515         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
25516         * tests/test-mbrtowc5.sh: New file.
25518 2016-04-03  Pedro Alves  <palves@redhat.com>
25520         stdint: detect good enough pre-C++11 stdint.h in C++ mode
25521         When gnulib is configured in C++ mode for a system with a working C99
25522         implementation of stdint.h that predates C++11, gnulib ends up
25523         substituting stdint.h anyway.  This works on most targets, but on e.g.,
25524         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
25525         MinGW is LLP64.  Instead of trying to detect the right types, detect
25526         good-enough-pre-C++11 stdint.h and in such case define
25527         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
25528         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
25529         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
25530         conforms to C99.  If it does, check whether it hides symbols
25531         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
25532         does, define those macros in config.h.
25534 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25536         argp: merge changes from glibc
25537         Among other things, this should fix problems found by a Coverity
25538         scan and reported by Andrei Borzenkov:
25539         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
25540         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
25541         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
25542         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
25543         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
25544         * lib/argp.h:
25545         Merge changes from glibc.
25546         * tests/test-argp-2.sh: Adjust to match new behavior.
25548 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
25550         stddef: support configuring with g++
25551         Problem reported by Ángel González in:
25552         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
25553         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
25554         Do not define if _GCC_MAX_ALIGN_T is defined.
25556 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25558         test-framework-sh: minor cleanups
25559         * tests/init.sh (testdir_prefix_): Output a trailing newline,
25560         since strictly speaking POSIX requires this.
25561         (setup_): Do not use the variable 'fail', as that makes the
25562         trace output harder to read ('fail' is typically used by
25563         tests to mean the test failed).  Treat // portably.
25564         Check that new directory is not merely a sibling of the tmp dir.
25565         Avoid unnecessary invocation of tr.
25567         test-framework-sh: revert port to NetBSD 7.0
25568         It was a false alarm; I misinterpreted Assaf Gordon's report.
25569         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25570         Restore.
25571         (test_dir_): Adjust to mktempd_ change.
25572         (mktempd_): Restore 2nd arg.  Use -t again.
25573         (base_template_, template_, nx_): Resurrect old code.
25575         Port better to Alpine Linux
25576         Its diff implementation does not support -c, but does support -U3.
25577         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25578         * tests/init.sh (diff_opt_): New var.
25579         (compare_): Prefer diff -U3 to diff -c to plain diff.
25581 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25583         test-framework-sh: port to NetBSD 7.0
25584         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25585         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25586         Remove.  All uses removed.
25587         (test_dir_): Adjust to mktempd_ change.
25588         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25589         (base_template_, template_, nx_): Simplify by hardcoding.
25591 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25593         gitlog-to-changelog: suppress ignored chatter
25594         * build-aux/gitlog-to-changelog: Do not warn about skipping
25595         an SHA if it would have been ignored anyway.
25597 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25599         setlocale: add "sv" to Windows language table
25600         * lib/setlocale.c (language_table) [W32]: Add "sv".
25601         Reported in <https://savannah.gnu.org/bugs/?44588>.
25603 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25605         sys_select: port to new Cygwin
25606         Problem reported by Ken Brown in:
25607         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25608         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25609         diagnostics.
25611 2016-03-17  Jim Meyering  <meyering@fb.com>
25613         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25614         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25615         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25616           test-userspec.c:176:9: error: statement is indented as if it were \
25617             guarded by... [-Werror=misleading-indentation]
25618                    {
25619                    ^
25620           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25621                  if (!diag && !T[i].result)
25622                  ^~
25624 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25626         time_rz: port to clang -Wunused-const-variable
25627         * lib/time_rz.c (TZ): Remove.  All uses removed.
25629         std-gnu11: improve clang support
25630         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25631         2016-03-15 Also try clang
25632         2016-03-15 Port C11 and C++11 testing to clang
25634         select: port more to Intel 2016.1.150 compiler
25635         Problem reported by Balázs Hajgató in:
25636         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25637         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25639 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25641         select: try to port to 2016.1.150 compiler
25642         Problem reported by Balázs Hajgató in:
25643         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25644         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25645         POSIX specifies 'restrict'.
25647 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25649         localename-tests: memory allocation fixes
25650         * tests/test-localename.c (test_locale_name)
25651         (test_locale_name_thread): Don't call freelocale on a locale
25652         that was the base of a successful newlocale, as that
25653         results in a double free.  Problem reported by Assaf Gordon.
25654         (test_locale_name_thread): Free saved names after use, to pacify
25655         gcc -fsanitize=address.
25657 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25659         intprops: make .h file license match module
25660         * lib/intprops.h: Change the license wording to match glibc format.
25661         This is what is in modules/intprops anyway.  See:
25662         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25664 2016-03-08  Eric Blake  <eblake@redhat.com>
25666         acl: fix missing return on Cygwin
25667         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25668         fall off end of function. Fixes http://bugs.gnu.org/22949
25670 2016-03-05  Bruno Haible  <bruno@clisp.org>
25672         extern-inline: port to PGI CC
25673         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25674         keyword 'inline'.
25675         Reported by Adam James Stewart in:
25676         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25678 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25680         signbit: port back to pre-C++11 GCC
25681         * lib/math.in.h (signbit): Do previous change only if
25682         __cplusplus < 201103.  See Jonathan Wakely in:
25683         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25685 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25687         mountlist: recognize autofs-mounted remote file systems, too
25688         Originally reported at: https://bugzilla.redhat.com/1309247
25689         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25690         "-hosts" because it is used by autofs to mount remote file systems.
25692 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25694         signbit: port to C++ with GCC 6
25695         * lib/math.in.h (signbit) [__cplusplus]:
25696         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25697         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25699         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25701         regex: make it closer to libc
25702         Make Idx a signed type, rather than possibly unsigned.
25703         The unsignedness was not really buying us anything, since the code
25704         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25705         it signed allows us to use -1 and -2 with abandon, like libc does,
25706         thus lessening the number of differences between gnulib and libc.
25707         Also, it should help avoid gratuitous warnings like the one
25708         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25709         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25712         regex: merge patches from libc
25714         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25715         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25716         Convert miscellaneous function definitions to prototype style.
25717         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25718         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25719         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25720         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25721         (re_search_internal):
25722         Convert to prototype-style function definition.
25723         Use internal_function for internal functions.
25725 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25727         stdalign: port to older HP and IBM cc
25728         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25729         C compilers, by checking their version numbers.  These version
25730         numbers appear in MariaDB and in Qt code that dates way back and
25731         that conditiionally uses the 'aligned' attribute.
25733 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25735         stdalign: port to clang 3.7.0
25736         Problem reported by Herbert J. Skuhra in:
25737         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25738         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25739         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25740         https://llvm.org/bugs/show_bug.cgi?id=26547
25742 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25744         readdir_r: now obsolescent
25745         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25746         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25748 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25750         misc: port better to gcc -fsanitize=address
25751         Without these patches, ./configure CFLAGS='-fsanitize=address'
25752         would compute incorrect values.  This patch fixes some (but not all)
25753         test failures with recent glibc, with this configuration.
25754         * m4/acl.m4 (gl_ACL_GET_FILE):
25755         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25756         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25757         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25760         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25761         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25762         * m4/getline.m4 (gl_FUNC_GETLINE):
25763         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25764         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25765         * m4/regex.m4 (gl_REGEX):
25766         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25767         * tests/test-calloc-gnu.c (main):
25768         * tests/test-duplocale.c (main):
25769         * tests/test-getgroups.c (main):
25770         * tests/test-getline.c (main):
25771         * tests/test-inttostr.c (main):
25772         * tests/test-localename.c (test_locale_name)
25773         (test_locale_name_thread, test_locale_name_environ)
25774         (test_locale_name_default):
25775         * tests/test-regex.c (main):
25776         * tests/test-setlocale1.c (main):
25777         * tests/test-stat.h (test_stat_func):
25778         Free heap-allocated storage before exiting.
25779         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25780         Don't match *_foo symbols inserted by AddressSanitizer.
25781         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25783 2016-02-02  Jim Meyering  <meyering@fb.com>
25785         verify-tests: also remove stray test-verify.Tpo
25786         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25787         to remove the test-verify.Tpo file that is left behind by
25788         the automake-generated rule upon compilation failure.
25789         Otherwise, that .Tpo file would cause a failed "make distcheck"
25790         at least for grep.
25792 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25794         std-gnu11: new module
25795         This makes it easier for applications to prefer C11 and C++11
25796         to older variants, when compiling C and C++ code.
25797         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25798         a nontrivial chunk of GPLed Autoconf source code.
25799         * COPYING: Mention the m4/*.m4 copyright situation.
25800         * MODULES.html.sh (std-gnu11): New module.
25801         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25803 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25805         get-permissions, strftime: fix grammar in comments
25806         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25807         some grammar fixes Alan Mackenzie made to GNU Emacs.
25809 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25811         gettext: mark as obsolete
25812         Suggested by Paul Eggert in:
25813         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25814         * modules/gettext (Status): Mark as obsolete.
25815         (Notice): Suggest to use 'gettext-h' instead.
25816         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25817         the 'gettext' module.
25819 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25821         gnulib-tool: don't give up on ln -s so easily
25822         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25823         because an earlier one failed.  The targets could be on different
25824         file systems.  Problem reported by KO Myung-Hun in:
25825         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25827         closedir: fix OS/2-related typos
25828         Problem reported by KO Myung-Hun in:
25829         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25830         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25831         in the last couple of changes.
25833 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25835         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25836         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25837         copying a directory.
25839 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25841         regex: treat [x] as x if x is a unibyte encoding error
25842         Problem reported by Aharon Robbins in:
25843         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25844         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25845         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25847         closedir, dirfd, opendir: port to OpenSolaris 5.10
25848         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25849         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25850         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25851         Don't use ${word##pat} substitution, as it doesn't work in
25852         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25853         http://bugs.gnu.org/22443#11
25855 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25857         bootstrap: use American spelling
25858         * build-aux/bootstrap: Honor American spelling.
25860 2016-01-22  Karl Berry  <karl@freefriends.org>
25862         * doc/posix-functions/localtime.texi,
25863         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25865 2016-01-21  Bruno Haible  <bruno@clisp.org>
25867         hash-pjw-bare: fix comment
25868         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25870         wcwidth: Replace also on OpenBSD 5.8
25871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25872         * doc/posix-functions/wcwidth.texi: Update.
25874 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25876         gnu-web-doc-update: fix addition of new files
25877         If there were already added (emnpty) dirs,
25878         then cvs aborts the add with the message:
25879           cvs [add aborted]: there is a version in <./dirname> already
25880         * build-aux/gnu-web-doc-update: Add directories separately
25881         to the addition of files, to avoid the above issue
25882         impacting the addition of files.
25884 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25886         utimens-tests: avoid pulling gettext .m4 files
25887         Although this is not the right fix to the original problem:
25888         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25889         it makes it possible again for consumer projects to use arbitrary
25890         version of gettext, through the steps described at:
25891         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25892         See here for details:
25893         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25894         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25895         'gettext'.
25896         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25897         'gettext'.
25899 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25901         regex: pacify static checkers
25902         Problem and draft fix reported by Aharon Robbins in:
25903         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25904         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25905         Clear memory to pacify static checkers.
25907         regex: fix [ diagnostic
25908         Problem and fix reported by Aharon Robbins in:
25909         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25910         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25912         regex: fix memory leaks
25913         Problem and draft fix reported by Aharon Robbins in:
25914         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25915         * lib/regcomp.c (build_range_exp, build_charclass_op)
25916         * lib/regex_internal.c (re_dfa_add_node):
25917         Fix memory leak on failure.
25919 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25921         fts: don't unconditionally use leaf optimization for NFS
25922         NFS st_nlink are not accurate on all implementations,
25923         leading to aborts() if that assumption is made.
25924         See <https://bugzilla.redhat.com/1299169>
25925         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25926         the white list, and document the issue.
25928 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25929             KO Myung-Hun  <komh@chollian.net>
25931         gnulib-tool: don't assume ln -s works
25932         * gnulib-tool (func_ln_s): New function.
25933         (func_ln): Use it.
25935 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25937         utimes: detect utimes() correctly on OS/2 kLIBC
25938         utimes() of OS/2 kLIBC has some limitations.
25939         1. OS/2 itself supports a file date since 1980 year in local time.
25940         2. OS/2 itself supports only even seconds for a file time.
25941         3. utimes() of OS/2 kLIBC does not work on an opened file.
25942         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25943         * doc/posix-functions/utimes.texi: Document the above limitations of
25944         utimes() on OS/2 kLIBC.
25946 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25947             KO Myung-Hun  <komh@chollian.net>
25949         openat_proc_name: port to OS/2 kLIBC
25950         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25951         instead of /proc/self/fd.
25952         * lib/openat-proc.c (openat_proc_name):
25953         Don't assume file name length is less than INT_MAX.
25954         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25956 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25958         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25959         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25960         definitions of intptr_t and uintptr_t (which use int and unsigned)
25961         to avoid clashes with declarations of system functions like sbrk.
25962         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25963         _INTPTR_T_DECLARED before defining them.
25965         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25966         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25967         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25968         Declare on kLIBC.
25969         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25970         fd associated with dirp.
25971         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25972         dirp_fd_list.
25973         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25974         (dirfd): Implemented for kLIBC.
25975         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25976         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25977         succeeds.
25978         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25979         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25980         (REPLACE_DIRFD): Define to 1 if replaced.
25981         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25982         * modules/closedir (Depends-on): Add dirfd.
25983         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25984         condition.
25985         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25986         * modules/opendir (Depends-on): Add dirfd.
25988         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25989         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25990         * lib/dup.c (dup_nothrow): New.
25991         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25992         (klibc_dup2): New.
25993         * lib/fcntl.c (klibc_fcntl): New.
25994         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25995         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25996         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25997         fd.
25999         pipe_filter_ii_execute: port to OS/2 kLIBC
26000         Pipes on kLIBC do not support O_NONBLOCK like Win32.
26001         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
26002         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
26003         Reuse Win32 code on OS/2 kLIBC.
26004         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
26005         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
26007         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
26008         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
26009         static inline function.  The implementation of wcwidth in wcwidth.c
26010         causes a "conflicting types" error.
26011         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
26013         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
26014         spawn() on OS/2 kLIBC is not silly like one on Windows
26015         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
26016         empty string on OS/2 kLIBC.
26018         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
26019         On OS/2 kLIBC, select() works only on sockets.
26020         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
26022         binary-io: don't put fd in binary mode if it is a console on EMX
26023         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
26024         a console on EMX.
26026 2016-01-15  Pádraig Brady  <P@draigBrady.com>
26028         doc: mention unfixed issues with unsupported localtime() values
26029         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
26030         returns nonsense for localtime(2^56).
26031         * doc/posix-functions/localtime_r.texi: Likewise.
26033 2016-01-14  Pádraig Brady  <P@draigBrady.com>
26035         doc: mention setlocale() issues on OpenBSD
26036         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
26037         never fails, and the need to check categories individually.
26039 2016-01-14  Pádraig Brady  <P@draigBrady.com>
26041         sig2str: list all signals on FreeBSD >= 7
26042         FreeBSD >= 7 is contravening POSIX by not defining NSIG
26043         to the maximal statically defined signal value.
26044         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
26045         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
26046         where available, even when NSIG is defined.
26048 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
26050         acl-permissions: port to USE_ACL==0 platforms
26051         I ran into this problem when building bleeding-edge GNU Emacs
26052         with gcc -fsanitize=address on Fedora 23.  On this platform
26053         the ACL library does not pass the 'configure' test and Emacs
26054         then does not build due in part to what appear to be typos in the
26055         ACL part of Gnulib.
26056         * lib/acl-internal.c (free_permission_context):
26057         * lib/acl-internal.h (struct permission_context):
26058         Test whether USE_ACL is nonzero, not whether it is defined.
26060 2016-01-12  Martin Sebor  <msebor@redhat.com>
26062         mktime: rename macro to avoid glibc clash
26063         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
26064         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
26066 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
26068         Port "$@" to OpenIndiana ksh93
26069         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
26070         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
26071         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
26072         bug long-dead shells, so remove the workaround.
26073         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
26074         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
26075         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
26076         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
26077         Use "$@" instead of ${1+"$@"}.
26079         Port Universal Time settings to strict POSIX
26080         * build-aux/announce-gen, build-aux/bootstrap:
26081         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
26082         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
26083         * build-aux/gnupload, build-aux/mkinstalldirs:
26084         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
26085         * build-aux/update-copyright, build-aux/useless-if-before-free:
26086         * build-aux/vc-list-files, tests/test-strftime.c:
26087         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
26088         but POSIX says the behavior of TZ="UTC" is undefined.
26090 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26092         msvc-inval: fix problem with unset shell var
26093         Problem reported by Karl Berry in:
26094         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
26095         * modules/msvc-inval (Depends-on):
26096         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
26097         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
26099 2016-01-01  Pádraig Brady  <P@draigBrady.com>
26101         tests: for compare_(), use cmp -s where available
26102         * tests/init.sh (compare_): Only fall back to cmp without
26103         the POSIX defined -s option, where this is not available.
26105 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26107         version-etc: new year
26108         * build-aux/gendocs.sh (version):
26109         * doc/gendocs_template:
26110         * doc/gendocs_template_min:
26111         * doc/gnulib.texi:
26112         * lib/version-etc.c (COPYRIGHT_YEAR):
26113         Update copyright dates by hand in templates and the like.
26114         * all files: Run 'make update-copyright'.
26116 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26118         human: fix output buffer overrun by 1
26119         * lib/human.c (human_readable): Fix off-by-one typo in buffer
26120         calculation that could lead to a one-byte buffer overrun.
26122 2015-12-28  Daiki Ueno  <ueno@gnu.org>
26124         maint: fix operator precedence in mbrtowc test
26125         This is a fix for test breakage introduced by commit 45228d96; the
26126         equality expression must be parenthesized when negated with '!',
26127         otherwise we always get:
26129           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
26131         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
26132         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26134 2015-12-23  James Youngman  <jay@gnu.org>
26136         regexprops-generic: update from regex.h
26137         * doc/regexprops-generic.texi: update by running the regexprops binary
26138         from findutils (the command line is 'regexprops "Regular Expressions"
26139         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
26140         gnulib with GNU grep had made this document out-of-date.
26142 2015-12-23  Pádraig Brady  <P@draigBrady.com>
26144         strftime-tests: avoid false failure on OS X
26145         * tests/test-strftime.c (struct localtime_rz_test): Add an
26146         ahistorical member which is used to warn rather than fail
26147         when tm_isdst isn't set for such entries.  This is the case for
26148         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
26150 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
26152         fts: ensure leaf optimization is used for NFS
26153         NFS provides usable dirent.d_type but not necessarily for all entries
26154         of large directories.  See <https://bugzilla.redhat.com/1252549>
26155         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
26157 2015-12-20  Pádraig Brady  <P@draigBrady.com>
26159         fts: enable leaf optimization for XFS
26160         XFS provides usable dirent.d_type only for DT_DIR,
26161         but the noleaf optimization still applies.
26162         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
26164 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
26166         intprops: comment fix
26167         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
26168         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
26170         intprops-test: work around GCC bug 68971
26171         Problem reported by Pádraig Brady in:
26172         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
26173         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
26174         (main): Add a case that better tests 64-bit long in this area.
26176 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
26178         gnulib-tool: allow multiple --local-dir usage
26179         * gnulib-tool: Use --local-dir to construct compound
26180         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
26181         PATH_SEPARATOR early.
26182         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
26183         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
26184         func_determine_path_separator because that needs to be detected
26185         earlier now.
26186         (func_determine_path_separator): New function.
26187         (func_path_foreach, func_path_foreach_inner): New functions.
26188         (func_path_prepend, func_path_append): Likewise.
26189         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
26190         (func_lookup_file, func_all_modules): Use new functions to work
26191         with local_gnulib_path.
26192         (func_modules_in_dir, func_exists_module): New callbacks for
26193         func_path_foreach.
26194         (func_exists_module, func_get_tests_module): Likewise.
26195         (func_is_local_file, func_should_symlink): New helper methods.
26196         (func_add_file, func_update_file): Use new func_should_symlink
26197         instead, DRY.
26198         (func_reconstruct_cached_local_gnulib_path): New helper.
26199         (func_reconstruct_cached_dir): New callback.
26200         (func_import): The cached_local_gnulib_dir renamed to
26201         cached_local_gnulib_path similarly to local_gnulib_dir.
26202         Use new func_reconstruct_cached_local_gnulib_path.
26203         (func_count_relative_local_gnulib_path): New sub-method.
26204         (func_create_testdir): Use func_should_symlink, DRY.
26205         (func_create_megatestdir): Use new functions to work with
26206         local_gnulib_path correctly.
26207         (func_append_local_dir): New helper.
26209 2015-12-08  Pádraig Brady  <P@draigBrady.com>
26211         fix freadptr to work with ungetc on all uClibc configs
26212         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
26213         where GNU coreutils cut(1) generates invalid output on uClibc
26214         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
26215         * lib/freadptr.c (freadptr): Return NULL if there are
26216         ungotten chars.  In this case freadseek() will iterate
26217         again to process the ungotten character.
26219 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
26221         xalloc-oversized: improve performance with GCC 5
26222         * lib/xalloc-oversized.h (xalloc_oversized):
26223         Improve performance with GCC 5 by using __builtin_mul_overflow.
26225 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26227         intprops: new public macro EXPR_SIGNED
26228         Emacs can use this macro, so make it public.
26229         * doc/intprops.texi (Arithmetic Type Properties): Rename from
26230         'Integer Type Determination', since some of these macros apply
26231         to non-integer types.  Clarify what kinds of constant expressions
26232         these macros return.  Say when the arguments can be non-integers.
26233         Mention newly published macro EXPR_SIGNED.
26234         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
26235         make it public.  All uses changed.
26237         intprops: fix typo in clang port
26238         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
26239         '__builtin_add_overflow' that is not caught by compiler.
26241 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26243         test-timespec: fix typo in previous change
26244         * tests/test-timespec.c (main): Fix typo that reduced test quality.
26246         timespec-sub: fix overflow bug; add tests
26247         * lib/timespec-add.c (timespec_add):
26248         * lib/timespec-sub.c (timespec_sub):
26249         Work even if time_t is narrower than int (a theoretical
26250         possibility).  Redo code for a bit more clarity.
26251         * lib/timespec-sub.c (timespec_sub):
26252         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
26253         * modules/timespec-tests, tests/test-timespec.c: New files.
26255         intprops-test: suppress -Woverlength-strings
26256         Problem reported by Pádraig Brady in:
26257         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
26258         It is not worth the hassle to port this test to compilers that
26259         cannot handle long strings in diagnostics.
26260         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
26262 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26264         quotearg: add quotearg_n_style_colon()
26265         This quotes with default options of the specified style,
26266         but with quoting enabled for instances of ':'.
26267         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
26268         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
26270 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26272         intprops: revise _WRAPV macros, revert _OVERFLOW
26273         The incompatible changes to the _OVERFLOW macros were too much of
26274         a hassle in practice, so revert them.  Instead, change the new
26275         _WRAPV macros to make them closer in behavior to GCC 5's new
26276         builtin_add_overflow etc. functions.  No other software was using
26277         these newly-added macros yet, so this should be OK.
26278         * NEWS: Revert previous change, since the incompatible change
26279         has been reverted, and nobody used the incompatible version.
26280         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
26281         Document revised behavior.
26282         (Integer Range Overflow): Adjust example to match above revisions.
26283         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
26284         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
26285         these can be used in integer constant expressions again.
26286         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
26287         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
26288         needed.
26289         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26290         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26291         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
26292         Remove, as they did not seem that useful.
26293         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
26294         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
26295         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
26296         Support new semantics.
26297         (__has_builtin): New macro, if not alreay defined.
26298         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
26299         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26300         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26301         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26302         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
26303         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
26304         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
26305         New macros.
26306         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
26308 2015-11-03  Jim Meyering  <meyering@fb.com>
26310         intprops: add parentheses for when OP has precedence lower than "-"
26311         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
26312         "a OP b" must be parenthesized for when OP is like "<<", which has
26313         lower precedence than the following "-". Reported by Pádraig Brady.
26315 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26317         quotearg: constify get_quoting_style parameters
26318         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
26319         * lib/quotearg.c (get_quoting_style): Likewise.
26321 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26323         quotearg: add support for $'' shell escaping
26324         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
26325         items and descriptions.
26326         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
26327         above types by quoting like "shell", but using $'...' syntax
26328         for non printable characters, which should provide unambiguous
26329         printable output for any input.
26330         * tests/test-quotearg-simple.c: Update accordingly.
26332 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26334         maint: use a more standard return from mbrtowc test
26335         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
26336         from the test program as this is non standard and often
26337         indicates an unhandled case in the test program.
26338         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26340 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26342         intprops: add WRAPV and const flavors for GCC 5
26343         If available, use GCC 5's builtin functions for efficient integer
26344         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
26345         and safely compute the low-order bits of the correct answer.
26346         A downside of these efficient functions is that they cannot be
26347         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
26348         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
26349         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
26350         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
26351         Document the changes.
26352         (Wraparound Arithmetic): New section.
26353         (Integer Range Overflow):
26354         Put this subsection last, since it's least useful.
26355         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
26356         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
26357         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
26358         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26359         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26360         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
26361         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
26362         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
26363         New macros.
26364         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
26365         Generate calls to GCC builtins if available, for speed.
26366         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26367         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26368         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26369         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
26370         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
26371         (CHECK_QUOTIENT, CHECK_REMAINDER):
26372         Test WRAPV and CONST flavors (when available) too.
26374 2015-10-30  Pádraig Brady  <P@draigBrady.com>
26376         doc: use extended timezone format in iso-8601 example
26377         * doc/parse-datetime.texi: The standard states that extended format
26378         is to be used consistently throughout.
26379         Note that lib/parse-datetime.y can handle either tz format.
26381 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26383         stdalign: port to Sun C 5.9
26384         * doc/posix-headers/stdalign.texi: Document this.
26385         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
26386         __attribute__ ((__aligned__ (...))).
26388 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26390         time_rz: fix comment about tzalloc
26391         * lib/time_rz.c (tzalloc): Fix comment.
26393 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26395         stdalign: work around pre-4.9 GCC x86 bug
26396         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
26397         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
26398         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
26400 2015-10-18  Pádraig Brady  <P@draigBrady.com>
26402         maint.mk: sc_tight_scope: remove extraneous expressions
26403         * top/maint.mk (tight_scope): This is not really required since
26404         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
26405         that matches all nm entries.  But it does remove extraneous entries
26406         that may be confusing or cause issue in future maintenance.
26408 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26410         time_rz: return NULL if localtime_r fails
26411         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
26412         while still attempting to pacify bleeding-edge GCC.
26414         fts: port to C11 alignof
26415         * doc/posix-headers/stdalign.texi (stdalign.h):
26416         Document the C11 restriction.
26417         * lib/fts.c: Include stddef.h, for max_align_t.
26418         (fts_alloc): Align using max_align_t, not FTSENT.
26419         * modules/fts (Depends-on): Add stddef.
26421 2015-10-18  Jim Meyering  <meyering@fb.com>
26423         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
26424         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
26425         would see this:
26427         lib/time_rz.c: In function 'localtime_rz':
26428         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
26429           [-Werror=nonnull]
26430                    if (tm && !save_abbr (tz, tm))
26431                        ^
26433         That was complaining about "tm" because it is a parameter that was
26434         declared with the __nonnull__ attribute.
26435         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
26436         result of localtime_r.
26438 2015-10-17  Jim Meyering  <meyering@fb.com>
26440         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
26441         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
26442         name-extraction regexp mistakenly used \S+, and would mistakenly
26443         extract "*F" from "extern int *F()" rather than the desired "F".
26444         Use \w+ instead.
26446 2015-10-17  Jim Meyering  <meyering@fb.com>
26448         maint.mk: sc_tight_scope: factor and support OS X
26449         * top/maint.mk (_gl_tight_scope): Address three issues:
26450         - factor out four instances of code that wraps a string in "^...$"
26451         - allow nm-reported symbol names to have an optional leading "_"
26452         - add "main" to the list of ignored variable names, because on os x,
26453         "main" has nm-reported type "S" in the variable-checking section.
26455 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
26457         safe-alloc-tests: fix typo in license header
26458         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
26460 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
26462         copy-file: fix mem leak in error case
26463         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
26464         upon error opening or performing I/O to the src and dest files.
26466 2015-10-15  Mike Frysinger  <vapier@chromium.org>
26468         localename: control langinfo.h inclusion
26469         This header is only used to work around buggy behavior in old
26470         versions of glibc, so do not include it all the time.  Otherwise
26471         we get build failures on systems that do not provide langinfo.h.
26472         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
26473         in the source later on.
26474         The patch was originally submitted to gettext as:
26475         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
26477 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26479         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
26480         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
26481         * lib/u64.c, lib/unistd.c:
26482         Append 'typedef int dummy;', to pacify compilers that are picky
26483         about empty translation units.
26485 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
26487         accept4-tests: fix to avoid non portable flags
26488         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
26489         as they are the only documented ones, and passing others may trigger
26490         EINVAL (seen on FreeBSD 10.1-RELEASE).
26491         * doc/glibc-functions/accept4.texi: Mention that we don't provide
26492         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
26494 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
26496         gnulib-tool: fix tests of 'extensions' module
26497         This complements f8fe25fab60e3c687a124 commit.
26498         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
26499         emitting of initial gl_EARLY macros.
26500         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
26501         replaced with func_emit_pre_early_macros call.
26503 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26505         unicase/locale-language: fix typo in utf-8 cookie
26506         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
26507         Problem reported by Zbigniew Jędrzejewski-Szmek.
26509 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26511         xalloc: do not worry about GCC 5 warning on 32 bit
26512         * lib/xalloc.h: Revert previous change.
26513         I found a better way to fix this in coreutils.
26515 2015-10-02  Pádraig Brady  <P@draigBrady.com>
26517         xalloc: avoid GCC 5.1 warning on 32 bit
26518         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
26519         xalloc_oversized(), which was seen to give this warning
26520         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
26521         when simplifying conditional".
26523 2015-10-02  Daiki Ueno  <ueno@gnu.org>
26525         uniname/uniname-tests: avoid compiler warnings
26526         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
26527         unused local variables.
26528         (test_alias_lookup): Fix alias name display in failure cases.
26530 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26532         c-ctype: do not worry about EBCDIC + char signed
26533         Drop support for EBCDIC with char being signed, as this breaks too
26534         many programs.  Problem reported by Ben Pfaff in:
26535         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
26536         * lib/c-ctype.h: Verify that we are not using EBCDIC with
26537         char being signed.
26538         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
26539         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
26540         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
26541         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
26542         * tests/test-c-ctype.c (test_all):
26543         Simplify by assuming standard char values cannot be negative.
26544         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
26546 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26548         c-ctype: port better to z/OS EBCDIC
26549         Problems reported by Daniel Richard G. in:
26550         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
26551         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
26552         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
26553         (_C_CTYPE_OTHER_CNTRL): New macro.
26554         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
26555         from SCHAR_MIN, as the functions are defined only from values
26556         promoted from char or from unsigned char, not necessarily from
26557         signed char.
26559 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
26561         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
26563         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
26564         and ARFLAGS variables.  Doing this unconditionally could break
26565         later Automake's AM_PROG_AR invocation (at least it's
26566         AC_CHECK_TOOLS call to detect correct 'ar' binary).
26568         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
26569         Amsterdam Compiler Kit, so make the previous code to have effects
26570         only on ACK, and rather automatically call the Automake's
26571         AM_PROG_AR as soon as possible to decide other cases.
26573         References:
26574         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
26576         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
26577         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
26578         is possible, keep setting AR/ARFLAGS to reasonable defaults.
26579         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
26580         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
26581         'extensions' module is used.
26582         * modules/extensions (configure.ac-early): Remove as this snippet
26583         is added to gnulib-comp.m4 earlier anyway.
26585 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26587         sockets: MS Windows initalization fixes
26588         Problem reported by Test User in:
26589         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26590         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26591         Correct the endianness.
26592         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26593         number mismatch, not just on <.  Cleanup before any such failure.
26595 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26597         gc: fix detection of installed libgcrypt version
26598         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26599         at least as recent as 1.4.4.  The previously used macro is not
26600         available now, since modules were removed in version 1.6.0.
26602 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26604         c-ctype: rewrite to use inline functions
26605         This simplifies maintenance, since it makes for just one
26606         implementation of each function, letting the compiler have the fun
26607         of optimization.  In practice this works well nowadays with GCC.
26608         E.g., c_isascii might need only three instructions even though the
26609         source code lists every ASCII character individually in a large
26610         switch statement.
26611         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26612         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26613         * NEWS: Document the API change.
26614         * lib/c-ctype.c: Drastically simplify, since this now just expands
26615         inline functions.
26616         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26617         (C_CTYPE_INLINE): New macro.
26618         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26619         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26620         Verify that either ASCII or EBCDIC is being used.
26621         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26622         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26623         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26624         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26625         New private macros.
26626         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26627         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26628         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26629         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26630         (c_tolower, c_toupper): When converting, return the unsigned char,
26631         as that is what z/OS does.
26632         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26633         of some c-ctype.h macros.
26634         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26635         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26636         c_tolower promotion to be compatible with z/OS.
26638 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26640         gitlog-to-changelog: trim only trailing whitespaces
26641         This is fix for --format regression introduced by commit
26642         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26643         doubled %n string) had no effect anymore.  This format
26644         specification has been used e.g. by GNU paxuitils (commit
26645         edfd8bcc3).
26647         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26648         newlines in commmit messages.
26650 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26652         Test that c_iscntrl agrees with iscntrl, etc.
26653         Suggested by Daniel Richard G. in:
26654         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26655         * modules/c-ctype-tests (Depends-on): Add ctype.
26656         * tests/test-c-ctype.c: Include <ctype.h>.
26657         (NCHARS): New constant.
26658         (test_agree_with_C_locale): New function.
26659         (main): Use it.
26660         (test_all): Use named constants.
26662         c-ctype: improve c_isascii testing
26663         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26664         Add a test to count the number of ASCII characters.
26666 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26668         savewd: remove SAVEWD_CHDIR_READABLE
26669         It was problematic in the light of file systems that ignore umask.
26670         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26671         * NEWS: Document this.
26672         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26673         successful, -1 (setting errno) on failure, rather than something
26674         more complicated than that.
26675         * lib/mkdir-p.c (make_dir_parents):
26676         Do not use SAVEWD_CHDIR_READABLE.
26677         * lib/savewd.c (savewd_chdir):
26678         Remove support for SAVEWD_CHDIR_READABLE.
26679         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26681         c-ctype: port better to EBCDIC
26682         Problems reported by Daniel Richard G. in
26683         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26684         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26685         Include "verify.h".
26686         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26687         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26688         Define as enum constants with value false, if not defined, so that
26689         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26690         code more portable, as both branches of the 'if' are compiled on
26691         all platforms.
26692         (C_CTYPE_EBCDIC): New constant.
26693         Verify that the character set is either ASCII or EBCDIC.
26694         (to_char): New static function.
26695         (c_isascii, c_iscntrl):
26696         Assume standard control-character assignments for EBCDIC.
26697         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26698         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26699         Rewrite to use 'if' instead of 'ifdef'.
26700         Use to_char if non-ASCII.  Prefer <= to >=.
26701         Prefer true and false to 1 and 0, for booleans.
26702         (c_iscntrl): Use 'if', not 'ifdef'.
26703         * modules/c-ctype (Depends-on): Add verify.
26704         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26705         (to_char): New function.
26706         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26708 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26710         nanosleep: fix return code for interrupted replacement
26711         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26712         that we return -1 in the case the call is interrupted by a signal,
26713         rather than the current value of 1.
26714         Diagnosed and tested by Daniel Richard G.
26716 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26718         Diagnose ERE '()|\1'
26719         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26720         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26721         track of the set of previously-completed subexpressions available
26722         before the first alternative, and restore this set just before
26723         parsing each subsequent alternative.  This lets us diagnose the
26724         invalid back-reference in the ERE '()|\1'.
26726         regex: merge patches from libc
26728         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26729         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26730         * lib/regex_internal.h:
26731         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26733         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26734         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26735         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26736         wcscoll.
26737         * lib/regexec.c (check_node_accept_bytes): Likewise.
26739         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26740         Fix regex wcrtomb namespace (bug 18496).
26741         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26742         instead of wcrtomb.
26744         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26745         Fix regex wctype namespace (bug 18495).
26746         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26747         instead of towlower.
26748         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26749         instead of iswlower.  Call __towupper instead of towupper.
26750         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26751         instead of iswalnum.
26753         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26754         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26755         COLL_SYM in a couple of places to avoid uninitialized variable
26756         wanings on tilegx gcc 4.8.2.
26758         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26759         * lib/regex_internal.h: Remove NOT_IN_libc.
26761         2014-11-17  Andreas Schwab  <schwab@suse.de>
26762         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26764         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26765         Move findidx nested functions to top-level.
26766         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26767         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26768         Pass new arguments to findidx.
26769         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26770         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26771         Don't #include it inside the function.  Pass new arguments to findidx.
26772         * lib/regex_internal.h:
26773         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26774         (re_string_elem_size_at): Don't #include it inside the function.
26775         Pass new arguments to findidx.
26777         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26778         Check if DEBUG is defined in regex_internal.c
26779         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26781 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26783         ceill: detect buggy OpenBSD implementation
26784         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26785         which returns zero for small values.  Discussed here:
26786         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26788 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26790         mountlist: add me_mntroot field on Linux machines
26791         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26792         mount_entry so Linux machines based on /proc/self/mountinfo can
26793         distinguish between bind mounts and original mounts.  In reality bind
26794         mounts aren't treated differently than mountroot=/ mounts by the
26795         kernel, but the user often wants these bind mounts distinguished.
26796         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26797         More details at https://pad.lv/1432871
26799 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26801         doc: Describe to use multiple instances of gnulib
26802         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26803         instances of gnulib with different modules can be used, for example one
26804         for a lib and another one for associated tools.
26806 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26808         base32: mark function as __attribute__ const
26809         * lib/base32.h (isbase32): Mark __attribute__ const as
26810         suggested by GCC, and consistent with the base64 module.
26812 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26814         gnulib-tool: don't transform binary files with sed
26815         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26816         .mo and .class files.
26817         Reported by Denis Denisov.
26819 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26821         gperf: respect silent rules
26822         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26823         V_GPERF_0 for silent rules.
26824         * modules/iconv_open (Makefile.am): Use V_GPERF.
26825         * modules/unicase/locale-language (Makefile.am): Likewise.
26826         * modules/unicase/special-casing (Makefile.am): Likewise.
26827         * modules/unictype/category-byname (Makefile.am): Likewise.
26828         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26829         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26830         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26831         * modules/unictype/property-byname (Makefile.am): Likewise.
26832         * modules/unictype/scripts (Makefile.am): Likewise.
26833         * modules/uninorm/composition (Makefile.am): Likewise.
26835 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26837         Improve port of stdalign to C++11
26838         Problem reported by Sundaram in:
26839         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26840         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26841         (__alignas_is_defined): Define if C++11 or newer.
26843 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26845         pmccabe2html: fix gawk regex escaping
26846         * build-aux/pmccabe2html: Add one more backslash to properly
26847         escape the gsub replacement value.  Fixes this error:
26848         gawk: ./build-aux/pmccabe2html:425: \
26849         warning: escape sequence `\&' treated as plain `&'
26851 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26853         time_rz: port to pedantic memcpy
26854         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26855         that reject memcpy (..., NULL, 0).
26857 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26859         time_rz: port better to MinGW
26860         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26861         Instead, store the tzname copy in the struct tm_zone object.
26862         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26863         * lib/strftime.c [!_LIBC]:
26864         * lib/time_rz.c: Include time-internal.h.
26865         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26866         name from *TZ rather than from TZNAME, doable because *TZ now has
26867         a tzname_copy member.
26868         * lib/time-internal.h: New file, with contents taken from
26869         lib/time_rz.c.  It's separate because strftime.c now accesses
26870         struct tm_zone members.
26871         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26872         New member tzname_copy.
26873         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26874         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26875         Initialize tzname_copy member.
26876         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26877         in tzname_copy member.
26878         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26879         (restore_tzname): Remove; no longer needed.  All calls removed.
26880         * modules/time_rz (Files): Add lib/time-internal.h.
26882         time: port __need_time_t to MinGW
26883         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26884         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26886 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26888         strftime: fix newly-introduced bug on Solaris
26889         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26890         consistently at the start, rather than doing some of the setup at
26891         the start and some in the %Z format spec.  This is cleaner, and
26892         works better with time_rz on platforms like Solaris where struct
26893         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26894         mktime_z and localtime_rz can mess up the tzname cache.
26896         test-strftime: test for Solaris bug
26897         * modules/strftime-tests (Depends-on): Add strerror.
26898         * tests/test-strftime.c: Include <errno.h>.
26899         (posixtm_test): New function, containing the old 'main'.
26900         (struct tzalloc_test, struct localtime_rz_test): New types.
26901         (TZ, LT): New static vars.
26902         (tzalloc_test): New function.
26903         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26905         time_rz: port to Solaris etc.
26906         Works around a tzname problem on platforms like Solaris that have
26907         tzname but not tm_zone, by setting tzname at the appropriate time
26908         and restoring it later.
26909         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26910         New static vars.
26911         (save_abbr) [HAVE_TZNAME]: Set them.
26912         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26913         (restore_tzname): New function.
26914         (localtime_rz, mktime_z): Use it.
26916         time_rz: now LGPL
26917         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26919         time_rz: make a constant 'const'
26920         * lib/time_rz.c (local_tz): Now const.
26922         time_rz: fix off-by-one typo
26923         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26925 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26927         fprintftime, strftime: use timezone_t args
26928         * NEWS: Document the change.
26929         * lib/fprintftime.h (fprintftime):
26930         * lib/strftime.c (extra_args) [my_strftime]:
26931         * lib/strftime.h (nstrftime):
26932         Time zone arg is now of type timezone_t, not int.
26933         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26934         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26935         (my_strftime) [emacs && !my_strftime]:
26936         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26937         Remove; Emacs doesn't need this any more.
26938         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26939         fprintftime and nstrftime to call tzset.
26940         (ut) [!my_strftime]: Remove, replacing with ...
26941         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26942         (strftime_case_): Use localtime_rz and mktime_z instead
26943         of localtime_r and mktime.
26944         * modules/fprintftime (Depends-on): Add time_rz.
26945         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26946         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26948         time_rz: new module
26949         * MODULES.html.sh: Add time_rz.
26950         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26951         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26952         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26954         New var HAVE_TIMEZONE_T (default 0).
26955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26956         New var GNULIB_TIME_RZ (default 0).
26957         * modules/time (time.h): Substitute the new vars.
26959         flexmember: license is now unlimited
26960         * modules/flexmember (License): Change to unlimited,
26961         since its only source file gives an unlimited license.
26963 2015-07-15  Eric Blake  <eblake@redhat.com>
26965         maint: update copyright paper procedures
26966         * config/srclist.txt: Drop outdated files.
26967         * doc/Copyright/conditions.txt: Update to latest.
26968         * doc/Copyright/assign.changes.manual: Delete.
26969         * doc/Copyright/assign.future.manual: Likewise.
26970         * doc/Copyright/assign.manual: Likewise.
26971         * doc/Copyright/assign.translation.manual: Likewise.
26972         * doc/Copyright/disclaim.changes.manual: Likewise.
26973         * doc/Copyright/disclaim.manual: Likewise.
26974         * doc/Copyright/disclaim.program: Likewise.
26976 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26978         localename: fix link error on Illumos
26979         Illumos defines __sun, but does not have getlocalename_l nor the
26980         equivalent.  This partially reverts commit 387c214.
26981         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26982         available, as well as uselocale.
26983         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26984         use getlocalename_l if it is not available.
26986 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26988         unistr/uN-strtok-tests: avoid a trivial leak
26989         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26990         input and delim after the multibyte delimiter tests.
26992 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26994         file-has-acl, acl-permissions: fix HP-UX typos
26995         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26996         * lib/file-has-acl.c (file_has_acl):
26997         * lib/set-permissions.c (context_acl_from_mode)
26998         (context_aclv_from_mode, set_acls):
26999         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
27000         They were introduced by the recent ACL changes.
27002         regex: match current GNU grep behavior
27003         These symbols have not matched GNU grep behavior for quite some time.
27004         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
27005         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
27006         Change to match current GNU behavior.
27007         Simplify by expressing it as differences from POSIX BREs and EREs.
27008         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
27010 2015-07-03  Jim Meyering  <meyering@fb.com>
27012         set-permissions.c: adjust acl_from_mode's cpp guard
27013         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
27014         directives identical to those guarding the sole use.
27015         Otherwise, on some systems, we'd get a warning about
27016         the function being defined but not used.
27017         Also, filter through cppi to correct misleading indentation
27018         of cpp directives.
27020 2015-07-03  Pádraig Brady  <P@draigBrady.com>
27022         tests: restrict shells to those that support 'local'
27023         The local keyword is very widely supported and used
27024         in tests in coreutils and grep at least.  Therefore
27025         restrict to testing with shells that support it.
27026         This mainly excludes /bin/sh on Solaris.
27027         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
27029 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
27030         and Daiki Ueno  <ueno@gnu.org>
27032         unistr/uN-strtok: handle multibyte delimiters
27033         Previously, uN_strtok moved PTR to the next unit to the token end.
27034         When DELIM contained a multibyte character, the new position could
27035         be a middle of a multibyte character.
27036         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
27037         after the token.
27038         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
27039         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
27040         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
27041         * modules/unistr/u8-strtok (Depends-on): Depend on
27042         unistr/u8-strmblen.
27043         * modules/unistr/u16-strtok (Depends-on): Depend on
27044         unistr/u16-strmblen.
27045         * modules/unistr/u32-strtok (Depends-on): Depend on
27046         unistr/u32-strmblen.
27047         * tests/unistr/test-u-strtok.h: New file.
27048         * tests/unistr/test-u8-strtok.c: New file.
27049         * tests/unistr/test-u16-strtok.c: New file.
27050         * tests/unistr/test-u32-strtok.c: New file.
27051         * modules/unistr/u8-strtok-tests: New file.
27052         * modules/unistr/u32-strtok-tests: New file.
27053         * modules/unistr/u16-strtok-tests: New file.
27055 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
27057         update-copyright: fix test failure with perl >= 5.22 (trivial)
27058         * build-aux/update-copyright: Escape a literal left curly bracket,
27059         required with perl >= 5.22
27061 2015-07-02  Daiki Ueno  <ueno@gnu.org>
27063         u{16,32}-strstr-tests: relax timeout condition
27064         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
27065         tests can take longer than 5 seconds to complete.
27066         Reported by Dagobert Michelsen in:
27067         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
27068         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
27069         seconds to 10 seconds.
27070         * tests/unistr/test-u32-strstr.c (main): Likewise.
27072 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
27074         gnulib-common.m4: change the ARFLAGS default to 'cr'
27075         In some GNU/Linux distributions people started to compile 'ar'
27076         binary with --enable-deterministic-archives (binutils project).
27077         That, however, in combination with previous autotools long time
27078         working default AR{_,}FLAGS=cru causes warnings on such
27079         installations:
27080         ar: `u' modifier ignored since `D' is the default (see `U')
27081         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
27082         set already.
27084 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
27086         selinux-h: avoid double free after *getfilecon()
27087         Originally reported by Ben Shelton on bug-tar:
27088         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
27089         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
27090         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
27091         param should be freed by freecon(3) (regardless the return value).
27093 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
27095         fix pty related tests issues on Windows (trivial)
27096         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
27097         however it's still present in tests/ subdirectory of the final project.
27098         Therefore avoid it to pass `make check`.
27099         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
27100         will just return -ENOSYS, so avoid this non applicable test allowing
27101         the build to proceed.
27103 2015-07-01  Pádraig Brady  <P@draigBrady.com>
27105         acl: fix definition of acl_from_mode on FreeBSD
27106         This was causing basic coreutils copy operations to fail
27107         with ENOTSUP or ENOENT error messages.
27108         * lib/acl-internal.h (acl_from_mode): Only define when
27109         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
27110         of acl_from_mode() defined in lib/set-permissions.c to
27111         be used on FreeBSD at least.
27112         * lib/set-permissions.c: Fix up comment spelling,
27113         and a redundant variable assignment; noticed in passing.
27115 2015-06-30  Pádraig Brady  <P@draigBrady.com>
27117         readutmp: port to FreeBSD >= 9
27118         * lib/readutmp.h: Map utmpxname() to setutxdb().
27119         With that coreutils who(1) and pinky(1) tests pass.
27121 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
27123         mgetgroups: port to strict OS X
27124         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
27125         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
27126         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
27127         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
27129 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
27131         mgetgroups: port to strict OS X
27132         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
27133         Document the getgrouplist problem.
27134         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
27135         New macro.
27136         (mgetgroups): Use it.
27137         * m4/mgetgroups.m4 (gl_MGETGROUPS):
27138         Check for OS X signature for getgrouplist.
27140 2015-06-29  Jim Meyering  <meyering@fb.com>
27142         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
27143         It started like this when building coreutils' latest on OS X,
27144         invoking ./configure with a nonempty --cache=.cache:
27146           lib/linkat.c:46:42: error: operator '||' has no right operand
27147           lib/linkat.c: In function 'rpl_linkat':
27148           lib/linkat.c:330:27: error: #if with no expression
27150         Here's linkat.c's line 46:
27152           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
27154         Here's some context:
27156           $ grep linkat_nofoll .cache
27157           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
27158           $ grep LINKAT_SYM lib/config.h
27159           #define LINKAT_SYMLINK_NOTSUP
27161         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
27162         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
27163         but that violates a tenet of AC_CACHE_CHECK: it must
27164         have no side effect other than setting its cache variable.
27166         What happens is that when the cache is set, we'd skip the
27167         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
27168         defined to whatever value it happened to have in configure's
27169         environment.  In my case, it was not defined, so this later code:
27171           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
27172             [Define to 1 if linkat can create hardlinks to symlinks])
27174         would emit code with an empty RHS.
27176         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
27177         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
27179 2015-06-28  Jim Meyering  <meyering@fb.com>
27181         mountlist: avoid an unused-label warning on OS X
27182         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
27183         Building on OS X, I saw a warning about the "free_then_fail" label
27184         being unused.  Give it the _GL_UNUSED_LABEL attribute.
27186         error.c: correct printf-style format: %d -> %u
27187         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
27188         rather than %d, to match the type of "line_number", unsigned int.
27190 2015-06-25  Pádraig Brady  <P@draigBrady.com>
27192         fts: avoid reading beyond the heap allocation
27193         GCC 5.1.1 with -O2 and -fsanitize=address reports
27194         a read of size 4 from a heap object of size 3 is indeed invalid,
27195         though this may be due to incorrect padding assumptions by GCC, see:
27196         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27197         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
27198         * modules/fts: Depend on stdalign.
27200 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27202         savedir: avoid undefined behavior in qsort call
27203         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27204         "runtime error: null pointer passed as argument 1,
27205          which is declared to never be null"
27206         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
27208 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27210         userspec: avoid undefined behavior in gettext call
27211         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27212         "runtime error: null pointer passed as argument 2,
27213          which is declared to never be null"
27214         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
27216 2015-06-20  Glenn Morris  <rgm@gnu.org>
27218         gitlog-to-changelog: improve gitmerge.el commits
27219         Let the Emacs ChangeLog generation process exclude "skipped"
27220         messages from merge commits (Bug#20717).
27221         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
27223 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27225         wchar: fix MinGW compilation warnings
27226         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
27227         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
27228         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
27230 2015-06-20  Daiki Ueno  <ueno@gnu.org>
27232         uniname/uniname-tests: use pristine data files
27233         For copyright and maintenance reasons, use the data files from UCD
27234         without modification.
27235         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
27236         (getfield): Remove.
27237         (aliases_count): New global variable.
27238         (fill_names): Skip comments and empty lines in the input.  Don't
27239         use getfield.
27240         (fill_aliases): Likewise.
27241         (main): Change the expected command line arguments to:
27242         NAMES... ["--" ALIASES...].
27243         * tests/uniname/test-uninames.sh: Adjust to the change in
27244         test-uninames.c.
27245         * tests/uniname/UnicodeDataNames.txt: Remove.
27246         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
27247         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
27248         file from Unicode 8.0.0.
27250 2015-06-19  Pádraig Brady  <P@draigBrady.com>
27252         linked-list, linkedhash-list: avoid compiler warnings
27253         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27254         -Werror=suggest-attribute=pure (from GCC 5.1.1).
27256 2015-06-19  Daiki Ueno  <ueno@gnu.org>
27258         libunistring: bump minimum version to 0.9.6
27259         * all modules depending on updated Unicode data: Regenerate.
27260         The modules are listed by a script that does:
27261         - for each file listed by: git show --oneline --name-only 705f4efc
27262           - deduce the containing modules, based on "Files:"
27263         - deduce the modules which depend on the containing modules, based
27264           on "Depends-on:"
27266 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27268         uniname/uniname: update to Unicode 8.0.0
27269         * lib/uniname/uninames.h: Regenerate.
27270         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
27271         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
27273 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27275         libunistring: update to Unicode 8.0.0
27276         * lib/gen-uni-tables.c (SIZEOF): New macro.
27277         (output_numeric): Increase the maximum number of fractions from
27278         128 to 160.  Increase the level3 value width from 7 bits to 8
27279         bits.  Use SIZEOF instead of a hard-coded integer.
27280         (output_blocks): Decrease the cut-off threshold from 0x30000 to
27281         0x28000.
27282         (fill_blocks): Increase the maximum number of blocks from 256 to
27283         384.  Use SIZEOF instead of a hard-coded integer.
27284         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
27285         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
27286         value width.
27287         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
27288         a new case added to LBP22.
27289         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
27290         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
27291         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
27292         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
27293         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
27294         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27295         lib/uniwidth/width.c.
27296         * all generated files under lib/uni* and tests/uni*: Regenerate.
27298 2015-06-16  Pádraig Brady  <P@draigBrady.com>
27300         gnu-web-doc-update: add --mirror to remove stale files
27301         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
27302         out of date files from the CVS server.  Since this is usually
27303         appropriate, a prompt is given when the option is not specified,
27304         along with the `cvs remove` command that would be run.
27306 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27308         acl-permissions: pacify -Wsuggest-attribute=const
27309         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
27310         * lib/acl-internal.h (free_permission_context):
27311         Declare with attribute const if ! (defined USE_ACL &&
27312         (HAVE_ACL_GET_FILE || defined GETACL)).
27314         fsync: document AIX misbehavior
27315         * doc/posix-functions/fsync.texi (fsync):
27316         Document failure on AIX with read-only file descriptor.
27318 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
27320         stdio: Don't redefine gets when using C++
27321         * lib/stdio.in.h (gets): Disable warning on C++.
27323 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
27325         acl-permissions: port to AIX, C89 HP-UX
27326         Problems reported by Michael Felt.
27327         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
27328         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
27329         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
27330         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
27331         Add cast for AIX, whose system calls are declared to accept
27332         char * even though the arguments are really char const *.
27333         * lib/get-permissions.c (get_permissions):
27334         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
27335         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
27336         that broke a build.
27337         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
27338         Rework types to pacify xlc.
27340 2015-06-03  Pádraig Brady  <P@draigBrady.com>
27342         vasprintf-posix: avoid compiling vasnprintf where possible
27343         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
27344         module where not required.  For example on a GNU/Linux system
27345         when gnulib-tool is run with the --conditional-dependencies option.
27347 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27349         file-has-acl: fix build on Mac OS X 10
27350         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
27351         which has an incompatible 6 parameter getxattr() call.
27352         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
27353         call on Mac OS X >= 10.4.
27354         * doc/glibc-functions/fgetxattr.texi: Likewise.
27355         * lib/file-has-acl.c: Revert to more complete combined check.
27356         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
27357         Reported by Jack Howarth.
27359 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27361         prefix-gnulib-mk: remove no longer needed special case
27362         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
27363         continued lib_SOURCES lines are no longer present,
27364         so special case handling of such entries is not required.
27366 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27368         acl: don't depend on the deprecated qacl module
27369         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
27371 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27373         gnulib-tool: concatenate lib_SOURCES to a single line
27374         * gnulib-tool: Refactor the line merging sed logic,
27375         and use that to output a single lib_SOURCES line for each module.
27376         gnulib using projects often postprocess this output to prepend
27377         subdir paths to each item, and having a single line simplifies this
27378         processing allowing better decoupling from the gnulib-tool output.
27380 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
27382         pthread_sigmask: discount system version if a simple macro (trivial)
27383         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
27384         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
27385         function to ensure it's available.
27387 2015-05-31  Pádraig Brady  <P@draigBrady.com>
27389         readlinkat: avoid OS X 10.10 trailing slash bug
27390         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
27391         has this bug.
27392         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
27393         that OS X 10.10 has this function.
27394         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
27395         as done for readlink().
27396         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
27397         trailing slash bug, and assume readlinkat() has the same issue.
27398         Also fix a typo where $gl_cv_decl_readlink_works was tested,
27399         rather than the correct $gl_cv_decl_readlinkat_works.
27401 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27403         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
27404         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
27405         module rewrite.
27407         acl-permissions: Fix build on Solaris and Cygwin
27408         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
27409         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
27410         ace_entries variables have moved into struct permission_context but
27411         they were still accessed as local variables here.
27413 2015-05-29  Pádraig Brady  <P@draigBrady.com>
27415         linkat: avoid OS X 10.10 trailing slash with symlink bug
27416         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
27417         causes the symlink to be dereferenced, and if it points
27418         to a non existent file, that file will be created as
27419         a hard link to "path1".
27420         This fixes a test failure in test-linkat.c.
27421         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
27422         this case.  The existing workaround in linkat.c for
27423         trailing slash issues, suffices for this case.
27424         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
27425         the list of platforms with trailing slash issues.
27427 2015-05-28  Pádraig Brady  <P@draigBrady.com>
27429         unlinkat: handle ignoring of ".." on Darwin 14
27430         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
27431         on Mac OS X 10.10, where it ignores paths with a trailing "..",
27432         so handle in the same manner.
27433         * m4/unlinkat.m4: Comment on this Darwin issue.
27434         * doc/posix-functions/unlink.texi: Update the latest version
27435         where the issue was seen.
27436         * doc/posix-functions/unlinkat.texi: Mention this issue.
27437         Fixes a test failure in test-unlinkat.c.
27439 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27441         qacl: split into qcopy-acl and qset-acl
27442         Emacs needs the former, but not the latter.
27443         * modules/acl-permissions: New file, containing most of the old qacl.
27444         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
27445         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
27446         * modules/qcopy-acl, modules/qset-acl: New files.
27447         * MODULES.html.sh (File system functions):
27448         Mention the new modules, and mention qacl while we're at it.
27450 2015-05-27  Glenn Morris  <rgm@gnu.org>
27452         gitlog-to-changelog: new option --ignore-line
27453         (This patch is imported from the GNU Emacs master.)
27454         This option ignores individual commit lines matching a pattern.
27455         * build-aux/gitlog-to-changelog: Add --ignore-line option.
27457 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
27459         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
27460         Implement get_permissions and set_permissions primitives for getting all
27461         the permissions of a file, storing them, and later setting them. (In the
27462         minimal case, the permissions consist only of a file mode.) Reimplement
27463         qset_acl and qcopy_acl based on these new primitives: this avoids code
27464         duplication and makes error handling more consistent.
27465         The Solaris and Cygwin code still uses duplicate code paths for setting
27466         a file mode while making sure that no acls exist and setting an explicit
27467         acl; this is no worse than before, but could be cleaned up.  The AIX
27468         code still doesn't read ACLs, it only makes sure that acls don't get in
27469         the way when setting a file mode.
27470         * lib/acl-internal.h (struct permission_context): New data structure.
27471         (get_permissions, set_permissions, free_permission_context): Declare.
27472         * lib/acl-internal.c (free_permission_context): New helper function.
27473         * lib/get-permissions.c (get_permissions): New helper function split off
27474         from qcopy_acl.
27475         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
27476         AIX, set a file's permissions based only on a file mode.
27477         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
27478         other platforms construct a temporary acl from the file mode and set
27479         that acl in the same way as setting an acl read from the source file.
27480         This should help avoid code duplication and inconsistent / buggy
27481         behavior.
27482         (set_acls): New helper function Split off from qcopy_acl.
27483         (chmod_or_fchmod): Moved here from qset-acl.c.
27484         (set_permissions): New helper function.
27485         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
27486         set_permissions.
27487         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
27488         * modules/qacl: Add get-permissions.c and set-permissions.c.
27490         file-has-acl: Split feature tests again (Bug#20667)
27491         * lib/file-has-acl.c: Instead of testing for
27492         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
27493         define them when needed.
27494         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
27495         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
27497 2015-05-27  Pádraig Brady  <P@draigBrady.com>
27499         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
27500         This avoids a conflict with "FORTIFY_SOURCE" variants
27501         of the string functions when they're replaced on NetBSD-6.0.1
27502         and Darwin-14.3.0 at least.
27503         * lib/string.in.h: Avoid including our "lib/string.h" while
27504         including the system <string.h>.
27506 2015-05-26  Eric Blake  <eblake@redhat.com>
27508         stdio: limit __gnu_printf__ witness to gcc 4.4+
27509         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
27510         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
27512         error: use correct printf attributes on mingw
27513         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
27515         inttypes: force correct mingw PRIdMAX even without <stdio.h>
27516         * modules/inttypes (Depends-on): Require extensions, so that mingw
27517         always uses GNU style inttypes.
27518         * lib/inttypes.in.h: On mingw, include <stdio.h>.
27520         stdio: fix probe on mingw under gcc 5.1
27521         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
27522         around new gcc preprocessor rules.
27524 2015-05-07  Glenn Morris  <rgm@gnu.org>
27526         gitlog-to-changelog: parse "Tiny-change"
27527         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
27528         "Copyright-paperwork-exempt".  (Bug#20324)
27530 2015-05-06  Pádraig Brady  <P@draigBrady.com>
27532         doc: document glibc posix_fallocate() issues
27533         * doc/posix-functions/posix_fallocate.texi: Mention the
27534         glibc efficiency problems and issues with NFS.
27536 2015-05-05  Karl Berry  <karl@freefriends.org>
27538         * build-aux/gendocs.sh (usage): document new css default
27539         for HTML (--htmlarg).
27541 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27543         extern-inline: no need for workaround in GCC 5.1
27544         * doc/extern-inline.texi (extern inline):
27545         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27546         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
27547         around these bugs in GCC 5.1 and later.  Maybe in a decade or
27548         two we can remove these workarounds.
27550 2015-04-28  Pádraig Brady  <P@draigBrady.com>
27552         eealloc, pagealign_alloc, xalloc: avoid clang warnings
27553         Avoid [-Wunknown-attributes] warnings like:
27554         warning: unknown attribute '__alloc_size__' ignored
27555         * lib/xalloc.h: Don't use the __alloc_size__  attribute
27556         with clang, as support has been fully removed as of clang 3.5:
27557         https://github.com/llvm-mirror/clang/commit/c047507a
27558         * lib/eealloc.h: Likewise.
27559         * lib/pagealign_alloc.h: Likewise.
27561 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27563         tests: pacify GCC 5.1's stricter printf checking
27564         * tests/test-dirname.c (main):
27565         * tests/test-getaddrinfo.c (simple):
27566         * tests/test-getlogin.c (main):
27567         * tests/test-getndelim2.c (main):
27568         * tests/test-inttostr.c (CK):
27569         * tests/test-md5.c (main):
27570         * tests/test-read-file.c (main):
27571         * tests/test-sha1.c (main):
27572         Fix mismatches between printf format and value signedness.
27573         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
27574         Remove, as CAST_VAL always returned a value of type uintmax_t.
27576         fts: port to GCC 5.1 with --enable-gcc-warnings
27577         Without this fix, GCC 5.1 (correctly) warns about a subscript
27578         error on the fts_name component of FTSENT.  It's actually a
27579         flexible member, so define it that way on C99 or later hosts.
27580         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
27581         structure that now has a flexible array member.
27582         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
27583         (FTSENT): fts_name is now flexible on C99-or-later platforms.
27584         * modules/fts (Depends-on): Add flexmember.
27586 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27588         file-has-acl: port to CentOS 6
27589         Problem reported by Tom G. Christensen in:
27590         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27591         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27592         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27593         HAVE_GETXATTR.
27594         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27595         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27596         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27597         file-has-acl.c actually needs.
27599 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27601         file-has-acl: always return false when ACLs aren't supported
27602         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27603         change the GNU/Linux getxattr path, to transform "not supported"
27604         errors to a false return rather than an error.  This is handled
27605         within file_has_acl() due to the platform specific tests to
27606         determine if ACLs are not supported.
27608 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27610         gettext: propagate po/Makefile.in.in too
27611         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27612         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27613         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27614         between Makefile.in.in and the gettext-runtime m4 files.
27616 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27618         file-has-acl: new module, split from acl
27619         And add a new module file-has-acl-tests to match.
27620         I ran into a problem with the recent changes to the acl module,
27621         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27622         When using the fixed version with Emacs, I discovered that
27623         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27624         had multiple libraries, but needed only one), so I fixed that too.
27625         * NEWS: Document this incompatible change.
27626         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27627         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27628         Initialize gl_need_lib_has_acl.
27629         (gl_FUNC_ACL): Require it.
27630         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27631         Move the file-has-acl.c-relevant stuff to ...
27632         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27633         use_xattrs = 0' typo, and omit some needless work.  Set
27634         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27635         when gl_FUNC_ACL is called.
27636         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27637         (Link): Remove $(LIB_HAS_ACL).
27638         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27639         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27640         modules/file-has-acl-tests.
27641         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27643         manywarnings: add GCC 5.1 warnings
27644         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27645         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27646         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27647         -Wsuggest-override, -Wuse-without-only.  Change
27648         -Wnormalized=... operands to match 5.1.
27649         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27650         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27651         -Wdiscarded-qualifiers, -Wformat-signedness,
27652         -Wincompatible-pointer-types, -Wint-conversion,
27653         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27654         -Wshift-count-negative, -Wshift-count-overflow,
27655         -Wsizeof-array-argument, -Wsuggest-final-methods,
27656         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27657         and add -Warray-bounds=2 as a special case.
27659 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27661         doc: update FDL template to match FDL examples.
27662         * doc/alloca-opt.texi:
27663         * doc/alloca.texi:
27664         * doc/c-ctype.texi:
27665         * doc/c-strcase.texi:
27666         * doc/c-strcaseeq.texi:
27667         * doc/c-strcasestr.texi:
27668         * doc/c-strstr.texi:
27669         * doc/c-strtod.texi:
27670         * doc/c-strtold.texi:
27671         * doc/ctime.texi:
27672         * doc/error.texi:
27673         * doc/gcd.texi:
27674         * doc/gnulib-tool.texi:
27675         * doc/inet_ntoa.texi:
27676         * doc/intprops.texi:
27677         * doc/lib-symbol-visibility.texi:
27678         * doc/maintain.texi:
27679         * doc/parse-datetime.texi:
27680         * doc/quote.texi:
27681         * doc/regexprops-generic.texi:
27682         * doc/standards.texi: Remove spurious 'with' in FDL license
27683         template.
27685 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27687         lstat: fix cross-compilation 'ln -s' problem
27688         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27689         Have the test program call 'symlink' rather than a separate
27690         script run 'ln -s'; this is more likely to work in
27691         cross-compilation environments.  Reported by Pavel Fedin in:
27692         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27694 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27696         gendocs.sh: default to a common CSS style sheet for HTML output
27697         * build-aux/gendocs.sh (htmlarg): Change default value.
27699 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27701         gnulib-tool: output bold attribute more portably
27702         * gnulib-tool (func_show_module_list): Change hexadecimal
27703         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27704         encoded numbers as arguments to `printf' is not portable,
27705         and is not claimed by POSIX.  This is the case with FreeBSD.
27707 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27709         qacl: Simplify HP-UX acl_nontrivial check
27710         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27711         acl_nontrivial. Check if the acl has at most three entries instead (it must
27712         have exactly three entries according to the HP-UX documentation). Ignore
27713         uids and gids as long as an entry is either for a user (i.e., the owner),
27714         a group (i.e., the owning group), or others.
27715         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27716         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27718 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27720         acl: On Linux, check for acls without libacl
27721         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27722         library function to check for the presence of acls, avoiding a library.
27723         * lib/file-has-acl.c: Include xattr headers if we have them.
27724         (file_has_acl): On Linux, use getxattr().
27725         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27726         file_has_acl(). Check for xattr headers and getxattr().
27728 2015-04-14  Ángel González  <keisial@gmail.com>
27730         tempname: avoid unused parameter warnings (trivial)
27731         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27732         (try_nocreate): Likewise.
27734 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27736         fseeko: fix build failure on NetBSD >= 6 (trivial)
27737         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27738         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27740 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27742         gitlog-to-changelog: port to MS-Windows
27743         * build-aux/gitlog-to-changelog (git_dir_option):
27744         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27745         MS-Windows Perl.  Reported by Eli Zaretskii in:
27746         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27748 2015-04-07  Karl Berry  <karl@gnu.org>
27750         gendocs: new option --tex for passing args to texi2dvi.
27751         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27752         (TEXI2DVI): cut to just command name.
27753         (usage): mention new option, and update copyright.
27754         <generate_tex>: use it.
27756 2015-04-07  Karl Berry  <karl@gnu.org>
27758         * config/srclistvars.sh (GETTEXT): new definition.
27759         * config/srclist.txt: use it for gettext .m4 files.
27760         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27761         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27762         and continuing into April.
27764 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27766         uniname/uniname-tests: fix failure due to alias
27767         Reported by Jack Howarth in:
27768         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27769         * tests/uniname/test-uninames.c (name_has_alias): New function.
27770         (test_inverse_lookup): Exclude character name with valid alias,
27771         from randomly generated character names.
27772         (main): Fill unicode_aliases before calling test functions.
27774 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27776         hash: remove deprecated hash_insert0 function
27777         * lib/hash.h (hash_insert0): Remove deprecated function.
27778         * lib/hash.c (hash_insert0): Likewise.
27780 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27782         mountlist: remove dependency on libmount
27783         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27784         directly, rather than depending on libmount, which has many
27785         dependencies due to its dependence on libselinux, as detailed at:
27786         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27787         Note we restrict this to __linux__ as that's probably where this
27788         interface will remain.  If ever porting, it would be best
27789         to first pull the makedev() wrapper from coreutils to a gnulib module.
27790         Note also we don't add a getline dependency to the mountlist module,
27791         as all Linux versions are sufficient.
27793 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27795         stddef: port to pre-C11 GCC on x86
27796         On this platform, max_align_t should have an alignment of 8 even
27797         though the storage alignments of double, long, etc. max out at 4.
27798         Inspired by a comment of Andreas Schwab's here:
27799         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27800         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27801         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27802         * tests/test-stddef.c: Test __alignof__ too, if available.
27804 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27806         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27807         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27809 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27811         yesno: make EOL optional in ENABLE_NLS case also (trival)
27812         * lib/yesno.c (yesno): Check for EOL before replacing.
27813         * tests/test-yesno.sh: Add a test case (test along with gettext).
27815 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27817         fdopendir-tests: test it does not close its arg
27818         * tests/test-fdopendir.c (main): Test that fdopendir does not
27819         close its argument.  From a suggestion by David Grayson in:
27820         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27822 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27824         gitlog-to-changelog: trim trailing white space
27825         * build-aux/gitlog-to-changelog (main):
27826         Trim trailing white space from commit message lines.
27827         This is helpful for processing the GNU Emacs repository,
27828         which dates back to 1985 and contains a lot of such lines.
27830         gitlog-to-changelog: new option --ignore-matching
27831         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27832         Support new option --ignore-matching=PAT, which ignores all
27833         commit messages whose first line matches PAT.
27835 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27837         fdopendir: port better to MinGW
27838         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27839         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27840         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27841         * modules/fdopendir (Depends-on): Add dirfd.
27843 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27845         fdopendir: fix typo in comment
27846         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27848 2015-03-09  Eric Blake  <eblake@redhat.com>
27850         error: document all entry points provided
27851         * doc/glibc-functions/error_print_progname.texi
27852         (error_print_progname): Mention the error module.
27853         * doc/glibc-functions/error_at_line.texi (error_at_line):
27854         Likewise.
27855         * doc/glibc-functions/error_message_count.texi
27856         (error_message_count): Likewise.
27857         * doc/glibc-functions/error_one_per_line.texi
27858         (error_one_per_line): Likewise.
27860 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27862         vasnprintf: pacify clang 3.5.0
27863         Problem reported by Werner Lemberg in:
27864         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27865         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27866         The casts aren't needed, since the characters in question are ASCII.
27868 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27870         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27871         * lib/dirent--.h (GNULIB_defined_opendir):
27872         * lib/dirent.in.h (GNULIB_defined_opendir)
27873         (GNULIB_defined_closedir):
27874         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27875         #undef only if Gnulib defined it.
27877         poll: port to MSVC v18 on MS-Windows 8.1
27878         Problem reported by Gisle Vanem in:
27879         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27880         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27881         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27882         Add sys_socket.
27884 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27886         tests: support stderr verification with returns_()
27887         * tests/init.sh (returns_): Disable tracing for this wrapper
27888         function, so that stderr of the wrapped command is unchanged,
27889         allowing for verification of the contents.
27891 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27893         passfd: avoid valgrind uninitalised data warning
27894         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27895         to include just the fd we've initialized, rather than including
27896         the extra space used for alignment.
27898 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27900         uniwbrk/u32-wordbreaks-tests: fix copyright
27901         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27903         dup2: doc and test for Android bug
27904         Reported by Kevin Cernekee in:
27905         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27906         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27907         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27909 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27911         Replace dup2() on Android
27912         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27913         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27914         fails.  Using rpl_dup2() fixes this because it has an explicit test
27915         for this condition.
27917 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27919         Android doesn't define RLIM_SAVED_*
27920         Portability problem reported by Kevin Cernekee in:
27921         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27922         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27923         Mention the portability problem.
27924         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27925         Define if not defined.
27926         * m4/dup2.m4 (gl_FUNC_DUP2):
27927         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27928         Likewise.
27930 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27932         vasnprintf-posix-tests: use consistent test
27933         * tests/test-vasnprintf-posix.c (test_function):
27934         Use "<" in assert instead of "<=", for consistency with other tests.
27936 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27938         printf, isinf, etc.: noncanonical != NaN
27939         Do not require that isinf, printf, etc. treat noncanonical
27940         values as NaNs.  Instead, require only that they do not crash.
27941         Problem reported by Joseph Myers in:
27942         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27943         * doc/posix-functions/dprintf.texi (dprintf):
27944         * doc/posix-functions/fprintf.texi (fprintf):
27945         * doc/posix-functions/isfinite.texi (isfinite):
27946         * doc/posix-functions/isinf.texi (isinf):
27947         * doc/posix-functions/isnan.texi (isnan):
27948         * doc/posix-functions/printf.texi (printf):
27949         * doc/posix-functions/snprintf.texi (snprintf):
27950         * doc/posix-functions/sprintf.texi (sprintf):
27951         * doc/posix-functions/vdprintf.texi (vdprintf):
27952         * doc/posix-functions/vfprintf.texi (vfprintf):
27953         * doc/posix-functions/vprintf.texi (vprintf):
27954         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27955         * doc/posix-functions/vsprintf.texi (vsprintf):
27956         Document this.
27957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27958         * m4/isinf.m4 (gl_ISINFL_WORKS):
27959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27960         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27961         * tests/test-isfinite.c (test_isfinitel):
27962         * tests/test-isinf.c (test_isinfl):
27963         * tests/test-isnan.c (test_long_double):
27964         * tests/test-isnanl.h (main):
27965         * tests/test-snprintf-posix.h (test_function):
27966         * tests/test-sprintf-posix.h (test_function):
27967         * tests/test-vasnprintf-posix.c (test_function):
27968         * tests/test-vasprintf-posix.c (test_function):
27969         Test only that noncanonical values do not cause crashes, not that
27970         they are treated as NaNs.  In some cases this means a larger
27971         output buffer is needed.
27973 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27975         fts: remove redundant close() (trivial)
27976         * lib/fts.c (fts_read): Remove redundant call to close().
27977         Spotted by coverity.
27979 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27981         getdtablesize: port better for Android
27982         Problem reported by Kevin Cernekee in:
27983         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27984         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27985         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27986         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27988         poll: fixes for large fds
27989         * lib/poll.c (poll): Don't check directly for NFD too large.
27990         Don't rely on undefined behavior in FD_SET when an arg exceeds
27991         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27992         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27993         as that makes the test a bit stricter.
27995 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27997         fcntl: Fix cross compiling
27998         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27999         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
28001 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
28003         dup2, fcntl: cross-compile better for Android
28004         Problem reported by Kevin Cernekee in:
28005         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
28006         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
28007         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
28008         there's little need to cross-compile for older kernels nowadays.
28009         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
28010         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
28012 2015-02-18  Pádraig Brady  <P@draigBrady.com>
28014         getopt: don't crash on memory exhaustion
28015         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
28016         memory exhaustion.  In the _LIBC case we use alloca() as is
28017         already done in glibc, so we don't need to consider the separate
28018         error path in that awkward case.  Also fix a memory leak when
28019         ambiguous options are present.
28020         Reported by Tobias Stoeckmann
28022 2015-02-17  Mike Miller  <mtmiller@ieee.org>
28024         tempname: allow compilation with C++ (trivial)
28025         * lib/tempname.h [C++]: Specify extern "C" linkage.
28026         * lib/tempname.h (try_tempname):
28027         * lib/tempname.c (__try_tempname, __gen_tempname):
28028         Rename 'try' to 'tryfunc'.
28030 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
28032         dup2, fcntl: port to AIX
28033         * m4/dup2.m4 (gl_FUNC_DUP2):
28034         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28035         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
28036         The former works on AIX 7.1 but the latter does not.
28037         Also, this may work better with Android; see:
28038         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
28040 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
28042         getdtablesize, dup2, fcntl: port to Android
28043         Problem reported by Kevin Cernekee in:
28044         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
28045         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
28046         Mention that getdtablesize doesn't work on Android.
28047         * lib/getdtablesize.c: Use getrlimit substitute only if
28048         getdtablesize is declared.  This should suffice for Cygwin
28049         while not breaking Android.
28050         * m4/dup2.m4 (gl_FUNC_DUP2):
28051         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28052         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
28053         standardized but the latter is not, and sysconf works on Android.
28054         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
28055         Also check that getdtablesize is declared.
28056         This removes the need for a special case for Android.
28058 2015-02-16  Kevin Cernekee  <cernekee@google.com>
28060         localename: Implement gl_locale_name_thread_unsafe for Android
28061         * lib/localename.c: Android API level >= 21 supports two hardcoded
28062         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
28063         the internal __locale_t struct.
28065 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
28067         fts: avoid crash when a cycle is added while traversing
28068         This could be triggered by auto-mounting a recursive bind mount.
28069         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
28070         * lib/fts.c (fts_read): Avoid removing the original hash table item
28071         when leaving a directory that caused a cycle, and preserve the FTS_DC
28072         flag.
28074 2015-02-16  Daiki Ueno  <ueno@gnu.org>
28076         uniname/uniname: support character alias
28077         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
28078         Generate one-way mapping from aliases to codepoints in the
28079         generated tables.  Special case variation selectors to reduce
28080         table size.
28081         * lib/uniname/uniname.c (unicode_character_name): Special case
28082         variation selectors.
28083         (unicode_name_character): Special case variation selectors and
28084         their aliases.
28085         * lib/uniname/uninames.h: Regenerate.
28086         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
28087         * modules/uniname/uniname-tests (Files): Add
28088         tests/uniname/NameAliases.txt.
28089         * tests/uniname/test-uninames.c: Mark as static.
28090         (ALIASLEN): Define.
28091         (struct unicode_alias): New struct.
28092         (unicode_aliases): New variable.
28093         (fill_aliases): New function.
28094         (test_alias_lookup): New test function.
28095         (main): Run the 'test_alias_lookup' test if the second argument is
28096         given.
28097         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
28098         second argument.
28100 2015-02-11  Kevin Cernekee  <cernekee@google.com>
28102         Fix FILE struct compatibility with Android API level >= 21
28103         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
28104         __sferror.  Recent versions of Bionic's stdio.h no longer define
28105         __sferror.
28106         * lib/fbufmode.c: Likewise.
28107         * lib/fflush.c: Likewise.
28108         * lib/fpurge.c: Likewise.
28109         * lib/freadable.c: Likewise.
28110         * lib/freadahead.c: Likewise.
28111         * lib/freading.c: Likewise.
28112         * lib/freadptr.c: Likewise.
28113         * lib/freadseek.c: Likewise.
28114         * lib/fseeko.c: Likewise.
28115         * lib/fseterr.c: Likewise.
28116         * lib/fwritable.c: Likewise.
28118         Assume unbroken ungetc() on Android
28119         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
28120         test case passed when running on an Android host, and the code
28121         hasn't really changed since 2009.
28123         getdtablesize: Fix Android build
28124         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
28125         versions have this symbol in the .so library (at least 32-bit
28126         platforms) but are missing the declaration in the header file,
28127         causing the m4 logic to guess incorrectly.
28129         localename: Fix Android build
28130         * modules/localename (Depends-on): Add langinfo.
28132         getugroups: Fix Android build
28133         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
28134         functions.
28136         euidaccess: Fix Android build
28137         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
28138         AT_EACCESS gets declared.
28140         linkat_nofollow: Add fallback case for cross compiling
28141         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
28143         net_if: Handle content-free <net/if.h> system headers
28144         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
28145         struct if_nameindex.  If not, enable the replacement header.
28147         signal_h: Fix Android build
28148         * lib/signal.in.h: Add Android to the list of platforms that declare
28149         pthread_sigmask() in <pthread.h> instead of <signal.h>.
28151         duplocale: Fix Android build of duplocale-tests
28152         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
28153         is included by test-duplocale.c (but not by duplocale.c).
28154         * modules/duplocale-tests (configure.ac): Check for monetary.h.
28155         * tests/test-duplocale.c: Skip test if monetary.h is absent.
28156         * doc/posix-headers/monetary.texi: Add Android to the list of
28157         platforms missing monetary.h.
28159 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28161         tests: avoid recent -Werror=unused-variable regression in test-locale
28162         * tests/test-locale.c (main): Reference the variable to avoid the
28163         "unused variable" warning.
28165 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28167         maint: various whitespace cleanups in tempname
28168         * lib/tempname.c: Normalize spacing and line length.
28169         * lib/tempname.h: Likewise.
28170         * modules/tempname: Likewise.
28172 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28174         tests: provide returns_() to simplify exit status checking
28175         * tests/init.sh (returns_): A new function for use in tests,
28176         to allow for easier checking of return values, where you expect
28177         a command to exit with failure status.  By checking for a particular
28178         exit code, you don't hide any crashes for example.
28180 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28182         mountlist: only use libmount when specified
28183         There are currently many shared libs dependencies introduced by
28184         libmount with associated runtime and virt mem overhead.
28185         Therefore don't enable by default.
28186         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
28188 2015-02-08  Daiki Ueno  <ueno@gnu.org>
28190         uniname/unimame-tests: don't link with -lunistring
28191         * modules/uniname/uniname-tests (Makefile.am): Don't link against
28192         $(LIBUNISTRING).  Document the rationale why we need to
28193         conditionalize the test.
28195 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28197         fstrcmp: don't assume strlen < INT_MAX
28198         * lib/fstrcmp.c: Include stddef.h and stdint.h.
28199         (uintptr_t): Remove, as we're now assuming stdint.
28200         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
28201         Prefer ptrdiff_t to int when the value could exceed INT_MAX
28202         if the input string is long.
28203         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
28204         uintptr_t to size_t when the underlying value is a pointer casted
28205         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
28206         * modules/fstrcmp (Depends-on): Add stdint.
28208         diffseq: prefer ptrdiff_t to ssize_t
28209         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
28210         ptrdiff_t is the natural type for signed indexes.
28211         On a few older platforms, ssize_t is narrower than size_t.
28213         xalloc: fix typo that suppressed warnings
28214         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
28215         This typo, introduced a couple of years ago, mistakenly suppressed
28216         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
28217         -Wmissing-declarations warnings.
28219         full-read: fix license notice typo
28220         * lib/full-read.h: Remove a stray line in the license notice.
28221         Reported by Sam Ellis in: http://bugs.gnu.org/19808
28223         crypto/gc: fix a -Wswitch warning
28224         Reported by Bruce Korb in:
28225         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
28226         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
28228 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28230         gnulib-tool: fix handling of patch(1) diagnostics
28231         * gnulib-tool: Send diagnostics from patch(1) to stderr,
28232         as otherwise gnulib-tool will reparse that output and attempt
28233         to lookup modules.
28235 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28237         bootstrap: exit immediately upon gnulib-tool failure
28238         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
28239         This was noticed when gnulib-tool exited early due to failure
28240         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
28241         but various confusing errors were then given as the build proceeded.
28243 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
28245         symlinkat: include all required header files
28246         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
28247         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
28248         Reported at https://savannah.gnu.org/bugs/index.php?44151
28249         and by Jack Howarth.
28251 2015-01-29  Pádraig Brady  <P@draigBrady.com>
28253         localename: support Solaris 12 and illumos
28254         * lib/localename.c (gl_locale_name_thread_unsafe): call
28255         getlocalename_l() on newer __sun platforms.
28256         Reported by Alexander Pyhalov.
28257         Fix suggested by Rich Burridge.
28259 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
28261         locale: fix tests on illumos (trivial)
28262         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
28263         so move from global scope to main().
28265 2015-01-24  Daiki Ueno  <ueno@gnu.org>
28267         unictype: avoid undefined left-shift behavior
28268         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
28269         gcc's -fsanitize=shift and running its tests triggered:
28270           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
28271             places cannot be represented in type 'int'
28272         Cast LHS to 'unsigned int' after integer promotion.
28273         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
28274         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
28276 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28278         libunistring: bump version of unitypes dependants
28279         Due to the header file search order, all the headers which depend
28280         on unitypes.h need to be generated, when the preinstalled
28281         libunistring is older.
28282         * modules/unicase/base (configure.ac): Bump minimum version to
28283         0.9.4.
28284         * modules/uniconv/base (configure.ac): Likewise.
28285         * modules/unilbrk/base (configure.ac): Likewise.
28286         * modules/uninorm/base (configure.ac): Likewise.
28287         * modules/unistdio/base (configure.ac): Likewise.
28288         * modules/unistr/base (configure.ac): Likewise.
28289         * modules/uniwbrk/base (configure.ac): Likewise.
28290         * modules/uniwidth/base (configure.ac): Likewise.
28292 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28294         unictype/category-none: fix link with libunistring
28295         Since _UC_CATEGORY_NONE is not a public symbol, it will be
28296         prefixed with "libstring_" when compiled as part of libunistring.
28297         To avoid undefined symbol at link time, increase the minimum
28298         version when the dependant modules are updated.
28299         * modules/unictype/category-none (configure.ac): Bump minimum
28300         version to 0.9.5.
28302 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28304         unitypes: fix build with installed libunistring
28305         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
28306         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
28307         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
28309 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28311         time: port to MinGW32 3.21
28312         Problem reported by Eli Zaretskii in:
28313         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
28314         * lib/time.in.h:
28315         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
28316         * modules/time (Depends-on):
28317         Fall back on unistd.h if the other include files don't define
28318         struct timespec.
28320         update-copyright: apply to self
28321         * build-aux/update-copyright: Fix copyright date.  How ironic!
28323 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28325         libunistring: update to Unicode 7.0.0
28326         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
28327         Manichaean names.
28328         * lib/unictype/joininggroup_name.h: Likewise.
28329         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
28330         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
28331         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
28332         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
28333         (fill_arabicshaping, joining_group_as_c_identifier): Support those
28334         enum values.
28335         (is_property_alphabetic): Accept newly added characters to
28336         cuneiform numeric signs.
28337         (is_property_default_ignorable_code_point): Reject U+0605.
28338         (FIELDLEN): Increase from 120 to 160.
28339         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
28340         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
28341         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
28342         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
28343         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
28344         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
28345         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
28346         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
28347         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
28348         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
28349         U+1E8D0..U+1E8D6.
28350         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
28351         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28352         lib/uniwidth/width.c.
28353         * all generated files under lib/uni* and tests/uni*: Regenerate.
28355 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28357         libunistring: update to Unicode 6.3.0
28358         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28359         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
28360         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
28361         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
28362         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
28363         Update WB5, WB9, WB10, WB13a, and WB13b.
28364         * tests/uniwbrk/test-uc-wordbreaks.c
28365         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
28366         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28367         (UC_BIDI_PDI): New enumeration values.
28368         (bidi_category_byname): Support those enum values.
28369         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
28370         dedicated property assigned.
28371         (is_property_case_ignorable): Check 0x0027.
28372         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28373         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28374         (output_wbp): Support those enum values.
28375         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28376         (UC_BIDI_PDI): New enumeration values.
28377         * lib/unictype/bidi_byname.gperf: Add those property names.
28378         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
28379         U+180E, U+1A1B, and U+2066..U+2069.
28380         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28381         lib/uniwidth/width.c.
28382         * all generated files under lib/uni* and tests/uni*: Regenerate.
28384 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28386         libunistring: update to Unicode 6.2.0
28387         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
28388         (unilbrk_table): Adjust table size.
28389         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28390         for LBP_RI.
28391         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
28392         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
28393         Normalize table index skipping ignored properties.
28394         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
28395         WBP_EXTEND and WBP_FORMAT, which are now computed without using
28396         the table.
28397         * lib/uniwbrk/wbrktable.h: Adjust table size.
28398         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
28399         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
28400         Support rule GB8a.
28401         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
28402         * tests/unigbrk/test-uc-is-grapheme-break.c
28403         (graphemebreakproperty_to_string): Support GBP_RI.
28404         * tests/uniwbrk/test-uc-wordbreaks.c
28405         (wordbreakproperty_to_string): Support WBP_RI.
28406         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
28407         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
28408         (output_lbp): Support LBP_RI.  Adjust some characters changed from
28409         LBP_AL to LBP_ID.
28410         (output_lbp): Support LBP_RI.
28411         (WBP_RI): New enumeration value.
28412         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28413         (output_wbp): Support WBP_RI.
28414         (GBP_RI): New enumeration value.
28415         (output_gbp_test, fill_org_gbp): Support GBP_RI.
28416         * all generated files under lib/uni* and tests/uni*: Regenerate.
28418 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28420         libunistring: update to Unicode 6.1.0
28421         * lib/gen-uni-tables.c (output_joining_group): Switch to
28422         3-level table to accommodate joining groups defined with higher
28423         codepoint value.  Since there are only 88 groups defined in
28424         Unicode 7.0.0, use 7-bit packed format for level3 entries.
28425         (get_lbp): Update for Unicode 6.1.0.
28426         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
28427         3-level table.
28428         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
28429         joining group name.
28430         * lib/unictype/joininggroup_name.h: Likewise.
28431         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
28432         (unilbrk_table): Adjust table size.
28433         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28434         for LBP_HL.
28435         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
28436         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
28437         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
28438         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
28439         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
28440         U+302E..U+302F.
28441         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28442         lib/uniwidth/width.c.
28443         * all generated files under lib/uni* and tests/uni*: Regenerate.
28444         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
28446 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28448         uniwbrk/u32-wordbreaks-tests: add conformance test
28449         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
28450         tests/uniwbrk/test-uc-wordbreaks.c,
28451         tests/uniwbrk/test-uc-wordbreaks.sh, and
28452         tests/uniwbrk/WordBreakTest.txt.
28453         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
28454         test-uc-wordbreaks to $(check_PROGRAMS), and define
28455         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
28456         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
28457         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
28459 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28461         uniwbrk: ignore Extended/Format characters at BOL not BOS
28462         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
28463         characters if the previous character property is one of
28464         WBP_NEWLINE, WBP_CR, and WBP_LF.
28466 2015-01-11  Jim Meyering  <meyering@fb.com>
28468         test-strstr.c: avoid a trivial leak
28469         * tests/test-strstr.c (main): Free haystack.
28471         update-copyright: recognize groff's \(co marker
28472         * build-aux/update-copyright (circle_c_re): Also accept
28473         uses of \(co, as found in gzip.1.
28475 2015-01-08  Pádraig Brady  <P@draigBrady.com>
28477         maint.mk: fix compatibility with OS X nm
28478         * top/maint.mk (_gl_tight_scope): Use the -g option to
28479         show exported items rather than the -e option which is
28480         ignored on all platforms except OS X where it gives an error.
28481         Reported by Assaf Gordon.
28483 2015-01-07  KO Myung-Hun  <komh@chollian.net>
28485         localcharset: improve charset detection on OS/2
28486         Use system codepage when appropriate.  Map OS/2 codepages to
28487         GNU canonical charset names if possible.
28488         * lib/config.charset: Don't output aliases if "$os" is os2*.
28489         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
28490         result for OS/2.
28491         (locale_charset) [OS2]: Use system codepage if codeset is omitted
28492         from the locale name which is neither "C" nor "POSIX".
28494 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28496         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
28497         This reverts the last patch but one, as it shouldn't be needed now
28498         that the typo is fixed.
28499         * lib/count-leading-zeros.h (count_leading_zeros_ll):
28500         * lib/count-trailing-zeros.h:
28501         * lib/count-one-bits.h:
28502         Go back to using 64-bit intrinsics.
28504         count-leading-zeros: fix pragma typos
28505         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
28506         Fix typos in declaration of intrinsics when _MSC_VER.
28508 2015-01-06  Pádraig Brady  <P@draigBrady.com>
28510         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
28511         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
28512         intrinsics in this case.
28513         * lib/count-trailing-zeros.h: Likewise.
28514         * lib/count-one-bits.h: Likewise.
28516 2015-01-06  Daiki Ueno  <ueno@gnu.org>
28518         uniname/uniname: update to Unicode 7.0.0
28519         To accommodate new characters added since Unicode 5.1.0, this
28520         changes the internal representation of codepoint ranges.
28521         Previously, we grouped codepoint ranges by manually assigned 4-bit
28522         tag, which only allowed 16 groups.  This removes the limitation by
28523         switching to binary search on a table.  For the detail rationale
28524         and the benchmark results, see:
28525         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
28526         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
28527         to INDEX, as it no longer represents a codepoint.
28528         (range): New struct.
28529         (main): Switch to intervals list from a bit-pattern based
28530         classification.
28531         * lib/uniname/uninames.h: Regenerate.
28532         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
28533         * modules/uniname/base (configure.ac): Bump minimum version to
28534         0.9.5.
28535         * modules/uniname/uniname (configure.ac): Bump minimum version to
28536         0.9.5.
28538 2015-01-05  Eric Blake  <eblake@redhat.com>
28540         doc: update INSTALL from autoconf
28541         * doc/install.texi: Resync from autoconf.
28542         * doc/INSTALL: Reflect recent autoconf update.
28543         * doc/INSTALL.ISO: Likewise.
28544         * doc/INSTALL.UTF-8: Likewise.
28546         stdio: fix use of PRIdMAX on modern mingw
28547         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
28548         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
28549         to work with modern mingw.
28551 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
28553         pthread: detect git mingw builds with only partial pollution
28554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
28555         pollution, as seen temporarily in Fedora 21.
28557 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28559         lib-symbol-versions: cache script check
28560         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
28561         Cache the check for linker version scripts.
28562         From a suggestion by Christophe Curis in:
28563         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
28565 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
28567         maint: fix grammar nits in propername (trivial change)
28568         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
28569         and use an adequate verb and tense.
28571 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
28573         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28574         * module/gendocs: Add 'doc/gendocs_template_min'.
28576         * build-aux/gendocs.sh: Change email addresses and upstream URLs
28577         from to Gnulib's.
28578         (scripturl, templateurl): Adjust accordingly.
28580 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28582         gendocs: copyright date and version fix
28583         Reported by Karl Berry in:
28584         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
28585         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
28586         Fix copyright date.
28587         * build-aux/gendocs.sh (scriptversion): Update.
28589 2015-01-01  Karl Berry  <karl@gnu.org>
28591         * doc/install.texi,
28592         * build-aux/mdate-sh,
28593         * build-aux/depcomp,
28594         * build-aux/config.guess,
28595         * build-aux/config.sub,
28596         * build-aux/ar-lib,
28597         * build-aux/compile: revert copyright updates (some from last
28598         year) in slaved files.
28600 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28602         version-etc: new year
28603         * doc/gnulib.texi:
28604         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28605         * all files: Run 'make update-copyright'.
28607 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28609         xstrtol: ensure errno is reset
28610         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28611         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28613         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28615 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28617         utimens: fix dependency typo
28618         * modules/utimens (Depends-on): Remove 'assure'.
28619         This bug was introduced in the recent 'assure' patch.
28621 2014-12-22  Eric Blake  <eblake@redhat.com>
28623         docs: mention why libgen.h is bad
28624         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28626 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28628         assure: new module
28629         This works better than 'assert' when compiling with -DNDEBUG,
28630         as it avoids some compiler diagnostics in that case.
28631         Reported by Norihiro Tanaka in:
28632         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28633         * MODULES.html.sh (func_all_modules): Add 'assure'.
28634         * lib/assure.h, modules/assure: New files.
28635         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28636         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28637         Prefer 'assure' to 'assert'.
28638         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28639         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28640         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28641         Depend on 'assure'.
28643 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28645         stdalign: port better to HP compilers
28646         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28647         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28649         stdalign: work around Apple GCC 4.0 bug
28650         Reported by David Fang in:
28651         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28652         * lib/stdalign.in.h (_Alignas):
28653         * m4/stdalign.m4 (gl_STDALIGN_H):
28654         Do not use aligned attribute with GCC 4.0 on Apple.
28656 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28658         getcwd: fix test failure on OS X 10.9
28659         * m4/getcwd-path-max.m4: Avoid the replacement if it
28660         won't be effective due to the PATH_MAX limitation of lstat().
28661         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28662         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28663         for this case for use in tests, and also exclude this
28664         case when setting REPLACE_GETCWD.
28665         * tests/test-getcwd.c (test_long_name): Restrict the
28666         tested path length so that lstat() will not be passed
28667         a path greater than PATH_MAX.
28668         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28669         than AT_FDCWD, since the latter is set unconditionally
28670         since Sep 2009 in commit 52c658e9.
28672 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28674         parse-datetime: avoid a compiler warning with byacc (trivial)
28675         * lib/parse-datetime.y (yylex): Use the same prototype in the
28676         function definition as the declaration, to avoid a -Wstrict-prototypes
28677         warning seen when using byacc.
28679 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28681         unicase/locale-language-tests: fix LOCALE_FR test
28682         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28683         a French locale with traditional encoding.
28684         Reported by umerqayam in:
28685         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28687 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28689         stddef: support C11's max_align_t
28690         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28691         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28692         Do not undef, as that might cause max_align_t to be defined twice.
28693         Instead, change use to check for _GL_STDDEF_WINT_T too.
28694         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28695         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28696         Check for max_align_t.
28697         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28698         * modules/stddef-tests (Depends-on): Add stdalign.
28699         * tests/test-stddef.c: Test max_align_t.
28701 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28703         unistd: fix iOS check conditional
28704         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28705         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28706         yielded true on non-iOS environment.
28707         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28708         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28709         they are defined.
28711 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28713         posixtm: avoid compiler warning in a better way
28714         * lib/posixtm.c (IF_LINT): Remove.
28715         (year, posix_time_parse):
28716         Return true (not 0) if successful.  All callers changed.
28717         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28719 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28721         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28722         started with '/' on EMX.
28724 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28726         freopen: workaround freopen() on OS/2 kLIBC
28727         * lib/freopen.c (rpl_freopen): Workaround.
28728         * m4/freopen.m4: Add os2* case.
28730         get_shared_library_fullname: port to EMX
28731         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28732         on EMX, respectively.
28733         (_DLL_InitTerm): New on EMX.
28734         (get_shared_library_fullname): Implement on EMX.
28736         find_executable: port to EMX
28737         * lib/progreloc.c (find_executable): Implement on EMX.
28739         sched: check struct sched_param in spawn.h as well
28740         * lib/sched.in.h: Include spawn.h on kLIBC.
28741         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28743 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28745         bootstrap: Allow perl modules in $buildreq
28746         * build-aux/bootstrap: Add case for perl modules.
28748 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28750         apply _GL_ATTRIBUTE_PURE to some inline functions
28751         clang 3.4.2 flagged these inline functions as pure
28752         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28753         * lib/sig-handler.h (get_handler): Likewise.
28754         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28755         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28757 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28759         vasnprintf: fix potential use after free
28760         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28761         flagged by clang-analyzer 3.4.2.
28763 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28765         filevercmp, posixtm: avoid compiler warnings with -O3
28766         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28767         * lib/posixtm.c: (IF_LINT): Define.
28768         (posix_time_parse): Use it to void a "may be used uninitialized"
28769         warning, seen only with -O3.
28771 2014-12-05  Bruno Haible  <bruno@clisp.org>
28773         Fix LDBL80_WORDS macro on big endian platforms.
28774         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28775         LDBL80_WORDS macro.
28776         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28778         * tests/test-isfinite.c (test_isfinitel): Likewise.
28779         * tests/test-isinf.c (test_isinfl): Likewise.
28780         * tests/test-isnan.c (test_long_double): Likewise.
28781         * tests/test-isnanl.h (main): Likewise.
28782         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28783         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28784         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28785         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28786         Reported by Pádraig Brady.
28788 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28790         git-version-gen: do not print new line characters
28791         * build-aux/git-version-gen: Use printf instead of echo and tr.
28793         gnulib-tool: recognize x:* as an absolute path
28794         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28795         (func_relconcat): Likewise.
28797 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28799         argp: avoid extraneous translation and mem leak with empty pre doc
28800         * lib/argp-help.c (argp_doc): Never translate the empty string,
28801         when "\v" is the first or last character of the string, as that
28802         has a reserved meaning to return the header info from a po file.
28803         This also fixes a small memory leak in the !post case.
28804         The issue can be seen with this command for example:
28805         LC_MESSAGES=en_US grub2-mknetdir --help
28807 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28809         uniname/uniname-tests: skip if system's libunistring is used
28810         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28811         uniname/uniname module is not compiled.
28813 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28815         printf: fix configure check on big endian systems
28816         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28818 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28820         pipe-filter-gi, pipe-filter-ii: port to AIX
28821         On AIX 7.1, 'select' is defined as static and cannot be referred
28822         to from inline function.
28823         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28824         the definition...
28825         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28826         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28828 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28830         gitlog-to-changelog: add --until
28831         * build-aux/gitlog-to-changelog: Support new --until option.
28832         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28834 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28836         extern-inline: update commentary about GCC bugs
28837         * m4/extern-inline.m4: Add another GCC bug number to comments.
28839 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28841         gen-uni-tables: untabify
28842         * lib/gen-uni-tables.c: Untabify.
28844 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28846         gen-uni-tables: check out-of-range values added to 3-level tables
28847         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28848         (output_joining_type, output_ident_category): Check out-of-range
28849         values added to 3-level tables.
28851 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28853         gen-uni-tables: utilize 'assert'
28854         * lib/gen-uni-tables.c: Include <assert.h>.
28855         (output_category, output_combclass, output_decimal_digit_test)
28856         (output_decimal_digit, output_digit_test, output_digit)
28857         (output_numeric, get_mirror_value, fill_properties)
28858         (fill_property30, is_property_alphabetic)
28859         (is_property_default_ignorable_code_point)
28860         (is_property_uppercase, is_property_lowercase)
28861         (is_property_cased, is_property_case_ignorable)
28862         (is_property_changes_when_lowercased, is_property_iso_control)
28863         (is_property_math, fill_arabicshaping, output_joining_group)
28864         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28865         (output_wbp, fill_org_gbp, get_decomposition)
28866         (output_decomposition, fill_composition_exclusions)
28867         (debug_output_composition_tables, output_composition_tables)
28868         (redistribute_casefolding_rules, output_casing_rules): Use
28869         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28870         reporting.
28872 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28874         gen-uni-tables: cosmetic improvements
28875         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28876         variables specification.
28877         (is_outdigit): Remove unused function.
28879 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28881         fcntl-h-tests: port to PA-RISC GNU/Linux
28882         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28884 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28886         fts: port to C89
28887         Problem reported for MSVC 16 by Gisle Vanem in:
28888         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28889         * lib/fts.c (fts_build): Avoid declaration before statement.
28891 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28893         unistd: port to iOS
28894         Problem reported by André Klitzing in:
28895         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28896         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28898 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28900         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28901         Problem reported by Alan Modra in:
28902         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28903         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28904         Always cast the function arg, reverting this part of the previous
28905         change.
28907 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28909         obstack: avoid potentially-nonportable function casts
28910         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28911         Remove, replacing with ...
28912         (call_chunkfun, call_freefun): New static functions.
28913         All uses changed.  Avoid potentially-nonportable casts.
28914         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28915         (_obstack_begin_worker): Omit last two args, since they
28916         rely on potentially-nonportable casts.  All callers changed.
28917         * lib/obstack.h (_OBSTACK_CAST): New macro.
28918         Use it everywhere the old API used a potentially-nonportable cast.
28919         The new API doesn't cast.
28920         (struct obstack): Use unions rather than requiring
28921         potentially-nonportable casts.
28922         (obstack_chunkfun, obstack_freefun): Return void.
28924 2014-11-03  Alan Modra  <amodra@gmail.com>
28926         obstack: fix macro return values
28927         * lib/obstack.h (obstack_next_free): Return void *.
28928         (obstack_1grow_fast, obstack_blank_fast): Return void.
28929         For __GNUC__ macros:
28930         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28931         For !__GNUC__ macros:
28932         (obstack_make_room, obstack_grow, obstack_grow0)
28933         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28935 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28937         obstack: do not assume system-supplied obstack is size_t safe
28938         * m4/obstack.m4: New file.
28939         * modules/obstack (Files): Add it.
28941         obstack: port to platforms that #define __alignof__
28942         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28943         not if !_LIBC.  We don't know of any platforms that #define
28944         __alignof__, but it might be useful in tests.  Conversely,
28945         glibc assumes GCC.
28947 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28949         linkat: don't unconditionally replace on GNU/Linux
28950         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28951         was redundant for a few reasons.  It was present to support compiling
28952         on new systems but running on the old narrow window of Linux 2.6.1[67].
28953         It setup and cleaned up test files which weren't actually used.
28954         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28955         implicit in the following check.
28957 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28959         linkat: wrap to handle symlinks on OS X 10.10
28960         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28961         but not usable because it doesn't support creating hardlinks
28962         to symlinks.  Therefore add a generic test for this capability
28963         and fallback to our emulation if linkat() fails with ENOTSUP.
28965 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28967         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28968         * doc/posix-functions/open.texi (open):
28969         * doc/posix-functions/openat.texi (openat):
28970         Document that these functions do not set errno to ELOOP when
28971         a symlink is opened with O_NOFOLLOW.
28973 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28975         obstack: add NEWS entry for recent incompatible changes
28976         * NEWS: Describe recent changes.
28978 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28980         mountlist: don't use libmount to decide on dummy/remote
28981         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28982         routines to determine whether a file system is dummy or remote,
28983         as they're not currently compatible.  For example the remoteness
28984         is determined on file system type (for which the list seems incomplete),
28985         rather than simply checking for a ':' in the device name.
28986         Also libmount currently determines that 'tmpfs' is a dummy file system
28987         even though it has associated storage.
28989 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28991         obstack: prefer __alignof__ to alignof
28992         This is for portability to pre-4.7 GCC when compiling glibc.
28993         See Joseph S. Myers in:
28994         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28995         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28996         New macro, defined by including and using <alignof.h>.
28997         (MAX): New macro.
28998         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28999         Do not use enums as they are not portable to some broken compilers.
29000         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
29002         obstack: prefer alignof to calculating alignments by hand
29003         * lib/obstack.c: Include <stdalign.h>.
29004         (struct fooalign): Remove.
29005         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
29006         * modules/obstack (Depends-on): Add stdalign.
29008 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29010         obstack: use size_t alignments and check for overflow
29011         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
29012         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
29013         * lib/obstack.h (struct obstack.alignment_mask):
29014         Use _OBSTACK_SIZE_T, not int, for alignments.
29015         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
29016         overflows, e.g., when adding the alignment.
29018 2014-10-29  Alan Modra  <amodra@gmail.com>
29020         obstack: 64-bit obstack support, part 3
29021         This finally enables full 64-bit obstack support.  The glibc
29022         shared library specific code is removed from obstack.c too, and
29023         the error handling code conditionally compiled under control of
29024         another macro, _OBSTACK_NO_ERROR_HANDLER.
29025         * lib/obstack.h: Include string.h earlier.
29026         (_OBSTACK_INTERFACE_VERSION): Define.
29027         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
29028         * lib/obstack.c: Don't include shlib-compat.h.
29029         (OBSTACK_INTERFACE_VERSION): Delete.
29030         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
29031         glibc code is compatible with version 2.  Don't include stdio.h for
29032         __GNU_LIBRARY.
29033         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
29034         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
29035         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
29036         glibc shared library specific source.
29038         obstack: 64-bit obstack support, part 2
29039         This gets us 4G obstack support, without changing ABI
29040         compatibility, apart from possibly introducing some
29041         signed/unsigned comparison warnings in code that uses obstack.h.
29042         a) Replace "int" size parameters, return values, and macro local vars
29043            with _OBSTACK_SIZE_T, an "unsigned int" for now.
29044         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
29045         c) Make all obstack macros checking available room use obstack_room.
29046            "next_free + desired > chunk_limit" may wrap the lhs for chunks
29047            allocated near the top of memory.
29048         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
29049         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
29050         in place of "int" size parameters, return values and local vars.
29051         (_CHUNK_SIZE_T): Define.
29052         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
29053         union use an _OBSTACK_SIZE_T integer type.
29054         For __GNUC__ versions of the following macros...
29055         (obstack_room): Rename local var.
29056         (obstack_make_room): Use obstack_room.
29057         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
29058         obstack_int_grow, obstack_blank): Likewise.
29059         (obstack_finish): Use unsigned comparison when comparing aligned
29060         next_free against chunk_limit.
29061         (obstack_free): Cast OBJ to remove possible const qualifier.
29062         For !__GNUC__ versions of the following macros...
29063         (obstack_make_room): Use obstack_room.
29064         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
29065         obstack_int_grow, obstack_blank): Likewise.
29066         (obstack_finish): Use unsigned comparision when comparing aligned
29067         next_free against chunk_limit.
29068         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
29069         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
29070         _OBSTACK_SIZE_T.
29071         (_obstack_begin, _obstack_begin_1): Likewise.
29072         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
29073         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
29075         obstack: 64-bit obstack support, part 1
29076         a) Correct calls to alloc function, to use a size_t arg.  "long" is
29077            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
29078            and "size_t" 64 bits.
29079         b) Consolidate _obstack_begin and _obstack_begin1 code.
29080         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
29081         use "size_t" rather than "long".
29082         (_obstack_begin, _obstack_begin1): Likewise.
29083         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
29084         obstack_chunkfun): Update alloc function casts.
29085         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
29086         (chunkfun_type, freefun_type): New typdefs.
29087         (_obstack_begin_worker): Split out from ..
29088         (_obstack_begin, _obstack_begin_1): ..here.
29090         obstack: tidy part 2
29091         a) Don't be concerned about "not polluting the namespace with stddef.h
29092            symbols" in obstack.h, since gnulib string.h includes stddef.h
29093            anyway, and it seems unlikely that anyone would care.
29094         b) Don't roll our own slow memcpy in _obstack_newchunk.
29095         c) Rename obstack_free to _obstack_free.  This makes the naming
29096            consistent with other obstack functions and obviates the need for
29097            __obstack_free.  Ancient obstack.c defined both obstack_free and
29098            _obstack_free.  We continue to do that for _LIBC via an alias.
29099         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
29100            is clever, but nowadays gcc warns on undefined macros.  You'll get
29101            an undefined macro warning if simulating an old gcc with -U__GNUC__
29102            -U__GNUC_MINOR__ -D__GNUC__=1.
29103         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
29104         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
29105         (__obstack_free): Delete, update refs.
29106         (_obstack_free): Rename from obstack_free.
29107         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
29108         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
29109         * lib/obstack.c: Don't include stddef.h.
29110         (COPYING_UNIT): Delete.
29111         (_obstack_begin): Formatting fix.
29112         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
29113         (_obstack_free): Rename from __obstack_free, update alias.  Move
29114         undef of obstack_free to where it is needed.
29116         obstack: tidy part 1
29117         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
29118            to me, and result in overlong lines after later patches.
29119         b) Move error handling code, to avoid a forward declaration and to
29120            simplify later patches in this series.
29121         * lib/obstack.h (struct obstack <temp>): Rename fields of union
29122         and update all uses.
29123         * lib/obstack.c: Include stdlib.h earlier.
29124         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
29125         in file.
29126         (print_and_abort): Remove now redundant forward declaration.
29128 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29130         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
29131         Without this change, in bleeding-edge fileutils Autoconf complains
29132         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
29133         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
29134         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
29135         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
29137 2014-10-24  Daiki Ueno  <ueno@gnu.org>
29139         iconv: avoid false detection of non-working iconv
29140         The INBUF arguments of iconv can be either 'const char **'
29141         or 'char **'.  If CC is g++, the difference causes a compile error
29142         and thus leads to a false detection of non-working iconv.
29143         Reported by Eli Zaretskii and Werner LEMBERG in:
29144         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
29145         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
29146         iconv.  Bump serial number.
29148 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29150         bootstrap: print more diagnostics for missing programs
29151         * build-aux/bootstrap: only suppress stderr when checking for
29152         alternative program names.  This supports programs issuing non
29153         standard error messages.
29155 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29157         bootstrap: only update the gnulib submodule
29158         * build-aux/bootstrap: Restrict the "submodule update" command
29159         to the gnulib path.
29161 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29163         symlinkat: port to AIX 7.1
29164         * doc/posix-functions/symlinkat.texi (symlinkat):
29165         Mention AIX porting problem.
29166         * lib/symlinkat.c: Always include errno.h.
29167         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
29168         * lib/unistd.in.h (symlinkat): Add replacement machinery.
29169         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
29170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
29171         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
29172         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
29173         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
29175         readlinkat: port to AIX 7.1
29176         * doc/posix-functions/readlink.texi (readlink):
29177         * doc/posix-functions/readlinkat.texi (readlinkat):
29178         Mention AIX porting problem.
29179         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
29180         New function.
29181         * lib/unistd.in.h (readlinkat): Add replacement machinery.
29182         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
29183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
29184         * modules/readlinkat (configure.ac): Also compile replacement
29185         if REPLACE_READLINKAT.
29186         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
29188 2014-10-12  Karl Berry  <karl@gnu.org>
29190         * doc/posix-functions/dirname.texi: remove spurious {.
29192 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
29194         basename, dirname: Improve documentation.
29195         * doc/posix-functions/basename.texi: Mention dirname module and
29196         base_name() function.
29197         * doc/posix-functions/dirname.texi: Mention dir_name() and
29198         mdir_name() functions.
29199         Suggested by Werner LEMBERG <wl@gnu.org>.
29201 2014-09-24  Jim Meyering  <meyering@fb.com>
29203         exclude: declare exclude_patopts static
29204         * lib/exclude.c (exclude_patopts): Declare static,
29205         to avoid triggering a -Wmissing-prototypes warning.
29206         The alternative (declaring it in the .h file) would
29207         require publicizing the private "struct patopts".
29209 2014-09-21  Werner Lemberg  <wl@gnu.org>
29211         dirname: support compilation with C++
29212         * lib/dirname.h: Add necessary C linkage declarations.
29214 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29216         qsort_r: include <config.h>
29217         Problem reported by Tom G. Christensen in:
29218         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
29219         * lib/qsort.c [!_LIBC]: Include <config.h> first.
29221 2014-09-16  Dylan Cali  <calid1984@gmail.com>
29223         avltree-list: avoid compiler warnings (trivial)
29224         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29225         -Werror=suggest-attribute=pure.
29226         * lib/gl_array_list.c: Likewise.
29227         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
29228         declaration to avoid -Werror=missing-prototypes.  This is not added
29229         to a header as only exported for tests.  Add (void) to the
29230         check_invariants() call to indicate we're discarding the result
29231         in this context which avoids -Werror=unused-value.  Note we don't
29232         use ignore_value here to avoid a dependency as we know we'll not
29233         be adding __attribute__((warn_unused_result)) to check_invariants().
29234         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
29236 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29238         qsort_r: new module, for GNU-style qsort_r
29239         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
29241 2014-09-15  Werner LEMBERG  <wl@gnu.org>
29243         strerror_r-posix: support compilation with C++
29244         * lib/strerror_r.c: Add necessary C linkage declarations.
29246 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
29248         fcntl-h: fix compilation with Intel C++ compiler (trivial)
29249         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
29251 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
29253         mountlist: use /proc/self/mountinfo when available
29254         Use libmount to propagate device IDs provided by Linux in
29255         /proc/self/mountinfo.  This will give more accurate output when
29256         using df in chroot'ed environments as the device IDs are not
29257         determined by stat() which may be inaccurate within the chroot.
29258         * lib/mountlist.c (read_file_system_list): Use the libmount routines
29259         from util-linux to parse "/proc/self/mountinfo" or fall back to
29260         standard getmntent() processing.
29261         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
29262         getmntent() is used, as is the case on GNU/Linux.
29264 2014-09-07  Eric Wong  <normalperson@yhbt.net>
29266         users.txt: add cmogstored
29267         cmogstored has used gnulib since the beginning in 2012 to support
29268         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
29270 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29272         Trivial change.
29273         * gnulib-tool: Use same options as build-aux/bootstrap to download
29274         PO files.
29276 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29278         Trivial change.
29279         * gnulib-tool: Fallback to wget when rsync of PO files fails.
29281 2014-09-04  Eric Blake  <eblake@redhat.com>
29283         maintainer-makefile: add syntax check for useless ';;'
29284         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
29286 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
29288         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
29289         Problem reported by Assaf Gordon in:
29290         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
29291         Apparently Ubuntu is doing some fancy link-time optimization
29292         that doesn't work with -lpthread but does work with -pthread.
29293         Work around the bug by preferring -pthread to -lpthread.
29294         * m4/pthread.m4 (gl_PTHREAD_CHECK):
29295         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
29296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29297         Treat -pthread like -lpthread.
29299 2014-09-04  Eric Blake  <eblake@redhat.com>
29301         error: drop spurious semicolon
29302         * lib/error.c (__error_at_line): Fix ';;'.
29304 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29306         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
29307         * m4/gnulib-common.m4 (AC_C_RESTRICT):
29308         Override AC_C_RESTRICT unconditionally.
29309         Update from autoconf, incorporating:
29310         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
29311         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
29313 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29315         manywarnings: add GCC 4.9 warnings
29316         Also, make it easier to maintain this in the future.
29317         * build-aux/gcc-warning.spec: Add -Wabi-tag,
29318         -Wconditionally-supported, -Wdelete-incomplete,
29319         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
29320         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
29321         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
29322         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
29323         only for older GCC versions that need them.  Handle
29324         -Wnormalized=nfc specially, so that the 'comm' command used
29325         for maintenance doesn't get confused.
29327 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29329         vasnprintf: fix bugs in width computation
29330         * lib/vasnprintf.c (VASNPRINTF):
29331         Rework previous change, which introduced a bug,
29332         to avoid the warning in a different way.
29333         Avoid undefined behavior if the width arg is less than -INT_MAX.
29334         Avoid unnecessary use of HAS_WIDTH local.
29336 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
29338         vasnprintf: Avoid signed/unsigned comparison warning.
29339         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
29340         compare end addr of generated string w/ maximum end addr.
29342 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29344         parse-datetime: Avoid pointer difference.
29345         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
29346         instead of calculating difference of pointers.  This removes an
29347         annoying warning, devoid of any use.
29349 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29351         qsort_r: new module, for GNU-style qsort_r
29352         This works even on FreeBSD, which has an incompatible qsort_r API.
29353         * MODULES.html.sh: Add it.
29354         * doc/glibc-functions/qsort_r.texi: It's now supported.
29355         * lib/qsort.c: New file, taken from glibc with minor changes
29356         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
29357         removed.
29358         * lib/qsort_r.c: New file, compiled only on FreeBSD.
29359         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
29360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
29361         * modules/qsort_r, modules/qsort_r-tests: New files.
29362         * modules/stdlib (Makefile): Set up its defaults.
29363         * tests/test-qsort_r.c: New file.
29365 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29367         vla: new module
29368         GNU RCS can use this, mostly for documentation I expect.  See:
29369         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
29370         * MODULES.html.sh: Add vla.
29371         * lib/vla.h, modules/vla: New files.
29373 2014-08-07  Daiki Ueno  <ueno@gnu.org>
29375         localename: make gl_locale_name_thread really thread-safe on Windows
29376         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
29377         "glthread/lock.h".
29378         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
29379         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
29381 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
29383         getpass: don't assume struct termios
29384         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
29385         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
29386         * lib/getpass.c (getpass): Port to systems lacking struct termios.
29388         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
29389         Problem reported by Jonas 'Sortie' Termansen in:
29390         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
29391         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
29392         Implement via sysconf for platforms that lack getdtablesize.
29394         vararrays: modernize AC_C_VARARRAYS for C11
29395         This backports a change I recently made to Autoconf.
29396         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
29397         VLAs are not supported, as this is what C11 does.  The old macro
29398         HAVE_C_VARARRAYS is still defined if they are supported, but is
29399         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
29401 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
29403         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
29404         * build-aux/install-reloc (func_create_wrapper): Also wrap
29405         strerror-override, stat, stat.
29407 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29409         sys_select: fix FD_ZERO problem on Solaris 10
29410         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
29411         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
29412         to expand to an expression that invoked memset without necessarily
29413         including <string.h>.  The problem was that the first include
29414         defined _SYS_TIME_H, causing the second include to short-circuit.
29415         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
29416         Also, fix what appears to be a cut-and-paste typo, by replacing
29417         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
29418         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
29420         accept: document Solaris 10 type glitch
29421         * doc/posix-functions/accept.texi (accept): Mention that
29422         Solaris 10 'accept' takes void * last arg, not socklen_t *.
29424 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
29426         extern-inline: port to FreeBSD, DragonFly
29427         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
29428         is present if either __DragonFly__ or __FreeBSD__ is defined.
29429         FreeBSD problem reported by Andrey Borzenkov in:
29430         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
29431         Also, worry about __APPLE__ only if __MACH__ is also defined,
29432         as this is more consistent with the rest of gnulib.
29433         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
29434         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
29436 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29438         regex: Make #if/#ifdef usage consistent for DEBUG
29439         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
29440         of the inconsistent usage of #if and #ifdef as that works with
29441         both Glibc and Gnulib's style.
29443 2014-07-31  Eric Blake  <eblake@redhat.com>
29445         openat-die: use _Noreturn markup
29446         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
29447         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
29448         _Noreturn.
29450 2014-07-30  Eric Blake  <eblake@redhat.com>
29452         test-open: port to cygwin, which lacks Fortify
29453         * tests/test-open.h (ALWAYS_INLINE): New macro.
29454         (__always_inline): Don't abuse internal symbol on non-glibc.
29456 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
29458         localename: Enforce declarations before statements.
29459         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
29460         first statement.
29462 2014-07-18  Jim Meyering  <meyering@fb.com>
29464         test-userspec: don't look up numeric user names
29465         * tests/test-userspec.c: I found a system for which getpwnam("0")
29466         returned a pointer to a non-root user's entry, and that made the
29467         test fail.
29468         (T): Prefix each numeric input with "+", to inhibit lookup.
29470 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
29472         localcharset, localename: MS-Windows support for non-default locales
29473         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
29474         falling back on the default system codepage, try extracting
29475         the codepage from what 'setlocale' returns.  This allows to
29476         take into account changes of the codeset due to non-default
29477         locale set by a previous call to 'setlocale'.
29478         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
29479         Define if not already defined.
29480         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
29481         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
29482         current locale by calling 'setlocale', then converting the
29483         locale name into LCID by calling 'get_lcid'.  This allows to
29484         take into account changes in the current locale from the
29485         default one, in contrast to GetThreadLocale.
29487 2014-07-14  Daiki Ueno  <ueno@gnu.org>
29489         announce-gen: avoid failure when Digest::SHA is installed
29490         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
29491         Digest::SHA1->new in print_checksums fails.
29492         * build-aux/announce-gen (digest_classes): New associative array
29493         for available message digest implementations.
29494         (print_locations): Use it.
29496 2014-07-13  Pádraig Brady  <P@draigBrady.com>
29498         gettext: revert "update macros to version 0.19"
29499         This reverts commit 9b9370ca, as it currently requires that
29500         developers of any project that explicitly uses the gettext module
29501         or implicitly uses it through the utimens-tests or
29502         futimens-tests modules, use gettext >= 0.19.
29503         However there are some stability and availablity issues with
29504         that version at present.  We can reinstate this soon, when stability
29505         is addressed and packages are more readily available.
29507 2014-07-12  Jim Meyering  <meyering@fb.com>
29509         regex: don't deref NULL upon heap allocation failure
29510         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
29511         failure in one more place.
29512         To trigger the segfault, configure grep -with-included-regex,
29513         build it, and run these commands:
29514         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
29515         I discovered this while replying to a private report from
29516         Jens Schleusener about excessive memory consumption by grep
29517         when using a regular expression like the one above.
29519 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29521         regex: fix memory leak in compiler
29522         Fix by Andreas Schwab in:
29523         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
29524         * lib/regcomp.c (parse_reg_exp): Deallocate partially
29525         constructed tree before returning error.
29527 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29529         announce-gen: avoid perl warnings
29530         * build-aux/announce-gen: add two minor checks to avoid
29531         "use of uninitialized value" warnings when command-line parameters are
29532         missing.
29534 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29536         localename: avoid -Wsuggest-attribute={const,pure} warnings
29537         * lib/localename.c (string_has): Tag internal function as pure.
29538         * lib/localename.h (gl_locale_name_default): Tag extern declaration
29539         as const when appropriate.
29541 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
29543         nl_langinfo: Fix last change.
29544         * lib/nl_langinfo.c (includes): Drop redundant include.
29546 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29548         error: Fix -Wundef warnings in glibc
29549         * lib/error.c [_LIBC]: Define default macros for
29550         glibc.
29551         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
29552         Check _LIBC before STRERROR_R_CHAR_P.
29554         error: Sync from glibc master
29555         * lib/error.c [_LIBC]: Remove INTUSE usage.
29556         (error_tail): Remove unused macro ALLOCA_LIMIT.
29557         Fix potential buffer overflow.  Fix potential NULL dereference
29558         in strcmp.
29560 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
29562         nl_langinfo: fix build under mingw
29563         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
29565 2014-07-09  Andrew D Warshall  <warshall@99main.com>
29567         mountlist: do not classify a bind-mounted dir entry as "dummy"
29568         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
29569         1-argument getmntent() (instead of assuming absence).
29571 2014-07-08  Eric Blake  <eblake@redhat.com>
29573         maint.mk: less syntax-check noise when SIGPIPE is ignored
29574         * top/maint.mk (_sc_header_without_use)
29575         (sc_require_config_h_first): Parse full list.
29577 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
29578             Paul Eggert  <eggert@cs.ucla.edu>
29580         nl_langinfo: CODESET on MS-Windows and more items from localeconv
29581         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
29582         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
29583         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
29584         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
29585         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
29586         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29587         Include <stdio.h> if Microsoft Windows.
29588         Include <time.h> if !REPLACE_NL_LANGINFO.
29589         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29590         and with improvements for Microsoft Windows.
29591         (rpl_nl_langinfo): Use it.
29592         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29593         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29594         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29595         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29596         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29597         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29598         corresponding values returned by 'localeconv'.  Compute the values
29599         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29600         'strftime' with a suitable struct tm value.
29602 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29604         Bruno Haible has stepped down as maintainer.
29605         See Karl Berry in:
29606         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29607         Daiki Ueno has volunteered to maintain libunistring; see:
29608         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29609         * modules/gen-uni-tables, modules/libunistring:
29610         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29611         * modules/unicase/base, modules/unicase/cased:
29612         * modules/unicase/empty-prefix-context:
29613         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29614         * modules/unicase/locale-language, modules/unicase/special-casing:
29615         * modules/unicase/tocasefold, modules/unicase/tolower:
29616         * modules/unicase/totitle, modules/unicase/toupper:
29617         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29618         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29619         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29620         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29621         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29622         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29623         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29624         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29625         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29626         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29627         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29628         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29629         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29630         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29631         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29632         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29633         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29634         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29635         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29636         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29637         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29638         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29639         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29640         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29641         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29642         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29643         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29644         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29645         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29646         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29647         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29648         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29649         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29650         * modules/uniconv/u16-conv-to-enc:
29651         * modules/uniconv/u16-strconv-from-enc:
29652         * modules/uniconv/u16-strconv-from-locale:
29653         * modules/uniconv/u16-strconv-to-enc:
29654         * modules/uniconv/u16-strconv-to-locale:
29655         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29656         * modules/uniconv/u32-strconv-from-enc:
29657         * modules/uniconv/u32-strconv-from-locale:
29658         * modules/uniconv/u32-strconv-to-enc:
29659         * modules/uniconv/u32-strconv-to-locale:
29660         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29661         * modules/uniconv/u8-strconv-from-enc:
29662         * modules/uniconv/u8-strconv-from-locale:
29663         * modules/uniconv/u8-strconv-to-enc:
29664         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29665         * modules/unictype/bidicategory-all:
29666         * modules/unictype/bidicategory-byname:
29667         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29668         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29669         * modules/unictype/bidiclass-byname:
29670         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29671         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29672         * modules/unictype/block-all, modules/unictype/block-list:
29673         * modules/unictype/block-of, modules/unictype/block-test:
29674         * modules/unictype/category-C, modules/unictype/category-Cc:
29675         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29676         * modules/unictype/category-Co, modules/unictype/category-Cs:
29677         * modules/unictype/category-L, modules/unictype/category-LC:
29678         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29679         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29680         * modules/unictype/category-Lu, modules/unictype/category-M:
29681         * modules/unictype/category-Mc, modules/unictype/category-Me:
29682         * modules/unictype/category-Mn, modules/unictype/category-N:
29683         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29684         * modules/unictype/category-No, modules/unictype/category-P:
29685         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29686         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29687         * modules/unictype/category-Pi, modules/unictype/category-Po:
29688         * modules/unictype/category-Ps, modules/unictype/category-S:
29689         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29690         * modules/unictype/category-Sm, modules/unictype/category-So:
29691         * modules/unictype/category-Z, modules/unictype/category-Zl:
29692         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29693         * modules/unictype/category-all, modules/unictype/category-and:
29694         * modules/unictype/category-and-not, modules/unictype/category-byname:
29695         * modules/unictype/category-longname, modules/unictype/category-name:
29696         * modules/unictype/category-none, modules/unictype/category-of:
29697         * modules/unictype/category-or, modules/unictype/category-test:
29698         * modules/unictype/category-test-withtable:
29699         * modules/unictype/combining-class:
29700         * modules/unictype/combining-class-all:
29701         * modules/unictype/combining-class-byname:
29702         * modules/unictype/combining-class-longname:
29703         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29704         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29705         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29706         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29707         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29708         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29709         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29710         * modules/unictype/digit, modules/unictype/joininggroup-all:
29711         * modules/unictype/joininggroup-byname:
29712         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29713         * modules/unictype/joiningtype-all:
29714         * modules/unictype/joiningtype-byname:
29715         * modules/unictype/joiningtype-longname:
29716         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29717         * modules/unictype/mirror, modules/unictype/numeric:
29718         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29719         * modules/unictype/property-ascii-hex-digit:
29720         * modules/unictype/property-bidi-arabic-digit:
29721         * modules/unictype/property-bidi-arabic-right-to-left:
29722         * modules/unictype/property-bidi-block-separator:
29723         * modules/unictype/property-bidi-boundary-neutral:
29724         * modules/unictype/property-bidi-common-separator:
29725         * modules/unictype/property-bidi-control:
29726         * modules/unictype/property-bidi-embedding-or-override:
29727         * modules/unictype/property-bidi-eur-num-separator:
29728         * modules/unictype/property-bidi-eur-num-terminator:
29729         * modules/unictype/property-bidi-european-digit:
29730         * modules/unictype/property-bidi-hebrew-right-to-left:
29731         * modules/unictype/property-bidi-left-to-right:
29732         * modules/unictype/property-bidi-non-spacing-mark:
29733         * modules/unictype/property-bidi-other-neutral:
29734         * modules/unictype/property-bidi-pdf:
29735         * modules/unictype/property-bidi-segment-separator:
29736         * modules/unictype/property-bidi-whitespace:
29737         * modules/unictype/property-byname:
29738         * modules/unictype/property-case-ignorable:
29739         * modules/unictype/property-cased:
29740         * modules/unictype/property-changes-when-casefolded:
29741         * modules/unictype/property-changes-when-casemapped:
29742         * modules/unictype/property-changes-when-lowercased:
29743         * modules/unictype/property-changes-when-titlecased:
29744         * modules/unictype/property-changes-when-uppercased:
29745         * modules/unictype/property-combining:
29746         * modules/unictype/property-composite:
29747         * modules/unictype/property-currency-symbol:
29748         * modules/unictype/property-dash:
29749         * modules/unictype/property-decimal-digit:
29750         * modules/unictype/property-default-ignorable-code-point:
29751         * modules/unictype/property-deprecated:
29752         * modules/unictype/property-diacritic:
29753         * modules/unictype/property-extender:
29754         * modules/unictype/property-format-control:
29755         * modules/unictype/property-grapheme-base:
29756         * modules/unictype/property-grapheme-extend:
29757         * modules/unictype/property-grapheme-link:
29758         * modules/unictype/property-hex-digit:
29759         * modules/unictype/property-hyphen:
29760         * modules/unictype/property-id-continue:
29761         * modules/unictype/property-id-start:
29762         * modules/unictype/property-ideographic:
29763         * modules/unictype/property-ids-binary-operator:
29764         * modules/unictype/property-ids-trinary-operator:
29765         * modules/unictype/property-ignorable-control:
29766         * modules/unictype/property-iso-control:
29767         * modules/unictype/property-join-control:
29768         * modules/unictype/property-left-of-pair:
29769         * modules/unictype/property-line-separator:
29770         * modules/unictype/property-logical-order-exception:
29771         * modules/unictype/property-lowercase, modules/unictype/property-math:
29772         * modules/unictype/property-non-break:
29773         * modules/unictype/property-not-a-character:
29774         * modules/unictype/property-numeric:
29775         * modules/unictype/property-other-alphabetic:
29776         * modules/unictype/property-other-default-ignorable-code-point:
29777         * modules/unictype/property-other-grapheme-extend:
29778         * modules/unictype/property-other-id-continue:
29779         * modules/unictype/property-other-id-start:
29780         * modules/unictype/property-other-lowercase:
29781         * modules/unictype/property-other-math:
29782         * modules/unictype/property-other-uppercase:
29783         * modules/unictype/property-paired-punctuation:
29784         * modules/unictype/property-paragraph-separator:
29785         * modules/unictype/property-pattern-syntax:
29786         * modules/unictype/property-pattern-white-space:
29787         * modules/unictype/property-private-use:
29788         * modules/unictype/property-punctuation:
29789         * modules/unictype/property-quotation-mark:
29790         * modules/unictype/property-radical:
29791         * modules/unictype/property-sentence-terminal:
29792         * modules/unictype/property-soft-dotted:
29793         * modules/unictype/property-space:
29794         * modules/unictype/property-terminal-punctuation:
29795         * modules/unictype/property-test, modules/unictype/property-titlecase:
29796         * modules/unictype/property-unassigned-code-value:
29797         * modules/unictype/property-unified-ideograph:
29798         * modules/unictype/property-uppercase:
29799         * modules/unictype/property-variation-selector:
29800         * modules/unictype/property-white-space:
29801         * modules/unictype/property-xid-continue:
29802         * modules/unictype/property-xid-start:
29803         * modules/unictype/property-zero-width, modules/unictype/scripts:
29804         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29805         * modules/unictype/syntax-c-whitespace:
29806         * modules/unictype/syntax-java-ident:
29807         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29808         * modules/unigbrk/u16-grapheme-breaks:
29809         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29810         * modules/unigbrk/u32-grapheme-breaks:
29811         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29812         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29813         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29814         * modules/unigbrk/uc-is-grapheme-break:
29815         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29816         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29817         * modules/unilbrk/u16-width-linebreaks:
29818         * modules/unilbrk/u32-possible-linebreaks:
29819         * modules/unilbrk/u32-width-linebreaks:
29820         * modules/unilbrk/u8-possible-linebreaks:
29821         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29822         * modules/unilbrk/ulc-possible-linebreaks:
29823         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29824         * modules/uniname/uniname, modules/uninorm/base:
29825         * modules/uninorm/canonical-decomposition:
29826         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29827         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29828         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29829         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29830         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29831         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29832         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29833         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29834         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29835         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29836         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29837         * modules/unistdio/base, modules/unistdio/u-printf-args:
29838         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29839         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29840         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29841         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29842         * modules/unistdio/u16-u16-sprintf:
29843         * modules/unistdio/u16-u16-vasnprintf:
29844         * modules/unistdio/u16-u16-vasprintf:
29845         * modules/unistdio/u16-u16-vsnprintf:
29846         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29847         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29848         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29849         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29850         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29851         * modules/unistdio/u32-u32-asnprintf:
29852         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29853         * modules/unistdio/u32-u32-sprintf:
29854         * modules/unistdio/u32-u32-vasnprintf:
29855         * modules/unistdio/u32-u32-vasprintf:
29856         * modules/unistdio/u32-u32-vsnprintf:
29857         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29858         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29859         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29860         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29861         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29862         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29863         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29864         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29865         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29866         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29867         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29868         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29869         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29870         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29871         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29872         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29873         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29874         * modules/unistr/u16-check, modules/unistr/u16-chr:
29875         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29876         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29877         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29878         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29879         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29880         * modules/unistr/u16-move, modules/unistr/u16-next:
29881         * modules/unistr/u16-prev, modules/unistr/u16-set:
29882         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29883         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29884         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29885         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29886         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29887         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29888         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29889         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29890         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29891         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29892         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29893         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29894         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29895         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29896         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29897         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29898         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29899         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29900         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29901         * modules/unistr/u32-next, modules/unistr/u32-prev:
29902         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29903         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29904         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29905         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29906         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29907         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29908         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29909         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29910         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29911         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29912         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29913         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29914         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29915         * modules/unistr/u8-check, modules/unistr/u8-chr:
29916         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29917         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29918         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29919         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29920         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29921         * modules/unistr/u8-next, modules/unistr/u8-prev:
29922         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29923         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29924         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29925         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29926         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29927         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29928         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29929         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29930         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29931         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29932         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29933         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29934         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29935         * modules/uniwbrk/base, modules/uniwbrk/table:
29936         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29937         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29938         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29939         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29940         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29941         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29942         * modules/uniwidth/width, modules/utf16-ucs4:
29943         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29944         * modules/utf8-ucs4-unsafe:
29945         Change maintainer from Bruno Haible to Daiki Ueno.
29946         This is my guess at the libunistring modules; please feel free
29947         to fix if I guessed incorrectly.
29948         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29949         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29950         * modules/areadlink, modules/array-list, modules/array-mergesort:
29951         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29952         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29953         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29954         * modules/binary-io, modules/bison-i18n, modules/btowc:
29955         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29956         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29957         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29958         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29959         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29960         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29961         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29962         * modules/closedir, modules/concat-filename, modules/copy-file:
29963         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29964         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29965         * modules/csharpcomp-script, modules/csharpexec:
29966         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29967         * modules/dprintf, modules/dprintf-posix, modules/dup:
29968         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29969         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29970         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29971         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29972         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29973         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29974         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29975         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29976         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29977         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29978         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29979         * modules/findprog, modules/findprog-lgpl, modules/floor:
29980         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29981         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29982         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29983         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29984         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29985         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29986         * modules/freadable, modules/freadahead, modules/freadptr:
29987         * modules/freadseek, modules/freopen, modules/frexp:
29988         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29989         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29990         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29991         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29992         * modules/ftello, modules/full-read, modules/full-write:
29993         * modules/fwritable, modules/fwriteerror, modules/gcd:
29994         * modules/get-rusage-as, modules/get-rusage-data:
29995         * modules/getdtablesize, modules/getrusage, modules/gettext:
29996         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29997         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29998         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29999         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
30000         * modules/iconv, modules/iconv-h, modules/iconv_open:
30001         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
30002         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
30003         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
30004         * modules/integer_length_ll, modules/ioctl, modules/isatty:
30005         * modules/isblank, modules/isnand, modules/isnand-nolibm:
30006         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
30007         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
30008         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
30009         * modules/javaexec, modules/javaexec-script, modules/javaversion:
30010         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
30011         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
30012         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
30013         * modules/lib-symbol-visibility, modules/libsigsegv:
30014         * modules/linked-list, modules/linkedhash-list, modules/list:
30015         * modules/localcharset, modules/locale, modules/localeconv:
30016         * modules/localename, modules/lock, modules/log, modules/log-ieee:
30017         * modules/log10, modules/log10-ieee, modules/log10f:
30018         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
30019         * modules/log1p, modules/log1p-ieee, modules/log1pf:
30020         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
30021         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
30022         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
30023         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
30024         * modules/logf, modules/logf-ieee, modules/login_tty:
30025         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
30026         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
30027         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
30028         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
30029         * modules/mbscspn, modules/mbsinit, modules/mbslen:
30030         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
30031         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
30032         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
30033         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
30034         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
30035         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
30036         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
30037         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
30038         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
30039         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
30040         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
30041         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
30042         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
30043         * modules/posix_spawn, modules/posix_spawn-internal:
30044         * modules/posix_spawn_file_actions_addclose:
30045         * modules/posix_spawn_file_actions_adddup2:
30046         * modules/posix_spawn_file_actions_addopen:
30047         * modules/posix_spawn_file_actions_destroy:
30048         * modules/posix_spawn_file_actions_init:
30049         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
30050         * modules/posix_spawnattr_getpgroup:
30051         * modules/posix_spawnattr_getschedparam:
30052         * modules/posix_spawnattr_getschedpolicy:
30053         * modules/posix_spawnattr_getsigdefault:
30054         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
30055         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
30056         * modules/posix_spawnattr_setschedparam:
30057         * modules/posix_spawnattr_setschedpolicy:
30058         * modules/posix_spawnattr_setsigdefault:
30059         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
30060         * modules/pow, modules/powf, modules/printf-frexp:
30061         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
30062         * modules/progname, modules/propername, modules/pselect:
30063         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
30064         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
30065         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
30066         * modules/read, modules/readdir, modules/readlink:
30067         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
30068         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
30069         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
30070         * modules/relocatable-script, modules/remainder:
30071         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
30072         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
30073         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
30074         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
30075         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
30076         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
30077         * modules/setlocale, modules/sh-quote, modules/shutdown:
30078         * modules/signal, modules/signbit, modules/sigpipe:
30079         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
30080         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
30081         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
30082         * modules/snippet/link-warning, modules/snippet/unused-parameter:
30083         * modules/snprintf, modules/snprintf-posix, modules/spawn:
30084         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
30085         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
30086         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
30087         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
30088         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
30089         * modules/streq, modules/strerror_r-posix, modules/striconv:
30090         * modules/striconveh, modules/striconveha, modules/strncat:
30091         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
30092         * modules/sublist, modules/sys_resource, modules/sys_utsname:
30093         * modules/sys_wait, modules/system-posix, modules/system-quote:
30094         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
30095         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
30096         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
30097         * modules/truncf, modules/truncf-ieee, modules/truncl:
30098         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
30099         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
30100         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
30101         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
30102         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
30103         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
30104         * modules/wait-process, modules/waitpid, modules/wcpcpy:
30105         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
30106         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
30107         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
30108         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
30109         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
30110         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
30111         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
30112         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
30113         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
30114         * modules/write, modules/xconcat-filename, modules/xlist:
30115         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
30116         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
30117         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
30118         * modules/y0, modules/y1, modules/yn:
30119         Remove Bruno Haible as maintainer; if he's the sole maintainer,
30120         change the maintainer to 'all'.  Let's hope someone volunteers.
30122 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
30124         mktime: merge #if/#ifdef usage from glibc
30125         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
30126         as that works with both Glibc's and Gnulib's style.
30127         See thread starting at Siddhesh Poyarekar's bug report at:
30128         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
30130 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
30132         git-version-gen: improve option descriptions
30133         * build-aux/git-version-gen: Mention that --prefix and --fallback
30134         have a mandatory argument.
30136 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30138         regex: fix memory leak in compiler
30139         Fix by Andreas Schwab in:
30140         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
30141         * lib/regcomp.c (parse_expression): Deallocate partially
30142         constructed tree before returning error.
30144         regex: merge patch from libc
30145         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
30146         Combine __USE_BSD and __USE_SVID into __USE_MISC.
30147         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
30149 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30151         acl: port to gcc -Wredundant-decls
30152         From a request by Dmitry Antipov in:
30153         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
30154         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
30155         "#ifndef _GL_ACL_H".
30157 2014-06-11  Bruce Korb  <bkorb@gnu.org>
30158         Jim Meyering  <meyering@fb.com>
30160         parse-duration: eliminate 68-year duration limit
30161         * lib/parse-duration.c: Include "intprops.h".
30162         (TIME_MAX): Rename to MAX_DURATION and define to
30163         TYPE_MAXIMUM(time_t).
30164         * modules/parse-duration (Depends-on): Add intprops.
30165         Reported by Jonas 'Sortie' Termansen.
30167 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30169         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
30170         * modules/pthread (Depends-on): Add 'extensions', as it defines
30171         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
30172         (configure.ac-early): New section.
30173         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
30174         it is no longer needed.
30176 2014-06-14  Pádraig Brady  <P@draigBrady.com>
30178         pthread: define thread-safe macros on some platforms
30179         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
30180         for thread-safe operation on some platforms.
30182 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
30184         regex: don't be multithreaded if USE_UNLOCKED_IO.
30185         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
30186         * lib/regex_internal.h: Do not use multithreaded version if
30187         USE_UNLOCKED_IO is defined.  This is a hack, but it works
30188         around a porting bug with coreutils 8.22 on AIX 7.1.
30190 2014-06-11  Daiki Ueno  <ueno@gnu.org>
30192         gettext: update macros to version 0.19
30193         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
30194         depend on gl_EXTERN_INLINE and drop support for older Bison
30195         versions.
30197 2014-06-10  Pádraig Brady  <P@draigBrady.com>
30199         select,poll: fix console handle check on windows 8
30200         lib/poll.c (IsConsoleHandle): Change from testing the lower
30201         2 bits of the handle to the more expensive but accurate syscall.
30202         lib/select.c: Likewise.
30204 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30206         select: fix waiting on anonymous pipes on MS-Windows
30207         * lib/select.c (rpl_select): Fall back to polling when select()
30208         indicates there is nothing to check, while due to the timeout not
30209         expiring, activity is indicated on one of the handles.
30210         Also clear the TIMEOUT argument if the timer does expire.
30212 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30214         times: fix to return non constant value on MS-Windows
30215         * lib/times.c (times): Don't use the process creation time,
30216         rather clock() which on windows returns the number of
30217         clock ticks since the process started.
30219 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
30221         isatty: fix to work on windows 8
30222         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
30223         2 bits of the handle to the more expensive but accurate syscall.
30225 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
30227         maint: fix typo in fdl.texi
30228         * doc/fdl.texi: Fix typo (missing '@').
30229         Somehow this was in fdl.texi but not fdl-1.3.texi.
30231 2014-06-06  Ben Walton  <bdwalton@gmail.com>
30233         mountlist: avoid hasmntopt const type warning on solaris
30234         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
30235         with char * instead of const char *.  Passing the constant string
30236         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
30237         to avoid the warning.
30239 2014-06-04  Eric Blake  <eblake@redhat.com>
30241         maintainer-makefile: delete obsolete code
30242         * top/maint.mk (build_aux): Drop old code, as threatened.
30244         maintainer-makefile: avoid spurious error messages
30245         * top/maint.mk (syntax-check): Guard definition and use of
30246         $(shell) by whether Makefile is present.
30248 2014-06-03  Ben Walton  <bdwalton@gmail.com>
30250         rename: avoid unused-but-set-variable compiler warning
30251         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
30252         it is possible that dst_exists may be set but not used.  Mark it with
30253         the unused attribute to avoid compiler warnings.
30255 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30257         rename: mark a label as potentially unused
30258         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
30259         by marking the out label as potentially unused.
30260         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
30262 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30264         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
30265         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
30267 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30269         acl: apply pure attribute to two functions
30270         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
30271         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
30273 2014-06-01  Pádraig Brady  <P@draigBrady.com>
30275         gnulib-common.m4: add _GL_UNUSED_LABEL
30276         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
30277         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
30279 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30281         dup2, fcntl, fcntl-h: port to AIX 7.1
30282         This fixes some porting problems discovered when testing the latest
30283         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
30284         in grep but it could be important for other applications.
30285         * doc/posix-functions/dup2.texi:
30286         * doc/posix-functions/fcntl.texi:
30287         * doc/posix-headers/fcntl.texi:
30288         Document AIX bugs.
30289         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
30290         Define to 0 if outside 'int' range.
30291         * m4/dup2.m4 (gl_FUNC_DUP2):
30292         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30293         Check for getdtablesize.  If it's available, test a value just
30294         outside its range instead of testing 1000000.  When cross-compiling,
30295         guess that AIX will fail this improved test.
30297 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30299         printf, config.rpath: Port to FreeBSD 10.
30300         Problem reported by Tijl Coosemans in:
30301         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
30302         * build-aux/config.rpath (hardcode_libdir_flag_spec)
30303         (hardcode_direct): Simplify FreeBSD configuration.
30304         (library_names_spec): Don't mishandle FreeBSD 10+.
30305         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
30306         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
30307         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
30308         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
30309         Don't mishandle FreeBSD 10+ when cross-compiling.
30311         ftoastr: work around compiler bug in IBM xlc 12.1
30312         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
30313         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
30314         around a compiler bug in IBM xlc 12.1.0.0: it complains
30315         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
30316         _GL_FLT_PREC_BOUND.'
30318 2014-05-30  Kieran Colford  <colfordk@gmail.com>
30320         valgrind-tests: fixed misleading help message
30321         * m4/valgrind-tests.m4: The help message generated by configure
30322         implied that valgrind was disabled by default, which it wasn't.
30323         Adjusted the help message using s/enable/disable/ to clarify.
30325 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
30327         isfinite, isinf, isnan tests: fix for little-endian PowerPC
30328         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
30329         first double of a PowerPC "double double" pair.
30330         * tests/test-isinf.c (test_isinfl): Likewise.
30331         * tests/test-isnan.c (test_long_double): Likewise.
30332         * tests/test-isnanl.h (main): Likewise.
30333         * tests/test-signbit.c (test_signbitl): Likewise.
30335 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30337         exclude-tests: port to AIX 7.1
30338         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
30339         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
30340         the regex code uses locks.
30342 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
30344         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
30345         Without this fix, Emacs would sometimes call sigprocmask instead
30346         of pthread_sigmask, which is a no-no in multithreaded applications.
30347         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
30348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30349         Suppress check for pthread_sigmask working without -lpthread if
30350         the application always links with -lpthread.  Do not link with
30351         $LIBMULTITHREAD if gl_THREADLIB is not defined.
30352         * m4/timer_time.m4 (gl_TIMER_TIME):
30353         Require gl_THREADLIB only if it is defined.  Do not append
30354         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
30356 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
30358         gnulib-tool: wget translations using --no-verbose rather than --quiet
30359         This allows the user to see error messages if any (--quiet hides them)
30360         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
30362 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
30364         gnulib-tool: adjust translation wget to avoid a https redirection
30365         Context: http://translationproject.org/latest/gnulib redirects to
30366            https://translationproject.org/latest/gnulib/
30367         Rationale: if the user falls back to wget, she doesn't have rsync and
30368         is probably in a minimal build environment, where packages such as
30369         'ca-certificates' are missing as well, resulting in a failed (and
30370         difficult to detect since ignored) translation initial fetch.
30371         Consequently let's avoid https if possible, and add the missing
30372         trailing slash.  This also avoids an unnecessary 302 redirection.
30373         * gnulib-tool: Add trailing slash to gnulib URL.
30375 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30377         getlogin_r-tests: check return value rather than errno
30378         * tests/test-getlogin_r.c (main): As per POSIX we should be
30379         verifying the return value from getlogin_r() rather than errno.
30381 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30383         getlogin_r-tests: fix various issues in recent change
30384         * tests/test-getlogin_r.c: Include required headers that were
30385         missed in recent commit eec20b4e.
30386         Also consistently check the errno rather than the return value from
30387         getlogin_r as POSIX only specifies that non zero is returned on error.
30388         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
30390 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
30392         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
30393         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
30394         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
30395         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
30396         * lib/spawn-pipe.c:
30397         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
30398         and then 'int open64(const char *, int, ...);', which means the
30399         declaration for 'open' gets lost if we later '#undef open'.
30400         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
30401         where the compilation reported the non-fatal error "In function
30402         'openat_proc_name' ... warning: implicit declaration of function
30403         'open'".  In this case the error is relatively harmless, but in
30404         other cases it might not be so minor.
30406 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30408         xalloc: don't potentially generate invalid code for xmemdup calls
30409         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
30410         this function can initialize the newly-allocated storage with new
30411         pointers, which means this function is not malloc-like.  See:
30412         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
30414 2014-05-19  Pádraig Brady  <P@draigBrady.com>
30416         getlogin_r-tests: avoid false failure under sudo/ssh etc.
30417         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
30418         changes from commit 97249cf29 to not depend on environment variables.
30420 2014-05-18  Pádraig Brady  <P@draigBrady.com>
30422         getlogin-tests: avoid false failure under cron
30423         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
30424         since that's not what's under test.  Centos 6 was seen to return
30425         EINVAL for ttyname() when run from cron.
30427 2014-05-16  Jim Meyering  <meyering@fb.com>
30429         mbrtowc.m4: fix a comment typo
30430         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
30431         emitted documentation string.
30433 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30435         mbrlen, mbrtowc: fix bug with empty input
30436         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
30437         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
30438         so this is mainly for documentation.
30439         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
30440         (gl_FUNC_MBRTOWC): Use it.
30441         * tests/test-mbrtowc.c (main): Test for the bug.
30443 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30445         doc: document mbrtowc and mbrlen problem with empty input
30446         * doc/posix-functions/mbrlen.texi (mbrlen):
30447         * doc/posix-functions/mbrtowc.texi (mbrtowc):
30448         Document portability problem when the input string is empty.  See:
30449         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
30451         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
30452         Problem reported by Eli Zaretskii in:
30453         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
30454         * doc/posix-functions/execl.texi (execl):
30455         * doc/posix-functions/execle.texi (execle):
30456         * doc/posix-functions/execlp.texi (execlp):
30457         * doc/posix-functions/execv.texi (execv):
30458         * doc/posix-functions/execve.texi (execve):
30459         * doc/posix-functions/execvp.texi (execvp):
30460         Mention spawn+exit problem on non-Cygwin Windows platforms.
30462 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
30464         getlogin-tests: avoid false failure under sudo/ssh etc.
30465         * modules/getlogin-tests (configure.ac): Check for ttyname().
30466         * tests/test-getlogin.c (main): Don't depend on environment variables
30467         to correlate with getlogin(), since sudo and ssh etc. can tamper
30468         with the LOGNAME and USER env vars.  Instead lookup the name from
30469         the uid associated with the stdin tty.
30471 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30473         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
30474         These were found when building the latest grep snapshot on IRIX 6.5.
30475         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
30476         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
30477         never used later.
30478         * lib/quotearg.c (quoting_options_from_style):
30479         * lib/xstrtol.c (__xstrtol):
30480         Use enum instead of 0, to pacify IRIX 6.5 cc.
30482 2014-04-18  Pádraig Brady  <P@draigBrady.com>
30484         gitlog-to-changelog: revert inclusion of git-log-fix file
30485         * build-aux/git-log-fix: Delete dummy file.
30486         * modules/gitlog-to-changelog: Don't reference (overwrite)
30487         the project specific git-log-fix file.
30489 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
30491         maint.mk: Relax the copyright check to cater for non FSF projects
30492         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
30493         to not require the "Free" suffix after the copyright years.
30495 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
30497         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
30498         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
30499         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
30500         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
30501         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
30503 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
30505         exclude: port to strict C99
30506         Strict C does not allow converting a function pointer to void *
30507         and vice versa.  Pass a pointer to a function pointer instead.
30508         * lib/exclude.c (add_exclude_file):
30509         Pass the address of the function pointer.
30510         (call_addfn): And deference the address here, to match.
30512 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30514         regex: do not depend on malloc-gnu
30515         * modules/regex (Depends-on): Remove malloc-gnu.
30516         It's no longer needed, because of the 2012-12-29 patch
30517         "regex: port to hosts where malloc (0) == NULL".
30518         Reported by Nathan Kennedy in:
30519         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
30521 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
30523         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
30524         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
30525         * doc/posix-functions/expl.texi: Mention the workaround.
30527 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30529         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
30530         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
30531         size to be zero even when the pointer is nonnull.  This
30532         accommodates the use case where P is malloc (0) and *PN is 0 on a
30533         host where malloc (0) yields nonnull.
30535 2014-04-09  Eric Blake  <eblake@redhat.com>
30537         fts: avoid unnecessary strlen calls
30538         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
30540 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30542         fts: avoid unnecessary strlen calls
30543         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
30544         when that can be faster than strlen.
30546 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30548         fts: avoid unnecessary strlen calls
30549         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
30550         (fts_build): Store the length of the dp->d_name entry in a local variable
30551         instead of calling strlen() several times via the above, removed macro.
30552         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
30553         run by ~4%, yet this reduces the execution time by about a third if run
30554         via "ltrace -c rm -rf some-dir".
30556 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30558         obstack: Remove ancient NeXTSTEP gcc support conditional
30559         This change will ease merging with glibc.  The "#if ... __NEXT__"
30560         causes a warning with -Wundef which glibc now enables by default.
30561         Problem reported by Will Newton in
30562         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
30563         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
30564         so go with that.
30565         * lib/obstack.h (__extension__):
30567 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30569         obstack: merge with glibc changes
30570         * lib/obstack.c, lib/obstack.h: Merge from glibc.
30571         This is mostly indenting and commentary changes.
30572         Instances of 'register' have been removed.
30574 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30576         strftime: wrap macros in "do {...} while(0)"
30577         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
30578         this macro in "do {...} while(0)" to prevent false use as a
30579         single statement, e.g., in an un-braced "{}" else-block.
30580         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
30581         (strftime_case_): Remove 'else' after 'goto' - which was the
30582         only non-fatal, un-braced use of one of the above macros.
30583         Spotted by coverity (NESTING_INDENT_MISMATCH).
30585 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30587         modechange: avoid memory leaks for invalid octal modes
30588         * lib/modechange.c (mode_compile): During the parsing of
30589         notations like +40, free the 'mc' buffer for invalid mode
30590         strings like +17777 (greater than the maximum octal mode),
30591         =18 (bad octal mode characters) or u=1 ('affected' with
30592         octal modes).
30593         Reproducer, e.g.:
30594             $ valgrind --leak-check=full chmod +17777 file
30595         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30596         add notations +40, 00440, etc.".
30597         Spotted by coverity (RESOURCE_LEAK).
30599 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30601         gitlog-to-changelog: include a dummy git-log-fix file
30602         Problem reported by Nathan Stratton Treadway in:
30603         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30604         * build-aux/git-log-fix: New file.
30606 2014-03-13  Jim Meyering  <meyering@fb.com>
30608         gitlog-to-changelog: also include the file, git-log-fix
30609         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30610         Reported by Assaf Gordon.
30612 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30614         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30615         This fixes a bug when ignoring case and when comparing the
30616         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30617         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30618         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30619         titlecase letter is neither lowercase nor uppercase, but
30620         uppercasing the titlecase letter (via towupper) yields the
30621         uppercase letter, so the two letters should match when ignoring case.
30622         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30623         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30624         Don't test whether a character is lowercase before uppercasing it.
30626 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30628         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30629         This is basically one of the options Bruno Haible proposed in:
30630         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30631         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30632         * lib/stdint.in.h: Use it.
30633         * modules/stdint (Depends-on): Add sys_types.
30635 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30637         parse-datetime: fix crash or infloop in TZ="" parsing
30638         * lib/parse-datetime.y (parse_datetime): Break out of the
30639         TZ="" parsing loop once the second significant " is found.
30640         Also skip over any subsequent whitespace to be consistent
30641         with the non TZ= case.
30642         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30644 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30646         savedir: new symbol for fast-read version
30647         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30648         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30649         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30650         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30652 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30654         unistd: port readlink to Mac OS X 10.3.9
30655         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30656         around self-include problem in Mac OS X 10.3.9 when combined with
30657         readlink module.  Problem reported by Klaus Zietler in
30658         <http://bugs.gnu.org/16825>.
30660 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30662         diffseq: remove TOO_EXPENSIVE heuristic
30663         Problem with diffutils reported by Vincent Lefevre in
30664         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30665         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30666         Although appropriate for circa-1993 hardware, these days the heuristic
30667         seems to be more trouble than it's worth.
30668         * lib/diffseq.h: Modernize citations.
30669         (struct context): Remove member too_expensive.
30670         All uses changed.
30671         (struct partition): Remove members lo_minimal, hi_minimal.
30672         All uses changed.
30673         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30674         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30675         1993 to make 'diff' run faster (but not as well) on large inputs.
30676         These days, computers are fast enough that it's typically better
30677         to run slower but more accurately.
30678         * lib/fstrcmp.c: Remove duplicate comment.
30679         * lib/fstrcmp.c (strcmp_bounded):
30680         * lib/git-merge-changelog.c (compute_differences):
30681         Adjust to diffseq.h changes.
30682         * NEWS: Document the change.
30684         savedir: simplify by using stpcpy
30685         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30686         (streamsavedir): Use stpcpy instead.
30687         * modules/savedir (Depends-on): Add stpcpy.
30689 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30691         spawn: fix link error on uclibc
30692         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30693         to incorporate -lrt if needed (on uclibc for example).
30694         * modules/posix_spawn: Reference the substituted LIB.
30696 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30697         timer: fix uClibc detection of threading
30698         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30699         enabled in uClibc.
30701 2014-02-21  Eric Blake  <eblake@redhat.com>
30703         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30704         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30706 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30708         exclude: add support for posix regexps
30710         This commit adds support for POSIX extended regular expressions
30711         and fixes a long-standing memory leak (pattern buffer was never
30712         freed).  It also implements a new interface function to read
30713         exclude patterns from a FILE, which passes an additional parameter
30714         to its callback function, thereby allowing to preserve its state
30715         between invocations.
30717         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30718         (pattern_buffer): New struct.
30719         (exclude): New member patbuf.
30720         (exclude_add_pattern_buffer): New function.
30721         (free_exclude_segment): Free regexps.
30722         (free_exclude): Free allocated pattern buffers.
30723         (exclude_patopts): New function.
30724         (file_pattern_matches): Use exclude_patopts.
30725         (add_exclude): support regexps.
30726         (add_exclude_fp): New function.
30727         (add_exclude_file): Rewrite using add_exclude_fp.
30728         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30729         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30730         (add_exclude_fp)
30731         (add_exclude_file): Rewrite using add_exclude_fp.
30732         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30733         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30734         (add_exclude_fp)
30735         (exclude_add_pattern_buffer): New prototypes.
30736         * modules/exclude: Depends on regex and filename.
30738 2014-02-20  Eric Blake  <eblake@redhat.com>
30740         maintainer-makefiles: use $(SED) for syntax check
30741         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30742         * top/maint.mk: Change sed to $(SED).
30744 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30745             Paul Eggert  <eggert@cs.ucla.edu>
30747         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30748         Patch based on an idea by Dick Streefland in
30749         <https://savannah.gnu.org/patch/?7892>.
30750         * NEWS: Document this.
30751         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30752         (direntry_t, comparison_function): New types.
30753         (direntry_cmp_name): New function.
30754         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30755         (streamsavedir, savedir): New arg OPTION.
30756         (streamsavedir): Simplify memory allocation.
30757         (fdsavedir): Remove.
30758         * lib/savedir.h (enum savedir_option): New type.
30759         (streamsavedir, savedir): New arg OPTION.
30760         (fdsavedir): Remove.
30762 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30764         file-type: add support for doors and other less-common file types
30765         Problem with S_ISDOOR reported by Rich Burridge.
30766         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30767         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30768         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30770 2014-01-23  Eric Blake  <eblake@redhat.com>
30772         pthread: work around winpthread header pollution on mingw
30773         * lib/time.in.h: Move pthread workarounds...
30774         * lib/pthread.in.h: ...here.
30775         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30776         detect macro pollution on mingw.
30777         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30779 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30781         qacl: check for fchmod
30782         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30783         and qset-acl.c both use HAVE_FCHMOD.
30785 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30787         fdopen-tests: port to Tru64
30788         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30789         descriptor that is not open, as POSIX doesn't specify the
30790         resulting behavior and the test does not work on Tru64.
30791         Problem reported by Steven M. Schweda in:
30792         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30794         stdalign: port to HP-UX compilers
30795         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30796         if __HP_cc or __HP_aCC are nonzero.
30798 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30800         strtoimax: port to platforms lacking 'long long'
30801         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30802         check whether strtoll is declared, which causes the C file to
30803         wrongly report an error.  Problem reported by Steven M. Schweda in:
30804         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30805         * lib/strtoimax.c (strtoull):
30806         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30807         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30809 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30811         relocatable-perl: fix texi syntax
30812         * doc/relocatable-maint.texi: Escape braces.
30814 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30816         relocatable-perl: like relocatable-script, but for Perl scripts
30817         * build-aux/relocatable.pl.in: Add.
30818         * doc/relocatable-maint.texi: Add documentation.
30819         * modules/relocatable-perl: Add.
30821 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30823         tests: fix export bug in previous patch
30824         Problem reported by Jim Meyering.
30825         * tests/init.sh (re_shell): New var, which is exported instead of
30826         re_shell_.
30828         tests: simplify porting to Solaris 10 /bin/sh
30829         Some test cases in 'grep' need a shell that groks '$(';
30830         export re_shell_ for their benefit.  Problem reported for 'grep'
30831         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30832         * tests/init.sh (re_shell_): Export if it's used.
30834 2014-01-06  Eric Blake  <eblake@redhat.com>
30836         md5, sha1, sha256, sha512: support older autoconf
30837         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30838         for autoconf < 2.63b.
30840         include_next: port to autoconf 2.63
30841         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30843 2014-01-04  Jim Meyering  <meyering@fb.com>
30845         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30846         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30847         so that "make sc_maint" will ding anyone who puts non-ascii
30848         in any of gnulib's .texi files.
30850 2014-01-03  Jim Meyering  <meyering@fb.com>
30852         freadable, fwritable, fwriting: declare with the "pure" attribute
30853         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30854         * lib/fwritable.h (fwritable): Likewise.
30855         * lib/fwriting.h (fwriting): Likewise.
30856         Suggested by Bruno Haible.
30858         maint.mk: adapt openat.h-include-without-use test
30859         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30860         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30861         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30862         With this change, running "make sc_maint" in gnulib's top-level
30863         directory now passes for me.
30865 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30867         doc: use ASCII in .texi files where UTF-8 isn't needed
30868         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30869         * doc/posix-functions/setkey.texi, doc/regex.texi:
30870         Use ASCII input, not UTF-8.
30872 2014-01-02  Jim Meyering  <meyering@fb.com>
30874         freading: declare with the "pure" attribute
30875         * lib/freading.h (freading): Declare with the "pure" attribute.
30877         manywarnings: remove -Wmudflap
30878         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30879         it is no longer supported in gcc-4.9-to-be.
30881 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30883         relocatable-script: remove unused code
30884         Problem reported by Reuben Thomas in:
30885         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30886         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30888 2014-01-01  Jim Meyering  <meyering@fb.com>
30890         maint: fix public-submodule-commit to work with newer git
30891         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30892         We were over-quoting the test arguments, and somewhere prior to
30893         version 1.8.5.2.229, git stopped removing those excess quotes,
30894         which made the test fail, since the unexpanded strings would
30895         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30896         command wasn't even being run.
30898 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30900         doc: update main copyright year
30901         * doc/gnulib.texi: Update copyright date.
30903 2014-01-01  Eric Blake  <eblake@redhat.com>
30905         version-etc: new year
30906         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30907         * all files: run 'make update-copyright'
30909 2013-12-24  Eric Blake  <eblake@redhat.com>
30911         passfd: give nicer error for recvfd at eof
30912         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30913         * tests/test-passfd.c (main): Enhance test to cover this.
30915 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30917         gettimeofday: port recent C++ fix to Emacs
30918         Without this further patch, Emacs won't build due to
30919         the portcheck failing.  Also, this simplifies the patch a bit.
30920         * lib/time.in.h (localtime, gmtime): Don't replace unless
30921         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30922         * lib/time.in.h (localtime, gmtime):
30923         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30924         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30925         * modules/time (time.h):
30926         Don't worry about the possibility of localtime and gmtime
30927         being absent; they're present in all C libraries we know about.
30928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30929         Don't assume sys_time is present and has been initialized.
30930         Instead, use a hack that should work even if it hasn't been.
30931         Don't use a portcheck for gmtime or localtime; this supports
30932         the hack.
30933         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30935 2013-12-17  John W. Eaton  <jwe@gnu.org>
30937         gettimeofday: fix C++ crosscompilation
30939         Never replace gmtime and localtime by macros when compiling with
30940         C++, this prevents <ctime> from being included.
30942         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30943         define gmtime and localtime as preprocessor macros.  Instead
30944         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30945         REPLACE_LOCALTIME substitutions.
30946         * lib/time.in.h: Declare gmtime and localtime when needed.
30947         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30948         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30949         * modules/time: Depend on gettimeofday, and substitute the above
30950         variables in time.h.
30952 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30954         qacl: port to Windows better
30955         See Eli Zaretskii in
30956         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30957         * lib/file-has-acl.c (acl_access_nontrivial):
30958         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30959         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30961 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30963         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30964         * lib/gl_openssl.h: Cast void pointers to a specific type.
30966 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30968         open-tests: fix build failure with -Werror=old-style-declaration
30969         * tests/test-open.h: Reorder the inline to avoid the issue.
30971 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30973         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30974         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30975         init time, so that if early checks find crypto routines,
30976         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30977         avoiding link failures.
30979 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30981         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30982         This provides a new way to specify the default for
30983         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30984         Emacs uses this, as well as the old way.
30985         This attempts to implement a suggestion by Pádraig Brady in
30986         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30987         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30988         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30990         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30991         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30992         Add support for a new option, --with-openssl=auto, which causes
30993         the library to be used if available and silently ignored if not.
30994         Add support to allow configure.ac to specify its own
30995         default, by setting with_openssl_default before invoking gl_INIT.
30997 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30999         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
31000         Problem reported by Daiki Ueno in:
31001         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
31002         * tests/test-open.h (__always_inline):
31003         New macro, if not already defined.
31004         (test_open): Use it.
31006 2013-12-04  Eric Blake  <eblake@redhat.com>
31008         include_next: minimize code duplication
31009         * modules/include_next (Depends-on): Add absolute-header.
31010         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
31011         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
31013 2013-12-04  Pádraig Brady  <P@draigBrady.com>
31015         getcwd: fix compile error in configure check
31016         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
31018 2013-12-04  Pádraig Brady  <P@draigBrady.com>
31020         regex: suppress core dumps from detection code
31021         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
31022         to suppress core dumps that may well occur on glibc systems.
31023         These core dumps might not be cleaned up automatically, or could
31024         trigger some system core dump handling logic.
31026 2013-12-03  Pádraig Brady  <P@draigBrady.com>
31028         md5, sha1, sha256, sha512: support mandating use of openssl
31029         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
31030         description, to list the now 3 separate options.  also don't
31031         mention the default=no, since this is implicit given the option
31032         is described as --with-openssl rather than --without-openssl.
31033         If projects change the default they're free to document that.
31034         with --with-openssl[=yes] we now error out when the specified
31035         hash algorithm is not available in libcrypto.
31037 2013-12-03  Ivailo  <xakepa10@gmail.com>
31039         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
31040         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
31041         -Wformat-nonliteral checks, as these edge cases are part of the test.
31043 2013-12-03  Eric Blake  <eblake@redhat.com>
31045         regex: avoid glibc deadlock during configure
31046         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
31047         glibc bug 15078 in turn triggers bug 16159.
31048         Reported by Michal Privoznik.
31050 2013-12-02  Pádraig Brady  <P@draigBrady.com>
31052         md5, sha1, sha256, sha512: use openssl routines if available.
31053         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
31054         routines will be used if available, requiring apps to link @LIB_CRYPTO@
31055         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
31056         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
31057         in the standard system location.
31058         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
31059         * m4/sha256.m4: Likewise with SHA256.
31060         * m4/sha512.m4: Likewise with SHA512.
31061         * m4/md5.m4: Likewise with MD5.
31062         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
31063         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
31064         * lib/sha256.h: Likewise with SHA256.
31065         * lib/sha512.h: Likewise with SHA512.
31066         * lib/md5.h: Likewise with MD5.
31067         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
31068         * lib/sha256.c: Likewise with SHA256.
31069         * lib/sha512.c: Likewise with SHA512.
31070         * lib/md5.c: Likewise with MD5.
31071         * modules/crypto/sha1 (Link:): Add the new optional lib.
31072         (Depends-on:): Add dependency on extern-inline.
31073         * modules/crypto/sha256: Likewise.
31074         * modules/crypto/sha512: Likewise.
31075         * modules/crypto/md5: Likewise.
31076         * modules/crypto/sha1-tests: Reference the lib here too.
31077         * modules/crypto/md5-tests: Likewise.
31078         * modules/crypto/gc-des-tests: Likewise.
31079         * modules/crypto/gc-hmac-md5-tests: Likewise.
31080         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31081         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31082         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31083         * modules/crypto/gc-md5-tests: Likewise.
31084         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31085         * modules/crypto/gc-sha1-tests: Likewise.
31086         * modules/crypto/gc-tests: Likewise.
31087         * modules/crypto/hmac-md5-tests: Likewise.
31088         * modules/crypto/hmac-sha1-tests: Likewise.
31089         * modules/crypto/hmac-sha256-tests: Likewise.
31090         * modules/crypto/hmac-sha512-tests: Likewise.
31092 2013-11-29  RV1971  <rv1971@web.de>
31094         base64: (trivial) fix compilation regression on some compilers
31095         * lib/base64.c: Don't return the void function,
31096         instead split to a separate return statement.
31098 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31100         ignore-value: revert previous code change
31101         * lib/ignore-value.h (ignore_value): Use __extension__ and
31102         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
31103         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
31104         Change the comment to try to explain this better.
31106 2013-11-27  Pádraig Brady  <P@draigBrady.com>
31108         selinux-h: improve stub types and add more stub functions
31110         * lib/se-selinux.in.h: Change security_context_t to a typedef
31111         rather than a define, as it's a pointer type and so is better
31112         as a typedef to avoid issues declaring multiple variables
31113         with the comma operator.  Also add stub for string_to_security_class().
31114         * lib/se-context.in.h: Add stub functions for
31115         context_{type,range,role,user}_get().
31117 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31119         ignore-value: prefer GCC version back through 2.0
31120         The code didn't match the comments, so I did a bit of software
31121         archaeology.  GCC 2.0 seems to support __extension__ and
31122         __typeof__, so fix both code and comments to use 2.0.
31123         * lib/ignore-value.h (ignore_value): Use __extension__ and
31124         __typeof__ for GCC 2.0 through 3.3, too.
31126 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
31128         pty: Activate the signature wrapper of forkpty.
31129         The intended preprocessor macro HAVE_FORKPTY is
31130         never defined, yet `lib/forkpty.c' depends on it.
31132         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
31133         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
31134         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
31136 2013-11-18  Jim Meyering  <meyering@fb.com>
31137         and Paul Eggert  <eggert@cs.ucla.edu>
31139         quotearg: don't attempt to store 1 << 31 into an "int"
31140         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
31141         gcc's new -fsanitize=undefined and running its tests triggered some
31142         new test failures due to undefined behavior, all with this diagnostic:
31143           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
31144             cannot be represented in type int
31145         Rather than shifting "1" left to form a mask, shift the bits right and
31146         simply use "1" as the mask.
31148 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
31150         error: depend on stdio
31151         Problem reported by Nikos Mavrogiannopoulos in
31152         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
31153         * modules/error (Depends-on): Add stdio.
31155 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
31157         * doc/relocatable-maint.texi (Supporting Relocation): Improve
31158         wording.
31159         Reported by Reuben Thomas <rrt@sc3d.org>.
31161 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
31163         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
31164         New function and macro, to work around _DARWIN_C_SOURCE problem.
31165         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
31167 2013-11-11  Pádraig Brady  <P@draigBrady.com>
31169         base64: provide a fast path for encoding well sized buffers
31170         Avoid conditionals in the base64 encoding loop,
31171         which was seen to give 60% better throughput.
31172         * lib/base64.c (base64_encode_fast): A new function to be called
31173         when we don't want to NUL terminate, and we have enough space
31174         in the output to encode the given input.
31175         (base64_encode): Call the _fast() version when appropriate.
31176         Also remove a redundant mask with 0x3F on the first encoded byte.
31178 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
31180         extern-inline: port better to OS X 10.9
31181         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
31182         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
31183         OS X 10.9, except for g++ where the bug is still present.
31184         See <http://trac.macports.org/ticket/41033>.
31186 2013-11-08  Eric Blake  <eblake@redhat.com>
31188         fpending: fix regression on DragonFly BSD
31189         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
31190         * lib/fpending.h (__fpending): Don't declare twice.
31191         Reported by GW in
31192         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
31194 2013-11-05  Jim Meyering  <meyering@fb.com>
31196         hash: relax license to LGPLv2+, for libguestfs
31197         * modules/hash (License): Change from GPL to LGPLv2+.
31199 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31201         intprops: port to Oracle Studio c99
31202         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
31203         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
31205 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31207         obstack: pacify HP C
31208         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
31209         warning "conversion from pointer to smaller integer" from HP
31210         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
31211         C89 or later nowadays, so cast to void instead of int.  Privately
31212         reported by H.Merijn Brand.  Also, change header to match glibc's,
31213         to make checking against glibc easier.
31215 2013-10-29  Jim Meyering  <meyering@fb.com>
31217         maint.mk: prefer gpgv2 over gpgv
31218         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
31219         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
31220         Reported by Gary Vaughan.
31222 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31224         isnan: port to VAX
31225         Reported by John Klos for NetBSD-5/VAX in
31226         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
31227         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
31228         (FUNC): Use it.
31230 2013-10-28  Jim Meyering  <meyering@fb.com>
31232         gnulib-tool: protect against CDPATH
31233         * gnulib-tool: Many "cd" built-in functions print a directory name
31234         to stdout when CDPATH is set, e.g.,
31235           $ bash -c 'CDPATH=/; cd tmp'
31236           /tmp
31237         Unset it, when possible.  Prompted by a comment from Bruce Korb.
31239         maint.mk: restore functionality removed by recent change...
31240         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
31241         the context of a shallow-cloned gnulib repository: "git describe"
31242         would fail in such a directory.  However, that change made it so
31243         the reported gnulib revision no longer includes the version number
31244         or a commit count, even when run from a full clone.
31245         * top/maint.mk (gnulib-version): Use the full "git describe"
31246         output when possible, e.g., the form above, rather than the
31247         abbreviated, no-tag, no-commit-count string, and fall back to
31248         using a 10-byte hash, rather than the default minimal-length
31249         hash prefix, since while the minimal-length one may be fine today,
31250         it is likely not to be unique for very long.
31252 2013-10-26  Jim Meyering  <meyering@fb.com>
31254         maint.mk: fix "release" target to build _version
31255         This fixes a bug in README-release whereby following the outlined
31256         steps, one would publish a tarball whose programs would report
31257         --version output not consistent with the package version number.
31258         This bug caused grep-2.15 to produce a grep program whose
31259         --version option made it print 2.14.56-1e3d rather than 2.15.
31260         * top/maint.mk (release): Making this target build "_version"
31261         ensures that the new version number is reflected in configure.
31263 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
31265         install-reloc: Support multi-binary installation.
31266         * build-aux/install-reloc: Support installing multiple programs in
31267         one invocation, as done by Automake starting with commit
31268         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
31269         Haible <bruno@clisp.org>, archived at
31270         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
31271         Reported by Sylvain <beuc@gnu.org>.
31273 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31275         selinux-h: Really build without selinux when library is missing.
31276         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
31277         continue without selinux, as already told in the warning message.
31279 2013-10-21  Jim Meyering  <meyering@fb.com>
31281         regex: also remove dependency on HAVE_WCSCOLL
31282         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
31284 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
31286         xfreopen: Fix typo. s/frepoen/freopen/
31287         * lib/xfreopen.c: Fix description.
31288         * modules/xfreopen: Likewise.
31290 2013-10-21  Jim Meyering  <meyering@fb.com>
31292         regex: don't depend on wcscoll
31293         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
31294         It is no longer used.
31296 2013-10-20  Jim Meyering  <meyering@fb.com>
31298         error: add the printf attribute to a static function
31299         * lib/error.c (error_tail): Add the printf attribute, to placate
31300         gcc's -Werror=suggest-attribute=format option.
31302 2013-09-30  Jim Meyering  <meyering@fb.com>
31304         fpending, obstack, strerror-override: use pure+const function attrs
31305         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
31306         * lib/obstack.c (_obstack_allocated_p): Likewise.
31307         * lib/obstack.h (_obstack_memory_used): Likewise.
31308         (_obstack_memory_used): Likewise.
31309         * lib/strerror-override.h (strerror_override): Declare with
31310         the "const" attribute.
31312 2013-10-18  Eric Blake  <eblake@redhat.com>
31314         extern-inline: make safe for -Wundef usage
31315         Reported by Vladimir 'phcoder' Serbinenko in
31316         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
31317         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
31319 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31321         mkfifo-tests, etc.: allow HP-UX 11.11 bug
31322         Problem reported by Daniel Richard G. in
31323         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
31324         * doc/posix-functions/mkfifo.texi (mkfifo):
31325         * doc/posix-functions/mkfifoat.texi (mkfifoat):
31326         * doc/posix-functions/mknod.texi (mknod):
31327         * doc/posix-functions/mknodat.texi (mknodat):
31328         Document the HP-UX 11.11 bug.
31329         * tests/test-mkfifo.h (test_mkfifo):
31330         Allow the HP-UX 11.11 bug.
31332 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31334         acl: allow cross-compilation to Gentoo
31335         Problem reported by Gabriel Marcano in
31336         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
31337         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
31338         test only whether it links.
31340 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
31342         mgetgroups: remove dependency on realloc-gnu
31343         The dependency violates the comment in realloc-gnu, which
31344         says that tests can't depend on realloc-gnu; some tests depend
31345         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
31346         Problem reported by Daniel Richard G. in
31347         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
31348         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
31349         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
31350         not realloc-gnu.
31352 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31354         regex-tests: port to HP-UX 11.11
31355         Problem reported by Daniel Richard G. in
31356         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
31357         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
31359 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31361         verify: document some 'assume' pitfalls
31362         * doc/verify.texi (Compile-time Assertions):
31363         Mention that 'assume (E)' can sometimes slow things down.
31364         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
31366 2013-10-10  Eric Blake  <eblake@redhat.com>
31368         strtoumax: fix typo in previous commit.
31369         * modules/strtoumax (Depends-on): Fix typo.
31370         * modules/strtoimax (Depends-on): Likewise.
31372 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31374         strtoumax: port to Solaris 8
31375         This problem was introduced in the recent HP-UX patch.
31376         Reported by Tom G. Christensen in
31377         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
31378         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
31379         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
31381 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31383         strtoimax, strtoumax: port to HP-UX 11.11
31384         Problem reported by Daniel Richard G. in
31385         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
31386         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
31387         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
31388         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
31389         REPLACE_STRTOUMAX.
31390         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
31391         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
31392         Replace the function if defined as a macro but not as a function.
31393         * modules/inttypes-incomplete (inttypes.h): Substitute
31394         REPLACE_STRTOUMAX.
31395         * modules/strtoumax (configure.ac): Replace strtoumax if
31396         REPLACE_STRTOUMAX.
31398 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31400         strtoimax: port to HP-UX 11.11
31401         Problem reported by Daniel Richard G.
31402         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
31403         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
31404         they might clash with inttypes.h.
31406 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31408         New module 'count-trailing-zeros'.
31409         * MODULES.html.sh: Mention it.
31410         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
31411         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
31412         * modules/count-trailing-zeros-tests:
31413         * tests/test-count-trailing-zeros.c:
31414         New files.
31416         count-leading-zeros: port to MSC; support types wider than 64 bits
31417         The ideas behind the MSC port are stolen from Emacs.
31418         * lib/count-leading-zeros.h:
31419         Don't include verify.h: it's no longer needed, as types wider than
31420         64 bits are now supported.
31421         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
31422         performance with MSC.  All uses changed.  Do not assume that TYPE
31423         has at most 64 bits.
31424         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
31425         All uses changed.  Fold the subtraction from 31 into the table.
31427         count-one-bits: port to MSC; support types wider than 64 bits
31428         The ideas behind the MSC port are stolen from Emacs.
31429         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
31430         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
31431         Don't include verify.h: it's no longer needed, as types wider than
31432         64 bits are now supported.
31433         (COUNT_ONE_BITS_GENERIC): New macro.
31434         (popcount_supported) [_MSC_VER]: New inline function.
31435         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
31436         performance with MSC.  All uses changed.  Do not assume that TYPE
31437         has at most 64 bits.
31438         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
31440 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
31442         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
31443         * lib/mountlist.c (read_file_system_list): fix leak of directory
31444         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
31446 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31448         tests: improve diagnostic when an assertion fails
31449         * tests/macros.h (ASSERT): Report the assertion that failed.
31451 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31453         verify: new macro 'assume'
31454         This is taken from Emacs, and should be generally useful.
31455         * doc/verify.texi (assume): Document it.
31456         * lib/verify.h (assume): New macro.
31457         (__has_builtin): Expand to 0 if not defined.
31459 2013-09-26  Eric Blake  <eblake@redhat.com>
31461         dup2, dup3: work around another cygwin crasher
31462         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
31463         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
31464         * tests/test-dup2.c (main): Likewise.
31465         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
31466         * lib/dup3.c (dup3): Likewise.
31467         * doc/posix-functions/dup2.texi (dup2): Document it.
31468         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31470         getdtablesize: work around cygwin issue
31471         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
31472         * modules/getdtablesize (configure.ac): Build replacement.
31473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
31474         * modules/unistd (Makefile.am): Expose the witness.
31475         * lib/unistd.in.h (getdtablesize): Declare replacement.
31476         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
31477         * tests/test-getdtablesize.c (main): Test it.
31478         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
31480 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
31482         pmccabe2html: escaping of special characters
31483         Escape all '<', '>', and '&' in HTML output.
31484         * build-aux/pmccabe2html (html_fnc): Call gsub()
31485         instead of sub() to capture all '<', '>', and '&'.
31486         Neither of '<' and '>' is special in a regexp,
31487         so first arguments to gsub() are corrected. Also,
31488         in replacement strings, ampersand must be escaped.
31489         Finally, '&' must be handled first, then '<' and '>'.
31491 2013-09-24  Eric Blake  <eblake@redhat.com>
31493         manywarnings: enable nicer gcc warning messages
31494         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
31495         some -f options for optimal warnings.
31497 2013-09-21  Jim Meyering  <meyering@fb.com>
31499         timespec: use the new TIMESPEC_RESOLUTION in a few more places
31500         * lib/timespec-add.c (timespec_add): Also replace 999999999
31501         with TIMESPEC_RESOLUTION - 1.
31502         * lib/timespec-sub.c (timespec_sub): Likewise.
31504 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31506         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
31507         Problem reported by Dagobert Michelsen via Eric Blake in
31508         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
31509         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31510         not AC_COMPILE_IFELSE.
31512 2013-09-23  Eric Blake  <eblake@redhat.com>
31514         configmake: support new --runstatedir option
31515         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
31516         even if autoconf was too old to provide the command line option.
31517         * modules/configmake (Makefile.am): Propagate it to .h file.
31519 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31521         ctype, string: depend on extern-inline
31522         This is needed to complete the recent OS X fixes.
31523         Also, fix related documentation as suggested by Eric Blake.
31524         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31525         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
31526         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
31527         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
31528         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
31529         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
31530         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
31531         * doc/posix-functions/toupper.texi:
31532         List the 'ctype' gnulib module.
31533         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
31534         * doc/posix-functions/strncpy.texi:
31535         List the 'string' gnulib module.
31536         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
31537         Add string.
31538         * modules/ctype, modules/string (Depends-on): Add extern-inline.
31540 2013-09-19  Pádraig Brady  <P@draigBrady.com>
31542         userspec: support optional parameters to parse_user_spec()
31543         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
31544         then avoid group processing and treat the full spec as a user.
31545         (parse_with_separator): Allow the USERNAME and GROUPNAME to
31546         be optional params (NULL), in which case they're ignored.
31548 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
31550         timespec: new function make_timespec, and new constants
31551         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
31552         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
31553         (make_timespec): New function.
31554         * lib/dtotimespec.c (dtotimespec):
31555         * lib/timespec-add.c (timespec_add):
31556         * lib/timespec-sub.c (timespec_sub):
31557         * lib/utimens.c (validate_timespec):
31558         * lib/utimensat.c (rpl_utimensat):
31559         Use these new constants and functions.
31561         stdio: OS X port of putc_unlocked + extern inline
31562         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
31563         * doc/posix-functions/putc_unlocked.texi:
31564         * doc/posix-functions/putchar_unlocked.texi:
31565         Document this portability problem.
31567         signal: OS X port of sigaddset etc. + extern inline
31568         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
31569         (sigismember): #undef on problematic Apple platforms.
31570         * doc/posix-functions/sigaddset.texi:
31571         * doc/posix-functions/sigdelset.texi:
31572         * doc/posix-functions/sigemptyset.texi:
31573         * doc/posix-functions/sigfillset.texi:
31574         * doc/posix-functions/sigismember.texi:
31575         Document this portability problem.
31577         extern-inline: do not always suppress extern inline on OS X
31578         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
31579         extern inline on Apple only if the particular compile-time
31580         configuration is known to have the problem.
31581         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
31582         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
31583         other Gnulib modules.
31585         extern-inline: document fixes for ctype and wctype macros
31586         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31587         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31588         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31589         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31590         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31591         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31592         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31593         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31594         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31595         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31596         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31597         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31598         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31599         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31600         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31601         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31602         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31603         * doc/posix-functions/strncpy.texi:
31604         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31605         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31606         Document that Gnulib fixes portability problems with these
31607         functions on OS X 10.8 and earlier when called from plain inline
31608         or extern inline functions.
31610 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31612         fflush, freadahead, fseeko: Fix for Android
31613         Suggested by Bruno Haible in:
31614         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31615         * lib/stdio-impl.h: Use local __sfileext definition.
31617 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31619         pmccabe2html: Portability to other awk versions.
31620         The functions systime() and strftime() are available
31621         in Gawk only.  Properly close two HTML-tags 'style'
31622         and 'span'.
31623         * build-aux/pmccabe2html (BEGIN): Store timing
31624         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31625         systime() in HTML_COMMENT.
31626         (html_header): Correctly close tag 'style'.
31627         (END): Replace strftime() by CHRONOS_TIME.  Close
31628         tag 'span' correctly, not as 'div'.
31630 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31632         getgroups: statement without effect
31633         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31634         Change equality conditional to expected assignment.
31636 2013-09-09  Eric Blake  <eblake@redhat.com>
31638         glob: fix compilation
31639         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31641 2013-09-07  Eric Blake  <eblake@redhat.com>
31643         glob: fix build for platforms without __THROW
31644         * lib/glob.in.h (__THROW): Add definition again.
31646 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31648         regex-quote: fix buffer access out of bounds
31649         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31650         * lib/regex-quote.c (regex_quote_spec_pcre):
31651         Fix typo that resulted in an out-of-bounds read.
31653 2013-09-04  Eric Blake  <eblake@redhat.com>
31655         glob: avoid -Wattribute warnings on glibc
31656         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31657         __THROWNL, not __THROW, on static functions.
31658         * lib/glob.in.h (__THROW): Adjust...
31659         (__THROWNL): ...accordingly.
31661 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31663         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31664         Suggested by Bruce Korb in:
31665         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31666         * doc/extern-inline.texi (extern inline):
31667         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31668         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31669         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31670         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31671         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31672         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31673         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31674         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31675         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31676         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31677         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31678         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31679         * lib/xtime.h:
31680         Check that _GL_INLINE_HEADER_BEGIN is defined.
31682 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31684         bootstrap: remove the --version requirement from ancillary tools
31685         * build-aux/bootstrap (check_exists): A new refactored function to
31686         determine if a command exists.
31687         (find_tool): Use the new function which does not require the
31688         --version option to be supported.
31689         (check_versions): Use the new function.
31691 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31693         gc: support HMAC-SHA256 and HMAC-SHA512.
31694         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31695         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31696         functions.
31697         (gc_hmac_md5): Use symbolic constant.
31698         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31699         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31700         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31701         * m4/sha256.m4: Protect against empty expansion.
31702         * m4/sha512.m4: Likewise.
31703         * lib/hmac-sha256.c: New file.
31704         * lib/hmac-sha512.c: Likewise.
31705         * m4/gc-hmac-sha256.m4: Likewise.
31706         * m4/gc-hmac-sha512.m4: Likewise.
31707         * m4/gc-sha256.m4: Likewise.
31708         * m4/gc-sha512.m4: Likewise.
31709         * modules/crypto/gc-hmac-sha256: Likewise.
31710         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31711         * modules/crypto/gc-hmac-sha512: Likewise.
31712         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31713         * modules/crypto/hmac-sha256: Likewise.
31714         * modules/crypto/hmac-sha256-tests: Likewise.
31715         * modules/crypto/hmac-sha512: Likewise.
31716         * modules/crypto/hmac-sha512-tests: Likewise.
31717         * tests/test-gc-hmac-sha256.c: Likewise.
31718         * tests/test-gc-hmac-sha512.c: Likewise
31719         * tests/test-hmac-sha256.c: Likewise.
31720         * tests/test-hmac-sha512.c: Likewise
31722 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31724         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31725         of AC_CHECK_DECLS.
31727 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31729         selinux-at: omit unnecessary include
31730         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31731         this source file doesn't use its macros, and subsidiary files that
31732         use the macros already include it.
31734 2013-08-21  Eric Blake  <eblake@redhat.com>
31736         d-ino: avoid false negative on symlink
31737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31738         Reported by Stephane Chazelas.
31740 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31742         bootstrap: port to OpenBSD sed
31743         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31744         does not interpret `-' as a file argument to mean stdin.
31746 2013-08-15  Eric Blake  <eblake@redhat.com>
31748         warnings: minor optimization
31749         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31751         warnings: check -Wfoo rather than -Wno-foo
31752         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31753         -Wno-, test if the compiler recognizes the positive form instead.
31755 2013-08-15  Karl Berry  <karl@gnu.org>
31757         * config/srclist-update: add option "doclicense" to placate
31758         pulling *.texi files from Emacs.  Write terse usage
31759         documentation at the top.
31761 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31763         xvasprintf-tests: port to GCC with hardening flags
31764         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31765         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31766         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31768 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31770         fpending: port to recent Cygwin change to stdio_ext.h
31771         Reported by LRN in
31772         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31773         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31774         just declare __fpending unless it's a macro.
31775         A duplicate decl shouldn't hurt.
31776         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31777         call compiles and links, instead of separately checking for
31778         decl and lib function.
31779         * modules/fpending (configure-ac):
31780         Adjust to fpending.m4's renaming of shell variable.
31782 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31784         sys_time: port to OpenBSD
31785         * lib/sys_time.in.h: Simply delegate to the system's header
31786         in the BSDish cases as well.  Problem reported by Mike Miller in
31787         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31788         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31789         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31790         wider than time_t.
31792 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31794         bootstrap: support checksum utils having -c but not --status
31795         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31796         Add sha1 to the list of supported checksum utils since it's now
31797         supported through adjustments below.
31798         (update_po_files): Remove the use of --status
31799         in a way that will suppress all error messages, but since this is
31800         only used to minimize updates, it shouldn't cause an issue.
31801         Exit early if there is a problem updating the po file checksums.
31802         (find_tool): Remove the check for --version support as this
31803         is optional as per commit 86186b17.  Don't even check for the
31804         presence of the command as if that is needed, it's supported
31805         through configuring prerequisites in bootstrap.conf.
31806         Prompt that when a tool isn't found, one can define an environment
31807         variable to add to the hardcoded search list.
31809 2013-08-05  Jim Meyering  <meyering@fb.com>
31811         regex: port to non-glibc/lock-using systems
31812         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31813         system with GNULIB_LOCK would fail due to absence of the
31814         included "glthread/lock.h".  This would affect any package
31815         for which the "lock" module is used only by the regex module,
31816         and not explicitly used.
31817         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31818         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31819         Add a dependency on the "lock" module.
31821 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31823         localecharset: make locale_charset thread-safe on Mac OS X
31824         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31825         instead of MB_CUR_MAX.
31827 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31829         gettext: update to version 0.18.3
31830         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31831         require AC_PROG_SED to allow user to specify custom sed command when
31832         generating en@quot PO file.
31834 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31836         bootstrap: use correct source when copying build-aux files
31837         * build-aux/bootstrap (gnulib_extra_files): This variable is
31838         relative to upstream gnulib layout, not downstream.
31840 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31842         tmpdir: fix bug in VMS port
31843         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31844         See Steven M. Schweda in
31845         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31847 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31849         tmpdir: port to VMS, to // != /, and to long dirs
31850         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31851         __secure_getenv, so that we're more like the glibc version.
31852         All uses changed.
31853         (path_search): Don't put slash after directory if __VMS.
31854         Problem reported by Steven M. Schweda in
31855         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31856         Simplify code to add slash; no need for a loop.
31857         Do not remove trailing slash from "//".
31858         Do not assume dlen <= INT_MAX.
31860 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31862         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31863         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31864         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31865         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31867         accept4, dup3, pipe2: port to Cygwin
31868         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31869         * lib/accept4.c (accept4) [O_BINARY]:
31870         * lib/dup3.c (dup3) [O_BINARY]:
31871         * lib/pipe2.c (pipe2) [O_BINARY]:
31872         Use set_binary_mode, not setmode.
31873         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31874         * modules/binary-io (Depends-on): Remove module indicator.
31875         These last two bits undo the previous change to pipe2 and binary-io.
31877 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31879         mountlist: add support for deallocating returned list entries
31880         * lib/mountlist.c (free_mount_entry): A new exported function
31881         to deallocate a mount list entry.
31882         (read_file_system_list): Refactor to use the new deallocation function.
31883         Suggested by Anton Ovchinnikov.
31885 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31887         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31888         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31889         * lib/stdalign.in.h (_Alignas, _Alignof):
31890         Port to FreeBSD 9.1, and to C11 and C++11.
31891         (_Alignas): Also support ICC.
31892         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31893         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31895 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31897         fnmatch: don't goto over declaration
31898         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31899         undefined behavior for goto over a declaration.
31900         Problem reported by Charlie Brown in
31901         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31903         pipe2: decouple from binary-io a bit
31904         This is for Emacs, which needs pipe2 but not binary-io.
31905         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31906         * modules/binary-io (Depends-on): Add module indicator.
31908 2013-07-03  Eric Blake  <eblake@redhat.com>
31910         mgetgroups: relax license to LGPLv2+
31911         * modules/getugroups (License): Change from GPLv3+.
31912         * modules/mgetgroups (License): Likewise.
31913         * modules/getgroups (License): Change from LGPLv3+.
31915         xalloc-oversized: relax license to LGPLv2+
31916         * modules/xalloc-oversized (License): Change from GPLv3+.
31918         nproc: relax license to LGPLv2+
31919         * modules/nproc (License): Change from LGPLv3+.
31921         bootstrap: honor --no-git
31922         * build-aux/bootstrap: Don't even try to use git when user is
31923         pointing to a static checkout.
31925 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31927         ignore-value: port to gcc -pedantic
31928         * lib/ignore-value.h (ignore_value):
31929         Port to gcc -pedantic, by using __extension__.
31930         Reindent as per usual gnulib style nowadays.
31931         Simplify GCC version check.
31933 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31935         extern-inline: port to gcc -std=c89
31936         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31937         Do not use __gnu_inline__ if pedantic and pre-C99.
31939 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31941         doc: document extern-inline
31942         * doc/extern-inline.texi: New file.
31943         * doc/gnulib.texi (alloca-opt): Include it.
31944         * m4/extern-inline.m4: Move some comments to documentation,
31945         and others closer to what they describe.
31947         doc: chatter less
31948         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31949         (updated-stamp): Use it.  This causes 'make' to output just
31950         one file name rather than zillions.
31952         fflush, fseeko: port to musl cross-compiles
31953         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31954         on some implementation that (1) is not known to be buggy,
31955         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31956         cross-compiled to so we can't easily check for lack of
31957         conformance.  This is for cross-compiling to musl.
31958         Reported by Rich Felker in
31959         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31960         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31961         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31962         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31963         Adjust to above change.
31964         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31965         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31966         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31967         known not to work, or unknown.
31969 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31971         msvc-inval: port to mingw-w64
31972         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31973         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31974         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31976 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31978         getcwd-lgpl: port to Tru64
31979         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31980         Problem reported by Steven M. Schweda in
31981         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31983         tests: port large-fd POSIX spawn tests to OS X
31984         Problem reported by Daiki Ueno in
31985         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31986         * tests/test-posix_spawn_file_actions_addclose.c:
31987         * tests/test-posix_spawn_file_actions_adddup2.c:
31988         * tests/test-posix_spawn_file_actions_addopen.c:
31989         Include <limits.h>, for OPEN_MAX, if available.
31990         (big_fd): New static function.
31991         (main): Use it.
31993 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31995         tests/nap.h: use an adaptive delay to avoid ctime update issues
31996         The recent change in nap.h (5191133e) decreased the probability of lost
31997         races to about a third, however such problems could still be observed
31998         in virtual machines and openSUSE's OBS.
31999         Before, nap() detected the needed time once empirically and then used
32000         that delay (together with a small correction multiplier) in further
32001         calls.  This problem has been reported and discussed several times,
32002         including guesses about possible kernel issues:
32003         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
32004         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
32005         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
32006         http://bugs.gnu.org/12820
32007         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
32008         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
32009         Now, nap() avoids the race alltogether by verifying on a reference
32010         file whether a timestamp difference has happened.
32011         * tests/nap.h (nap_fd): Define file descriptor variable for the
32012         witness file.
32013         (nap_works): Change return value to bool.  Change passing
32014         the old file's status by value instead of by reference as this function
32015         does no longer update that timestamp; rename the function argument from
32016         st to old_st.  Remove the local variables cdiff and mdiff because that
32017         function now returns true/false instead of the precise delay.
32018         (guess_delay): Remove function.
32019         (clear_tmp_file): Add new function to close and unlink the witness file.
32020         (nap): Instead of re-using the delay which has been calculated during
32021         the first call, avoid the race by actually verifying that a timestamp
32022         difference can be observed on the current file system.  Use an adaptive
32023         approach for the delay to minimize execution time.  Assert that the
32024         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
32025         = 2^31 - 1 = 2.1s.
32026         Use atexit to call clear_tmp_file when the process terminates.
32028 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32030         sig2str: port to C++
32031         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
32032         Reported by Daniel J Sebald in
32033         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
32035 2013-05-30  Eric Blake  <eblake@redhat.com>
32037         docs: mention cygwin shortcoming in <sys/un.h>
32038         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
32040         vasnprintf: silence mingw compiler warning
32041         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
32043 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32045         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
32046         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
32047         This fixes a porting bug I recently reintroduced in regex, and
32048         some other instances that I discovered while testing the fix.
32049         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
32050         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
32051         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
32052         with an empty argument if this is a pedantic pre-C99 GCC.
32053         * lib/verify.h: Do not use _Static_assert if this is a pedantic
32054         pre-C11 GCC.
32056         regex: adapt to locking regime instead of depending on pthread
32057         Instead of depending on pthread, adapt to whatever thread
32058         modules are in use.  Problem reported by Ludovic Courtès in
32059         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
32060         and by Mats Erik Andersson in
32061         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
32062         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
32063         Support either the 'lock' module, or the 'pthread' module, or
32064         no module.
32065         (lock_lock, lock_unlock): New macros.
32066         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
32067         * modules/lock, modules/pthread (configure.ac): Add module indicator.
32068         * modules/regex (Depends-on): Remove pthread.
32070 2013-05-22  Eric Blake  <eblake@redhat.com>
32072         getgroups: document portability issues
32073         * doc/glibc-functions/initgroups.texi (initgroups): Mention
32074         multithread safety.
32075         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
32076         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
32077         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
32078         getugroups.
32079         * doc/posix-functions/getgroups.texi (getgroups): Mention
32080         multithread safety and mgetgroups.
32082 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
32084         test-lchown, test-chown: also skip test if chown fails with EPERM
32085         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
32086         skip this test, to handle FAT file systems.
32087         * tests/test-chown.h (test_chown): Likewise.
32089 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32091         regex: fix dfa race in multithreaded uses
32092         Problem reported by Ludovic Courtès in
32093         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
32094         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
32095         New macros.  All uses of __libc_lock_define, __libc_lock_init
32096         changed to use the first two of these.
32097         (__libc_lock_lock, __libc_lock_unlock): New macros, for
32098         non-glibc platforms.
32099         (struct re_dfa_t): Define the lock unconditionally.
32100         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
32101         '#ifdef _LIBC"s.
32102         * modules/regex (Depends-on): Add pthread, if we use the
32103         included regex.
32105         * lib/regcomp.c: Do actions that are not needed for glibc,
32106         but may be needed elsewhere.
32107         (regfree, re_compile_internal): Destroy the lock.
32108         (re_compile_internal): Check for lock-initialization failure.
32110         malloca: port to compilers that reject size-zero arrays
32111         This fixes a bug introduced in my previous patch.
32112         * lib/malloca.c (struct preliminary_header): Use an int
32113         rather than a character array of size int; that's simpler.
32114         (struct header): Remove, replacing with ...
32115         (union header): New type.  This avoids the need for declaring a
32116         character array of size zero, which is not allowed on some platforms.
32117         All uses changed.
32119 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32121         parse-datetime, tests: don't use "string" + int
32122         Recent versions of 'clang' complain about C source code that
32123         uses expressions of the form '"string literal" + integer',
32124         I guess on the theory that it's confusing for readers who are
32125         used to C++.  On those grounds I suppose it's OK to make this
32126         minor style change.
32127         * lib/parse-datetime.y (parse_datetime):
32128         * tests/test-fchdir.c (main):
32129         * tests/test-snprintf-posix.h (test_function):
32130         * tests/test-snprintf.c (main):
32131         * tests/test-vasnprintf-posix.c (test_function):
32132         * tests/test-vasnprintf.c (test_function):
32133         * tests/test-vsnprintf.c (main):
32134         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
32135         Rewrite '"str" + E' to '&"str"[E]'.
32137 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32139         argmatch: port to C++
32140         * lib/argmatch.h [__cplusplus]: Add extern "C".
32142         argp: typo fix
32143         * lib/argp-help.c: Typo in comment.
32145 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32147         manywarnings: update for GCC 4.8.0
32148         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
32149         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
32150         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
32151         -Wmissing-noreturn, as they are duplicates of other warnings.
32152         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
32153         was documented to be flaky in earlier versions of GCC.
32155         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
32156         * tests/test-spawn.c (main):
32157         * tests/test-sys_socket.c (main):
32158         * tests/test-sys_wait.c (main):
32159         Don't have a switch value that isn't covered by a case.
32161         getaddrinfo-tests: port --enable-gcc-warnings to clang
32162         * tests/test-getaddrinfo.c (simple):
32163         Avoid casts from looser to stricter-aligned pointers.
32165         thread: port --enable-gcc-warnings to clang
32166         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
32167         Include <signal.h>, to pacify a warning about pthread_sigmask.
32169         stdio: use __REDIRECT for fwrite, fwrite_unlocked
32170         * lib/stdio.in.h (fwrite):
32171         When working around bug 11959, use __REDIRECT rather than '#define
32172         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
32173         fix the -Wunused-value issue with clang, and it works with GCC too.
32174         Problem with targeting reported by Eric Blake in
32175         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
32176         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
32177         debugging the fwrite issue.
32179         stdio: port --enable-gcc-warnings to clang
32180         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
32181         since the GCC workaround for fwrite does not pacify clang.
32183         sig2str: port --enable-gcc-warnings to clang
32184         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
32186         obstack: port --enable-gcc-warnings to clang
32187         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
32188         Avoid casts from looser to stricter-aligned pointers.
32190         memchr2: port --enable-gcc-warnings to clang
32191         * lib/memchr2.c (memchr2):
32192         Avoid casts from looser to stricter-aligned pointers.
32194         mbsstr: port --enable-gcc-warnings to clang
32195         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
32196         Avoid casts from looser to stricter-aligned pointers.
32198         malloca: port --enable-gcc-warnings to clang
32199         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
32200         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
32202         inttostr: port --enable-gcc-warnings to clang
32203         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
32205         warnings: port to clang
32206         Problem reported by Daniel P. Berrange via Eric Blake in
32207         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
32208         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
32209         (gl_WARN_ADD): Use it.
32211 2013-05-11  Jim Meyering  <meyering@fb.com>
32213         quotearg: do not read beyond end of buffer
32214         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
32215         end of an ARG for which no length was specified.  With an N-byte
32216         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
32217         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
32218         via coreutils' misc/sort-debug-keys.sh test and detected by running
32219         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
32220         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
32221         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
32222         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
32223         characters correctly."
32225 2013-05-11  Daiki Ueno  <ueno@gnu.org>
32227         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
32228         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
32229         compilation target is Mac OS X 10.6.
32230         Problem reported by parafin and Andoni Morales in
32231         <http://savannah.gnu.org/bugs/?37844> and
32232         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
32234 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32236         mkdir-p: remove assumptions about umask and mode
32237         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
32238         umask is 0, or that MODE is a subset of MODE_BITS.
32240 2013-05-10  Eric Blake  <eblake@redhat.com>
32242         maint.mk: catch more abuse of HAVE_DECL in syntax-check
32243         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
32245 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
32247         deps: require Automake >= 1.9.6 in generated Makefile fragments
32249         That is the same minimal version required in the DEPENDENCIES file.
32250         Moreover, the old code generated a requirement of Automake >= 1.5,
32251         and that is an insanely outdated version.
32253         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
32254         * tests/havelib/rpathlx/Makefile.am: Likewise.
32255         * tests/havelib/rpathly/Makefile.am: Likewise.
32256         * tests/havelib/rpathlyx/Makefile.am: Likewise.
32257         * tests/havelib/rpathlz/Makefile.am: Likewise.
32258         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
32259         * tests/havelib/rpathx/Makefile.am: Likewise.
32260         * tests/havelib/rpathy/Makefile.am: Likewise.
32261         * tests/havelib/rpathz/Makefile.am: Likewise.
32263 2013-05-08  Eric Blake  <eblake@redhat.com>
32265         bootstrap: AC_INIT may have more than four parameters
32266         * build-aux/bootstrap (extract_package_name): Correctly extract
32267         non-empty tarname field.  Avoid range in regex.
32268         Based on a report by Sami Kerola <kerolasa@iki.fi>.
32270 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32272         qacl: port to MS-Windows port of GNU Emacs
32273         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
32274         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
32275         port of GNU Emacs.  Problem reported by Eli Zaretskii in
32276         <http://bugs.gnu.org/14295#14>.
32278 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
32280         acl: include quote.h
32281         * lib/copy-acl.c: Include quote.h.
32282         * lib/set-acl.c: Likewise.
32284 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
32286         fchownat, renameat, unlinkat: update statat dependencies
32287         These modules use statat and lstatat, not fstatat; so depend on
32288         the statat module, which was split out recently from fstatat.
32289         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
32290         * modules/renameat: Likewise.  Also delete fstat.
32291         URL: http://bugs.gentoo.org/468790
32293 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
32295         Assume gnulib is checked out from Git, not CVS
32297         In fact, access to the gnulib repository through CVS has been
32298         disabled, or more precisely, got broken and was never restored; see:
32299         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
32301         Note that support for CVS is not removed completely and unthinkingly
32302         by this change: only support for CVS checkouts of gnulib itself is
32303         removed.  For example, the 'bootstrap' script still cater to .cvsingore
32304         files and CVS directories, for the benefit of those poor gnulib clients
32305         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
32307         * gnulib-tool: Simplify accordingly.
32308         * posix-modules: Likewise.
32309         * MODULES.html.sh: Likewise.
32310         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
32311         repository.
32312         * doc/gnulib-intro.texi: Likewise.
32313         * doc/gnulib-readme.texi: Likewise.
32314         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
32315         sample '.gitignore' file rather than a sample '.cvsignore'.
32316         * NEWS: Update.
32317         * m4/extensions.m4: While at it, remove a comment mistakenly referring
32318         to "CVS Autoconf" rather than "git Autoconf".
32320 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
32322         utimensat-tests, etc.: try to fix some races
32323         Problem reported by Bernhard Voelker in
32324         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
32325         I don't know whether this patch fixes that race condition, but it
32326         fixes *some* race conditions, so it should be a win.
32327         * modules/chown-tests (Depends-on):
32328         * modules/fchownat-tests (Depends-on):
32329         * modules/fdutimensat-tests (Depends-on):
32330         * modules/futimens-tests (Depends-on):
32331         * modules/lchown-tests (Depends-on):
32332         * modules/stat-time-tests (Depends-on):
32333         * modules/utimens-tests (Depends-on):
32334         * modules/utimensat-tests (Depends-on):
32335         Depend on nanosleep, not usleep.
32336         * modules/chown-tests (test_chown_LDADD):
32337         * modules/lchown-tests (test_lchown_LDADD):
32338         * modules/stat-time-tests (test_stat_time_LDADD):
32339         New macro.
32340         * modules/fchownat-tests (test_fchownat_LDADD):
32341         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
32342         * modules/futimens-tests (test_futimens_LDADD):
32343         * modules/utimens-tests (test_utimens_LDADD):
32344         * modules/utimensat-tests (test_utimensat_LDADD):
32345         Add $(LIB_NANOSLEEP).
32346         * modules/stat-time-tests (Files): Add tests/nap.h.
32347         * tests/nap.h: Include <limits.h>, for INT_MAX.
32348         (lt_mtime): Remove.
32349         (diff_timespec): New function.
32350         (get_stat): Rename from get_mtime.  All callers changed.
32351         (nap_works): Determine the needed delay by inspecting the
32352         file system's timestamp jumps; this should be more reliable.
32353         Look at both mtime and ctime, and take the maximum of the two jumps.
32354         (nap_works, guess_delay):
32355         Return a nanosecond count, not a microsecond count.
32356         All callers changed.
32357         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
32358         failure.
32359         (nap): Multiply the guess by 1.125, to accommodate the case where
32360         the file system's clock is a bit slower than nanosleep's clock.
32361         * tests/test-stat-time.c (BASE): New macro.
32362         Include nap.h.
32363         (nap): Remove; nap.h now defines this.  This removes a duplicate
32364         implementation of 'nap'.
32366         utimens, utimensat: work around Solaris UTIME_OMIT bug
32367         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
32368         Linux kernel 2.6.32 does.  Work around it in the same way.
32369         * doc/posix-functions/futimens.texi (futimens):
32370         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
32371         * lib/utimens.c (fdutimens, lutimens):
32372         * lib/utimensat.c (rpl_utimensat): Work around the bug.
32374         gettext: now it's your responsibility to add -I$(top_builddir)/intl
32375         Formerly, it was your responsibility to do this for all Makefile.ams
32376         other than Gnulib's.  Now it's your responsibility to do it for
32377         Gnulib's Makefile.am, too.
32378         * NEWS: Document this.
32379         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
32381         acl: include errno.h to get errno
32382         Reported by Daiki Ueno in
32383         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
32384         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
32386 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
32388         tests: don't assume getdtablesize () <= 10000000
32389         * modules/cloexec-tests:
32390         * modules/dup2-tests:
32391         * modules/dup3-tests:
32392         * modules/nonblocking-tests:
32393         * modules/posix_spawn_file_actions_addclose-tests:
32394         * modules/posix_spawn_file_actions_adddup2-tests:
32395         * modules/posix_spawn_file_actions_addopen-tests:
32396         * modules/unistd-safer-tests:
32397         Depend on the getdtablesize module.
32398         * tests/test-cloexec.c:
32399         * tests/test-dup-safer.c:
32400         * tests/test-dup2.c:
32401         * tests/test-dup3.c:
32402         * tests/test-fcntl.c:
32403         * tests/test-nonblocking.c:
32404         * tests/test-posix_spawn_file_actions_addclose.c:
32405         * tests/test-posix_spawn_file_actions_adddup2.c:
32406         * tests/test-posix_spawn_file_actions_addopen.c:
32407         Don't assume getdtablesize () <= 10000000.
32409 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
32411         extern-inline: work around bug in Sun c99
32412         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32413         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
32415 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
32417         qacl: new module, broken out from the acl module
32418         This is for GNU Emacs, which wants the acl functions but does
32419         not want 'error' invoked when they fail.
32420         * lib/acl-internal.h: Do not include error.h, quote.h.
32421         (ENOSYS, ENOTSUP): Remove; no longer needed.
32422         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
32423         * lib/acl.h: Include <stdbool.h>.
32424         (acl_errno_valid): New function.
32425         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
32426         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
32427         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
32428         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
32429         (ACL_INTERNAL_INLINE): Remove; no longer needed.
32430         * lib/file-has-acl.c (file_has_acl):
32431         * lib/qcopy-acl.c (qcopy_acl):
32432         * lib/qset-acl.c (qset_acl):
32433         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
32434         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
32435         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
32436         lib/file-has-acl.c, m4/acl.m4 to qacl module.
32437         Add lib/set-acl.c.
32438         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
32439         Add qacl.
32440         (configure.ac): Move gl_FUNC_ACL to qacl module.
32441         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
32442         Rename set-mode-acl.c to set-acl.c.
32443         * lib/acl-errno-valid.c: New file.
32444         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
32445         copy_acl function remains in copy-acl.c.
32446         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
32447         (_): Remove; not needed.
32448         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
32449         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
32450         * modules/qacl: New file, moved from the old modules/acl.
32451         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
32452         Remove set-mode-acl.c, copy-acl.c.
32453         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
32455         alignof, intprops, malloca: port better to IBM's C compiler
32456         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
32457         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
32458         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
32460 2013-04-25  Daiki Ueno  <ueno@gnu.org>
32462         wctype-h: fix gettext link error on mingw
32463         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
32464         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
32465         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
32466         rpl_towupper and rpl_towupper.
32468 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
32470         regex-tests, regex: allow glibc re_search behavior
32471         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
32472         re_search input data to make the multi-character collating element
32473         in it clearly visible, and treat re_search return code 0 as valid.
32474         * m4/regex.m4 (gl_REGEX): Likewise.
32476 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32478         stdalign: doc fix
32479         * doc/posix-headers/stdalign.texi (stdalign.h):
32480         Gnulib doesn't support '_Alignof expr'.
32482 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32484         stdalign: port to stricter ISO C11
32485         ISO C11 says that _Alignof's operand must be a parenthesized type.
32486         Problem reported by Eli Zaretskii in
32487         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
32488         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
32489         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
32491 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32493         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
32494         Problem reported by Marco Atzeri in
32495         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
32496         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
32497         Simply delegate to the system <sys/select.h> in this case too.
32498         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
32499         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
32500         be needed on Solaris either.
32501         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
32502         Simply delegate to the system <sys/time.h> in this case.
32504 2013-03-19  Karl Berry  <karl@gnu.org>
32506         * build-aux/gnupload: check for erroneous (with gnupload) use of
32507         ftp-upload.gnu.org, tweak help.
32509 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32511         copy-file, rpmatch: fix problems found by cppcheck
32512         Reported by Arno Onken in
32513         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
32514         * lib/rpmatch.c (try): Fix memory leak.
32515         * lib/copy-file.c: Include "ignore-value.h".
32516         (qcopy_file_preserving): Ignore chown value.
32517         * modules/copy-file (Depends-on): Add ignore-value.
32519 2013-01-27  Jim Meyering  <jim@meyering.net>
32521         prefix-gnulib-mk: give better diagnostics
32522         * build-aux/prefix-gnulib-mk: Don't just "die".
32523         Give better diagnostics upon failure.
32525 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32527         putenv: port to Solaris 10
32528         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
32529         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
32530         is not what is wanted here.
32531         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
32532         declaration, not for its existence.
32534 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
32536         mktime: fix configure typo
32537         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
32539 2013-03-12  Eric Blake  <eblake@redhat.com>
32541         regex-tests: skip UTF-8 test on mingw
32542         * modules/regex-tests (Depends-on): Add localcharset.
32543         * tests/test-regex.c (main): Use it to skip test on mingw.
32545 2013-03-11  Eric Blake  <eblake@redhat.com>
32547         tests: make it easier to bypass alarm time in debugger
32548         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
32549         * tests/test-memmem.c (main): Likewise.
32550         * tests/test-passfd.c (main): Likewise.
32551         * tests/test-ptsname.c (main): Likewise.
32552         * tests/test-ptsname_r.c (main): Likewise.
32553         * tests/test-strcasestr.c (main): Likewise.
32554         * tests/test-strstr.c (main): Likewise.
32556         regex: port to mingw's recent addition of undeclared alarm
32557         * doc/posix-functions/alarm.texi (alarm): Document that alarm
32558         exists but still doesn't work in newer mingw.
32559         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
32560         not existence.  Ensure SIGALRM is not trapped.
32561         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
32562         * m4/regex.m4 (gl_REGEX): Likewise.
32563         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
32564         * tests/test-regex.c (main): Use correct probe for alarm.
32566         putenv: avoid compilation warning on mingw
32567         * lib/putenv.c (_unsetenv): Protect variable declaration.
32568         (putenv): Fix indentation.
32570 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
32572         unistd: don't prevent Tru64 Unix from using gnulib strtod.
32573         * lib/unistd.in.h: be careful not to include un-needed system
32574         stdlib.h from here, because that prevents gnulib stdlib.h from
32575         defining rpl_strtod correctly.
32577 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
32579         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
32580         changesets, but for the 'precision 0' test.
32581         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32582         round-to-even, since POSIX says rounding is implementation-defined
32583         and OS X 10.8.2 rounds 1.51 to 1 here.
32585         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
32586         changeset.
32587         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32588         round-to-even, since POSIX says rounding is implementation-defined
32589         and OS X 10.8.2 rounds 1.5 to 1 here.
32591 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32593         vasnprintf-posix-tests: allow rounding 1.5 to 1
32594         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32595         round-to-even, since POSIX says rounding is implementation-defined
32596         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32597         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32599         bootstrap: port to FreeBSD
32600         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32601         that treat '--' differently.  Reported by Mats Erik Andersson in
32602         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32604 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32606         regex: rename remaining __attribute calls to __attribute__.
32607         2012-02-25 changed definition of __attribute, but left some uses
32608         unchanged, preventing compilation of regex module on most non-gcc
32609         environments.
32610         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32611         (lookup_collation_sequence_value, build_range_exp)
32612         (build_collating_symbol): Set attributes with newly renamed
32613         __attribute__ decorator.
32614         * lib/regex_internal.c (re_string_peek_byte_case)
32615         (re_node_set_compare, re_node_set_contains): Likewise.
32616         * lib/regexec.c (acquire_init_state_context): Likewise.
32618 2013-03-06  Bruno Haible  <bruno@clisp.org>
32620         execute: Revert last change, but use a different condition.
32621         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32622         on Windows.
32624 2013-03-05  Eric Blake  <eblake@redhat.com>
32626         execute: drop dead code
32627         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32629 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32631         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32632         * m4/non-recursive-gnulib-prefix-hack.m4
32633         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32634         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32635         <http://bugs.gnu.org/10305#237>.
32637 2013-03-04  Eric Blake  <eblake@redhat.com>
32639         test-getsockopt: avoid compiler warning
32640         * tests/test-getsockopt.c (includes): Ensure close is declared.
32642 2013-03-02  Bruno Haible  <bruno@clisp.org>
32644         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32645         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32647 2013-03-02  Bruno Haible  <bruno@clisp.org>
32649         gettext: Update to version 0.18.2.
32650         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32651         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32652                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32654 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32656         regex: merge patches from libc
32658         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32659         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32660         All uses changed.
32661         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32662         (re_string_wchar_at, re_string_elem_size_at):
32663         Mark function as possibly unused.
32665         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32666         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32667         elements compare against the byte sequence of it, not its name.
32669 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32671         putenv: port better to native Windows
32672         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32673         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32674         (_unsetenv): Use _putenv if available.
32675         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32676         a bit less likely to cause damage.
32677         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32678         Fix the wrong value with SetEnvironmentVariable.
32679         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32680         code better.
32682 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32684         regex: ignore old-style-definition warnings
32685         * lib/regex.c: Add pragma to ignore these warnings.
32686         Problem reported for GNU tar by Pavel Raiskup.
32688 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32690         getcwd: support coreutils better
32691         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32692         but this might not be correct in coreutils, which disables
32693         the raw decl checks.  Problem reported by Nagendra in
32694         <http://bugs.gnu.org/10305#192>.
32695         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32696         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32697         Test the getcwd function, not any macro, since getcwd.c wants the
32698         function.
32699         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32700         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32701         compile, as might happen if there's a macro but no function.
32703         strtod: support coreutils better
32704         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32705         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32706         disables the raw decl checks.  This assumes there is an underlying
32707         strtod, but that's a safe assumption these days.
32708         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32710         mountlist: port to HP NonStop
32711         Reported by Joachim Schmitz in
32712         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32713         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32714         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32716 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32718         extern-inline: avoid compilation error with HP-UX cc
32719         Reported by Richard Lloyd in
32720         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32721         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32722         Suppress extern inline with HP-UX cc.  This should be safe,
32723         though it may hurt performance.  Perhaps someone with some HP-UX
32724         experience can come up with a higher-performance fix.
32726 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32728         putenv: fix heap corruption with mixed putenv/_putenv
32729         Problem reported by Michael Goffioul in
32730         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32731         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32732         Rely on _putenv to allocate the new environment.
32733         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32734         * modules/putenv (configure.ac): Use it.
32736 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32738         unsetenv etc.: port to Solaris 11 + GNU Emacs
32739         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32740         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32741         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32742         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32743         idea but is too painful to fix right now), and without this gnulib
32744         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32745         compiling unsetenv.c on Solaris 11.  Fix the problem for
32746         unsetenv.c, and fix other similar occurrences.
32748 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32750         secure_getenv: fix C++ declaration typo
32751         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32752         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32753         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32755 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32757         careadlinkat: stop exporting careadlinkatcwd
32758         Only Emacs used it directly, and Emacs no longer needs it.
32759         * NEWS: Document this simplification.
32760         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32761         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32762         for readlink.
32763         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32764         Don't include stdlib.h; no longer needed.
32765         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32766         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32767         * modules/areadlink (Depends-on): Add readlink.
32768         (Maintainer): Add self.
32769         * modules/careadlinkat (Depends-on): Remove readlink.
32771         extensions: port better to HP-UX
32772         This is merged from git Autoconf.
32773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32774         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32775         so that it's compatible with the value used when compiling.
32777         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32778         Problem reported by Mats Erik Andersson in
32779         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32780         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32781         openpty function exists, not merely when we intend to replace it.
32782         This corrects the 2013-01-31 patch, which mistakenly defined
32783         HAVE_OPENPTY even on hosts that lacked it.
32785 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32787         secure_getenv: fix include typo
32788         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32790         secure_getenv: port better to FreeBSD and Solaris
32791         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32792         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32793         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32794         This works better on BSDish platforms.
32795         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32796         Test for issetugid if __secure_getenv is missing.
32798 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32800         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32801         Some of these changes are merged in from git Autoconf.
32802         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32803         When deciding whether to define _XOPEN_SOURCE, inspect the
32804         preprocessor macro __hpux instead of the more-heavyweight
32805         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32806         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32807         as the key for __EXTENSIONS__.
32809         unistd: avoid namespace pollution on non-glibc systems
32810         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32811         This avoids namespace pollution on non-glibc systems, by causing
32812         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32813         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32814         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32816 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32818         tmpdir: use secure_getenv
32819         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32820         Define to secure_getenv, not getenv.
32821         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32822         as that's now secure_getenv's job.
32823         * modules/tmpdir (Depends-on): Add secure_getenv.
32825         tempname: use secure_getenv
32826         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32827         Define to secure_getenv, not getenv.
32828         * modules/tempname (Depends-on):
32829         Add secure_getenv.
32831         secure_getenv: new module
32832         * MODULES.html.sh (Extra functions based on ANSI C 89):
32833         Add secure_getenv.
32834         * doc/glibc-functions/secure_getenv.texi: New file.
32835         * doc/gnulib.texi: Include it.
32836         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32837         New files.
32838         * lib/stdlib.in.h (secure_getenv): New decl.
32839         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32840         * modules/stdlib (stdlib.h):
32841         Add secure_getenv checks.
32843 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32845         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32846         Reported for OS X 10.8.2 by Assaf Gordon in
32847         <http://bugs.gnu.org/13516>.
32848         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32849         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32850         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32851         so that they can be kept in sync more easily.  Avoid PATH_MAX
32852         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32853         mkdir or chdir failure.
32854         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32855         lib/getcwd.c.
32856         (test_abort_bug): Do not test for the deep directory bug unless we
32857         have openat support.  Avoid PATH_MAX test on the Hurd.
32859         regex-tests, regex: fix bug: memset undeclared
32860         * tests/test-regex.c: Don't include regex.h twice.  Include
32861         string.h, to declare memset.  Christensen's report also mentioned
32862         this issue.
32863         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32864         test-regex.c, to avoid future problems like this.  Remove
32865         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32866         twice.
32868         regex-tests: fix link errors on older Solaris
32869         These need to link with @LIBINTL@ to get libintl_gettext.
32870         Problem reported by Tom G. Christensen in
32871         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32872         * modules/regex-tests (test_regex_LDADD): New macro.
32874 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32876         regex-tests: new module
32877         * modules/regex-tests, tests/test-regex.c: New files.
32879         regex: fix off-by-one error in configure test
32880         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32882 2013-01-31  Eric Blake  <eblake@redhat.com>
32884         regex: avoid infinite configure test
32885         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32887 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32889         openpty: fix bug where HAVE_OPENPTY wasn't defined
32890         See the thread starting at:
32891         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32892         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32893         openpty function exists, not merely when we intend to replace it.
32895 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32897         sys_time: port to Solaris 2.6
32898         There is a circularity problem on Solaris 2.6, where <time.h> includes
32899         <sys/time.h> for struct timespec.  The include nesting is gnulib
32900         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32901         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32902         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32903         <sys/siginfo.h>; the last, innermost file needs struct
32904         timestruc_t, which is defined in <sys/time.h>, which has not been
32905         fully parsed.  Problem reported by Tom G. Christensen in
32906         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32907         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32908         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32909         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32910         uses split double-inclusion guards.
32912 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32914         regex: test for buffer overrun
32915         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32916         for the just-fixed regex bug.
32918 2013-01-29  Andreas Schwab  <schwab@suse.de>
32920         regex: fix buffer overrun in regexp matcher [BZ #15078]
32921         * lib/regexec.c (extend_buffers): Add parameter min_len.
32922         (check_matching): Pass minimum needed length.
32923         (clean_state_log_if_needed): Likewise.
32924         (get_subexp): Likewise.
32926 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32928         mountlist: don't consider "devtmpfs" as dummy
32929         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32930         as there is storage associcated with it.
32932 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32934         futimens-tests, utimens-tests: Depend on gettext.
32935         This works around a problem introduced in my 2013-01-12 patch,
32936         which added @LIBINTL@ to these modules.
32937         * modules/futimens-tests (Depends-on):
32938         * modules/utimens-tests (Depends-on): Add gettext.
32940 2013-01-26  Eric Blake  <eblake@redhat.com>
32942         test-getpeername: fix typo
32943         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32945 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32947         bootstrap: remove the need for a sorted .gitignore file
32948         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32949         rename to insert_if_absent(), so that we don't need or generate
32950         a sorted .gitignore file.  We do require a .gitignore with no
32951         existing duplicate entries and enforce that.
32952         (sort_patterns): Remove this function as we now use the simpler
32953         technigue of inserting blacklist entries at the top of the file,
32954         assuming gnulib won't be inserting !whitelist entries.
32956 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32958         readlinkat: don't depend on gl_FUNC_OPENAT
32959         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32960         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32961         renameat.m4, symlinkat.m4; but one thing at a time.
32963         statat: new module, split out from fstatat
32964         GNU Emacs needs the POSIX-specified fstatat, but not the
32965         gnulib-specified statat and lstat.  Split the latter two into a
32966         new module 'statat'.
32967         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32968         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32969         Rename from FSTATAT_INLINE. All uses changed.
32970         * modules/fstatat (Files): Remove lib/statat.c.
32971         (gl_MODULE_INDICATOR([fstatat])): Remove.
32972         (lib_SOURCES): Remove.
32973         (Maintainer): Add self.
32974         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32975         * tests/test-fstatat.c (BASE): Don't define if already defined.
32976         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32978 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32980         tests: don't assume fd 99 is closed
32981         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32982         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32983         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32984         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32985         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32986         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32987         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32988         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32989         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32990         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32991         * tests/test-fwrite.c, tests/test-getpeername.c:
32992         * tests/test-getsockname.c, tests/test-getsockopt.c:
32993         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32994         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32995         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32996         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32997         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32998         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32999         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
33000         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
33001         * tests/test-unlinkat.c, tests/test-unlockpt.c:
33002         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
33003         Close file descriptor 99, instead of assuming it's already closed.
33005 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33007         stpncpy: port to OS X 10.8
33008         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
33009         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
33011 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33013         unistd: port to recent mingw
33014         * lib/unistd.in.h: Remove special invocation convention for mingw,
33015         which breaks for the latest mingw version.  See John W. Eaton in
33016         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
33018         largefile: port better to Mac OS X 10.5
33019         This patch is backported from Autoconf git.
33020         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
33021         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
33022         with ino_t size being different for configuration time versus
33023         build/run time.  Problem reported by PHO in
33024         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
33026 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33028         doc: clarify -Werror
33029         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
33030         clarify that it's intended for developers, not for ordinary builds,
33031         and mention --enable-gcc-warnings as one possible use.
33033 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
33035         stdint: fix build with Android's Bionic fox x86
33036         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
33037         was already included as _SSIZE_T_DEFINED_ might also be defined
33038         in include/machine/_types.h, which is included by stdio.h
33040 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
33042         net_if-tests: port to Solaris 7 + GCC 3.4.6
33043         Problem reported by Tom G. Christensen in
33044         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
33045         * tests/test-net_if.c (ni): Move to next the code that uses it,
33046         so that it's declared only if needed.
33048 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
33050         net_if-tests: port to older Solaris
33051         Problem reported by Tom G. Christensen in
33052         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33053         * modules/net_if-tests (NET_IF_LIB): New substitution.
33054         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
33055         (HAVE_IF_NAMEINDEX): New C macro.
33056         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
33058         system-quote-tests: port to older Solaris
33059         Problem reported by Tom G. Christensen in
33060         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33061         * tests/test-system-quote-child.c (fopen, fread): Undef.
33063         c-xvasprintf etc.: fix link errors on older Solaris
33064         These need to link with @LIBINTL@ to get libintl_gettext.
33065         Problem reported by Tom G. Christensen in
33066         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33067         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
33068         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
33069         * modules/futimens-tests (test_futimens_LDADD):
33070         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
33072 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33074         locale: port to Solaris 2.6 and 7 + GNU gettext
33075         * lib/locale.in.h: Just include_next <locale.h> when
33076         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
33077         when combining the localename module with GNU gettext 0.18.2.
33078         Problem reported by Tom G. Christensen in
33079         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
33081 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33083         stdlib: port to Solaris 2.6
33084         Also, the code worked on Solaris 7 through 9 only by accident.
33085         Problem reported by Tom G. Christensen in
33086         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
33087         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
33088         simply include the system stdlib.h.
33089         * lib/getopt.in.h (__need_system_stdlib_h):
33090         * lib/pthread.in.h (__need_system_stdlib_h):
33091         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
33092         Define when including <stdlib.h>, to avoid problems at least for
33093         the pthread case on Solaris 2.6 and 7.  These .h files can get by
33094         with the system stdlib.h.
33096 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
33098         doc: update main copyright year
33099         * doc/gnulib.texi: Update copyright date.
33101         doc: improve ISO 8601 discussion
33102         * doc/parse-datetime.texi (Combined date and time of day items):
33103         Specify more carefully what formats are supported and what is
33104         done with excess precision.
33106 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33108         doc: avoid small caps
33109         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
33110         they're more trouble than they're worth.  Suggested by Karl Berry
33111         in <http://bugs.gnu.org/13360>.
33113         regex: conform to strict C
33114         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
33115         From Aharon Robbins.
33117         gnulib-tool: fix incompatibility with autopoint 0.18.2
33118         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
33119         Problem reported by Tom G. Christensen in
33120         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
33122 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33124         fprintftime: bring back and reword fwrite comment
33125         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
33127         stdio: remove now-unnecessary stdio.c
33128         Since stdio.in.h no longer uses inline functions, we no longer
33129         need to compile the extern versions.
33130         * lib/stdio.c: Remove.
33131         * modules/stdio (Files): Remove lib/stdio.c.
33132         (lib_SOURCES): Remove.
33134         unicodeio: depend on stdio, not ignore-value
33135         * lib/unicodeio.c: Do not include ignore-value.h.
33136         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
33137         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
33139         fprintftime: depend on stdio, not ignore-value
33140         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
33141         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
33142         since the stdio module arranges to silence that warning now.
33143         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
33145 2012-10-04  Simon Josefsson  <simon@josefsson.org>
33147         stdint-tests: Fix expanded-before-required-warning.
33148         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
33150 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33152         fwrite: silence __wur only for older glibc versions
33153         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
33154         This will help us remove this workaround some time in the far future.
33156 2013-01-03  Eric Blake  <eblake@redhat.com>
33158         fwrite: silence __wur without using inline
33159         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
33160         just gcc, and in a way that avoids inline issues.
33161         * modules/stdio (Depends-on): Drop extern-inline.
33163 2013-01-03  Jim Meyering  <jim@meyering.net>
33165         update-copyright: avoid copyright notice date corruption
33166         Given a sequence of copyright year numbers in which the final
33167         one was a two-digit number that happened to be a substring of
33168         a preceding four-digit year number, we would mistakenly update
33169         the substring (from two- to four-digit) rather than the two-digit
33170         number at the end, which, combined with the addition of the current
33171         4-digit year number would yield two 5-digit year numbers, e.g.,
33172         here, it would convert the first "99" to "1999, 2013" rather than
33173         the final one:
33174           1991, 99
33175           11999, 20131, 1999
33176         * build-aux/update-copyright: Tighten a regexp.
33177         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
33178         Reported by Joseph Myers in
33179         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
33181 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33183         regex: omit needless signed-pointer casts
33184         * lib/regcomp.c (build_charclass, build_charclass_op):
33185         Use char *, not unsigned char *, for class name and extra.
33186         The char values are always nonnegative so there's no need to
33187         insist on unsigned char * here, and using char * removes the need
33188         for casts.  Reported by Aharon Robbins in
33189         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33191         regex: support Gawk, which never uses alloca
33192         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
33193         Do not include in this case.  Gawk doesn't supply a substitute
33194         alloca.h and doesn't need one.
33196         regex: port __libc_lock_define usage to C89
33197         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
33198         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
33199         does not conform to C89, as it has an empty macro argument.
33200         Reported by Aharon Robbins in
33201         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33203 2013-01-01  Eric Blake  <eblake@redhat.com>
33205         maint: update all copyright year number ranges
33206         Run "make update-copyright".
33208         version-etc: bump copyright year reported in --version
33209         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
33211 2012-12-31  Eric Blake  <eblake@redhat.com>
33213         sigprocmask-tests: skip test if pid is unexpectedly large
33214         * tests/test-sigprocmask.c (main): Add range check.
33216         git-version-gen: avoid test -z portability glitch
33217         * build-aux/git-version-gen: Prefer portable test spelling, since
33218         git-version-gen is run on more than just developer machines.
33220 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
33222         git-version-gen: add --fallback option to use if git is not present
33223         * build-aux/git-version-gen: Add support for the new option --fallback,
33224         which comes into play when there is no $tarball_version_file and
33225         git is not working.
33226         (scriptversion): Update.
33228         maint.mk: handle missing git with more grace
33229         * top/maint.mk (no-submodule-changes, public-submodule-commit):
33230         Quietly proceed if git is not present.
33232 2012-12-31  Eric Blake  <eblake@redhat.com>
33234         dup2: work around cygwin bug
33235         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
33236         * lib/dup2.c (rpl_dup2): Work around it.
33237         * doc/posix-functions/dup2.texi (dup2): Document it.
33239 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
33241         regex: remove unnecessary dependency on localcharset.h
33242         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
33243         hasn't been needed for years.
33244         * modules/regex (Depends-on): Remove localcharset.
33246         regex: revert single-byte change
33247         * lib/regexec.c (check_node_accept_bytes): Revert previous change
33248         to this function.  This was alredy fixed in a different way, at
33249         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
33250         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
33251         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
33253         regex: simplify based on Gawk version
33254         * lib/regex_internal.c (re_dfa_add_node): Simplify.
33255         Reported by Aharon Robbins in
33256         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33258 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33260         regex: check that pattern char is single-byte
33261         Reported by Aharon Robbins in
33262         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33263         * lib/regexec.c (check_node_accept_bytes):
33264         Return 0 if the pattern string has a multibyte character here.
33266         regex: implement rational ranges
33267         Reported by Aharon Robbins in
33268         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33269         * lib/regcomp.c (build_range_exp) [!_LIBC]:
33270         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
33271         Implement rational ranges.
33273         regex: avoid redefining __wctype
33274         Reported by Aharon Robbins in
33275         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33276         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
33277         #undef before defining.
33279         regex: port to hosts where malloc (0) == NULL
33280         Reported by Aharon Robbins in
33281         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33282         * lib/regex_internal.c (re_node_set_alloc):
33283         Don't assume that malloc (0) yields nonnull.
33284         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
33285         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
33286         * modules/regex (Files): Add m4/eealloc.m4.
33288         regex: port to C89
33289         Reported by Aharon Robbins in
33290         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33291         * lib/regcomp.c (init_word_char): Declaration before statement.
33293         regex: merge glibc changes
33294         Also, copy the license wording from glibc.  This simplifies
33295         merging changes.  gnulib-tool will change the wording to GPL as
33296         appropriate, when importing it to other packages.  The only
33297         glibc change made since the last merge, which needs merging, is:
33298         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
33299         * lib/regex_internal.h (gettext): Remove use of INTUSE.
33301         * users.txt: Add Emacs.
33303         doc: omit mention of version when not needed
33304         * doc/gnulib-intro.texi (Portability and Application Code):
33305         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
33306         Don't mention particular dates or versions when not necessary, so
33307         that the documentation won't go out of date so quickly.
33309         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
33311 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
33313         bootstrap: pass --force to autoreconf.
33314         * build-aux/bootstrap (AUTORECONFFLAGS): New.
33315         Add "--force" so that Automake's ylwrap and other such tools
33316         be updated at each bootstrap invocation.
33317         Use it.
33319 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
33321         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
33322         The earlier patch forgot to update one of the #if conditions, causing
33323         a problem on Debian testing i386 reported by Mats Erik Andersson
33324         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
33325         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
33326         (__argp_fmtstream_puts, argp_fmtstream_puts)
33327         (__argp_fmtstream_write, argp_fmtstream_write)
33328         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
33330         * doc/gnulib-readme.texi: Minor fixups.
33331         (Portability guidelines): Modernize URLs.  Remove some repetition.
33332         (Indent with spaces not TABs): Reword to avoid too-long lines.
33333         Remove some '@ifset standalone' stuff that isn't used.
33335         * doc/gnulib-readme.texi (Portability guidelines):
33336         ctype.h, not ctime.h.
33338         Correct name of POSIX.1-2001.
33339         * doc/posix-functions/fgetc.texi (fgetc):
33340         * doc/posix-functions/fgets.texi (fgets):
33341         * doc/posix-functions/fread.texi (fread):
33342         * doc/posix-functions/fscanf.texi (fscanf):
33343         * doc/posix-functions/getc.texi (getc):
33344         * doc/posix-functions/getchar.texi (getchar):
33345         * doc/posix-functions/scanf.texi (scanf):
33346         POSIX.1-2001, not POSIX-2001.
33348         doc: move README into manual
33349         * README: Move contents to new file doc/gnulib-readme.texi.
33350         Replace with a one-line summary.
33351         * doc/gnulib.texi (Brief Overview): New section,
33352         with old intro preface.  Include gnulib-readme.texi for contents.
33353         (Philosophy): Rename from "Introduction", since this
33354         section no longer introduces the rest.  Write a new preface.
33355         * doc/gnulib-readme.texi: New file, with the old contents of
33356         README texinfo-ized.  This way, the README info appears
33357         in the online and printed manual.
33359 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
33361         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
33362         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
33363         c_vasprintf() prototype.
33365 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
33367         c-vasprintf: Fix "empty declaration" warning reported by GCC.
33368         * lib/c-vasprintf.h: Remove stray semicolon.
33370 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33372         gettext: avoid obsolete macro AM_PROG_MKDIR_P
33373         It is obsolete and is planned to be removed from Automake 1.14; see
33374         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
33375         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
33376         (installdirs-data, installdirs-data-yes):
33377         Use $(MKDIR_P), not $(mkdir_p).
33378         * m4/intl.m4 (AM_INTL_SUBDIR):
33379         * m4/po.m4 (AM_PO_SUBDIRS):
33380         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
33382 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
33384         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
33385         On this platform, we are not optimizing but we are using
33386         the substitute for extern inlines, so compile as if
33387         C99-style extern inline, or a substitute, is available.
33388         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
33389         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
33390         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
33391         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
33392         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
33393         Declare as ARGP_FS_EI, not as extern.
33394         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
33395         (__option_is_short, _option_is_end, __option_is_end)
33396         [!_LIBC && __USE_EXTERN_INLINES]:
33397         Declare as ARGP_EI, not as extern.
33399 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
33401         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
33402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
33403         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
33404         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
33405         ...), as the latter is fatal with older Autoconfs.
33406         Problem reported and fix suggested by Eric Blake in thread starting at
33407         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
33409 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
33411         AC_PROG_MKDIR_P: don't workaround if not buggy
33412         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
33413         Define only for Autoconf versions before 2.62.
33414         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
33415         undocumented m4_PACKAGE_VERSION, for consistency with the
33416         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
33417         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
33418         was introduced in 2.62.
33420 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
33422         New 'c-*printf' modules for formatted output in C locale.
33424         New module 'c-vasnprintf'.
33425         * modules/c-vasnprintf: New file.
33426         * lib/c-vasnprintf.c: New file.
33427         * lib/c-vasnprintf.h: New file.
33429         New module 'c-snprintf'.
33430         * modules/c-snprintf: New file.
33431         * modules/c-snprintf-tests: New file.
33432         * lib/c-snprintf.c: New file.
33433         * lib/c-snprintf.h: New file.
33434         * tests/test-c-snprintf.c: New file.
33435         * tests/test-c-snprintf.sh: New file.
33437         New module 'c-vsnprintf'.
33438         * modules/c-vsnprintf: New file.
33439         * modules/c-vsnprintf-tests: New file.
33440         * lib/c-vsnprintf.c: New file.
33441         * lib/c-vsnprintf.h: New file.
33442         * tests/test-c-vsnprintf.c: New file.
33443         * tests/test-c-vsnprintf.sh: New file.
33445         New module 'c-vasprintf'.
33446         * modules/c-vasprintf: New file.
33447         * modules/c-vasprintf-tests: New file.
33448         * lib/c-asprintf.c: New file.
33449         * lib/c-vasprintf.c: New file.
33450         * lib/c-vasprintf.h: New file.
33451         * tests/test-c-vasprintf.c  +: New file.
33452         * tests/test-c-vasprintf.sh: New file.
33454         New module 'c-xvasprintf'.
33455         * modules/c-xvasprintf: New file.
33456         * modules/c-xvasprintf-tests: New file.
33457         * lib/c-xasprintf.c: New file.
33458         * lib/c-xvasprintf.c: New file.
33459         * lib/c-xvasprintf.h: New file.
33460         * tests/test-c-xvasprintf.c: New file.
33461         * tests/test-c-xvasprintf.sh: New file.
33463 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33465         argp: better 'inline'
33466         Use extern-inline module to declare extern inline functions.
33467         This avoids some bogus warning diagnostics.  Problem discovered
33468         when modifying GNU tar to use the manywarnings module.
33469         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
33470         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
33471         Define based on extern-inline.
33472         * modules/argp (Depends-on): Add extern-inline.
33474 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33476         filemode, sys_stat: Handle MPX files a la AIX.
33477         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
33478         * lib/sys_stat.in.h (S_ISMPX): New macro.
33479         * tests/test-sys_stat.c: Add tests for MPX files.
33481 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33483         x-to-1: honor $PERL
33484         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
33485         a chance to use his preferred version of Perl.  This is typically
33486         required by Darwin users whose default /usr/bin/perl does not have all
33487         the libraries required by help2man, and who need to use their MacPorts
33488         installation of Perl instead.
33490 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33492         gnu-web-doc-update: add all the new files, even in new directories
33493         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
33494         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
33495         Use it.
33496         (main): Don't use cvsutils to get the list of unknown files,
33497         just add all the existing files and directories.
33499 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33501         gnu-web-doc-update: improve --help
33502         * build-aux/gnu-web-doc-update: Move comments into --help.
33504 2012-12-07  Eric Wong  <normalperson@yhbt.net>
33506         mountlist: recognize more "dummy" file systems
33507         * lib/mountlist.c (ME_DUMMY_0):
33508         Add these dummy FS names to the list:
33509         - "debugfs" virtual filesystem for kernel debugging
33510         - "devpts" PTY slave filesystem
33511         - "devtmpfs" device filesystem on top of tmpfs/ramfs
33512         - "fusectl" control filesystem for FUSE
33513         - "mqueue" enumerates POSIX message queues
33514         - "rpc_pipefs" kernel <-> userspace bridge for NFS
33515         - "sysfs" is for exporting kernel objects
33516         - "devfs" device filesystem for Linux 2.4 and FreeBSD
33518 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33520         extern-inline: avoid incompatibility with Darwin Libc
33521         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
33522         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
33523         Problem reported by Akim Demaille in
33524         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
33526 2012-12-11  Simon Josefsson  <simon@josefsson.org>
33528         gnupload: Work with GnuPG using gpg-agent (for smartcards).
33529         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
33530         let it handle password prompting.
33532 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
33534         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
33535         * lib/canonicalize.c (canonicalize_filename_mode):
33536         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
33537         fetching the current directory.  Don't overrun the beginning of
33538         rpath if there's no slashes after the MS-Windows drive letter.
33540 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
33542         maint.mk: avoid extra forks
33543         * top/maint.mk (_cfg_mk): The GNU make manual documents that
33544         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
33545         So use that instead of "$(shell test -f FILE && echo FILE)".
33547 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33549         vasnprintf: fix ASCII_ONLY typo
33550         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33551         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33552         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33553         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
33554         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
33556 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33558         list, oset, xlist, xoset: fix extern inline issue with C99
33559         This was introduced by my recent changes for 'inline'.
33560         Problem reported for gettext by Daiki Ueno in
33561         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
33562         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
33563         (gl_list_nx_create, gl_list_size, gl_list_node_value)
33564         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
33565         (gl_list_previous_node, gl_list_get_at)
33566         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
33567         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
33568         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
33569         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
33570         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
33571         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33572         (gl_list_iterator_free, gl_sortedlist_search)
33573         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
33574         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
33575         (gl_sortedlist_remove):
33576         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
33577         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
33578         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
33579         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
33580         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
33581         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
33582         (gl_list_add_at, gl_sortedlist_add):
33583         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
33584         Wrap these extern decls inside "#if 0", because they are implemented
33585         as inline functions, and extern inline is not what's wanted here.
33586         It would simplify these .h files to remove the extern decls entirely,
33587         although a downside would be less-clear separation between
33588         specification and implementation.
33590 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33592         sys_stat: no 'static inline'
33593         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33596         extern-inline: no 'static inline'
33597         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33598         Do not require AC_C_INLINE.
33599         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33600         'static inline', for older compilers.
33602         snippet/warn-on-use: no 'static inline'
33603         * build-aux/snippet/warn-on-use.h:
33604         Remove unnecessary 'inline' in comment.
33606         rbtree-list, rbtreehash-list: no 'static inline'
33607         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33608         * lib/gl_anytree_list2.h (node_at):
33609         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33610         (gl_oset_first, add_nodes_to_buckets):
33611         Now static, not static inline.
33613         regex: no 'static inline'
33614         * lib/regex_internal.c (calc_state_hash):
33615         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33616         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33617         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33618         Now static, not static inline.
33619         (inline) [__GNUC__ < 3 && _LIBC]:
33620         Remove macro; no longer needed.
33622         xvasprintf: no 'static inline'
33623         * lib/xvasprintf.c (xstrcat):
33624         Now static, not static inline.
33625         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33626         Do not require AC_C_INLINE.
33628         parse-datetime, parse-duration: no 'static inline'
33629         * lib/parse-datetime.y (to_uchar):
33630         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33631         (scale_n_add):
33632         Now static, not static inline.
33633         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33634         * modules/parse-duration (configure.ac):
33635         Do not require AC_C_INLINE.
33637         getaddrinfo: no 'static inline'
33638         * lib/getaddrinfo.c (validate_family):
33639         Now static, not static inline.
33640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33641         Do not require AC_C_INLINE.
33643         ftruncate, fts, lstat, openat, raise: no 'static inline'
33644         * lib/ftruncate.c (chsize_nothrow):
33645         * lib/fts.c (opendirat, diropen):
33646         * lib/lstat.c (orig_lstat):
33647         * lib/openat.c (orig_openat):
33648         * lib/raise.c (raise_nothrow):
33649         Now static, not static inline.
33650         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33651         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33652         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33653         * m4/openat.m4 (gl_PREREQ_OPENAT):
33654         * m4/raise.m4 (gl_PREREQ_RAISE):
33655         Do not require AC_C_INLINE.
33657         fflush, stat: no 'static inline'
33658         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33659         (clear_ungetc_buffer, disable_seek_optimization)
33660         (restore_seek_optimization, update_fpos_cache):
33661         * lib/stat.c (orig_stat):
33662         Now static, not static inline.
33663         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33664         (update_fpos_cache):
33665         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33666         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33667         * m4/stat.m4 (gl_PREREQ_STAT):
33668         Do not require AC_C_INLINE.
33670         error, filevercmp: no 'static inline'
33671         * lib/error.c (is_open, flush_stdout):
33672         * lib/filevercmp.c (order):
33673         Now static, not static inline.
33674         * m4/error.m4 (gl_PREREQ_ERROR):
33675         * modules/filevercmp (configure.ac):
33676         Do not require AC_C_INLINE.
33678         dup, execute, fatal-signal, etc.: no 'static inline'
33679         * lib/dup.c (dup_nothrow):
33680         * lib/execute.c (nonintr_close, nonintr_open):
33681         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33682         * lib/fopen.c (orig_fopen):
33683         * lib/freadseek.c (freadptrinc):
33684         * lib/freopen.c (orig_freopen):
33685         * lib/fstat.c (orig_fstat, fstat_nothrow):
33686         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33687         (get_rusage_as_via_iterator):
33688         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33689         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33690         * lib/isatty.c (_isatty_nothrow):
33691         * lib/open.c (orig_open):
33692         * lib/read.c (read_nothrow):
33693         * lib/sigprocmask.c (signal_nothrow):
33694         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33695         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33696         * lib/wait-process.c (unregister_slave_subprocess):
33697         * lib/write.c (write_nothrow):
33698         Now static, not static inline.
33699         * lib/spawn-pipe.c (nonintr_open): Define only if
33700         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33701         * m4/dup.m4 (gl_PREREQ_DUP):
33702         * m4/execute.m4 (gl_EXECUTE):
33703         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33704         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33705         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33706         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33707         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33708         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33709         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33710         * m4/open.m4 (gl_PREREQ_OPEN):
33711         * m4/read.m4 (gl_PREREQ_READ):
33712         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33713         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33715         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33716         * m4/write.m4 (gl_PREREQ_WRITE):
33717         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33718         Do not require AC_C_INLINE.
33720         c-strtod, memcoll, readutmp: no 'static inline'
33721         * lib/c-strtod.c (c_locale):
33722         * lib/memcoll.c (strcoll_loop):
33723         * lib/readutmp.c (desirable_utmp_entry):
33724         Now static, not static inline.
33725         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33726         * m4/memcoll.m4 (gl_MEMCOLL):
33727         * m4/readutmp.m4 (gl_READUTMP):
33728         Do not require AC_C_INLINE.
33730         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33731         * lib/arctwo.c (to_uchar):
33732         * lib/md4.c (set_uint32):
33733         * lib/md5.c (set_uint32):
33734         * lib/sha1.c (set_uint32):
33735         * lib/sha256.c (set_uint32):
33736         * lib/sha512.c (set_uint64):
33737         Now static, not static inline.  This is a bit simpler, and doesn't
33738         affect performance with GCC and default optimization.
33739         * m4/arctwo.m4 (gl_ARCTWO):
33740         * m4/md4.m4 (gl_MD4):
33741         * m4/md5.m4 (gl_MD5):
33742         * m4/sha1.m4 (gl_SHA1):
33743         * m4/sha256.m4 (gl_SHA256):
33744         * m4/sha512.m4 (gl_SHA512):
33745         Do not require AC_C_INLINE.
33747         cond, lock, thread: better 'inline'
33748         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33749         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33750         New macros.  Use them instead of static inline, for header functions.
33751         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33752         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33753         * lib/glthread/lock.c (gl_waitqueue_init)
33754         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33755         * lib/glthread/thread.c (get_current_thread_handle):
33756         Change 'static inline' to 'inline'.
33757         * lib/glthread/cond.h, lib/glthread/thread.h:
33758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33759         * m4/cond.m4 (gl_COND):
33760         * m4/lock.m4 (gl_PREREQ_LOCK):
33761         * m4/thread.m4 (gl_THREAD):
33762         Do not require AC_C_INLINE.
33763         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33765         chdir-long, cycle-check, savewd: better 'inline'
33766         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33767         (find_non_slash):
33768         * lib/cycle-check.c (is_zero_or_power_of_two):
33769         * lib/savewd.c (savewd_delegating):
33770         Change 'static inline' to 'inline'.
33771         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33772         Replace all remaining uses of 'static inline' with it.
33773         * lib/savewd.h:
33774         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33775         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33776         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33777         * m4/savewd.m4 (gl_SAVEWD):
33778         Do not require AC_C_INLINE.
33779         * modules/savewd (Depends-on): Add extern-inline.
33781         base32, base64: no need for 'inline'
33782         * lib/base32.c (to_uchar, get_8, decode_8):
33783         * lib/base64.c (to_uchar, get_4, decode_4):
33784         Change 'static inline' to 'inline'.
33785         * m4/base32.m4 (gl_PREREQ_BASE32):
33786         * m4/base64.m4 (gl_PREREQ_BASE64):
33787         Do not require AC_C_INLINE.
33789         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33790         * lib/gl_array_oset.c (gl_array_nx_add_at):
33791         (gl_array_remove_at):
33792         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33793         (add_to_bucket, remove_from_bucket):
33794         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33795         Change 'static inline' to 'static', as it's simpler to omit
33796         'inline' unless there's a significant performance advantage.
33798         list, oset, xlist, xoset, xsublist: simplify via extern inline
33799         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33800         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33801         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33802         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33803         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33804         New macro.  Replace all uses of 'static inline' with it.
33805         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33806         instead of as macros FOO that are defined to static inline
33807         functions FOO_inline.
33808         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33809         * lib/gl_xsublist.c:
33810         Reimplement from scratch, by defining the corresponding *_INLINE
33811         macro and including the corresponding .h file.  This is simpler.
33812         * modules/list, modules/oset, modules/xlist, modules/xoset:
33813         (Files): Remove m4/gl_list.m4.
33814         (configure.ac): Remove gl_LIST.
33815         * m4/gl_list.m4: Remove.
33816         * modules/list, modules/oset, modules/xlist, modules/xoset:
33817         * modules/xsublist:
33818         (Depends-on): Depend on extern-inline, not inline.
33820         xalloc: better 'inline'
33821         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33822         New macro.  Replace all uses of 'static inline' with it.
33823         (static_inline): Remove.
33824         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33825         Let 'extern inline' do the work automatically, instead of doing
33826         it by hand.
33827         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33828         Remove.  All uses removed.
33829         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33831         gethrxtime: better 'inline'
33832         * lib/xtime.c: New file.
33833         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33834         * lib/xtime.h (XTIME_INCLUDE):
33835         New macros.  Replace all uses of 'static inline' with them.
33836         * lib/gethrxtime.c (gethrxtime): Define only if
33837         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33838         this source file is now always compiled, because of the extern inline.
33839         * lib/gethrxtime.h, lib/xtime.h:
33840         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33841         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33842         if gethrtime works, as they're not needed in that case.
33843         (gl_XTIME): Do not require AC_C_INLINE.
33844         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33845         compiled now.  Move the check into gl_GETHRXTIME.
33846         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33847         (Depends-on): Add extern-inline.
33848         (configure.ac): gethrxtime is always compiled now.
33849         (lib_SOURCES): Add gethrxtime.c.
33851         wctype-h: better 'inline'
33852         * lib/wctype-h.c: New file.
33853         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33854         New macro.  Replace all uses of 'static inline' with it.
33855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33856         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33857         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33858         (Depends-on): Add extern-inline.
33860         unistd: better 'inline'
33861         * lib/unistd.c: New file.
33862         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33863         New macro.  Replace all uses of 'static inline' with it.
33864         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33865         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33866         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33867         (Depends-on): Add extern-inline.
33869         sys_socket: better 'inline'
33870         * lib/sys_socket.c: New file.
33871         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33872         New macro.  Replace all uses of 'static inline' with it.
33873         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33875         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33876         (Depends-on): Add extern-inline.
33878         stdio: better 'inline'
33879         * lib/stdio.c: New file.
33880         * lib/stdio.in.h (_GL_STDIO_INLINE):
33881         New macro.  Replace all uses of 'static inline' with it.
33882         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33883         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33884         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33885         (Depends-on): Add extern-inline.
33887         sigaction: better 'inline'
33888         * lib/sig-handler.c: New file.
33889         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33890         New macro.  Replace all uses of 'static inline' with it.
33891         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33893         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33894         (Depends-on): Add extern-inline.
33896         selinux-h: better 'inline'
33897         * lib/se-context.c, lib/se-selinux.c: New files.
33898         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33899         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33900         New macro.  Replace all uses of 'static inline' with it.
33901         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33902         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33903         New macro.  Replace all uses of 'static inline' with it.
33904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33905         * modules/selinux-h (Files, lib_SOURCES):
33906         Add lib/se-context.c, lib/se-selinux.c.
33907         (Depends-on): Add extern-inline.
33908         (configure.ac): Do not require AC_C_INLINE.
33910         pthread: better 'inline'
33911         * lib/pthread.c: New file.
33912         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33913         New macro.  Replace all uses of 'static inline' with it.
33914         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33915         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33916         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33917         * modules/pthread (Files): Add lib/pthread.c.
33918         (Depends-on): Add extern-inline.
33920         math: better 'inline'
33921         * lib/math.c: New file.
33922         * lib/math.in.h (_GL_MATH_INLINE):
33923         New macro.  Replace all uses of 'static inline' with it.
33924         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33925         * m4/math_h.m4 (gl_MATH_H):
33926         Do not require AC_C_INLINE.
33927         * modules/math (Files, lib_SOURCES):
33928         Add lib/math.c.
33929         (Depends-on): Add extern-inline.
33931         count-one-bits: better 'inline'
33932         * lib/count-one-bits.c: New file.
33933         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33934         New macro.  Replace all uses of 'static inline' with it.
33935         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33936         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33937         Do not require AC_C_INLINE.
33938         * modules/count-one-bits (Files, lib_SOURCES):
33939         Add lib/count-one-bits.c.
33940         (Depends-on): Add extern-inline.
33942         count-leading-zeros: better 'inline'
33943         * lib/count-leading-zeros.c: New file.
33944         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33945         New macro.  Replace all uses of 'static inline' with it.
33946         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33947         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33948         Do not require AC_C_INLINE.
33949         * modules/count-leading-zeros (Files, lib_SOURCES):
33950         Add lib/count-leading-zeros.c.
33951         (Depends-on): Add extern-inline.
33953         bitrotate: better 'inline'
33954         * lib/bitrotate.c: New file.
33955         * lib/bitrotate.h (BITROTATE_INLINE):
33956         New macros.
33957         Replace all uses of 'static inline' with them.
33958         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33959         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33960         (Depends-on): Add extern-inline.
33961         (configure.ac): Do not require AC_C_INLINE.
33963 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33965         maint.mk: avoid gratuitous failure
33966         Reported by Stefano Lattarini in
33967         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33968         * top/maint.mk (public-submodule-commit): Quote more safely.
33970 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33972         canonicalize, canonicalize-lgpl: support MS-Windows file names
33973         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33974         for test cases, which it'd be nice to add at some point.
33975         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33976         * lib/canonicalize.c (canonicalize_filename_mode):
33977         * lib/canonicalize-lgpl.c (__realpath):
33978         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33979         slash is at the beginning of the file name.  Use ISSLASH, instead
33980         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33981         the first character with '/'.  Test for
33982         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33983         with a drive letter.
33984         * lib/canonicalize.c (SLASHES): New macro.
33985         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33987 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33989         fts: introduce FTS_VERBATIM
33990         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33991         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33992         * lib/fts.c (fts_open): Honor it.
33994 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33996         getlogin-tests: allow errno == ENXIO
33997         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33998         with errno == ENXIO (No controlling tty).
33999         getlogin_r-tests: Likewise. Also allow errno == ENOENT
34000         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
34001         with errno == ENOENT.  This was reported to happen in various
34002         situations on GNU/Linux.
34004 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34006         getlogin-tests: allow errno == ENOENT
34007         * tests/test-getlogin.c (main): Skip tests if getlogin fails
34008         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
34009         when running a test in an Emacs shell buffer.
34011 2012-11-08  Jim Meyering  <jim@meyering.net>
34013         tests/nap.h: avoid warning about unused variable
34014         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
34016         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
34017         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
34018         white space before each of the special-cased file names, to avoid
34019         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
34020         in http://bugs.gnu.org/12830.
34022 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34024         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
34025         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
34026         fails with errno == EBADF when fd is opened with O_PATH.
34027         Reported by Jim Meyering in
34028         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
34029         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
34030         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
34032 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
34034         test-utimens: speed up by taking shorter naps
34035         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
34036         New functions.
34037         (nap): Use them, to do a better job of guessing the delay.
34038         On Fedora 17 with ext4 atop md atop hard disks, this made
34039         test-utimens run 10x faster, because the test napped for
34040         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
34041         <http://bugs.gnu.org/12820#11>.
34043 2012-11-07  Jim Meyering  <jim@meyering.net>
34045         mountlist.c: fix a compilation failure
34046         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
34047         I introduced while transforming commit v0.0-7683-g613bcb6
34049 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
34051         errno: port to LynxOS 178 2.2.2
34052         Problem reported by Joel Brobecker in
34053         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
34054         * doc/posix-headers/errno.texi (errno.h): Document this.
34055         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
34056         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
34057         Supply a string for EILSEQ.
34058         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
34060 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
34062         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
34063         Linux kernel 2.6.39 introduced O_PATH (see
34064         <http://lwn.net/Articles/433854/>) and this is a better fallback
34065         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
34066         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
34067         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
34068         * lib/fcntl.in.h (O_ACCMODE):
34069         * tests/test-fcntl-h.c (main):
34070         Do not reject O_ACCMODE merely because it has more than the
34071         minimal number of bits, as POSIX allows extensions here.
34073 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
34075         mountlist: do not classify a bind-mounted dir entry as "dummy"
34076         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
34077         the "none"-testing clause.
34078         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
34079         exception for bind-mounted directories.
34081 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
34083         quote: provide a means to escape strings with nul characters
34084         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
34085         (quote, quote_n): Rename formal arguments for consistency with
34086         quotearg.
34088 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34090         test-raise: don't assume 199 is an invalid signal
34091         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
34093         sh-quote-tests: port to Solaris 9
34094         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
34095         Problem reported by Dagobert Michelsen in
34096         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
34098 2012-10-28  Jim Meyering  <jim@meyering.net>
34100         maint.mk: rename a new configurable variable
34101         * top/maint.mk (_gl_translatable_string_re): Rename from
34102         translation-markers: _gl_ prefix to insulate from user Makefile code,
34103         and the _re suffix to inform that it's a regular expression.
34105 2012-10-26  Eric Blake  <eblake@redhat.com>
34107         maint.mk: let packages tweak sc_po_check pattern
34108         * top/maint.mk (sc_po_check): Add translation-markers, to allow
34109         finding files with other translation markers.
34111 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34113         euidaccess: speed up 'configure' on GNU hosts
34114         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
34115         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
34116         it's needed only in this case.  Use AC_CHECK_DECLS, not
34117         AC_CHECK_DECLS_ONCE.
34118         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
34119         or AC_REQUIRE for AC_FUNC_GETGROUPS.
34121         * lib/regexec.c (re_search_internal): Fix grammar in comment.
34123 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34125         fchmodat, fchownat, fstatat: port to non-inlining compilers
34126         Problem reported for FreeBSD 9 by Jim Meyering in
34127         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
34128         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
34129         New files, which define FCHMODAT_INLINE etc.
34130         * lib/fchmodat.c (FCHMODAT_INLINE):
34131         * lib/fchownat.c (FCHOWNAT_INLINE):
34132         * lib/fstatat.c (FSTATAT_INLINE):
34133         Remove, as chmodat.c etc. now do this.
34134         * modules/fchmodat (Files): Add lib/chmodat.c.
34135         * modules/fchownat (Files): Add lib/chownat.c.
34136         * modules/fstatat (Files): Add lib/statat.c.
34138 2012-10-15  Jim Meyering  <jim@meyering.net>
34140         fchmodat.c, fchownat.c: compile-impeding typos
34141         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
34142         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
34143         Introduced in commit v0.0-7636-gd202279.
34145 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34147         fcntl-h: support GNU flags like O_IGNORE_CTTY
34148         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
34149         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
34150         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
34151         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
34152         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
34153         Define to 0 if not already defined.
34154         * tests/test-fcntl-h.c: Test these new flags.
34156 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34158         faccessat, etc.: support AT_FDCWD-only use
34159         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
34160         this function only if its first argument is AT_FDCWD.
34161         Emacs wants faccessat for AT_EACCESS but not for any first-arg
34162         values other than AT_FDCWD, so it doesn't want all the openat
34163         machinery with fchdir etc.
34164         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
34165         * modules/fstatat, modules/mkdirat, modules/openat (Files):
34166         * modules/unlinkat (Files):
34167         Remove lib/openat-priv.h, as at-internal supplies this file.
34168         Removing this file here allows us to support programs like Emacs
34169         that avoid at-internal.
34171         faccessat: speed up 'configure' on mainstream hosts
34172         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
34173         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
34174         since it's only on unusual platforms that we need to check for
34175         'access', and it's better not to slow 'configure' down on all
34176         platforms.
34178         faccessat: port to Solaris 10
34179         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
34180         Needed on Solaris 10, which doesn't have AT_EACCESS,
34181         so we need the Gnulib fcntl.h, which defines it.
34183 2012-10-14  Pádraig Brady  <P@draigBrady.com>
34184         canonicalize: fix C89 compilation
34185         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
34186         declarations so C89 is supported.  Also remove the comment
34187         referencing memorty allocation as the suggested feature could
34188         not be implemented as suggested.
34189         Reported by Michael Goffioul.
34191 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34193         group-member: omit unnecessary dependencies
34194         This is for Emacs, which has its own allocator and where we
34195         don't want to use xalloc.
34196         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
34197         since we no longer use xmalloc.  Do not include stdbool.h, since
34198         the changes below happen to remove the only use of bool.
34199         (GROUPBUF_SIZE): New constant.
34200         (struct group_info): Remove n_groups member.  Add groupbuf member.
34201         This lets us get the groups without using malloc, usually.
34202         (free_group_info, get_group_info): Adjust to this.
34203         (get_group_info): Return the number of groups found, or -1 on error.
34204         Use plain malloc not xmalloc, and treat its failure as if there
34205         are no groups, as the user already loses in case of error.
34206         (group_member): Simplify, based on changes to get_group_info.
34207         * modules/group-member (Depends-on): Remove dependencies on
34208         xalloc and stdbool.  Add dependency on xalloc-oversized.
34210 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
34212         gethrxtime: port to C++
34213         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
34215 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34217         ptsname: fix macro-name typo
34218         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
34220 2012-10-03  Simon Josefsson  <simon@josefsson.org>
34222         inttostr: Relax license.
34223         * modules/inttostr (License): Change from LGPL to LGPLv2+.
34225 2012-10-03  Eric Blake  <eblake@redhat.com>
34227         ptsname_r: support ptys returned by FreeBSD posix_openpt
34228         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
34229         lives in /dev/pts/.
34231 2012-10-02  Eric Blake  <eblake@redhat.com>
34233         pselect: reject invalid file descriptors
34234         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
34235         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
34236         * modules/pselect (Depends-on): Add dup2.
34237         * doc/posix-functions/pselect.texi (pselect): Document this.
34239         select: reject invalid file descriptors
34240         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
34241         * lib/select.c (rpl_select) [!win32]: Work around it.
34242         * modules/select (Depends-on): Add dup2.
34243         * doc/posix-functions/select.texi (select): Document this.
34245         select: enhance test
34246         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
34247         New functions.
34248         (test_function): Enhance test.
34249         (do_select_bad_fd): Avoid any stale errno values.
34251         ptsname: reject invalid file descriptors
34252         http://www.austingroupbugs.net/view.php?id=503
34253         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
34254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
34255         * modules/stdlib (Makefile.am): Replace witness.
34256         * lib/stdlib.in.h (ptsname): Allow for replacement.
34257         * modules/ptsname (configure.ac): Trigger replacement.
34258         * doc/posix-functions/ptsname.texi (ptsname): Document this.
34260 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
34262         hash-pjw-bare: new module
34263         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
34264         * lib/hash-pjw-bare.h: Likewise.
34265         * modules/hash-pjw-bare: New file.
34266         * MODULES.html.sh (Misc): Add it.
34268 2012-10-02  Eric Blake  <eblake@redhat.com>
34270         manywarnings: cater to more gcc infelicities
34271         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
34272         -Wuninitialized without -O.
34274 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
34276         select, poll tests: Make setsockopt invocation effective.
34277         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
34278         the bind() call.
34279         * tests/test-select.h (open_server_socket): Likewise.
34281 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34283         sockets, sys_stat: restore AC_C_INLINE
34284         This undoes the 2012-09-22 patch.
34285         * m4/sockets.m4 (gl_SOCKETS):
34286         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34287         Restore AC_C_INLINE, since MSVC requires __inline or _inline
34288         and does not support plain 'inline'.  Reported by Bruno Haible in
34289         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
34291 2012-09-30  Bruno Haible  <bruno@clisp.org>
34293         localeconv tests: Avoid test failure on OpenIndiana.
34294         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
34295         skip the 'grouping' and 'mon_grouping' tests.
34296         Reported by Jim Meyering.
34298 2012-09-30  Bruno Haible  <bruno@clisp.org>
34300         havelib: Follow libtool developments.
34301         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
34302         Suggested by Simon Josefsson.
34304 2012-09-29  Jim Meyering  <meyering@redhat.com>
34306         fstatat.c: fix a compile-impeding typo
34307         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
34308         Introduced in commit v0.0-7636-gd202279.
34309         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
34311 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
34313         extern-inline: provide a -Wundef safe config.h
34314         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
34315         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
34316         to produce a -Wundef warning free config.h.
34318 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34320         hash-pjw: relax license to LGPLv2+
34321         * modules/hash-pjw (License): Relax, with consent of author.
34323 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34325         maint.mk: fix strict vs. lazy variable issues with RELEASE
34326         * top/maint.mk (_equal): New function.
34327         (member_check): Strip the result to avoid spurious spaces.
34328         (url_dir_list): Do not use ifeq, which is strict, as it will
34329         require RELEASE_TYPE to be defined.
34330         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
34331         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
34332         (announcement_Cc_alpha,announcement_mail_headers_alpha)
34333         (announcement_Cc_beta,announcement_mail_headers_beta)
34334         (announcement_Cc_stable,announcement_mail_headers_stable): these.
34335         (release): Do not depend on $(release-type), as it forces its
34336         evaluation.  Bounce to it.
34338 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34340         maint.mk: formatting changes
34341         * top/maint.mk: Indent bodies of if's.
34343 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
34345         maint.mk: factor the validation of RELEASE_TYPE
34346         With help from Jim Meyering.
34347         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
34348         * top/maint.mk (_empty, _sp): Move their definition earlier.
34349         (member-check, release-type): New.
34350         Use the latter instead of $(RELEASE_TYPE).
34351         Remove now useless local checks.
34353 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34355         maint.mk: provide "make upload" to ease uploading
34356         See
34357         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
34358         Do not depend simply on the current $(VERSION), as there may have been
34359         new commits since the tarball generation.  Rather, rely on $(RELEASE),
34360         as "make release-commit" already does.
34362         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
34363         "make TYPE".
34365         * top/maint.mk (upload_command, upload, release): New.
34366         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
34367         (VERSION): first word of $(RELEASE) is always right.
34368         (emit_upload_commands): Adjust.
34369         * top/README-release: Update.
34371 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34373         maint.mk: silent rules
34374         With help from Stefano Lattarini.
34375         * top/maint.mk (writable-files): Use $(AM_V_GEN).
34376         (announcement): Use $(AM_V_at).
34378 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34380         localename: port gl_locale_name_thread_unsafe to FreeBSD
34381         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
34382         and use the simpler FreeBSD implementation on Mac OS X as well.
34383         Original idea suggested by Ed Maste in
34384         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
34386 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34388         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
34389         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
34390         * lib/mbuiter.c, lib/xsize.c: New files.
34391         * lib/binary-io.h (BINARY_IO_INLINE):
34392         * lib/eealloc.h (EEALLOC_INLINE):
34393         * lib/mbfile.h (MBFILE_INLINE):
34394         * lib/mbiter.h (MBITER_INLINE):
34395         * lib/mbuiter.h (MBUITER_INLINE):
34396         * lib/xsize.h (XSIZE_INLINE):
34397         New macros.
34398         Replace all uses of 'static inline' with them.
34399         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34400         * m4/eealloc.m4 (gl_EEALLOC):
34401         * m4/mbfile.m4 (gl_MBFILE):
34402         * m4/mbiter.m4 (gl_MBITER):
34403         * m4/xsize.m4 (gl_XSIZE):
34404         Do not require AC_C_INLINE.
34405         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
34406         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
34407         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
34408         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
34409         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
34410         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
34411         * modules/binary-io, modules/eealloc, modules/mbfile:
34412         * modules/mbiter, modules/mbuiter:
34413         (Depends-on): Add extern-inline.
34415         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
34416         * lib/pipe-filter-aux.c: New file.
34417         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
34418         Replace all uses of 'static inline' with it.
34419         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34420         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
34421         (filter_retcode): No real need for inline here.
34422         * modules/pipe-filter-gi, modules/pipe-filter-ii:
34423         (Files): Add lib/pipe-filter-aux.c.
34424         (Depends-on): Add extern-inline.
34425         (configure.ac): Do not require AC_C_INLINE.
34426         (lib_SOURCES): Add pipe-filter-aux.c.
34428         fdutimensat: omit unnecessary AC_C_INLINE
34429         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
34431         fchmodat, fchownat, fstatat: use extern-inline
34432         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
34433         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
34434         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
34435         New macros.
34436         * lib/openat.h:
34437         Replace all uses of 'static inline' with them.
34438         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34439         * modules/fchmodat, modules/fchownat, modules/fstatat:
34440         * modules/openat-h:
34441         (Depends-on):
34442         Add extern-inline.
34443         (configure.ac): Remove AC_C_INLINE.
34445         acl, mbchar, priv-set: use extern-inline
34446         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
34447         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
34448         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
34449         New macros.
34450         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
34451         Replace all uses of 'static inline' with it.
34452         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34453         * m4/acl.m4 (gl_FUNC_ACL):
34454         * m4/mbchar.m4 (gl_MBCHAR):
34455         * m4/priv-set.m4 (gl_PRIV_SET):
34456         Remove AC_C_INLINE, since 'inline' is no longer used directly.
34457         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
34458         Add extern-inline.
34460         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
34461         * m4/sockets.m4 (gl_SOCKETS):
34462         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34463         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
34464         environments where it's already guaranteed to work, so we needn't
34465         check for it at 'configure'-time.
34467         tls-tests: omit unnecessary 'inline'
34468         * tests/test-tls.c (perhaps_yield): No longer inline.
34469         Simplicity and portability trump efficiency in test cases.
34471         utimens-tests: avoid unnecessary 'inline'
34472         * modules/fdutimensat-tests (configure.ac):
34473         * modules/futimens-tests (configure.ac):
34474         * modules/utimens-tests (configure.ac):
34475         * modules/utimensat-tests (configure.ac):
34476         Remove AC_C_INLINE.
34477         * tests/test-utimens-common.h (ctime_compare):
34478         No longer inline.  Simplicity and portability trump efficiency here.
34480         misc: don't limit commentary to inline functions
34481         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
34482         * lib/xalloc-oversized.h, lib/xsize.h:
34483         Contrast macros to functions in general, not just to inline functions,
34484         when the commentary does not apply only to inline functions.
34486 2012-09-20  Jim Meyering  <meyering@redhat.com>
34488         non-recursive-gnulib-prefix-hack: new module
34489         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
34490         the file that originated in Bison.
34491         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
34492         largely copied from a snippet that resided in bison's configure.ac.
34493         * modules/non-recursive-gnulib-prefix-hack: New file.
34494         * MODULES.html.sh (Support for maintaining and releasing projects):
34495         Add it.
34497 2012-09-18  Jim Meyering  <meyering@redhat.com>
34499         maint.mk: generalize _gl_tight_scope for non-recursive make
34500         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
34501         that *.h would describe additional .h files in the directory
34502         specified by $(_gl_TS_dir).  I.e., add this...
34503         (_gl_TS_other_headers): New variable.
34505         maint.mk: exempt trailing blanks found in "binary" files
34506         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
34507         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
34508         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34510 2012-09-17  Jim Meyering  <meyering@redhat.com>
34512         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
34513         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
34514         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
34515         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34517 2012-09-17  Jim Meyering  <meyering@redhat.com>
34519         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
34520         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
34521         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
34522         It is not in the same category as "exit (0)" or "exit (1)", and
34523         besides, I know of no symbolic name for that 77.  Reported by
34524         Richard W.M. Jones in
34525         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34527 2012-09-17  Jim Meyering  <meyering@redhat.com>
34529         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
34530         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
34531         all uses of #define, not just those that start in column 1.
34532         Richard W.M. Jones reported a false positive in
34533         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34535 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
34537         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
34538         * lib/localcharset.c (locale_charset) [DARWIN7]:
34539         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
34540         as these two values are incompatible.  Problem reported by Max Horn.
34541         For more discussion, please see
34542         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
34544         doc: document sticky-EOF issue
34545         * doc/posix-functions/fgetc.texi (fgetc):
34546         * doc/posix-functions/fgets.texi (fgets):
34547         * doc/posix-functions/fread.texi (fread):
34548         * doc/posix-functions/fscanf.texi (fscanf):
34549         * doc/posix-functions/getc.texi (getc):
34550         * doc/posix-functions/getchar.texi (getchar):
34551         * doc/posix-functions/scanf.texi (scanf):
34552         Mention that glibc and default Solaris do not conform to
34553         C99 and POSIX-2001 or later, with respect to how getchar
34554         etc. behave when feof reports nonzero.
34556 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34558         poll: fix poll(0, NULL, msec)
34559         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
34560         but nfd is 0.  In that case poll should behave like select.
34562 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34563             Paolo Bonzini  <bonzini@gnu.org>
34565         poll: fix for systems that can't recv() on a non-socket
34566         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
34567         is readable.  In this case POLLHUP will not be supported.
34568         * doc/posix-functions/poll.texi: Document this.
34570 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
34572         poll/select: document portability problems not fixed by Gnulib.
34573         * doc/posix-functions/poll.texi: poll does not work well on
34574         pipes under Windows.  It has the same limitations as select on
34575         BeOS.
34576         * doc/posix-functions/select.texi: select does not work well
34577         on pipes under Windows.
34579 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
34581         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
34582         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
34583         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
34584         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
34586 2012-09-06  Eric Blake  <eblake@redhat.com>
34588         net_if: give more details about the bug being fixed
34589         * doc/posix-headers/net_if.texi: Add clarification.
34591 2012-09-05  Eric Blake  <eblake@redhat.com>
34593         net_if: new module
34594         * modules/net_if: New module, borrowing ideas from netinet_in.
34595         * m4/net_if_h.m4: New file.
34596         * lib/net_if.in.h: Likewise.
34597         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34598         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34599         * tests/test-net_if.c: Make function checks conditional.
34600         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34602 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34604         readutmp: fix non-portable UT_PID use
34605         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34606         Use `UT_PID (u) > 0' as absolute condition.
34608 2012-09-04  Jim Meyering  <meyering@redhat.com>
34610         fts: reduce two or more trailing spaces to just one, usually
34611         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34612         or more slashes, trim all but the final one.  But if a name consists
34613         solely of two slashes, don't modify it.  If it consists solely of
34614         three or more slashes, strip all but one.
34616         This is part of the solution to a minor problem with rm:
34617         it would print a bogus ELOOP diagnostic when failing to remove
34618         the slash-decorated name of a symlink-to-directory:
34620             $ mkdir d && ln -s d s && env rm -r s/
34621             rm: cannot remove 's': Too many levels of symbolic links
34623         With the change below and a trivial don't-trim-trailing-slashes
34624         adjustment to remove.c, it does this:
34626             $ env rm -r s/
34627             rm: cannot remove 's/': Not a directory
34629         Improved by: Eric Blake
34631         fts: when there is no risk of overlap, use memcpy, not memmove
34632         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34634 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34636         stdbool: be more compatible with mixed C/C++ compiles
34637         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34638         Define to bool, true, false, respectively, as GCC's builtin
34639         stdbool.h does.  Problem reported by Michael Goffioul in
34640         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34642 2012-08-28  Jim Meyering  <meyering@redhat.com>
34644         revert last change: it was not needed
34645         * tests/test-vc-list-files-git.sh: There's already a test for
34646         a working git, just below.
34648 2012-08-28  Jim Meyering  <meyering@redhat.com>
34650         tests: test-vc-list-files-git.sh: skip if git is not available
34651         * tests/test-vc-list-files-git.sh: Skip this test when git is
34652         not available.
34654 2012-08-26  Bruno Haible  <bruno@clisp.org>
34656         gnulib-tool: Remove no-op option --no-changelog.
34657         * gnulib-tool (func_usage): Don't mention --no-changelog.
34658         (do_changelog): Remove variable.
34659         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34661 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34663         doc: remove fdl-1.2.texi
34664         It is no longer used or maintained, and its use of @acronym
34665         is problematic.  See the thread containing
34666         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34667         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34668         * doc/old-licenses/fdl-1.2.texi: Remove.
34670         execinfo: port to FreeBSD
34671         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34672         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34673         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34674         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34676 2012-08-23  Jim Meyering  <meyering@redhat.com>
34678         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34679         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34680         to placate gcc's -Wold-style-declaration.
34682 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34684         doc: do not use @acronym
34685         * doc/inet_ntoa.texi (inet_ntoa):
34686         * doc/parse-datetime.texi (Seconds since the Epoch)
34687         (Specifying time zone rules):
34688         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34689         Don't use @acronym.  Problem reported by John Darlington in
34690         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34692 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34694         stdnoreturn: port to newer GCCs
34695         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34696         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34697         Problem reported by Jim Meyering in
34698         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34699         Also, rename the 'test' function to a void a clash with the
34700         already-supplied 'main' function; this fixes a bug that incorrectly
34701         rejected GCC 4.7.1's <stdnoreturn.h>.
34702         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34703         Document GCC problem.
34705 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34707         pipe-filter: fix comment typo
34708         * lib/pipe-filter.h: Mention correct function.
34710 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34712         execinfo: new module
34713         This is for Emacs.  Currently, it provides a no-effect stub
34714         on all platforms where it does not already work.
34715         It already works on glibc-based systems, and on Solaris 11.
34716         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34717         New files.
34718         * doc/glibc-headers/execinfo.texi (execinfo.h):
34719         * MODULES.html.sh (Misc): Document it.
34721 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34723         extern-inline: support old GCC 'inline'
34724         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34725         if available.  This applies to GCC versions 2.7 through 4.2, or
34726         when newer GCC is using -fgnu89-inline.  The goal is to address
34727         some of the performance issues mentioned by Bruno Haible in
34728         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34730 2012-08-20  Eric Blake  <eblake@redhat.com>
34732         maint.mk: avoid redundant file name in message
34733         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34734         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34735         (sc_makefile_path_separator_check): Remove bogus $(ME).
34737 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34739         timer-time: fix link order when static linking on glibc
34740         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34741         _after_ -lrt so that it's significant.
34743 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34745         timespec: omit unnecessary AC_C_INLINE
34746         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34748         stat-time: omit unnecessary AC_C_INLINE
34749         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34750         Do not require AC_C_INLINE.
34752         ignore-value: omit unnecessary AC_C_INLINE
34753         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34755         sys_select: avoid 'static inline'
34756         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34758         mktime: avoid 'static inline'
34759         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34760         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34762 2012-08-19  Bruno Haible  <bruno@clisp.org>
34764         gnulib-tool: Improve coding style.
34765         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34766         func_emit_lib_Makefile_am.
34767         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34769 2012-08-19  Bruno Haible  <bruno@clisp.org>
34771         gnulib-tool: Fix indentation.
34772         * gnulib-tool (func_import): Fix indentation.
34774 2012-08-19  Bruno Haible  <bruno@clisp.org>
34776         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34777         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34778         on the list of removed files.
34780 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34782         test-parse-datetime: avoid glibc leap-second glitch
34783         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34784         with the 2012 rules.  Problem reported by Bruce Dubbs in
34785         <http://bugs.gnu.org/12206>.
34787 2012-08-14  Bruno Haible  <bruno@clisp.org>
34789         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34790         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34791         from argument.
34792         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34794 2012-08-14  Eric Blake  <eblake@redhat.com>
34796         ldexp: relax license
34797         * modules/ldexp (License): Trivial relax, since the module only
34798         provides a permissively licensed m4 file.
34800 2012-08-13  Bruno Haible  <bruno@clisp.org>
34802         gnulib-tool: Fix persistence of --witness-c-macro option.
34803         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34804         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34806 2012-08-11  Eric Blake  <eblake@redhat.com>
34808         count-leading-zeros: use a lookup table on non-gcc compilers
34809         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34810         alternate implementation, suggested by Jim Meyering.
34812 2012-08-10  Eric Blake  <eblake@redhat.com>
34814         count-leading-zeros: new module
34815         * modules/count-leading-zeros: New module.
34816         * m4/count-leading-zeros.m4: New file.
34817         * lib/count-leading-zeros.h: Likewise.
34818         * modules/count-leading-zeros-tests: New test.
34819         * tests/test-count-leading-zeros.c: New file.
34820         * MODULES.html.sh (Integer arithmetic functions): Document it.
34822 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34823             Jim Meyering  <meyering@redhat.com>
34825         maintainer-makefile: Fix syntax error with dash.
34826         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34827         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34829 2012-08-05  Jim Meyering  <meyering@redhat.com>
34831         extern-inline: also ignore -Wmissing-declarations
34832         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34833         required with gcc-4.8.0-to-be.
34835         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34836         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34837         for /error ?([^,]*)/.  This avoids false-positives for strings like
34838         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34840 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34842         gnumakefile: better interaction with Automake-NG
34843         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34844         Automake-NG always contain a definition of VPATH, even in non-VPATH
34845         builds (its value being simply '.' in that case).  So, in the
34846         'clean-GNUmakefile' rule, to determine whether running under a
34847         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34848         '$(VPATH)' expands to the empty string.
34850 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34852         base64: Use extern C scope in header file, for C++.
34853         * lib/base64.h: Add C++ namespace protection.
34855 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34857         stat-time, timespec, u64: support naive out-of-dir builds
34858         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34859         Use '#include "foo.h"', not '#include <foo.h>', when including
34860         one's own interface.  This works better when configuring with
34861         out-of-directory builds, since packages need not add an
34862         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34864 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34866         utimens: use extern-inline
34867         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34868         * lib/utimens.h: Add copyright notice, since this is now large enough
34869         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34870         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34871         * modules/utimens (Depends-on): Add extern-inline.
34873         u64: use extern-inline
34874         * lib/u64.c: New file.
34875         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34876         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34877         * modules/u64 (Files): Add lib/u64.c.
34878         (Depends-on): Add extern-inline.
34879         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34880         does that now.
34881         (lib_SOURCES): Add u64.c.
34883         timespec: use extern-inline
34884         * lib/timespec.c: New file.
34885         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34886         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34887         * modules/timespec (Files): Add lib/timespec.c.
34888         (Depends-on): Add extern-inline.
34889         (lib_SOURCES): Add timespec.c.
34891         stat-time: use extern-inline
34892         * lib/stat-time.c: New file.
34893         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34894         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34895         * modules/stat-time (Files): Add lib/stat-time.c.
34896         (Depends-on): Add extern-inline.
34897         (lib_SOURCES): Add stat-time.c.
34899         extern-inline: new module
34900         * modules/extern-inline, m4/extern-inline.m4: New files.
34901         This is for better support of 'extern inline' a la ISO C99,
34902         with a portable alternative on compilers that do not support
34903         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34904         of the Emacs executable, when compiled with debugging disabled,
34905         which is a typical way that Emacs is built while developing.
34907 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34909         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34910         * build-aux/do-release-commit-and-tag: Move variable definitions
34911         together.
34912         ($branch): Instead of defaulting to "master", default to the current
34913         branch (as gnu-web-doc-update does).
34914         (help): Display the current values of the option arguments.
34915         * top/maint.mk (release-commit): New.
34916         * top/README-release: Simplify the corresponding step.
34918 2012-07-30  Eric Blake  <eblake@redhat.com>
34920         passfd: fix comment on recvfd
34921         * lib/passfd.c (recvfd): Fix comment.
34922         Reported by Jann Horn <jannhorn@googlemail.com>.
34924 2012-07-30  Jim Meyering  <meyering@redhat.com>
34926         maint.mk: avoid a sub-shell
34927         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34929 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34931         maint.mk: use silent-rules support from Automake
34932         * top/maint.mk (news-check, vc-diff-check, announcement)
34933         (no-submodule-changes, alpha beta stable, release-prep)
34934         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34936 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34938         maint.mk: provide a web-manual-update target
34939         * top/maint.mk: here.
34940         * top/README-release: Use it to simplify the web manual update step.
34942 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34944         README-release: shorten the circuit to post a news
34945         * top/README-release: Point directly to the news submission form.
34947 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34949         gnu-web-doc-update: fix --help
34950         * build-aux/gnu-web-doc-update: The information "top level" was written
34951         twice.
34953 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34955         maint.mk: absolute VPATH issue
34956         * top/maint.mk (release-prep): Help Git find .git/.
34957         From Jim Meyering.
34959 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34961         gitlog-to-changelog: fix previous change
34962         * build-aux/gitlog-to-changelog: Fix condition.
34963         Add missing ";".
34965 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34967         gitlog-to-changelog: don't expect .git to be in $srcdir
34968         Reported by Bruno Haible.
34969         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34970         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34971         Use it.
34973 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34975         maint.mk: absolute VPATH build fix
34976         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34977         $(srcdir) is not a parent of $(builddir).
34979 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34981         clean-temp: Fix memory leak.
34982         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34983         'files' members of tmpdir.
34985 2012-07-27  Jim Meyering  <meyering@redhat.com>
34987         maint.mk: new rule: refresh-gnulib-patches
34988         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34989         Use this rule to refresh them.
34990         * top/maint.mk (refresh-gnulib-patches): New rule.
34992 2012-07-24  Bruno Haible  <bruno@clisp.org>
34994         gnulib-tool: Fix handling of inctests variable.
34995         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34996         Reported by Nick Bowler <nbowler@elliptictech.com>.
34998 2012-07-22  Bruno Haible  <bruno@clisp.org>
35000         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
35001         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
35002         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
35003         Remove exemption for getpass.h.
35004         Suggested by Eric Blake.
35006 2012-07-20  Eric Blake  <eblake@redhat.com>
35008         verify: document conflict with -Wnested-externs
35009         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
35011         maint.mk: forbid exit(-1)
35012         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
35014 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
35016         fsusage: port back to Solaris
35017         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
35018         error (fsd not declared) on Solaris 10.  Reported privately by
35019         Andrew Borodin.
35021 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
35023         gnu-web-doc-update: fix error messages
35024         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
35026         gnu-web-doc-update: check the requirements.
35027         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
35028         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
35029         * build-aux/bootstrap (find_tool): Comment change.
35031 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
35033         maint.mk: minor simplication.
35034         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
35035         for default values.
35037 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
35039         gitlog-to-changelog: VPATH build issues
35040         If builddir is not a subdirectory of srcdir, running git from it will
35041         fail.
35042         * build-aux/gitlog-to-changelog (--srcdir): New option.
35044 2012-07-15  Bruno Haible  <bruno@clisp.org>
35046         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
35047         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
35048         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
35049         Remove exemption for fpending.h.
35050         Suggested by Eric Blake.
35052 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35054         pthread_sigmask: fix bug on FreeBSD 9
35055         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
35056         Include string.h.
35057         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
35058         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
35059         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
35060         but pthread_sigmask (1729, NULL, NULL) returns zero.
35061         See <http://bugs.gnu.org/11884>.
35062         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
35063         by inspecting whether the main call changed the old mask.
35065 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
35067         README-release: make it more legible
35068         * top/README-release: Improve typography slightly.
35070 2012-07-15  Jim Meyering  <meyering@redhat.com>
35072         maint: require that each sc_... command start with "@"
35073         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
35074         "make sc_maint" helps us avoid this nit.
35076 2012-07-15  Jim Meyering  <meyering@redhat.com>
35078         maint.mk: add leading "@" to quiet new "make syntax-check" rule
35079         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
35081 2012-07-13  Eric Blake  <eblake@redhat.com>
35083         maint.mk: new syntax check for HAVE_DECL checks
35084         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
35085         * cfg.mk
35086         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
35087         Exempt some false positives.
35088         Based on a report by Karel Zak.
35090         argp: make HAVE_DECL usage consistent
35091         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
35092         macros, not whether they are defined.
35093         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
35094         convention with other declaration checks.
35095         Reported by Karel Zak, with suggestions from Paul Eggert.
35097         stat-time: relax license to LGPLv2+
35098         * modules/stat-time (License): Relax, with consent of all authors.
35100         strndup: fix m4 usage error
35101         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
35102         defined, to either 0 or 1.
35103         Reported by Karel Zak.
35105 2012-07-11  Jim Meyering  <meyering@redhat.com>
35107         maint: enable the sc_avoid_if_before_free syntax-check rule
35108         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
35109         (if_before_free_offenders_): Define.
35110         (if_before_free_basename_re_): Define.
35111         Exempt current files with useless if-before-free.
35113 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
35115         gettext: do not assume '#define ... defined ...' behavior
35116         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
35117         Do not use '#define FOO ... defined BAR ...', as the C standard says
35118         it's not portable to expect that this works after macro expansion.
35119         Problem reported for gzip by Steven M. Schweda in
35120         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
35122 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35124         getloadavg: clean out old Emacs and Autoconf cruft
35125         See Glenn Morris in <http://bugs.gnu.org/11905>.
35126         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
35127         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
35128         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
35129         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
35131 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
35133         bootstrap: let warn be like tests/init.sh's warn_
35134         Reported by Jim Meyering.
35135         * build-aux/bootstrap (warn): Remove, replaced by...
35136         (warnf_, warn_): these.
35137         Adjust callers.
35138         Shorten messages that no longer fit in 80 columns.
35140 2012-07-09  Bruno Haible  <bruno@clisp.org>
35142         getopt: Simplify after Emacs changed.
35143         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
35144         (gl_GETOPT_IFELSE): Remove macro.
35146 2012-07-09  Jim Meyering  <meyering@redhat.com>
35148         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
35149         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
35151         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
35152         Bugs in both of those conspired to make the
35153         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
35154         _sc_search_regexp's handling of non-empty $in_files would filter
35155         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
35156         choice of in_files value meant there would be no match in most
35157         projects, due to the presence of two or more Makefile.in files.
35158         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
35159         Fix a bug in how a non-empty $$in_files was processed:
35160         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
35161         in spite of the name, it's a regexp, not a list of file names.
35163 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35165         getloadavg, getopt: fix commentary re configure.in
35166         Autoconf is deprecating the name 'configure.in', so change it to
35167         to the new name 'configure.ac' in a couple of places.
35168         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
35169         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
35170         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
35171         Emacs has renamed it to configure.ac, and it no longer refers
35172         to these macros anyway.
35174         timespec: mark functions with const attributes
35175         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
35176         Mark with _GL_ATTRIBUTE_CONST.
35178 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35180         canonicalize[-lgpl]: handle "guessing" values when cross-building
35181         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35182         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
35183         matches "*yes" instead of just "yes".  Regression introduced in commit
35184         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
35186 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35187             Bruno Haible  <bruno@clisp.org>
35189         canonicalize: make the right guess when cross-compiling to GNU
35190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
35191         determine whether cross-compiling to glibc systems, so as to
35192         include GNU/Hurd.
35194 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35196         timespec-sub: avoid duplicate include
35197         * lib/timespec-sub.c: Do not include <config.h> twice.
35198         Reported by Juanma Barranquero.
35200 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
35202         bootstrap: use a more consistent error reporting scheme
35203         * build-aux/bootstrap (warn, die): New.
35204         Use them.
35206 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35208         sys_time: allow too-wide tv_sec
35209         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
35210         timeval even if tv_sec is wider than time_t.  This allows
35211         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
35212         as without this patch gnulib replaces struct timeval
35213         and OpenBSD futimes therefore has a type mismatch.
35214         * doc/posix-headers/sys_time.texi: Mention this.
35216         pthread: check for both pthread_create and pthread_join
35217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
35218         alter the check so that it tests for both pthread_create and
35219         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
35220         Suggested by Bruno Haible and Richard Yao in
35221         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
35223         parse-datetime: doc tuneup
35224         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
35225         spacing issues.
35227 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
35229         do-release-commit-and-tag: fix the previous commit
35230         * build-aux/do-release-commit-and-tag: Actually the test was right,
35231         but the comment and the error message were misleading.
35232         Fix comment, and improve error message.
35233         Perform check first, so that NEWS is not modified uselessly.
35235         do-release-commit-and-tag: fix typo
35236         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
35237         _not_ start with a stub.
35239 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35241         pthread: check for pthread_create, not pthread_join
35242         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
35243         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
35244         pthread_join in libc.  I hope this removes the need for all the
35245         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
35246         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
35248 2012-07-04  Jim Meyering  <meyering@redhat.com>
35250         parse-datetime: fix failure to diagnose invalid input
35251         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
35252         rather than diagnosing the invalid input.  Now it reports this:
35253         date: invalid date '\260'
35254         * lib/parse-datetime.y (to_uchar): Define.
35255         (yylex): Don't sign-extend "other" bytes.
35256         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
35257         Thanks to Bruno Haible for the patch to this file.
35258         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
35259         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
35261 2012-07-03  Jim Meyering  <meyering@redhat.com>
35263         bootstrap: do not require now-removed build-aux/missing
35264         Now that build-aux/missing is, er, missing, bootstrap would
35265         silently fail.
35266         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
35267         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
35268         no longer part of gnulib.
35269         Diagnose the failure.
35271 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35273         alloca: add support for HP NonStop TNS/E native
35274         * lib/alloca.in.h (alloca): Support the new host.
35275         From a suggestion by Joachim Schmitz in
35276         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
35278 2012-07-02  Pádraig Brady  <P@draigBrady.com>
35280         fsusage: remove code not needed on non GNU/Linux systems.
35282         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35283         Don't include headers no longer needed in this case.
35284         * lib/fsusage.c [STAT_STATVFS &&
35285         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
35286         STAT_STATFS2_FRSIZE to exclude code not used in this case.
35288 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35290         fsusage: include files needed for glibc 2.6 fallback
35291         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35292         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
35293         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
35294         Problem reported by Ludovic Courtès in
35295         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
35297         fsusage: avoid needless check on GNU/Linux
35298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
35299         on GNU/Linux systems, since it can't possibly work.
35301 2012-07-01  Bruno Haible  <bruno@clisp.org>
35303         log: Fix an autoconf >= 2.64 warning.
35304         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
35305         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35307 2012-06-28  Bruno Haible  <bruno@clisp.org>
35309         log10f: Fix possible configuration problem.
35310         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
35311         $LOGF_LIBM.
35312         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35314 2012-06-28  Bruno Haible  <bruno@clisp.org>
35316         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
35317         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
35318         not gl_cv_func_unlink_works.
35319         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35321 2012-06-27  Eric Blake  <eblake@redhat.com>
35323         config: drop scripts that automake says are not independent
35324         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
35325         * build-aux/elisp-comp: Delete.
35326         * build-aux/missing: Likewise.
35327         * build-aux/ylwrap: Likewise.
35328         * modules/elisp-comp: Likewise.
35329         * MODULES.html.sh: Drop mention of elisp-comp.
35330         * NEWS: Mention this.
35332 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35334         root-uid: new module
35335         This is for portability to Tandem's NonStop Kernel.
35336         * lib/root-uid.h, modules/root-uid: New files.
35337         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
35338         * lib/write-any-file.c, tests/test-sethostname2.c:
35339         Include "root-uid.h".
35340         * lib/euidaccess.c (euidaccess):
35341         * lib/pt_chown.c (main):
35342         * lib/unlinkdir.c (cannot_unlink_dir):
35343         * lib/write-any-file.c (can_write_any_file):
35344         * m4/mknod.m4 (gl_FUNC_MKNOD):
35345         * tests/test-sethostname2.c (geteuid, main):
35346         Don't assume ROOT_UID == 0.
35347         * modules/euidaccess (Depends-on):
35348         * modules/pt_chown (Depends-on):
35349         * modules/sethostname-tests (Depends-on):
35350         * modules/unlinkdir (Depends-on):
35351         * modules/write-any-file (Depends-on):
35352         Add root-uid.
35354         regex: use locale-independent comparison for codeset name
35355         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
35356         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
35357         for codeset name.
35358         * lib/regex_internal.h: Do not include <strings.h>, since we
35359         no longer use strcasecmp.
35360         * modules/regex (Depends-on): Remove strcase.
35362 2012-06-23  Bruno Haible  <bruno@clisp.org>
35364         getopt-posix: No longer guarantee that option processing is resettable.
35365         * doc/posix-functions/getopt.texi: Drop description of problem with
35366         internal state. Fix info about mingw and msvc9.
35367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
35368         option processing by getopt(). Run three test programs instead of one.
35369         Simplify cross-compilation guess.
35370         * NEWS: Mention the change.
35371         Reported by Rich Felker <dalias@aerifal.cx>.
35373 2012-06-26  Bruno Haible  <bruno@clisp.org>
35375         argp, regex: Ensure strcasecmp gets declared.
35376         * lib/argp-help.c: Include <strings.h>.
35377         * lib/regex_internal.h: Likewise.
35378         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
35380 2012-06-24  Bruno Haible  <bruno@clisp.org>
35382         ptsname_r: Make it consistent with ptsname on AIX.
35383         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
35384         implementation as for OSF/1.
35385         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
35386         a pty master.
35388         ptsname_r: Make it consistent with ptsname on OSF/1.
35389         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35390         OSF/1.
35392 2012-06-24  Bruno Haible  <bruno@clisp.org>
35394         ttyname_r: Fix result on OSF/1, Solaris.
35395         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
35397 2012-06-24  Bruno Haible  <bruno@clisp.org>
35399         ptsname_r: Add support for Solaris.
35400         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35401         Solaris.
35403         ptsname_r: Fix test failure on native Windows.
35404         * modules/ptsname_r (Depends-on): Add isatty.
35406         ptsname_r: Fix test failures on IRIX, Solaris.
35407         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
35408         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
35409         accordingly.
35410         * lib/ptsname_r.c: Include <fcntl.h>.
35411         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
35412         set errno if fd is invalid.
35413         * tests/test-isatty.c (main): Update comments.
35415 2012-06-24  Bruno Haible  <bruno@clisp.org>
35417         ptsname test: Extend test.
35418         * tests/test-ptsname.c: Include <errno.h>.
35419         (main): Test behaviour with invalid file descriptor.
35421 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35423         time: fix obsolete comment
35424         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
35425         reference to HAVE_STRUCT_TIMESPEC in comment.
35427 2012-06-23  Bruno Haible  <bruno@clisp.org>
35429         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
35430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
35431         does not handle abbreviated long options with equivalent
35432         disambiguations, set gl_replace_getopt to yes.
35433         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
35435 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35437         time_r: fix typo that always overrode localtime_r decl
35438         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
35439         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
35440         not in a standard include.
35442 2012-06-22  Bruno Haible  <bruno@clisp.org>
35444         Write "Mac OS X" instead of "MacOS X".
35445         * README: Write "Mac OS X" instead of "MacOS X".
35446         * build-aux/bootstrap: Likewise.
35447         * build-aux/install-reloc: Likewise.
35448         * lib/acl-internal.h: Likewise.
35449         * lib/acl_entries.c: Likewise.
35450         * lib/argp-ba.c: Likewise.
35451         * lib/argp-pv.c: Likewise.
35452         * lib/config.charset: Likewise.
35453         * lib/copy-acl.c: Likewise.
35454         * lib/csharpexec.c: Likewise.
35455         * lib/euidaccess.c: Likewise.
35456         * lib/fbufmode.c: Likewise.
35457         * lib/fflush.c: Likewise.
35458         * lib/file-has-acl.c: Likewise.
35459         * lib/filemode.h: Likewise.
35460         * lib/fpurge.c: Likewise.
35461         * lib/freadable.c: Likewise.
35462         * lib/freadahead.c: Likewise.
35463         * lib/freading.c: Likewise.
35464         * lib/freadptr.c: Likewise.
35465         * lib/freadseek.c: Likewise.
35466         * lib/fseeko.c: Likewise.
35467         * lib/fseterr.c: Likewise.
35468         * lib/fsusage.c: Likewise.
35469         * lib/fwritable.c: Likewise.
35470         * lib/fwriting.c: Likewise.
35471         * lib/get-rusage-as.c: Likewise.
35472         * lib/get-rusage-data.c: Likewise.
35473         * lib/getdomainname.c: Likewise.
35474         * lib/idpriv-drop.c: Likewise.
35475         * lib/idpriv-droptemp.c: Likewise.
35476         * lib/localcharset.c: Likewise.
35477         * lib/locale.in.h: Likewise.
35478         * lib/localename.c: Likewise.
35479         * lib/mbsrtowcs-state.c: Likewise.
35480         * lib/nproc.c: Likewise.
35481         * lib/passfd.c: Likewise.
35482         * lib/posix_openpt.c: Likewise.
35483         * lib/printf-parse.c: Likewise.
35484         * lib/progreloc.c: Likewise.
35485         * lib/safe-read.h: Likewise.
35486         * lib/safe-write.h: Likewise.
35487         * lib/sched.in.h: Likewise.
35488         * lib/set-mode-acl.c: Likewise.
35489         * lib/signal.in.h: Likewise.
35490         * lib/stdint.in.h: Likewise.
35491         * lib/stdio-impl.h: Likewise.
35492         * lib/stdlib.in.h: Likewise.
35493         * lib/strtod.c: Likewise.
35494         * lib/sys_select.in.h: Likewise.
35495         * lib/tcgetsid.c: Likewise.
35496         * lib/unistd.in.h: Likewise.
35497         * lib/unlockpt.c: Likewise.
35498         * lib/vasnprintf.c: Likewise.
35499         * lib/vma-iter.c: Likewise.
35500         * lib/wcsrtombs-state.c: Likewise.
35501         * m4/acl.m4: Likewise.
35502         * m4/acosl.m4: Likewise.
35503         * m4/asinl.m4: Likewise.
35504         * m4/atanl.m4: Likewise.
35505         * m4/c-stack.m4: Likewise.
35506         * m4/cosl.m4: Likewise.
35507         * m4/expl.m4: Likewise.
35508         * m4/extensions.m4: Likewise.
35509         * m4/fdatasync.m4: Likewise.
35510         * m4/fmal.m4: Likewise.
35511         * m4/frexp.m4: Likewise.
35512         * m4/frexpf.m4: Likewise.
35513         * m4/frexpl.m4: Likewise.
35514         * m4/fsusage.m4: Likewise.
35515         * m4/getdomainname.m4: Likewise.
35516         * m4/getloadavg.m4: Likewise.
35517         * m4/getopt.m4: Likewise.
35518         * m4/gettext.m4: Likewise.
35519         * m4/gnulib-common.m4: Likewise.
35520         * m4/intdiv0.m4: Likewise.
35521         * m4/intlmacosx.m4: Likewise.
35522         * m4/largefile.m4: Likewise.
35523         * m4/ldexpl.m4: Likewise.
35524         * m4/link-follow.m4: Likewise.
35525         * m4/locale-ar.m4: Likewise.
35526         * m4/locale-fr.m4: Likewise.
35527         * m4/locale-ja.m4: Likewise.
35528         * m4/locale-tr.m4: Likewise.
35529         * m4/locale-zh.m4: Likewise.
35530         * m4/locale_h.m4: Likewise.
35531         * m4/lock.m4: Likewise.
35532         * m4/logl.m4: Likewise.
35533         * m4/mathfunc.m4: Likewise.
35534         * m4/minus-zero.m4: Likewise.
35535         * m4/mktime.m4: Likewise.
35536         * m4/mmap-anon.m4: Likewise.
35537         * m4/multiarch.m4: Likewise.
35538         * m4/nanosleep.m4: Likewise.
35539         * m4/nocrash.m4: Likewise.
35540         * m4/poll.m4: Likewise.
35541         * m4/printf-frexpl.m4: Likewise.
35542         * m4/printf.m4: Likewise.
35543         * m4/signbit.m4: Likewise.
35544         * m4/sinl.m4: Likewise.
35545         * m4/sqrtl.m4: Likewise.
35546         * m4/strerror_r.m4: Likewise.
35547         * m4/tanl.m4: Likewise.
35548         * m4/threadlib.m4: Likewise.
35549         * m4/ttyname_r.m4: Likewise.
35550         * m4/unlink.m4: Likewise.
35551         * m4/visibility.m4: Likewise.
35552         * m4/wcwidth.m4: Likewise.
35553         * tests/minus-zero.h: Likewise.
35554         * tests/test-alloca-opt.c: Likewise.
35555         * tests/test-copy-acl.sh: Likewise.
35556         * tests/test-copy-file.sh: Likewise.
35557         * tests/test-fdatasync.c: Likewise.
35558         * tests/test-file-has-acl.sh: Likewise.
35559         * tests/test-flock.c: Likewise.
35560         * tests/test-fsync.c: Likewise.
35561         * tests/test-localename.c: Likewise.
35562         * tests/test-malloca.c: Likewise.
35563         * tests/test-nonblocking-pipe.h: Likewise.
35564         * tests/test-nonblocking-socket.h: Likewise.
35565         * tests/test-openpty.c: Likewise.
35566         * tests/test-posix_openpt.c: Likewise.
35567         * tests/test-ptsname.c: Likewise.
35568         * tests/test-ptsname_r.c: Likewise.
35569         * tests/test-sameacls.c: Likewise.
35570         * tests/test-select.h: Likewise.
35571         * tests/test-set-mode-acl.sh: Likewise.
35572         * tests/test-snprintf-posix.h: Likewise.
35573         * tests/test-sprintf-posix.h: Likewise.
35574         * tests/test-strtod.c: Likewise.
35575         * tests/test-time.c: Likewise.
35576         * tests/test-vasnprintf-posix.c: Likewise.
35577         * tests/test-vasprintf-posix.c: Likewise.
35578         * doc/acl-resources.txt: Likewise.
35579         * doc/**/*.texi: Likewise.
35580         Reported by Max Horn <max@quendi.de>.
35582 2012-06-22  Bruno Haible  <bruno@clisp.org>
35584         grantpt: Relax requirement regarding invalid file descriptors.
35585         * lib/grantpt.c: Don't include <fcntl.h>.
35586         (grantpt): Don't verify the validity of the file descriptor.
35587         * modules/grantpt (Depends-on): Remove fcntl-h.
35588         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35589         file descriptors.
35590         * doc/posix-functions/grantpt.texi: Document more platforms on which
35591         grantpt succeeds for invalid file descriptors.
35592         Reported by Rich Felker <dalias@aerifal.cx>.
35594 2012-06-22  Bruno Haible  <bruno@clisp.org>
35596         fbufmode test: Don't test unportable behaviour.
35597         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35598         (main): Invoke it three times.
35599         Reported by Szabolcs Nagy <nsz@port70.net>
35600         and Rich Felker <dalias@aerifal.cx>.
35602 2012-06-21  Bruno Haible  <bruno@clisp.org>
35604         gnulib-tool: Refactor inctests variable.
35605         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35606         (func_modules_transitive_closure,
35607         func_modules_transitive_closure_separately,
35608         func_import, func_create_testdir): Update.
35610         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35611         * gnulib-tool: Accept option --without-tests.
35612         (func_usage): Document --without-tests option. Rearrange.
35613         (inctests): Normalize according to the mode.
35614         * NEWS: Mention the change.
35615         Suggested by Simon Josefsson.
35617 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35619         parse-duration test: Avoid spurious output.
35620         * tests/test-parse-duration.sh: Reindent with leading tabs.
35622 2012-06-21  Jim Meyering  <meyering@redhat.com>
35624         maint: disable the strncpy prohibition
35625         * cfg.mk: Do not prohibit strncpy here.
35627 2012-06-21  Bruno Haible  <bruno@clisp.org>
35629         nonblocking: Avoid compilation error on mingw64.
35630         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35631         fscanf.
35632         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35633         * modules/vfscanf (configure.ac): Likewise.
35634         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35635         definition only if stdio.h has prepared it.
35636         Reported by Daniel P. Berrange <berrange@redhat.com>.
35638 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35640         gnulib-tool: Use readlink if it is available.
35641         * gnulib-tool (func_readlink): Choose function more appropriately.
35643 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35645         posixtm-tests: port to buggy compiler
35646         Problem reported by Simon Josefsson in
35647         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35648         * modules/posixtm-tests (Depends-on): Add stdint.
35649         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35650         Now of type int_least64_t, not int64_t, both because that's
35651         what INT64_C returns and because int_least64_t works even
35652         on 72-bit hosts.
35653         (T): Use INT64_C on constants outside the traditional int range,
35654         to work around compiler bug noted by Simon.
35656         mktime: fix integer overflow in 'configure'-time test
35657         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35658         after integer overflow.  Problem reported by Rich Felker in
35659         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35660         Also, don't look for further instances of a bug if we've already
35661         found one instance; this helps 'configure' run faster.
35663 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35665         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35666         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35667         GetVersionEx correctly.
35668         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35670 2012-06-20  Bruno Haible  <bruno@clisp.org>
35672         fdopen: Allow implementations that don't reject invalid fd arguments.
35673         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35674         succeeds.
35675         Reported by Rich Felker <dalias@aerifal.cx>.
35677 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35679         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35680         bring in LIBINTL.
35682 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35684         init.sh: do not rely on autoupated PWD
35685         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35686         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35687         Although Nelson's bug was not necessarily fixed by this patch,
35688         it seems wise to make the change for safety.
35689         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35690         automagically after 'cd'; this is not reliable on older shells.
35691         (setup_): Fail if we cannot cd to temporary directory.
35693 2012-06-19  Bruno Haible  <bruno@clisp.org>
35695         stat, fstat: Avoid warnings on mingw64.
35696         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35697         redefining.
35698         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35699         Reported by Daniel P. Berrange <berrange@redhat.com>.
35701 2012-06-19  Bruno Haible  <bruno@clisp.org>
35703         stdioext: Add support for musl libc.
35705         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35706         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35708         * m4/fseterr.m4: New file.
35709         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35710         function exists.
35711         * modules/fseterr (Files): Add m4/fseterr.m4.
35712         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35713         __fseterr does not exist.
35714         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35716         * lib/freadable.h: Update comment.
35718         * lib/fwritable.h: Update comment.
35720         * lib/freading.h: Update comment.
35722         * lib/fwriting.h: Update comment.
35724         * m4/freadahead.m4: New file.
35725         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35726         that function exists.
35727         * modules/freadahead (Files): Add m4/freadahead.m4.
35728         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35729         __freadahead does not exist.
35730         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35732         * m4/freadptr.m4: New file.
35733         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35734         function exists.
35735         * modules/freadptr (Files): Add m4/freadptr.m4.
35736         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35737         __freadptr does not exist.
35738         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35740         * m4/freadseek.m4: New file.
35741         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35742         exists.
35743         * modules/freadseek (Files): Add m4/freadseek.m4.
35744         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35746         * lib/fpurge.c (fpurge): Update comment.
35748         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35750 2012-06-19  Bruno Haible  <bruno@clisp.org>
35752         *printf-posix: Put more info into config.log.
35753         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35754         exit code into config.log.
35756 2012-06-19  Bruno Haible  <bruno@clisp.org>
35758         getopt-gnu: Fix exit code overflow in autoconf test.
35759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35760         to keep them below < 128.
35762 2012-06-17  Jim Meyering  <meyering@redhat.com>
35764         maint.mk: fix typo in code to derive GPG key at release time
35765         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35767 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35769         regex: avoid warning when pointers are not long
35770         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35771         and uintptr_t, not long, for portability to hosts where pointers and
35772         long have different sizes.  Issue noted by Daniel P. Berrange in
35773         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35774         and fix suggested by Bruno Haible in
35775         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35777 2012-06-17  Bruno Haible  <bruno@clisp.org>
35779         dummy: Relicense into the public domain.
35780         * modules/dummy (License): Set to "public domain".
35781         Suggested by Reuben Thomas.
35783 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35785         announce-gen: VPATH issues
35786         * build-aux/announce-gen (--srcdir): New option, used to trim the
35787         $srcdir part of the path from $builddir to NEWS.
35788         * top/maint.mk (announcement): Adjust.
35790 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35792         gnu-web-doc-update: VPATH builds
35793         * build-aux/gnu-web-doc-update (--builddir): New option.
35794         Revamp the handling of options.
35795         Prefer $(...) to `...`.
35796         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35797         the template, and it is GNU mktemp specific.
35798         Prefer set -e to long series of &&.
35799         Restore the initial git branch, not "master".
35800         Properly initialize submodules (don't rely only on bootstrap).
35801         Do not reconfigure blindly, use config.status.
35802         * top/README-release: Update instructions for gnu-web-doc-update.
35804 2012-06-11  Jim Meyering  <meyering@redhat.com>
35806         maint.mk: revert most of the previous change re "all these"
35807         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35808         For rationale, see the discussion at
35809         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35811 2012-06-10  Karl Berry  <karl@gnu.org>
35813         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35815         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35817 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35819         parse-duration: Relicense under LGPLv2+.
35820         * modules/parse-duration (License): Change to LGPLv2+.
35822 2012-06-10  Jim Meyering  <meyering@redhat.com>
35824         maint.mk: prohibit common grammar error: "all these"
35825         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35826         the list of prohibited word sequences.  It should be "all of these".
35827         * lib/tempname.c (__gen_tempname): Fix one of them.
35829 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35831         do-release-commit-and-tag: support VPATH builds
35832         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35833         (noteworthy): Defined earlier to factor its value.
35834         (noteworthy_stub): New.
35835         Use it to factor.
35836         (help_version): Split into...
35837         (help, version): these.
35838         Adjust the option processing part.
35839         Support "--option=value" in addition to "--option value".
35840         (builddir): New.
35841         (--builddir): New option.
35842         * top/README-release: Document this.
35843         Reword slightly so that the reader cannot understand that he
35844         has to do these steps before calling do-release-commit-and-tag.
35846 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35848         readme-release: also require announce-gen and maintainer-makefile
35849         * modules/readme-release (Depends-on): here.
35850         * modules/announce-gen, modules/do-release-commit-and-tag,
35851         modules/gnu-web-doc-update, modules/maintainer-makefile
35852         (Description): Point to readme-release.
35854 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35856         maint.mk: fix VPATH issues.
35857         * top/maint.mk (news-check): GNU Make understand $< very well.
35858         (release-prep): NEWS is in $(srcdir).
35860 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35862         readme-release: require the promoted modules.
35863         * modules/readme-release (Depends-on): Add
35864         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35865         in this text.
35867 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35868             Bruno Haible  <bruno@clisp.org>
35870         error, strerror-override: Support mingw64 from Fedora 17.
35871         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35872         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35873         EINPROGRESS.
35874         * lib/strerror-override.h (strerror_override): Test it.
35875         * lib/strerror-override.c (strerror_override): Likewise.
35876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35878 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35879             Bruno Haible  <bruno@clisp.org>
35881         error, strerror-override: Support mingw64 from Fedora 17.
35882         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35883         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35884         * lib/strerror-override.h (strerror_override): Test it.
35885         * lib/strerror-override.c (strerror_override): Likewise.
35887 2012-06-03  Bruno Haible  <bruno@clisp.org>
35889         error, strerror-override: Support new errno values from POSIX:2008.
35890         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35891         ENOTRECOVERABLE.
35892         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35893         platforms.
35894         * lib/strerror-override.c (strerror_override): Conditionalize the
35895         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35896         * lib/strerror-override.h (strerror_override): Declare also if
35897         GNULIB_defined_EOWNERDEAD is defined.
35898         * tests/test-errno.c (e130, e131): New variables.
35899         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35900         ENOTRECOVERABLE.
35901         Reported by Paolo Bonzini.
35903 2012-05-31  Jim Meyering  <meyering@redhat.com>
35905         savewd: add missing dependency on sys_wait module
35906         * modules/savewd (Depends-on): Add sys_wait, needed at least
35907         for MSVC.  Report and suggested change by Michael Goffioul.
35909 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35911         system-quote-tests: port to CentOS 5
35912         Problem reported by Tom G. Christensen in
35913         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35914         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35916 2012-05-29  Jim Meyering  <meyering@redhat.com>
35918         maint: fix typos in comments and ChangeLog
35919         Culprits identified and fixed mostly automatically using these commands:
35920         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35921         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35922         using http://github.com/lyda/misspell-check
35923         * ChangeLog: Fix typos.
35924         * doc/solaris-versions: Likewise.
35925         * lib/regexec.c (re_search_stub): Likewise.
35926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35928 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35930         manywarnings: remove duplicate -Wmultichar entry
35931         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35932         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35933         so keep the entry marked as documented.
35935 2012-05-27  Karl Berry  <karl@gnu.org>
35937         * config/srclist.txt (mktime.c): remove last libc sync,
35938         perhaps just temporarily.
35940 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35942         regex: don't assume uint64_t or uint32_t
35943         * lib/regcomp.c (init_word_char): Don't assume that the types
35944         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35945         them, and on some 32-bit compilers there is no uint64_t.
35946         Problem reported by Gianluigi Tiesi in
35947         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35949 2012-05-25  Jim Meyering  <meyering@redhat.com>
35951         maint.mk: add strncpy-prohibiting syntax-check rule
35952         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35954 2012-05-24  Jim Meyering  <meyering@redhat.com>
35956         maint.mk: compute $(gpg_key_ID) more portably
35957         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35958         That use of sed is not portable to some fringe systems.
35959         Reported by Paul Eggert in
35960         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35962 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35964         mktime: sync from glibc
35965         * config/srclist.txt: Uncomment mktime.c.
35966         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35967         First, indent with tabs, since glibc uses tabs and doesn't want to
35968         change and we'd rather be identical to glibc.  Also, two small
35969         coding changes:
35970         (isdst_differ): Use &&, not &, as && is the usual style.
35971         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35972         for clarity.
35974 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35976         announce-gen: du -h is more portable than du --human
35977         * build-aux/announce-gen (sizes): Invoke du with -h instead
35978         of --human.  Accept leading white space in its output.
35980 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35982         announce-gen: Improve diagnostics.
35983         * build-aux/announce-gen: When parsing command line options,
35984         prefer "announce-gen: option --release-type requires an argument"
35985         to "Option release-type requires an argument".
35987 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35989         maint.mk: gpg_key_ID: use sed more portably
35990         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35991         the closing brace.
35992         (refresh-po): Fuse two sed invocations into one.
35994 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35996         gitlog-to-changelog: support the log message format used in Bison.
35997         * build-aux/gitlog-to-changelog: Support --strip-tab and
35998         --strip-cherry-picked.
36000 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
36002         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
36003         the rest of the current time slice to another thread in the current
36004         process. So if the thread that feeds the file decscriptor we're
36005         polling is not in the current process, we get busy-waiting.
36006         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
36007         Patch from Theodore Leblond.
36008         * lib/select.c: Split polling out of the loop that sets the output
36009         fd_sets.  Check for zero result and loop if the wait timeout is
36010         infinite.
36012 2012-05-21  Simon Josefsson  <simon@josefsson.org>
36014         select: Fix build error on IRIX 6.5.
36015         * lib/select.c: Include stddef.h for NULL.
36017 2012-05-21  Simon Josefsson  <simon@josefsson.org>
36019         gc: fix libgcrypt detection on older machines.
36020         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
36021         copyright years because the file has been distributed every year
36022         since it was created.
36024 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
36026         crypto: fix bug in large buffer handling
36027         Problem reported by Serge Belyshev for glibc in
36028         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
36029         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
36030         * lib/md4.c (md4_process_block):
36031         * lib/md5.c (md5_process_block):
36032         * lib/sha1.c (sha1_process_block):
36033         * lib/sha256.c (sha256_process_block):
36034         Don't assume the buffer length is less than 2**32.
36035         * lib/sha512.c (sha512_process_block): Likewise.
36036         Here, the bug is present only in the rare case where the host does
36037         not support uint64_t or where size_t is wider than 64 bits.
36038         Use u64size to work around the problems.
36039         * lib/u64.h (u64size): New macro.
36041 2012-05-15  Pádraig Brady  <P@draigBrady.com>
36043         fsusage: fix block size returned on older Linux 2.6
36045         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
36046         which is available since Linux 2.6.
36047         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
36048         when the member is available so it can be used as a fallback.
36049         * doc/posix-functions/statvfs.texi: Mention the hang issue
36050         on Linux < 2.6.36.
36052 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36054         bootstrap: suppress stderr chatter
36055         * build-aux/bootstrap (insert_sorted_if_absent, main program):
36056         Omit unnecessary chatter to stderr.  The main program chatter
36057         was there only inadvertantly.
36059         bootstrap: .gitignore files created by autopoint, libtool
36060         I ran into this problem when bootstrapping the latest diffutils.
36061         After './bootstrap', 'git status' reported lots of untracked files
36062         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
36063         autopoint and do not need to be version-controlled.
36064         * build-aux/bootstrap: Put into .gitignore the files that
36065         autopoint and libtool create, by keeping track of files that exist
36066         after but not before these programs are run.
36067         (version_controlled_file): Move up.  2nd arg is now full file
36068         name, not base name; this is more convenient.  Put CVS at the end,
36069         as it's now somewhat deprecated.
36071 2012-05-14  Jim Meyering  <meyering@redhat.com>
36073         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
36074         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
36075         definition.  Reported by Bruno Haible.
36077 2012-05-13  Bruno Haible  <bruno@clisp.org>
36078             Paul Eggert  <eggert@cs.ucla.edu>
36080         binary-io: Define set_binary_mode function.
36081         * lib/binary-io.h (set_binary_mode): New function.
36082         (SET_BINARY): Define in terms of set_binary_mode.
36083         * modules/binary-io (configure.ac): Require AC_C_INLINE.
36084         * tests/test-binary-io.c (main): Accept an argument, and test either
36085         set_binary_mode or SET_BINARY depending on the argument.
36086         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
36087         argument. Clean up also t-bin-out0.tmp.
36089 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
36091         bootstrap: take advantage of POSIX shell features
36093         The 'bootstrap' script offered by Gnulib script already uses POSIX
36094         shell features (like $((...)) arithmetic expansions) that are not
36095         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
36096         means that bootstrap must already be run using a proper POSIX shell,
36097         which will thus provide more features, like ${var#pattern} parameter
36098         expansion or inversion of a command exit status with '!'.  We can
36099         thus use these features to improve the clarity and the performances
36100         of the bootstrap script.
36102         Suggested by Eric Blake.
36104         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
36105         of sed/expr plus command substitutions, to save some forks.  While
36106         we are at it, prefer the POSIX $(...) form of command substitution,
36107         rather than the legacy form `...` (since the former is visually
36108         clearer and interacts better with quoting), and prefer the idiom:
36109           "if ! CMD; then ACTION ..."
36110         over the idiom:
36111           "if CMD; then :; else ACTION ..."
36112         which was required by legacy Bourne shells not supporting '!'.
36114 2012-05-12  Bruno Haible  <bruno@clisp.org>
36116         system-quote: Add more comments.
36117         * lib/system-quote.h: Add more comments about wilcards and limitations.
36118         Suggested by Eli Zaretskii <eliz@gnu.org>.
36120         sh-quote, system-quote: Add comments about wildcards.
36121         * lib/sh-quote.h: Clarify what happens with wildcard characters.
36122         * lib/system-quote.h: Likewise.
36123         Reported by Eli Zaretskii <eliz@gnu.org>.
36125 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
36127         fsusage: check for GNU/Linux statvfs problem dynamically
36128         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
36129         Define STAT_STATFS2_BSIZE too, since in this case the code now
36130         checks dynamically whether statvfs is reliable, falling back on
36131         Linux-style statfs otherwise.
36132         (statvfs_works): New function, for dynamically testing statvfs.
36133         (get_fs_usage) [STAT_STATVFS]: Use it.
36134         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
36135         statvfs on GNU/Linux hosts, since it's now done dynamically.
36137 2012-05-10  Bruno Haible  <bruno@clisp.org>
36139         system-quote, execute, spawn-pipe: Escape '?' on Windows.
36140         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
36141         '?' character.
36142         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
36143         * tests/test-system-quote-main.c (check_all): Check also strings like
36144         "??????????".
36145         Reported by Eli Zaretskii <eliz@gnu.org>.
36147 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36149         _Noreturn: port config.h to gcc -Wundef
36150         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
36151         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
36152         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
36154 2012-05-10  Bruno Haible  <bruno@clisp.org>
36156         system-quote: Refactor.
36157         * lib/system-quote.h (system_quote_copy): Fix comment.
36158         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
36159         New functions, extracted from system_quote_copy.
36160         (system_quote_length, system_quote_copy): Use these functions.
36161         Reported by Paul Eggert.
36163 2012-05-08  Bruno Haible  <bruno@clisp.org>
36165         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
36166         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
36168 2012-05-08  Bruno Haible  <bruno@clisp.org>
36170         Tests for module 'system-quote'.
36171         * modules/system-quote-tests: New file.
36172         * tests/test-system-quote.sh: New file.
36173         * tests/test-system-quote-main.c: New file.
36174         * tests/test-system-quote-child.c: New file.
36176         New module 'system-quote'.
36177         * lib/system-quote.h: New file.
36178         * lib/system-quote.c: New file.
36179         * modules/system-quote: New file.
36181 2012-05-08  Bruno Haible  <bruno@clisp.org>
36183         sh-quote: Make C++ safe and allow multiple inclusion.
36184         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
36185         declarations in extern "C".
36187 2012-05-08  Bruno Haible  <bruno@clisp.org>
36189         sh-quote tests: Make tests stricter.
36190         * tests/test-sh-quote.c (check_one): Check the return value of
36191         shell_quote_copy.
36192         (main): Check a string with a CR character. Check a string that
36193         contains UCHAR_MAX.
36195 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
36197         warnings.m4: provide a means to specify the program to compile.
36198         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
36199         (gl_WARN_ADD): here.
36200         Use gl_AS_VAR_APPEND.
36201         Support an argument to specify the program to compile.
36202         (gl_WARN_ADD): Accept an argument to specify the program to compile.
36203         AC_SUBST the WARN_CFLAGS when they are used.
36204         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
36205         leave this to gl_WARN_ADD.
36207 2012-05-08  Eric Blake  <eblake@redhat.com>
36209         doc: recommendations on gettext version
36210         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
36211         choice between versions.
36212         * DEPENDENCIES (gettext): Cover both approaches.
36214 2012-05-08  Jim Meyering  <meyering@redhat.com>
36216         init.sh: explain why EXEEXT support uses aliases rather than functions
36217         * tests/init.sh: Add a comment.
36219         init.sh: don't let bash aliases interfere with tests
36220         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
36221         is bash.  This avoids problems for those who alias standard commands to
36222         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
36223         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
36225 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36227         stdint: be more consistent with glibc, SunOS libc
36228         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
36229         (gl_int_fast16_t, gl_uint_fast16_t)
36230         (gl_int_fast32_t, gl_uint_fast32_t)
36231         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
36232         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
36233         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36234         Be consistent with glibc by default, and with SunOS 5.10 and later
36235         if __sun is defined.  This lessens the likelihood of clashes if
36236         code compiled for older hosts is combined with code compiled for
36237         newer ones.  Problem reported by Niels Möller in
36238         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
36240 2012-05-07  Eric Blake  <eblake@redhat.com>
36242         isatty: relax license to LGPLv2+
36243         * modules/isatty (License): Relax license.
36245 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36247         stat-size: comment fix
36248         * lib/stat-size.h: Remove obsolete comment about indenting.
36250 2012-05-06  Bruno Haible  <bruno@clisp.org>
36252         Tests for module 'sh-quote'.
36253         * modules/sh-quote-tests: New file.
36254         * tests/test-sh-quote.c: New file.
36256 2012-05-06  Bruno Haible  <bruno@clisp.org>
36258         sh-quote: Improve shell_quote_argv's signature.
36259         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
36260         * lib/sh-quote.c (shell_quote_argv): Likewise.
36262 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36264         stdint: document issues with int_fast8_t etc.
36265         * doc/posix-headers/stdint.texi (stdint.h): Say that other
36266         stdint.h substitutes may define these types differently.  See
36267         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
36269 2012-05-05  Bruno Haible  <bruno@clisp.org>
36271         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
36272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
36273         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
36274         or 'guessing no (mishandles large arguments)'.
36276 2012-05-05  Bruno Haible  <bruno@clisp.org>
36278         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
36279         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
36280         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36281         set gl_cv_func_link_follows_symlink to "guessing no".
36283 2012-05-05  Bruno Haible  <bruno@clisp.org>
36285         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
36286         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
36287         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
36288         "guessing no".
36289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
36291 2012-05-05  Bruno Haible  <bruno@clisp.org>
36293         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
36294         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
36295         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36296         set gl_cv_struct_dirent_d_ino to "guessing yes".
36298 2012-05-05  Bruno Haible  <bruno@clisp.org>
36300         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
36301         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
36302         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
36303         "guessing yes".
36305 2012-05-05  Bruno Haible  <bruno@clisp.org>
36307         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
36308         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
36309         compiling to a glibc system, set gl_cv_func_signbit and
36310         gl_cv_func_signbit_gcc to "guessing yes".
36312 2012-05-05  Bruno Haible  <bruno@clisp.org>
36314         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
36315         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
36316         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
36317         to "guessing yes".
36318         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
36319         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
36321 2012-05-05  Bruno Haible  <bruno@clisp.org>
36323         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
36324         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
36325         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
36326         gl_cv_func_realpath_works to "guessing yes".
36328 2012-05-05  Bruno Haible  <bruno@clisp.org>
36330         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
36331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
36332         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
36334 2012-05-04  Bruno Haible  <bruno@clisp.org>
36336         Tweak last commit.
36337         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
36338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36340 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
36342         unistd_h: make it easier to avoid sys_types_h
36343         This is useful for Emacs, which has its own method of porting to
36344         Windows, and which therefore does not need the sys_types_h module.
36345         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
36346         code moved here from gl_SYS_TYPES_H.
36347         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
36348         using the code directly.
36349         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
36350         gl_SYS_TYPES_H.
36351         * modules/sys_types (Files):
36352         * modules/unistd (Files): Add m4/off_t.m4.
36354 2012-05-03  Bruno Haible  <bruno@clisp.org>
36356         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
36357         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
36358         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
36359         "guessing yes" or "guessing no".
36360         (gl_FUNC_LSTAT): Update.
36361         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
36362         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36363         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
36365 2012-05-03  Bruno Haible  <bruno@clisp.org>
36367         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
36368         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
36369         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
36370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
36371         cross-compiling, choose the first alternative on glibc systems.
36372         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
36374 2012-05-03  Bruno Haible  <bruno@clisp.org>
36376         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
36377         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
36378         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
36380 2012-05-03  Bruno Haible  <bruno@clisp.org>
36382         chown: Avoid "guessing no" when cross-compiling to glibc systems.
36383         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
36385 2012-05-03  Bruno Haible  <bruno@clisp.org>
36387         Avoid "guessing no" guesses when cross-compiling to glibc systems.
36388         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
36389         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
36390         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
36391         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
36392         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
36393         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
36394         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
36395         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
36396         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
36397         compiling to glibc systems, set gl_cv_func_chown_slash_works,
36398         gl_cv_func_chown_ctime_works to "guessing yes".
36399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
36400         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
36401         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
36402         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
36403         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
36404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
36405         compiling to glibc systems, set gl_cv_func_open_directory_works to
36406         "guessing yes".
36407         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
36408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
36409         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
36410         "guessing yes".
36411         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
36412         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
36413         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
36414         compiling to glibc systems, set gl_cv_func_floorf_ieee to
36415         "guessing yes".
36416         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
36417         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
36418         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
36419         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
36420         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
36421         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
36422         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
36423         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
36424         "guessing yes".
36425         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
36426         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
36427         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
36428         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
36429         "guessing yes".
36430         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
36431         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
36432         "guessing yes".
36433         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
36434         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
36435         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
36436         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
36437         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
36438         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
36439         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
36440         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
36441         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
36442         compiling to glibc systems, set gl_cv_func_log10f_ieee to
36443         "guessing yes".
36444         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
36445         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
36446         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
36447         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
36448         "guessing yes".
36449         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
36450         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
36451         "guessing yes".
36452         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
36453         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
36454         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
36455         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
36456         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
36457         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
36458         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
36459         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
36460         compiling to glibc systems, set gl_cv_func_mkfifo_works to
36461         "guessing yes".
36462         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
36463         compiling to glibc systems, set gl_cv_func_mknod_works to
36464         "guessing yes".
36465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
36466         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
36467         "guessing yes".
36468         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
36469         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
36470         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
36471         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
36472         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
36473         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
36474         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
36475         compiling to glibc systems, set gl_cv_func_svid_putenv to
36476         "guessing yes".
36477         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
36478         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
36479         "guessing yes".
36480         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
36481         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
36482         "guessing yes".
36483         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
36484         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
36485         to "guessing yes".
36486         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
36487         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
36488         to "guessing yes".
36489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
36490         compiling to glibc systems, set gl_cv_func_rmdir_works to
36491         "guessing yes".
36492         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
36493         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
36494         gl_cv_func_unlink_parent_fails to "guessing yes".
36495         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
36496         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
36497         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
36498         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
36499         gl_cv_func_rename_dest_works to "guessing yes".
36500         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
36501         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
36502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
36503         compiling to glibc systems, set gl_cv_func_roundf_ieee to
36504         "guessing yes".
36505         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
36506         compiling to glibc systems, set gl_cv_func_roundl_ieee to
36507         "guessing yes".
36508         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
36509         compiling to glibc systems, set gl_cv_func_setenv_works to
36510         "guessing yes".
36511         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
36512         compiling to glibc systems, set gl_cv_func_unsetenv_works to
36513         "guessing yes".
36514         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
36515         compiling to glibc systems, set gl_cv_func_sleep_works to
36516         "guessing yes".
36517         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
36518         compiling to glibc systems, set gl_cv_func_stat_file_slash to
36519         "guessing yes".
36520         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
36521         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
36522         "guessing yes".
36523         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
36524         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
36525         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
36526         compiling to glibc systems, set gl_cv_func_truncf_ieee to
36527         "guessing yes".
36528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
36529         compiling to glibc systems, set gl_cv_func_truncl_ieee to
36530         "guessing yes".
36531         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
36532         compiling to glibc systems, set gl_cv_func_usleep_works to
36533         "guessing yes".
36534         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
36535         compiling to glibc systems, set gl_cv_func_futimesat_works to
36536         "guessing yes".
36538 2012-05-03  Bruno Haible  <bruno@clisp.org>
36540         Say "guessing yes" or "guessing no" when cross-compiling.
36541         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
36542         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
36543         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
36544         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
36545         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
36546         am_cv_func_working_getline to "guessing yes" or "guessing no".
36547         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
36548         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
36549         (gl_FUNC_MEMMEM): When cross-compiling, set
36550         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
36551         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
36552         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
36553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
36554         set gl_cv_func_strcasestr_works_always to "guessing yes" or
36555         "guessing no".
36556         (gl_FUNC_STRCASESTR): When cross-compiling, set
36557         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
36558         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
36559         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
36560         (gl_FUNC_STRSTR): When cross-compiling, set
36561         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
36562         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
36563         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
36564         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
36565         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
36567 2012-05-01  Bruno Haible  <bruno@clisp.org>
36569         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
36570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
36571         * build-aux/reloc-ldflags: Likewise.
36572         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
36574 2012-05-01  Bruno Haible  <bruno@clisp.org>
36576         gnulib-tool: Remove transitional code.
36577         * gnulib-tool: Don't warn about --import with 0 arguments any more.
36578         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36580 2012-05-01  Bruno Haible  <bruno@clisp.org>
36582         getcwd: Fix misindentation.
36583         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
36585 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36587         exclude: process exclude and include directives in order
36588         This restores the pre-2009 behavior, and is part of a fix of a
36589         grep bug reported by Quentin Arce in
36590         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36591         * lib/exclude.c (struct exclude): Remove 'tail' member.
36592         (new_exclude_segment): Prepend the new segment instead of appending.
36593         Return void, since that's now more convenient.
36594         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36595         (file_name_matches): Renamed from excluded_file_name_p.
36596         (file_pattern_matches, file_name_matches):
36597         Return true if the pattern matches, not if it excludes.
36598         All callers changed.
36599         (excluded_file_name): Process the list in reverse order;
36600         since the list is now reversed this restores the pre-2009 behavior.
36601         (add_exclude): Adjust to new reversed-order list.  Use local var
36602         rather than macro, for clarity.
36603         * tests/test-exclude7.sh: Adjust to corrected behavior.
36605         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36606         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36607         it's not possible here.  Handle the case of \ at end of pattern
36608         without dumping core.
36609         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36611         _Noreturn: future-proof non-GNU and non-MSVC compilers
36612         * build-aux/snippet/_Noreturn.h (_Noreturn):
36613         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36614         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36615         C11 or later.  This is more likely to work with random future C
36616         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36617         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36619         exclude: handle wildcards with FNM_EXTMATCH
36620         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36621         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36622         comment that "has wildcards" really means "has or may have
36623         wildcards".  Simplify by avoiding the need to call strcspn.
36625 2012-04-29  Bruno Haible  <bruno@clisp.org>
36627         gnulib-tool: Fix list of authors.
36628         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36630 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36632         bootstrap: support Automake-NG in $buildreq
36633         * bootstrap (check_versions): Handle automake and aclocal from
36634         Automake-NG specially.  They can be specified as respectively
36635         the "automake-ng" and "aclocal-ng" requirements.
36637 2012-04-25  Eric Blake  <eblake@redhat.com>
36639         bootstrap: only force latest Makefile.in.in for gettext module
36640         * build-aux/bootstrap (with_gettext): Only install latest
36641         Makefile.in.in for projects requesting bleeding edge gettext.
36643 2012-04-22  Bruno Haible  <bruno@clisp.org>
36645         doc: Mention reason for replacement on glibc/Linux systems.
36646         * doc/posix-functions/dprintf.texi: Mention the problem with special
36647         'long double' values.
36648         * doc/posix-functions/fprintf.texi: Likewise.
36649         * doc/posix-functions/printf.texi: Likewise.
36650         * doc/posix-functions/snprintf.texi: Likewise.
36651         * doc/posix-functions/sprintf.texi: Likewise.
36652         * doc/posix-functions/vdprintf.texi: Likewise.
36653         * doc/posix-functions/vfprintf.texi: Likewise.
36654         * doc/posix-functions/vprintf.texi: Likewise.
36655         * doc/posix-functions/vsnprintf.texi: Likewise.
36656         * doc/posix-functions/vsprintf.texi: Likewise.
36657         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36658         platforms with F_DUPFD_CLOEXEC problems.
36659         * doc/posix-functions/glob.texi: Mention which platforms are affected
36660         by the problem with symbolic links.
36661         * doc/posix-functions/linkat.texi: Mention the problem with
36662         AT_SYMLINK_FOLLOW on Linux.
36664 2012-04-22  Bruno Haible  <bruno@clisp.org>
36666         pwrite: Don't replace on all platforms.
36667         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36669 2012-04-22  Bruno Haible  <bruno@clisp.org>
36671         rint* tests: Avoid gcc warnings.
36672         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36673         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36674         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36676 2012-04-21  Bruno Haible  <bruno@clisp.org>
36678         users.txt: Update.
36679         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36680         switched from CVS to git, bzr, or svn.
36682 2012-04-21  Bruno Haible  <bruno@clisp.org>
36684         Large File Support for native Windows platforms.
36686         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36687         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36689         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36690         type.
36691         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36692         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36693         * doc/posix-headers/sys_types.texi: Mention the effect of the
36694         'largefile' module.
36696         * lib/fcntl.in.h: Add comments about off_t.
36697         * modules/fcntl-h (Depends-on): Add sys_types.
36699         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36700         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36701         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36702         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36703         * modules/unistd (Depends-on): Add sys_types.
36704         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36706         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36707         instead of lseek.
36708         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36709         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36710         * modules/lseek (Depends-on): Add sys_types.
36712         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36713         msvc-nothrow.h.
36714         (SetFileSize): New function.
36715         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36716         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36717         if Large File Support is requested.
36718         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36719         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36721         * lib/stdio.in.h: Add comments about off_t.
36722         * modules/stdio (Depends-on): Add sys_types.
36724         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36725         instead of ftello.
36726         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36727         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36728         (gl_PREREQ_FTELLO): New macro.
36729         * modules/ftello (Depends-on): Add sys_types.
36730         (configure.ac): Incoke gl_PREREQ_FTELLO.
36732         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36733         instead of fseeko.
36734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36735         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36736         (gl_PREREQ_FSEEKO): New macro.
36737         * modules/fseeko (Depends-on): Add sys_types.
36738         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36740         * lib/sys_stat.in.h: Add comments about off_t.
36741         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36742         64-bit integer for st_size in 'struct stat'.
36743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36744         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36745         * modules/sys_stat (Depends-on): Add sys_types.
36746         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36748         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36749         instead of stat or _stat.
36751         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36752         'struct _stati64' instead of fstat and 'struct stat'.
36753         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36754         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36756         Reported by Ray Satiro <raysatiro@yahoo.com>.
36758 2012-04-19  Eric Blake  <eblake@redhat.com>
36760         bootstrap: accommodate older libtool
36761         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36762         Reported by Daniel P. Berrange.
36764 2012-04-19  Jim Meyering  <meyering@redhat.com>
36766         announce-gen: avoid failure due to lack of Digest::SHA1
36767         Even with the preferred Digest::SHA available, this script
36768         would fail when the backup module, Digest::SHA1, was not installed.
36769         * build-aux/announce-gen: Quote the conditional use of "use".
36770         Reported by Reuben Thomas in:
36771         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36773         bootstrap: don't let a user's CDPATH setting affect this script
36774         When CDPATH is set, cd will sometimes generate output.
36775         When "cd" is run in a subshell whose output matters, that
36776         surprising-to-some output can cause malfunction.
36777         Unsetting CDPATH turns off this shell "feature."
36778         * build-aux/bootstrap (CDPATH): Unset.
36779         Reported by Reuben Thomas in:
36780         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36781         and inspired by his patch here:
36782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36784 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36785         and Jim Meyering  <meyering@redhat.com>
36787         maint.mk: catch "see @xref{}" and similar
36788         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36789         prohibit "See also @xref{", "Also see @pxref{", and similar.
36791 2012-04-16  Jim Meyering  <meyering@redhat.com>
36793         bootstrap: really use gnulib's po/Makefile.in.in
36794         * build-aux/bootstrap: Correct the source file name in previous change.
36795         Reported by Akim Demaille.
36797         configmake: correct minor inconsistency in Makefile rule
36798         * modules/configmake (Makefile.am): All other rules like this one
36799         run the final "mv -f ..." in the same backslash-continued command
36800         as the one that does everything else.  This one put the mv -f ...
36801         command on a separate, non-backslash-continued line.
36802         Make it like the others.
36804         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36805         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36806         the one from gettext.  Reported by Akim Demaille.
36808 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36810         Fix recursion of install-* into po directories.
36811         Bison's install-pdf bug reported by Hans Aberg at
36812         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36813         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36814         (install-info, install-pdf, install-ps): New targets.
36816 2012-04-16  Jim Meyering  <meyering@redhat.com>
36818         maint: avoid spurious "make sc_maint" failure
36819         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36820         exempt all *.class file names, for lib/javaversion.class.
36822 2012-04-15  Bruno Haible  <bruno@clisp.org>
36824         lseek: Make configure test independent of environment.
36825         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36826         Windows, we know that lseek() on pipes is broken; skip the runtime
36827         test.
36829 2012-04-14  Bruno Haible  <bruno@clisp.org>
36831         stat: Bypass buggy override in mingw64.
36832         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36833         * lib/stat.c (stat) [mingw64]: Define to _stat.
36834         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36836 2012-04-14  Bruno Haible  <bruno@clisp.org>
36838         pathmax: Fix compilation error on MSVC 9.
36839         * modules/pathmax (Depends-on): Add unistd.
36841 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36843         README: document pointer comparison assumption
36844         * README (Portability guidelines): Document assumption about
36845         pointer comparisons, in response to a recent bug-gnulib comment by
36846         Jeffrey Kegler.
36848 2012-04-12  Bruno Haible  <bruno@clisp.org>
36850         Tests for module 'getrusage'.
36851         * modules/getrusage-tests: New file.
36852         * tests/test-getrusage.c: New file.
36854         New module 'getrusage'.
36855         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36856         warn-on-use.h.
36857         (getrusage): New declaration.
36858         * lib/getrusage.c: New file.
36859         * m4/getrusage.m4: New file.
36860         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36861         is declared.
36862         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36863         HAVE_GETRUSAGE.
36864         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36865         snippet/c++defs, snippet/warn-on-use.
36866         (Makefile.am): Update generation of sys/resource.h. Substitute
36867         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36868         * modules/getrusage: New file.
36869         * doc/posix-functions/getrusage.texi: Mention the new module.
36871 2012-04-12  Bruno Haible  <bruno@clisp.org>
36873         Tests for module 'sys_resource'.
36874         * modules/sys_resource-tests: New file.
36875         * tests/test-sys_resource.c: New file.
36877         New module 'sys_resource'.
36878         * lib/sys_resource.in.h: New file.
36879         * m4/sys_resource_h.m4: New file.
36880         * modules/sys_resource: New file.
36881         * doc/posix-headers/sys_resource.texi: Mention the new module.
36883 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36885         ioctl: Fix compilation error on mingw.
36886         * lib/ioctl.c: Include <windows.h>.
36887         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36889 2012-04-04  Jim Meyering  <meyering@redhat.com>
36891         regex: correct #pragma guard expression
36892         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36893         not 4.3.  Correct its cpp guard expression.
36895 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36897         regex: remove unnecessary type punning
36898         Problem reported by Vladimir Serbinenko in
36899         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36900         * lib/regex.h (struct re_pattern_buffer): Change the type of
36901         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36902         Fix comment to match code.
36903         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36904         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36905         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36906         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36907         (set_regs):
36908         Omit no-longer-necessary casts.
36910 2012-04-03  Bruno Haible  <bruno@clisp.org>
36912         Tests for module 'ilogbl'.
36913         * modules/ilogbl-tests: New file.
36914         * tests/test-ilogbl.c: New file.
36916         New module 'ilogbl'.
36917         * lib/math.in.h (ilogbl): New declaration.
36918         * lib/ilogbl.c: New file.
36919         * m4/ilogbl.m4: New file.
36920         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36922         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36923         Split sed invocation, to avoid the limit of 100 substitutions of
36924         HP-UX 'sed'.
36925         * modules/ilogbl: New file.
36926         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36927         * doc/posix-functions/ilogbl.texi: Mention the new module.
36929 2012-04-03  Bruno Haible  <bruno@clisp.org>
36931         Tests for module 'ilogbf'.
36932         * modules/ilogbf-tests: New file.
36933         * tests/test-ilogbf.c: New file.
36935         New module 'ilogbf'.
36936         * lib/math.in.h (ilogbf): New declaration.
36937         * lib/ilogbf.c: New file.
36938         * m4/ilogbf.m4: New file.
36939         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36941         REPLACE_ILOGBF.
36942         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36943         REPLACE_ILOGBF.
36944         * modules/ilogbf: New file.
36945         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36946         * doc/posix-functions/ilogbf.texi: Mention the new module.
36948 2012-04-03  Bruno Haible  <bruno@clisp.org>
36950         Tests for module 'ilogb'.
36951         * modules/ilogb-tests: New file.
36952         * tests/test-ilogb.c: New file.
36953         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36954         tests/test-logb-ieee.h.
36956         New module 'ilogb'.
36957         * lib/math.in.h (ilogb): New declaration.
36958         * lib/ilogb.c: New file.
36959         * m4/ilogb.m4: New file.
36960         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36962         REPLACE_ILOGB.
36963         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36964         REPLACE_ILOGB.
36965         * modules/ilogb: New file.
36966         * tests/test-math-c++.cc: Check the declaration of ilogb.
36967         * doc/posix-functions/ilogb.texi: Mention the new module.
36969 2012-04-03  Bruno Haible  <bruno@clisp.org>
36971         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36972         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36973         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36974         (main): Check their values.
36975         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36976         problem.
36978 2012-04-03  Bruno Haible  <bruno@clisp.org>
36980         Tests for module 'logbl-ieee'.
36981         * modules/logbl-ieee-tests: New file.
36982         * tests/test-logbl-ieee.c: New file.
36984         New module 'logbl-ieee'.
36985         * modules/logbl-ieee: New file.
36987         Tests for module 'logb-ieee'.
36988         * modules/logb-ieee-tests: New file.
36989         * tests/test-logb-ieee.c: New file.
36991         New module 'logb-ieee'.
36992         * modules/logb-ieee: New file.
36994         Tests for module 'logbf-ieee'.
36995         * modules/logbf-ieee-tests: New file.
36996         * tests/test-logbf-ieee.c: New file.
36997         * tests/test-logb-ieee.h: New file.
36999         New module 'logbf-ieee'.
37000         * modules/logbf-ieee: New file.
37002 2012-04-03  Bruno Haible  <bruno@clisp.org>
37004         Tests for module 'logbl'.
37005         * modules/logbl-tests: New file.
37006         * tests/test-logbl.c: New file.
37008         New module 'logbl'.
37009         * lib/math.in.h (logbl): New declaration.
37010         * lib/logbl.c: New file.
37011         * m4/logbl.m4: New file.
37012         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
37013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
37014         REPLACE_LOGBL.
37015         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
37016         REPLACE_LOGBL.
37017         * modules/logbl: New file.
37018         * tests/test-math-c++.cc: Check the declaration of logbl.
37019         * doc/posix-functions/logbl.texi: Mention the new module.
37021 2012-04-02  Bruno Haible  <bruno@clisp.org>
37023         Tests for module 'logbf'.
37024         * modules/logbf-tests: New file.
37025         * tests/test-logbf.c: New file.
37027         New module 'logbf'.
37028         * lib/math.in.h (logbf): New declaration.
37029         * lib/logbf.c: New file.
37030         * m4/logbf.m4: New file.
37031         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
37032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
37033         REPLACE_LOGBF.
37034         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
37035         REPLACE_LOGBF.
37036         * modules/logbf: New file.
37037         * tests/test-math-c++.cc: Check the declaration of logbf.
37038         * doc/posix-functions/logbf.texi: Mention the new module.
37040 2012-04-02  Bruno Haible  <bruno@clisp.org>
37042         logb tests: More tests.
37043         * tests/test-logb.h: New file, based on tests/test-logb.c and
37044         tests/test-frexp.h.
37045         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
37046         (main): Just invoke test_function.
37047         * modules/logb-tests (Files): Add tests/test-logb.h,
37048         tests/minus-zero.h, tests/randomd.c.
37049         (Makefile.am): Add randomd.c to test_logb_SOURCES.
37051         logb: Provide replacement and workarounds.
37052         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
37053         is 1.
37054         * lib/logb.c: New file.
37055         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
37056         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
37057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
37058         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
37059         * modules/logb (Files): Add lib/logb.c.
37060         (Depends-on): Add isfinite, frexp, isnand.
37061         (configure.ac): Compile the replacement code logb.c if needed.
37062         * tests/test-math-c++.cc: Check the declaration of logb.
37063         * doc/posix-functions/logb.texi: Mention the replacement and the bug
37064         with subnormal numbers.
37066 2012-04-02  Bruno Haible  <bruno@clisp.org>
37068         log10* tests: Speed up.
37069         * tests/test-log10.h (test_function): Reduce amount of random numbers
37070         to test.
37072 2012-04-01  Bruno Haible  <bruno@clisp.org>
37074         logf-ieee: Fix test whether logf works.
37075         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
37077 2012-04-01  Bruno Haible  <bruno@clisp.org>
37079         log10l: Work around log10l-ieee test failure on IRIX 6.5.
37080         * lib/log10l.c: Include <float.h>
37081         (log10l): On IRIX, normalize the +Infinity value.
37082         * modules/log10l (Depends-on): Add 'float'.
37083         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
37084         +Infinity.
37086         log10f-ieee: Work around test failure on NetBSD 5.1.
37087         * m4/log10f-ieee.m4: New file.
37088         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
37089         test whether log10f works with a negative argument. Replace it if not.
37090         * lib/log10f.c (log10f): For negative arguments, return NaN.
37091         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
37092         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
37093         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
37095         log10f-ieee: Work around test failure on Solaris 9.
37096         * modules/log10f-ieee (Depends-on): Add log10-ieee.
37097         (configure.ac): Require gl_FUNC_LOG10F.
37099         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37100         * m4/log10-ieee.m4: New file.
37101         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
37102         whether log10 works with a negative argument. Replace it if not.
37103         * lib/log10.c (log10): For negative arguments, return NaN.
37104         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
37105         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
37106         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
37108         Tests for module 'log10l-ieee'.
37109         * modules/log10l-ieee-tests: New file.
37110         * tests/test-log10l-ieee.c: New file.
37112         New module 'log10l-ieee'.
37113         * modules/log10l-ieee: New file.
37115         Tests for module 'log10-ieee'.
37116         * modules/log10-ieee-tests: New file.
37117         * tests/test-log10-ieee.c: New file.
37119         New module 'log10-ieee'.
37120         * modules/log10-ieee: New file.
37122         Tests for module 'log10f-ieee'.
37123         * modules/log10f-ieee-tests: New file.
37124         * tests/test-log10f-ieee.c: New file.
37125         * tests/test-log10-ieee.h: New file.
37127         New module 'log10f-ieee'.
37128         * modules/log10f-ieee: New file.
37130 2012-04-01  Bruno Haible  <bruno@clisp.org>
37132         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
37133         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
37134         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
37135         workaround.
37136         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
37137         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
37138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
37139         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
37140         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
37141         (Depends-on): Update conditions.
37142         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
37143         IRIX 6.5, OSF/1 5.1 problems.
37145 2012-04-01  Bruno Haible  <bruno@clisp.org>
37147         log10f: Work around OSF/1 5.1 bug.
37148         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
37149         * lib/log10f.c (log10f): If logf exists, use it and provide just the
37150         workaround.
37151         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
37152         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
37153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
37154         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
37155         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
37156         (Depends-on): Update conditions.
37157         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
37159 2012-04-01  Bruno Haible  <bruno@clisp.org>
37161         log10: Work around OSF/1 5.1 bug.
37162         * lib/math.in.h (log10): New declaration.
37163         * lib/log10.c: New file.
37164         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
37165         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
37166         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
37167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
37168         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
37169         * modules/log10 (Files): Add lib/log10.c.
37170         (Depends-on): Add math.
37171         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
37172         * tests/test-math-c++.cc: Check the declaration of log10.
37173         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
37175 2012-03-31  Bruno Haible  <bruno@clisp.org>
37177         log10l tests: More tests.
37178         * modules/log10l-tests (Files): Add tests/test-log10l.h,
37179         tests/minus-zero.h, tests/randoml.c.
37180         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
37181         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
37182         (main): Invoke test_function.
37184         log10f tests: More tests.
37185         * modules/log10f-tests (Files): Add tests/test-log10.h,
37186         tests/minus-zero.h, tests/randomf.c.
37187         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
37188         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
37189         (main): Invoke test_function.
37191         log10 tests: More tests.
37192         * tests/test-log10.h: New file.
37193         * modules/log10-tests (Files): Add tests/test-log10.h,
37194         tests/minus-zero.h, tests/randomd.c.
37195         (Makefile.am): Add randomd.c to test_log10_SOURCES.
37196         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
37197         (main): Invoke test_function.
37199 2012-03-31  Simon Josefsson  <simon@josefsson.org>
37201         fflush: Fix syntax error.
37202         * lib/fflush.c: Include unused-parameter.h, needed for
37203         _GL_UNUSED_PARAMETER.
37204         * modules/fflush (Depends-on): Add snippet/unused-parameter.
37206 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37208         regex: pacify GCC when compiling GRUB
37209         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
37210         a diagnostic.  Reported by Vladimir Serbinenko in
37211         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
37213 2012-03-29  Eric Blake  <eblake@redhat.com>
37215         stdio: don't assume gets any more
37216         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
37217         support.
37218         * modules/stdio (Makefile.am): Likewise.
37219         * lib/stdio-read.c (gets): Likewise.
37220         * tests/test-stdio-c++.cc: Likewise.
37221         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
37222         * lib/stdio.in.h (gets): Make warning occur in more places.
37223         * doc/posix-functions/gets.texi (gets): Update documentation.
37224         Reported by Christer Solskogen.
37226         maint.mk: fix syntax checks without exclusions
37227         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
37228         Reported by Daniel P. Berrange.
37230         strerror_r: avoid compiler warning
37231         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
37232         level.
37234         fflush: avoid compiler warning
37235         * lib/fflush.c (update_fpos_cache): Mark variables that are
37236         potentially unused.
37238 2012-03-25  Bruno Haible  <bruno@clisp.org>
37240         Tests for module 'localeconv'.
37241         * modules/localeconv-tests: New file.
37242         * tests/test-localeconv.c: New file.
37244         New module 'localeconv'.
37245         * lib/locale.in.h (localeconv): New declaration.
37246         * lib/localeconv.c: New file.
37247         * m4/localeconv.m4: New file.
37248         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
37249         REPLACE_LOCALECONV.
37250         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
37251         REPLACE_LOCALECONV.
37252         * modules/localeconv: New file.
37253         * modules/nl_langinfo (Depends-on): Add localeconv.
37254         * modules/human (Depends-on): Likewise.
37255         * doc/posix-functions/localeconv.texi: Mention the new module.
37257 2012-03-25  Bruno Haible  <bruno@clisp.org>
37259         locale: Provide a complete 'struct lconv'.
37260         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37261         'struct lconv' does not contain int_p_cs_precedes.
37262         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37263         * doc/posix-headers/locale.texi: Update.
37265         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
37266         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
37267         * doc/posix-headers/locale.texi: Update.
37269         locale: Provide a working 'struct lconv'.
37270         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
37271         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37272         'struct lconv' does not even contain decimal_point.
37273         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
37274         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
37275         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37276         * doc/posix-headers/locale.texi: Mention the problems with
37277         'struct lconv'.
37278         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
37280 2012-03-24  Bruno Haible  <bruno@clisp.org>
37282         Enable common subexpression optimization in GCC.
37283         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
37284         macros.
37285         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
37286         GCC attribute 'const'.
37287         (uc_locale_language): Declare with GCC attribute 'pure'.
37288         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
37289         with GCC attribute 'const'.
37290         * lib/unictype.in.h (uc_is_general_category_withtable,
37291         uc_combining_class, uc_combining_class_name,
37292         uc_combining_class_long_name, uc_bidi_class_name,
37293         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
37294         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
37295         uc_decimal_value, uc_digit_value, uc_numeric_value,
37296         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
37297         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
37298         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
37299         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
37300         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
37301         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
37302         Declare with GCC attribute 'const'.
37303         (uc_general_category_name, uc_general_category_long_name,
37304         uc_general_category_byname, uc_general_category,
37305         uc_is_general_category, uc_combining_class_byname,
37306         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
37307         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
37308         Declare with GCC attribute 'pure'.
37309         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
37310         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
37311         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
37312         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
37313         with GCC attribute 'pure'.
37314         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
37315         'const'.
37316         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
37317         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
37318         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
37319         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
37320         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
37321         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
37322         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
37323         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
37324         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
37325         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
37326         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
37327         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
37328         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
37329         GCC attribute 'pure'.
37330         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
37331         'const'.
37332         * lib/uniwidth.in.h (uc_width): Simplify declaration.
37333         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
37334         u32_strwidth): Declare with GCC attribute 'pure'.
37336         Enable common subexpression optimization in GCC.
37337         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37338         (alphasort): Declare with GCC attribute 'pure'.
37339         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37340         (atoll): Declare with GCC attribute 'pure'.
37341         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37342         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37343         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
37344         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37345         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
37346         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
37347         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
37349 2012-03-24  Bruno Haible  <bruno@clisp.org>
37351         gnulib-tool: Avoid unintended error output from 'cmp'.
37352         * gnulib-tool (func_add_file, func_update_file, func_import): Use
37353         "cmp -s", not "cmp > /dev/null".
37355 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
37357         gnulib-tool: fix imprecise comments w.r.t. an automake bug
37359         It's not just Automake versions < 1.9b that creates an empty
37360         pkgdatadir at installation time if pkgdata_DATA is specified
37361         to empty; modern automake versions do this as well, at least
37362         until automake 1.11.4 (not yet released at the moment of writing,
37363         but soon to appear).  That behaviour was generally considered a
37364         feature rather than a bug, at least until this discussion:
37365         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
37367         See also automake bugs #10997 and #11030.
37369         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
37370         reference to relevant automake bug numbers.
37371         (func_emit_tests_Makefile_am): Likewise.
37373 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37375         announce-gen: use Digest::SHA when possible
37376         * build-aux/announce-gen: Use Digest::SHA when possible, falling
37377         back to Digest::SHA1 if necessary.
37379 2012-03-20  Jim Meyering  <meyering@redhat.com>
37381         tests: avoid gcc warnings about argv vs. const initializers
37382         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
37383         warnings about discarding 'const' qualifier from pointer target type.
37384         * tests/test-posix_spawn2.c (main): Likewise.
37386 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37388         README-release: simplify slightly
37389         * top/README-release: Run "git checkout master" only once.
37391 2012-03-15  Mark Wielaard  <mark@klomp.org>
37393         git-merge-changelog: add specific example on how to use with hg.
37394         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
37396 2012-03-18  Mark Wielaard  <mark@klomp.org>
37398         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
37400 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
37402         git-version-gen: don't let "prefix" envvar cause trouble
37403         * build-aux/git-version-gen (prefix): Initialize properly,
37404         so as not to use a value specified via the environment.
37405         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
37407 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37409         regex: diagnose too-large repeat counts in EREs
37410         Previously, the code did not diagnose the too-large repeat count
37411         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
37412         as if it were 'b\{1000000000}', which is unexpected.
37413         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
37414         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
37415         is a reasonable one for this problem.  Another option would be to
37416         create a new REG_OVERFLOW error for repeat counts that are too large.
37417         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
37418         count is too large, so that the caller can distinguish the two cases.
37419         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
37420         "Too large" return code, and that repeat counts are one example of this.
37422 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37424         doc: some glibc x32 integer width issues
37425         * doc/posix-headers/sys_types.texi (sys/types.h):
37426         * doc/posix-headers/time.texi (time.h):
37427         Mention that glibc x32 does not conform to POSIX in a couple of
37428         areas related to integer widths.
37430 2012-03-15  Bruno Haible  <bruno@clisp.org>
37432         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
37433         * lib/fma.c (VOLATILE): New macro.
37434         (FUNC): Use it to work around a GCC compiler bug.
37436 2012-03-13  Bruno Haible  <bruno@clisp.org>
37438         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37439         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
37440         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
37441         REPLACE_HYPOTL to 1.
37442         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
37444 2012-03-13  Bruno Haible  <bruno@clisp.org>
37446         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37447         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
37448         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
37449         REPLACE_REMAINDERL to 1.
37450         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
37451         bug.
37453 2012-03-13  Bruno Haible  <bruno@clisp.org>
37455         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37456         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
37457         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
37458         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
37459         too big rounding errors.
37460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
37461         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
37462         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
37463         (Depends-on): Update conditions.
37464         * tests/test-sqrtl.c (my_ldexpl): New function.
37465         (main): Add test of a particular value.
37466         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37468 2012-03-13  Pádraig Brady  <P@draigBrady.com>
37470         doc: Update timer_* platform portability notes.
37471         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
37472         that always return ENOSYS.
37473         * doc/posix-functions/timer_delete.texi: Likewise.
37474         * doc/posix-functions/timer_gettime.texi: Likewise.
37475         * doc/posix-functions/timer_settime.texi: Likewise.
37477 2012-03-13  Bruno Haible  <bruno@clisp.org>
37479         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37480         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
37481         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
37482         REPLACE_CBRTL to 1.
37483         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37485 2012-03-13  Bruno Haible  <bruno@clisp.org>
37487         remainderl: Avoid compilation error on AIX >= 5.2.
37488         * lib/math.in.h (remainderl): Undefine macro from the system header.
37490 2012-03-13  Bruno Haible  <bruno@clisp.org>
37492         Avoid compilation errors with MSVC option -fp:strict.
37493         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
37494         * lib/cbrtf.c: Likewise.
37495         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37497 2012-03-12  Bruno Haible  <bruno@clisp.org>
37499         uninorm: Don't crash in out-of-memory conditions.
37500         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
37501         gracefully.
37502         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
37503         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
37505 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
37507         quote: fix syntax-check
37508         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
37509         also exports quote_quoting_options.
37511 2012-03-12  Simon Josefsson  <simon@josefsson.org>
37513         Collapse list of copyright years to ranges.  See
37514         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
37515         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
37516         build-aux/csharpexec.sh.in, build-aux/gnupload,
37517         build-aux/install-reloc, build-aux/javacomp.sh.in,
37518         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
37519         build-aux/move-if-change, build-aux/reloc-ldflags,
37520         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
37522 2012-03-11  Bruno Haible  <bruno@clisp.org>
37524         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37525         * m4/log2f-ieee.m4: New file.
37526         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
37527         whether log2f works with a minus zero argument. Replace it if not.
37528         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
37529         (Depends-on): Add log2-ieee.
37530         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
37531         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
37533         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37534         * m4/log2-ieee.m4: New file.
37535         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
37536         whether log2 works with a minus zero argument. Replace it if not.
37537         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
37538         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
37539         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
37541         Tests for module 'log2l-ieee'.
37542         * modules/log2l-ieee-tests: New file.
37543         * tests/test-log2l-ieee.c: New file.
37545         New module 'log2l-ieee'.
37546         * modules/log2l-ieee: New file.
37548         Tests for module 'log2-ieee'.
37549         * modules/log2-ieee-tests: New file.
37550         * tests/test-log2-ieee.c: New file.
37552         New module 'log2-ieee'.
37553         * modules/log2-ieee: New file.
37555         Tests for module 'log2f-ieee'.
37556         * modules/log2f-ieee-tests: New file.
37557         * tests/test-log2f-ieee.c: New file.
37558         * tests/test-log2-ieee.h: New file.
37560         New module 'log2f-ieee'.
37561         * modules/log2f-ieee: New file.
37563 2012-03-11  Bruno Haible  <bruno@clisp.org>
37565         Tests for module 'log2l'.
37566         * modules/log2l-tests: New file.
37567         * tests/test-log2l.c: New file.
37569         New module 'log2l'.
37570         * lib/math.in.h (log2l): New declaration.
37571         * lib/log2l.c: New file.
37572         * m4/log2l.m4: New file.
37573         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
37574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
37575         REPLACE_LOG2L.
37576         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
37577         REPLACE_LOG2L.
37578         * modules/log2l: New file.
37579         * tests/test-math-c++.cc: Check the declaration of log2l.
37580         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
37581         and OSF/1 problems.
37583 2012-03-11  Bruno Haible  <bruno@clisp.org>
37585         Tests for module 'log2f'.
37586         * modules/log2f-tests: New file.
37587         * tests/test-log2f.c: New file.
37589         New module 'log2f'.
37590         * lib/math.in.h (log2f): New declaration.
37591         * lib/log2f.c: New file.
37592         * m4/log2f.m4: New file.
37593         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37595         REPLACE_LOG2F.
37596         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37597         REPLACE_LOG2F.
37598         * modules/log2f: New file.
37599         * tests/test-math-c++.cc: Check the declaration of log2f.
37600         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37601         and OSF/1 and Cygwin problems.
37603 2012-03-11  Bruno Haible  <bruno@clisp.org>
37605         Tests for module 'log2'.
37606         * modules/log2-tests: New file.
37607         * tests/test-log2.c: New file.
37608         * tests/test-log2.h: New file.
37610         New module 'log2'.
37611         * lib/math.in.h (log2): New declaration.
37612         * lib/log2.c: New file.
37613         * m4/log2.m4: New file.
37614         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37616         REPLACE_LOG2.
37617         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37618         REPLACE_LOG2.
37619         * modules/log2: New file.
37620         * tests/test-math-c++.cc: Check the declaration of log2.
37621         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37622         and OSF/1 and Cygwin problems.
37624 2012-03-11  Bruno Haible  <bruno@clisp.org>
37626         exp2* tests: More tests.
37627         * tests/test-exp2.h (test_function): Test all integral arguments that
37628         don't need to overflow or denormalized numbers.
37629         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37630         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37631         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37633 2012-03-10  Bruno Haible  <bruno@clisp.org>
37635         log1pl-ieee: Work around test failure on AIX 7.1.
37636         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37638         log1pl-ieee: Work around test failure on IRIX 6.5.
37639         * m4/log1pl-ieee.m4: New file.
37640         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37641         test whether log1pl works with a minus zero argument. Replace it if
37642         not.
37643         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37645         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37646         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37647         (Depends-on): Update conditions.
37648         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37649         m4/signbit.m4.
37650         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37651         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37653         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37654         * m4/log1pf-ieee.m4: New file.
37655         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37656         test whether log1pf works with a minus zero argument. Replace it if
37657         not.
37658         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37659         m4/signbit.m4.
37660         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37661         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37663         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37664         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37665         (configure.ac): Require gl_FUNC_LOG1PF.
37667         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37668         * m4/log1p-ieee.m4: New file.
37669         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37670         whether log1p works with a minus zero argument. Replace it if not.
37671         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37673         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37674         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37675         (Depends-on): Update conditions.
37676         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37677         m4/signbit.m4.
37678         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37679         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37681         Tests for module 'log1pl-ieee'.
37682         * modules/log1pl-ieee-tests: New file.
37683         * tests/test-log1pl-ieee.c: New file.
37685         New module 'log1pl-ieee'.
37686         * modules/log1pl-ieee: New file.
37688         Tests for module 'log1p-ieee'.
37689         * modules/log1p-ieee-tests: New file.
37690         * tests/test-log1p-ieee.c: New file.
37692         New module 'log1p-ieee'.
37693         * modules/log1p-ieee: New file.
37695         Tests for module 'log1pf-ieee'.
37696         * modules/log1pf-ieee-tests: New file.
37697         * tests/test-log1pf-ieee.c: New file.
37698         * tests/test-log1p-ieee.h: New file.
37700         New module 'log1pf-ieee'.
37701         * modules/log1pf-ieee: New file.
37703 2012-03-10  Bruno Haible  <bruno@clisp.org>
37705         Tests for module 'log1pl'.
37706         * modules/log1pl-tests: New file.
37707         * tests/test-log1pl.c: New file.
37709         New module 'log1pl'.
37710         * lib/math.in.h (log1pl): New declaration.
37711         * lib/log1pl.c: New file.
37712         * m4/log1pl.m4: New file.
37713         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37715         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37716         * modules/log1pl: New file.
37717         * tests/test-math-c++.cc: Check the declaration of log1pl.
37718         * doc/posix-functions/log1pl.texi: Mention the new module.
37720 2012-03-10  Bruno Haible  <bruno@clisp.org>
37722         Tests for module 'log1pf'.
37723         * modules/log1pf-tests: New file.
37724         * tests/test-log1pf.c: New file.
37726         New module 'log1pf'.
37727         * lib/math.in.h (log1pf): New declaration.
37728         * lib/log1pf.c: New file.
37729         * m4/log1pf.m4: New file.
37730         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37732         REPLACE_LOG1PF.
37733         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37734         REPLACE_LOG1PF.
37735         * modules/log1pf: New file.
37736         * tests/test-math-c++.cc: Check the declaration of log1pf.
37737         * doc/posix-functions/log1pf.texi: Mention the new module.
37739 2012-03-10  Bruno Haible  <bruno@clisp.org>
37741         log1p tests: More tests.
37742         * tests/test-log1p.h: New file.
37743         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37744         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37745         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37746         (main): Invoke test_function.
37748         log1p: Provide replacement for Minix and MSVC.
37749         * lib/math.in.h (log1p): New declaration.
37750         * lib/log1p.c: New file.
37751         * m4/log1p.m4: New file.
37752         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37754         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37755         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37756         (Depends-on): Add math, isnand, log, round.
37757         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37758         HAVE_LOG1P is 0.
37759         * tests/test-math-c++.cc: Check the declaration of log1p.
37760         * doc/posix-functions/log1p.texi: Mention the replacement.
37762 2012-03-10  Bruno Haible  <bruno@clisp.org>
37764         math tests: Small simplification.
37765         * tests/test-exp.h (test_function): Use the same err_bound for
37766         'double' on platforms with sizeof (long double) == sizeof (double)
37767         than on platforms with sizeof (long double) > sizeof (double).
37768         * tests/test-exp2.h (test_function): Likewise.
37769         * tests/test-expm1.h (test_function): Likewise.
37770         * tests/test-log.h (test_function): Likewise.
37772 2012-03-10  Bruno Haible  <bruno@clisp.org>
37774         Fix some comments.
37775         * lib/expl.c: Fix an ambiguous comment.
37776         * lib/expm1.c: Likewise.
37777         * lib/expm1l.c: Likewise.
37778         * lib/exp2.c: Likewise.
37779         * lib/exp2l.c: Likewise.
37781 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37783         regex: allow inclusion of <regex.h> before <limits.h>
37784         Without this patch, portable programs had to include <limits.h> before
37785         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37786         I ran into this problem with a test version of GNU grep on Solaris 8.
37787         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37788         This is done conditionally so that this change can be merged
37789         back to glibc.
37790         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37791         using the included regex.
37793         fts: depend on fdopendir
37794         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37795         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37796         problem was introduced when fdopendir was split out.
37798 2012-03-10  Bruno Haible  <bruno@clisp.org>
37800         Remove unused variables.
37801         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37802         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37804 2012-03-10  Bruno Haible  <bruno@clisp.org>
37806         isnanf-nolibm: Fix last commit.
37807         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37809         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37810         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37812 2012-03-10  Bruno Haible  <bruno@clisp.org>
37814         logf-ieee: Work around test failure on NetBSD 5.1.
37815         * m4/logf-ieee.m4: New file.
37816         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37817         whether logf works with a negative argument. Replace it if not.
37818         * lib/logf.c (logf): For negative arguments, return NaN.
37819         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37820         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37821         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37823         logf-ieee: Work around test failure on Solaris 9.
37824         * modules/logf-ieee (Depends-on): Add log-ieee.
37825         (configure.ac): Require gl_FUNC_LOGF.
37827         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37828         * m4/log-ieee.m4: New file.
37829         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37830         log works with a negative argument. Replace it if not.
37831         * lib/log.c (log): For negative arguments, return NaN.
37832         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37833         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37834         * doc/posix-functions/log.texi: Mention the log-ieee module.
37836         Tests for module 'logl-ieee'.
37837         * modules/logl-ieee-tests: New file.
37838         * tests/test-logl-ieee.c: New file.
37840         New module 'logl-ieee'.
37841         * modules/logl-ieee: New file.
37843         Tests for module 'log-ieee'.
37844         * modules/log-ieee-tests: New file.
37845         * tests/test-log-ieee.c: New file.
37847         New module 'log-ieee'.
37848         * modules/log-ieee: New file.
37850         Tests for module 'logf-ieee'.
37851         * modules/logf-ieee-tests: New file.
37852         * tests/test-logf-ieee.c: New file.
37853         * tests/test-log-ieee.h: New file.
37855         New module 'logf-ieee'.
37856         * modules/logf-ieee: New file.
37858 2012-03-10  Bruno Haible  <bruno@clisp.org>
37860         log: Fix bug introduced on 2012-03-09.
37861         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37863 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37865         timer-time: link explicitly with pthreads on glibc
37866         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37867         to support static linking, when newer glibc is
37868         detected, as that contains pthread emulation of
37869         POSIX timer functions where required.
37870         * modules/timer-time: Depend on threadlib to
37871         pull in the appropriate library to link.
37873 2012-03-10  Bruno Haible  <bruno@clisp.org>
37875         log* tests: More tests.
37876         * tests/test-log.h: New file.
37877         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37878         (main): Invoke test_function.
37879         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37880         (main): Invoke test_function.
37881         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37882         (main): Invoke test_function.
37883         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37884         tests/randomd.c.
37885         (Makefile.am): Add randomd.c to test_log_SOURCES.
37886         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37887         tests/randomf.c.
37888         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37889         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37890         tests/randoml.c.
37891         (Depends-on): Add 'float'.
37892         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37894 2012-03-09  Bruno Haible  <bruno@clisp.org>
37896         logl: Work around OSF/1 5.1 bug.
37897         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37898         * lib/logl.c (logl): If logl exists, use it and provide just the
37899         workaround.
37900         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37901         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37903         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37904         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37905         (Depends-on): Update conditions.
37906         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37908 2012-03-09  Bruno Haible  <bruno@clisp.org>
37910         logf: Work around OSF/1 5.1 bug.
37911         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37912         * lib/logf.c (logf): If logf exists, use it and provide just the
37913         workaround.
37914         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37915         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37917         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37918         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37919         (Depends-on): Update conditions.
37920         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37922 2012-03-09  Bruno Haible  <bruno@clisp.org>
37924         log: Work around OSF/1 5.1 bug.
37925         * lib/math.in.h (log): New declaration.
37926         * lib/log.c: New file.
37927         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37928         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37929         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37931         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37932         * modules/log (Files): Add lib/log.c.
37933         (Depends-on): Add math.
37934         (configure.ac): If REPLACE_LOG is 1, compile an override.
37935         * tests/test-math-c++.cc: Check the declaration of log.
37936         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37938 2012-03-09  Jim Meyering  <meyering@redhat.com>
37940         readtokens.c: adjust wording in a comment
37941         * lib/readtokens.c: Insert omitted "that" in a comment.
37943 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37945         modechange: add notations +40, 00440, etc.
37946         * lib/modechange.c (mode_compile): Support new notations
37947         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37949 2012-03-08  Bruno Haible  <bruno@clisp.org>
37951         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37952         * m4/exp2l-ieee.m4: New file.
37953         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37954         test whether exp2l works with a NaN argument and with a negative
37955         infinity argument. Replace it if not.
37956         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37958         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37959         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37960         (Depends-on): Update conditions.
37961         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37962         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37963         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37965         Tests for module 'exp2l-ieee'.
37966         * modules/exp2l-ieee-tests: New file.
37967         * tests/test-exp2l-ieee.c: New file.
37969         New module 'exp2l-ieee'.
37970         * modules/exp2l-ieee: New file.
37972         Tests for module 'exp2-ieee'.
37973         * modules/exp2-ieee-tests: New file.
37974         * tests/test-exp2-ieee.c: New file.
37976         New module 'exp2-ieee'.
37977         * modules/exp2-ieee: New file.
37979         Tests for module 'exp2f-ieee'.
37980         * modules/exp2f-ieee-tests: New file.
37981         * tests/test-exp2f-ieee.c: New file.
37982         * tests/test-exp2-ieee.h: New file.
37984         New module 'exp2f-ieee'.
37985         * modules/exp2f-ieee: New file.
37987 2012-03-08  Bruno Haible  <bruno@clisp.org>
37989         Tests for module 'exp2l'.
37990         * modules/exp2l-tests: New file.
37991         * tests/test-exp2l.c: New file.
37993         New module 'exp2l'.
37994         * lib/math.in.h (exp2l): New declaration.
37995         * lib/exp2l.c: New file.
37996         * lib/expl-table.c: New file, extracted from lib/expl.c.
37997         * lib/expl.c (gl_expl_table): New declaration.
37998         (expl): Remove expl_table. Update reference.
37999         * m4/exp2l.m4: New file.
38000         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
38001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
38002         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
38003         * modules/exp2l: New file.
38004         * modules/expl (Files): Add lib/expl-table.c.
38005         (configure.ac): Compile also expl-table.c.
38006         * tests/test-math-c++.cc: Check the declaration of exp2l.
38007         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
38008         problem.
38010 2012-03-08  Bruno Haible  <bruno@clisp.org>
38012         Tests for module 'exp2f'.
38013         * modules/exp2f-tests: New file.
38014         * tests/test-exp2f.c: New file.
38016         New module 'exp2f'.
38017         * lib/math.in.h (exp2f): New declaration.
38018         * lib/exp2f.c: New file.
38019         * m4/exp2f.m4: New file.
38020         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
38021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
38022         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
38023         * modules/exp2f: New file.
38024         * tests/test-math-c++.cc: Check the declaration of exp2f.
38025         * doc/posix-functions/exp2f.texi: Mention the new module and the
38026         IRIX problem.
38028 2012-03-08  Bruno Haible  <bruno@clisp.org>
38030         Tests for module 'exp2'.
38031         * modules/exp2-tests: New file.
38032         * tests/test-exp2.c: New file.
38033         * tests/test-exp2.h: New file.
38035         New module 'exp2'.
38036         * lib/math.in.h (exp2): New declaration.
38037         * lib/exp2.c: New file.
38038         * m4/exp2.m4: New file.
38039         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
38040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
38041         REPLACE_EXP2.
38042         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
38043         REPLACE_EXP2.
38044         * modules/exp2: New file.
38045         * tests/test-math-c++.cc: Check the declaration of exp2.
38046         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
38047         and OpenBSD problems.
38049 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
38051         savedir: fix comment typo
38052         * lib/savedir.c (savedirstream): Fix typo in comment.
38054 2012-03-08  Bruno Haible  <bruno@clisp.org>
38056         test-readtokens.c: use const; remove unwarranted cast
38057         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
38059 2012-03-08  Bruno Haible  <bruno@clisp.org>
38061         fmal: Avoid compilation error on AIX.
38062         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
38063         AIX 5.2..7.1.
38065 2012-03-08  Bruno Haible  <bruno@clisp.org>
38067         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
38068         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
38069         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
38070         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
38071         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
38072         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
38073         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
38075 2012-03-08  Bruno Haible  <bruno@clisp.org>
38077         remainderf: Override buggy system function on IRIX 6.5.
38078         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
38079         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
38080         when it exists.
38081         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
38083 2012-03-08  Jim Meyering  <meyering@redhat.com>
38085         test-readtokens.c: avoid const-related compilation warnings
38086         * tests/test-readtokens.c: Avoid const-related compilation warnings.
38088 2012-03-07  Jim Meyering  <meyering@redhat.com>
38089             Bruno Haible  <bruno@clisp.org>
38091         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
38092         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
38093         tests/randomd.c.
38094         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
38095         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
38096         tests/randoml.c.
38097         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
38099 2012-03-07  Bruno Haible  <bruno@clisp.org>
38101         expm1l: Avoid compilation error on AIX.
38102         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
38103         AIX 5.2..7.1.
38105 2012-03-07  Bruno Haible  <bruno@clisp.org>
38107         expm1l: Don't override undeclared system function on IRIX 6.5.
38108         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
38109         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
38110         it exists. Set HAVE_DECL_EXPM1L.
38111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
38112         HAVE_EXPM1L.
38113         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
38114         HAVE_EXPM1L.
38115         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
38117 2012-03-07  Bruno Haible  <bruno@clisp.org>
38119         remainderl: Don't override undeclared system function on IRIX 6.5.
38120         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
38121         HAVE_REMAINDERL.
38122         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
38123         declared when it exists. Set HAVE_DECL_REMAINDERL.
38124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
38125         not HAVE_REMAINDERL.
38126         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
38127         HAVE_REMAINDERL.
38128         * doc/posix-functions/remainderl.texi: Mention missing declaration
38129         problem.
38131 2012-03-07  Bruno Haible  <bruno@clisp.org>
38133         rintf: Don't override undeclared system function on IRIX 6.5.
38134         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
38135         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
38136         exists. Set HAVE_DECL_RINTF.
38137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
38138         HAVE_RINTF.
38139         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
38140         HAVE_RINTF.
38141         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
38143 2012-03-07  Bruno Haible  <bruno@clisp.org>
38145         roundl: Avoid compilation error on AIX.
38146         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
38147         AIX 5.2..7.1.
38149 2012-03-07  Bruno Haible  <bruno@clisp.org>
38151         roundl: Don't override undeclared system function on IRIX 6.5.
38152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
38153         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
38154         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38155         * modules/roundl (configure.ac): For replacement code, test
38156         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38157         (Depends-on): Update conditions.
38158         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
38160 2012-03-07  Bruno Haible  <bruno@clisp.org>
38162         roundf: Don't override undeclared system function on IRIX 6.5.
38163         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
38164         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
38165         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38166         * modules/roundf (configure.ac): For replacement code, test
38167         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38168         (Depends-on): Update conditions.
38169         * modules/roundf-ieee (Depends-on): Update conditions.
38170         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
38172 2012-03-07  Bruno Haible  <bruno@clisp.org>
38174         round: Don't override undeclared system function on IRIX 6.5.
38175         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
38176         argument.
38177         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
38178         also when it is not declared. Set HAVE_ROUND. For replacement code,
38179         test HAVE_ROUND, not HAVE_DECL_ROUND.
38180         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
38181         not HAVE_DECL_ROUND.
38182         (Depends-on): Update conditions.
38183         * modules/round-ieee (Depends-on): Update conditions.
38184         * doc/posix-functions/round.texi: Mention the IRIX problem.
38186 2012-03-07  Bruno Haible  <bruno@clisp.org>
38188         copysignf: Don't override undeclared system function on IRIX 6.5.
38189         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
38190         HAVE_COPYSIGNF.
38191         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
38192         declared when it exists. Set HAVE_DECL_COPYSIGNF.
38193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
38194         not HAVE_COPYSIGNF.
38195         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
38196         HAVE_COPYSIGNF.
38197         * doc/posix-functions/copysignf.texi: Mention missing declaration
38198         problem.
38200 2012-03-07  Jim Meyering  <meyering@redhat.com>
38202         readtokens: add tests
38203         * modules/readtokens-tests: New file.
38204         * tests/test-readtokens.c: New file.
38206 2012-03-07  Jim Meyering  <meyering@redhat.com>
38208         quotearg: the module must now include quote.h
38209         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
38210         So must the module.
38211         * modules/quotearg (Files): Add quote.h.
38213 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
38215         readtokens: avoid core dumps with unusual calling patterns
38216         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
38217         * lib/readtokens.c: Include limits.h.
38218         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
38219         (readtoken): Don't cache the delimiters; the cache code was buggy
38220         if !delim && saved_delim, or if the new n_delim differs from the old.
38221         Also, it wasn't thread-safe.
38223 2012-03-07  Bruno Haible  <bruno@clisp.org>
38225         quote: Adhere to common module description layout.
38226         * modules/quote (Makefile.am): Add back empty section.
38228 2012-03-06  Akim Demaille  <demaille@gostai.com>
38230         quote: fuse into quotearg
38231         This patch is made for the benefit of Bison.
38232         quote does not leave the choice of the quoting style to the user.
38233         quoting_style provides poor customizability, yet quoting_options,
38234         which is very rich, is hidden inside quotearg.c.  So in order to
38235         allow quote customization, move its implementation to quotearg.c.
38236         * lib/quote.c: Remove.
38237         * modules/quote: Adjust.
38238         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
38239         warning: provide all the members of literal structs.
38240         (quote_quoting_options): New.
38241         (quote, quote_n): Import implementation from quote.c.
38242         * lib/quote.h: Import the comments from quote.c.
38243         (quote_quoting_options): New.
38245 2012-03-06  Bruno Haible  <bruno@clisp.org>
38247         Tests for module 'expm1l-ieee'.
38248         * modules/expm1l-ieee-tests: New file.
38249         * tests/test-expm1l-ieee.c: New file.
38251         New module 'expm1l-ieee'.
38252         * modules/expm1l-ieee: New file.
38254         Tests for module 'expm1f-ieee'.
38255         * modules/expm1f-ieee-tests: New file.
38256         * tests/test-expm1f-ieee.c: New file.
38258         New module 'expm1f-ieee'.
38259         * modules/expm1f-ieee: New file.
38261         Tests for module 'expm1-ieee'.
38262         * modules/expm1-ieee-tests: New file.
38263         * tests/test-expm1-ieee.c: New file.
38264         * tests/test-expm1-ieee.h: New file.
38266         New module 'expm1-ieee'.
38267         * modules/expm1-ieee: New file.
38268         * m4/expm1-ieee.m4: New file.
38269         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
38270         whether expm1 works with a minus zero argument. Replace it if not.
38271         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
38272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
38273         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
38274         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
38275         (Depends-on): Update conditions.
38276         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
38277         AIX problem.
38279 2012-03-06  Bruno Haible  <bruno@clisp.org>
38281         Work around expm1f bug on IRIX 6.5.
38282         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
38283         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
38284         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
38285         not work.
38286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
38287         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
38288         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
38289         (Depends-on): Update conditions.
38290         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
38292 2012-03-06  Bruno Haible  <bruno@clisp.org>
38294         Tests for module 'expm1l'.
38295         * modules/expm1l-tests: New file.
38296         * tests/test-expm1l.c: New file.
38298         New module 'expm1l'.
38299         * lib/math.in.h (expm1l): New declaration.
38300         * lib/expm1l.c: New file.
38301         * m4/expm1l.m4: New file.
38302         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
38303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
38304         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
38305         * modules/expm1l: New file.
38306         * tests/test-math-c++.cc: Check the declaration of expm1l.
38307         * doc/posix-functions/expm1l.texi: Mention the new module.
38309 2012-03-06  Bruno Haible  <bruno@clisp.org>
38311         Tests for module 'expm1f'.
38312         * modules/expm1f-tests: New file.
38313         * tests/test-expm1f.c: New file.
38315         New module 'expm1f'.
38316         * lib/math.in.h (expm1f): New declaration.
38317         * lib/expm1f.c: New file.
38318         * m4/expm1f.m4: New file.
38319         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
38320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
38321         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
38322         * modules/expm1f: New file.
38323         * tests/test-math-c++.cc: Check the declaration of expm1f.
38324         * doc/posix-functions/expm1f.texi: Mention the new module.
38326 2012-03-06  Bruno Haible  <bruno@clisp.org>
38328         Tests for module 'expm1'.
38329         * modules/expm1-tests: New file.
38330         * tests/test-expm1.c: New file.
38331         * tests/test-expm1.h: New file.
38333         New module 'expm1'.
38334         * lib/math.in.h (expm1): New declaration.
38335         * lib/expm1.c: New file.
38336         * m4/expm1.m4: New file.
38337         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
38338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
38339         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
38340         * modules/expm1: New file.
38341         * tests/test-math-c++.cc: Check the declaration of expm1.
38342         * doc/posix-functions/expm1.texi: Mention the new module.
38344 2012-03-06  Bruno Haible  <bruno@clisp.org>
38346         math: Ensure declarations of math functions.
38347         * modules/acosf (Depends-on): Add 'extensions'.
38348         * modules/asinf (Depends-on): Likewise.
38349         * modules/atan2f (Depends-on): Likewise.
38350         * modules/atanf (Depends-on): Likewise.
38351         * modules/cbrt (Depends-on): Likewise.
38352         * modules/cbrtf (Depends-on): Likewise.
38353         * modules/cbrtl (Depends-on): Likewise.
38354         * modules/copysignf (Depends-on): Likewise.
38355         * modules/copysignl (Depends-on): Likewise.
38356         * modules/cosf (Depends-on): Likewise.
38357         * modules/coshf (Depends-on): Likewise.
38358         * modules/expf (Depends-on): Likewise.
38359         * modules/fabsf (Depends-on): Likewise.
38360         * modules/fabsl (Depends-on): Likewise.
38361         * modules/fmaf (Depends-on): Likewise.
38362         * modules/fmal (Depends-on): Likewise.
38363         * modules/fmodf (Depends-on): Likewise.
38364         * modules/fmodl (Depends-on): Likewise.
38365         * modules/frexpf (Depends-on): Likewise.
38366         * modules/frexpl (Depends-on): Likewise.
38367         * modules/hypot (Depends-on): Likewise.
38368         * modules/hypotf (Depends-on): Likewise.
38369         * modules/hypotl (Depends-on): Likewise.
38370         * modules/ldexpf (Depends-on): Likewise.
38371         * modules/ldexpl (Depends-on): Likewise.
38372         * modules/log10f (Depends-on): Likewise.
38373         * modules/log10l (Depends-on): Likewise.
38374         * modules/log1p (Depends-on): Likewise.
38375         * modules/logb (Depends-on): Likewise.
38376         * modules/logf (Depends-on): Likewise.
38377         * modules/modff (Depends-on): Likewise.
38378         * modules/modfl (Depends-on): Likewise.
38379         * modules/powf (Depends-on): Likewise.
38380         * modules/remainderf (Depends-on): Likewise.
38381         * modules/remainderl (Depends-on): Likewise.
38382         * modules/rintf (Depends-on): Likewise.
38383         * modules/rintl (Depends-on): Likewise.
38384         * modules/sinf (Depends-on): Likewise.
38385         * modules/sinhf (Depends-on): Likewise.
38386         * modules/sqrtf (Depends-on): Likewise.
38387         * modules/tanf (Depends-on): Likewise.
38388         * modules/tanhf (Depends-on): Likewise.
38389         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
38390         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
38391         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
38392         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
38393         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
38394         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
38395         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
38396         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
38397         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
38398         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
38399         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
38400         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
38401         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
38402         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
38403         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
38404         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
38405         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
38406         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38407         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
38408         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
38409         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
38410         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
38411         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
38412         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
38413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38414         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
38415         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
38416         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38417         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
38418         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
38419         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38420         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
38421         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38422         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38423         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38424         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38425         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
38426         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
38427         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
38428         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
38429         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
38431 2012-03-06  Bruno Haible  <bruno@clisp.org>
38433         math: Update module names in warnings.
38434         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38435         tanl): Use specific module name in warn-on-use warning.
38437 2012-03-06  Bruno Haible  <bruno@clisp.org>
38439         expl: Simplify computation.
38440         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
38442 2012-03-05  Bruno Haible  <bruno@clisp.org>
38444         exp* tests: More tests.
38445         * tests/test-exp.h: New file.
38446         * tests/test-exp.c: Include <float.h> and test-exp.h.
38447         (main): Invoke test_function.
38448         * tests/test-expf.c: Include <float.h> and test-exp.h.
38449         (main): Invoke test_function.
38450         * tests/test-expl.c: Include <float.h> and test-exp.h.
38451         (main): Invoke test_function.
38452         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
38453         (Makefile.am): Add randomd.c to test_exp_SOURCES.
38454         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
38455         (Makefile.am): Add randomf.c to test_expf_SOURCES.
38456         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
38457         (Depends-on): Add 'float'.
38458         (Makefile.am): Add randoml.c to test_expl_SOURCES.
38460         expl: Fix precision of computed result.
38461         * lib/expl.c: Completely rewritten.
38462         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
38463         (Maintainer): Add me.
38464         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
38466 2012-03-05  Bruno Haible  <bruno@clisp.org>
38468         cbrt* tests: More tests.
38469         * tests/test-cbrt.h: New file.
38470         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
38471         (main): Invoke test_function.
38472         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
38473         (main): Invoke test_function.
38474         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
38475         (main): Invoke test_function.
38476         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
38477         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
38478         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
38479         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
38480         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
38481         (Depends-on): Add 'float'.
38482         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
38484 2012-03-05  Bruno Haible  <bruno@clisp.org>
38486         hypot* tests: More tests.
38487         * tests/test-hypot.h: New file, partially extracted from
38488         tests/test-hypotl.c.
38489         * tests/test-hypot.c: Include test-hypot.h.
38490         (main): Invoke test_function.
38491         * tests/test-hypotf.c: Include test-hypot.h.
38492         (main): Invoke test_function.
38493         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
38494         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
38495         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
38496         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
38497         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
38498         tests/randomf.c.
38499         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
38500         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
38501         tests/randoml.c.
38502         (Depends-on): Add 'fpucw', 'float'.
38503         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
38505 2012-03-05  Bruno Haible  <bruno@clisp.org>
38507         fpucw: Doc about FreeBSD.
38508         * lib/fpucw.h: Mention FreeBSD in comments.
38510 2012-03-04  Bruno Haible  <bruno@clisp.org>
38512         sqrt* tests: More tests.
38513         * tests/test-sqrt.h: New file.
38514         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
38515         (main): Invoke test_function.
38516         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
38517         (main): Invoke test_function.
38518         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
38519         (main): Invoke test_function.
38520         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38521         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
38522         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
38523         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
38524         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
38525         (Depends-on): Add 'float'.
38526         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
38528 2012-03-04  Bruno Haible  <bruno@clisp.org>
38530         remainder* tests: More tests.
38531         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
38532         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
38533         (main): Invoke test_function.
38534         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
38535         (main): Invoke test_function.
38536         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
38537         (main): Invoke test_function.
38538         * modules/remainder-tests (Files): Add tests/test-remainder.h,
38539         tests/randomd.c.
38540         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
38541         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
38542         tests/randomf.c.
38543         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
38544         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
38545         tests/randoml.c.
38546         (Depends-on): Add 'float'.
38547         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
38549 2012-03-04  Bruno Haible  <bruno@clisp.org>
38551         remainder, remainderf, remainderl: Fix computation for large quotients.
38552         * lib/remainder.c: Completely rewritten.
38553         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
38554         USE_FLOAT.
38555         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
38556         USE_LONG_DOUBLE.
38557         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
38558         isnand, isinf. Remove round, fma.
38559         * modules/remainderf (Files): Add lib/remainder.c.
38560         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
38561         Remove roundf, fmaf.
38562         * modules/remainderl (Files): Add lib/remainder.c.
38563         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
38564         isinf. Remove roundl, fmal.
38565         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
38566         REMAINDER_LIBM.
38567         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
38568         REMAINDERF_LIBM.
38569         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
38570         REMAINDERL_LIBM.
38572 2012-03-04  Bruno Haible  <bruno@clisp.org>
38574         fmod* tests: More tests.
38575         * tests/test-fmod.h (my_ldexp): New function.
38576         (test_function): Reduce amount of random numbers to test. Add tests
38577         of very large quotients x / y.
38578         * tests/test-fmod.c (MAX_EXP): New macro.
38579         * tests/test-fmodf.c (MAX_EXP): Likewise.
38580         * tests/test-fmodl.c (MAX_EXP): Likewise.
38582 2012-03-04  Bruno Haible  <bruno@clisp.org>
38584         fmod, fmodl: Fix computation for large quotients x / y.
38585         * lib/fmod.c: Completely rewritten.
38586         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38587         USE_LONG_DOUBLE.
38588         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38589         isnand. Remove fma.
38590         * modules/fmodl (Files): Add lib/fmod.c.
38591         (Depends-on): Add float, isfinite, signbit, fabsl,
38592         frexpl, ldexpl, isnanl. Remove fma.
38593         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38594         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38596 2012-03-03  Bruno Haible  <bruno@clisp.org>
38598         fmod* tests: More tests.
38599         * tests/test-fmod.h: New file.
38600         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38601         (main): Invoke test_function.
38602         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38603         (main): Invoke test_function.
38604         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38605         (main): Invoke test_function.
38606         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38607         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38608         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38609         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38610         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38611         (Depends-on): Add 'float'.
38612         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38614 2012-03-03  Bruno Haible  <bruno@clisp.org>
38616         rint* tests: More tests.
38617         * tests/test-rint.h: New file, partially extracted from
38618         tests/test-rintl.c.
38619         * tests/test-rint.c: Include test-rint.h.
38620         (main): Invoke test_function.
38621         * tests/test-rintf.c: Include test-rint.h.
38622         (main): Invoke test_function.
38623         * tests/test-rintl.c: Include test-rint.h.
38624         (main): Invoke test_function.
38625         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38626         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38627         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38628         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38629         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38630         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38632 2012-03-03  Bruno Haible  <bruno@clisp.org>
38634         modf* tests: More tests.
38635         * tests/test-modf.h: New file.
38636         * tests/test-modf.c: Include <float.h> and test-modf.h.
38637         (main): Invoke test_function.
38638         * tests/test-modff.c: Include <float.h> and test-modf.h.
38639         (main): Invoke test_function.
38640         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38641         (main): Invoke test_function.
38642         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38643         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38644         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38645         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38646         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38647         (Depends-on): Add 'float'.
38648         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38650 2012-03-03  Bruno Haible  <bruno@clisp.org>
38652         fabs* tests: More tests.
38653         * tests/test-fabs.h: New file, partially extracted from
38654         tests/test-fabsl.c.
38655         * tests/test-fabs.c (RANDOM): New macro.
38656         * tests/test-fabsf.c (RANDOM): New macro.
38657         * tests/test-fabsl.c (RANDOM): New macro.
38658         * modules/fabs-tests (Files): Add tests/randomd.c.
38659         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38660         * modules/fabsf-tests (Files): Add tests/randomf.c.
38661         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38662         * modules/fabsl-tests (Files): Add tests/randoml.c.
38663         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38665 2012-03-03  Bruno Haible  <bruno@clisp.org>
38667         ldexp* tests: More tests.
38668         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38669         * tests/test-ldexp.c (RANDOM): New macro.
38670         * tests/test-ldexpf.c (RANDOM): New macro.
38671         * tests/test-ldexpl.c (RANDOM): New macro.
38672         * modules/ldexp-tests (Files): Add tests/randomd.c.
38673         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38674         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38675         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38676         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38677         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38679 2012-03-03  Bruno Haible  <bruno@clisp.org>
38681         frexp* tests: More tests.
38682         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38683         * tests/test-frexp.c (RANDOM): New macro.
38684         * tests/test-frexpf.c (RANDOM): New macro.
38685         * tests/test-frexpl.c (RANDOM): New macro.
38686         * modules/frexp-tests (Files): Add tests/randomd.c.
38687         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38688         * modules/frexpf-tests (Files): Add tests/randomf.c.
38689         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38690         * modules/frexpl-tests (Files): Add tests/randoml.c.
38691         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38693 2012-03-03  Bruno Haible  <bruno@clisp.org>
38695         Support for pseudo-random numbers in tests.
38696         * tests/randomf.c: New file.
38697         * tests/randomd.c: New file.
38698         * tests/randoml.c: New file.
38699         * tests/macros.h (randomf, randomd, randoml): New declarations.
38701 2012-03-03  Bruno Haible  <bruno@clisp.org>
38703         frexp* tests: Refactor.
38704         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38705         * tests/test-frexp.c: Include and use it.
38706         * tests/test-frexpf.c: Likewise.
38707         * tests/test-frexpl.c: Likewise.
38708         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38709         * modules/frexpf-tests (Files): Likewise.
38710         * modules/frexpl-tests (Files): Likewise.
38712 2012-03-02  Jim Meyering  <meyering@redhat.com>
38714         maint: don't specify XZ_OPT=-9ev in dist-related rule
38715         Using xz's -9 option is warranted only if you have a very large
38716         tarball (see xz's documentation for the sizes vs. presets), and
38717         requires 64MiB of memory at decompression time.
38718         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38719         Automake's default of just "-e" is fine.  Override on a
38720         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38722 2012-03-01  Eric Blake  <eblake@redhat.com>
38724         maint.mk: allow announcement for non-gnulib project
38725         * maint.mk (announcement): Skip gnulib version if not used.
38727 2012-03-01  Jim Meyering  <meyering@redhat.com>
38729         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38730         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38731         envvar settings cannot interfere.  Otherwise, setting envvars like
38732         prohibit=foo require=bar, etc. would cause spurious test failures.
38734 2012-03-01  Eric Blake  <eblake@redhat.com>
38736         maint.mk: add per-line exclusions to prohibitions
38737         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38738         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38739         (sc_const_long_option): Use it.
38741 2012-03-01  Bruno Haible  <bruno@clisp.org>
38743         Tests for module 'expl-ieee'.
38744         * modules/expl-ieee-tests: New file.
38745         * tests/test-expl-ieee.c: New file.
38747         New module 'expl-ieee'.
38748         * modules/expl-ieee: New file.
38750         Tests for module 'exp-ieee'.
38751         * modules/exp-ieee-tests: New file.
38752         * tests/test-exp-ieee.c: New file.
38754         New module 'exp-ieee'.
38755         * modules/exp-ieee: New file.
38757         Tests for module 'expf-ieee'.
38758         * modules/expf-ieee-tests: New file.
38759         * tests/test-expf-ieee.c: New file.
38760         * tests/test-exp-ieee.h: New file.
38762         New module 'expf-ieee'.
38763         * modules/expf-ieee: New file.
38765 2012-02-29  Bruno Haible  <bruno@clisp.org>
38767         cbrtl-ieee: Work around test failure on IRIX 6.5.
38768         * m4/cbrtl-ieee.m4: New file.
38769         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38770         test whether cbrtl works with a minus zero argument. Replace it if not.
38771         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38773         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38774         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38775         (Depends-on): Update conditions.
38776         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38777         m4/signbit.m4.
38778         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38779         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38780         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38782         Tests for module 'cbrtl-ieee'.
38783         * modules/cbrtl-ieee-tests: New file.
38784         * tests/test-cbrtl-ieee.c: New file.
38786         New module 'cbrtl-ieee'.
38787         * modules/cbrtl-ieee: New file.
38789         Tests for module 'cbrt-ieee'.
38790         * modules/cbrt-ieee-tests: New file.
38791         * tests/test-cbrt-ieee.c: New file.
38793         New module 'cbrt-ieee'.
38794         * modules/cbrt-ieee: New file.
38796         Tests for module 'cbrtf-ieee'.
38797         * modules/cbrtf-ieee-tests: New file.
38798         * tests/test-cbrtf-ieee.c: New file.
38799         * tests/test-cbrt-ieee.h: New file.
38801         New module 'cbrtf-ieee'.
38802         * modules/cbrtf-ieee: New file.
38804 2012-02-29  Bruno Haible  <bruno@clisp.org>
38806         cbrtf: Work around bug in IRIX 6.5 system function.
38807         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38808         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38809         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38810         work.
38811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38812         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38813         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38814         (Depends-on): Update conditions.
38815         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38817 2012-02-29  Bruno Haible  <bruno@clisp.org>
38819         Tests for module 'cbrtl'.
38820         * modules/cbrtl-tests: New file.
38821         * tests/test-cbrtl.c: New file.
38823         New module 'cbrtl'.
38824         * lib/math.in.h (cbrtl): New declaration.
38825         * lib/cbrtl.c: New file.
38826         * m4/cbrtl.m4: New file.
38827         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38829         HAVE_DECL_CBRTL.
38830         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38831         HAVE_DECL_CBRTL.
38832         * modules/cbrtl: New file.
38833         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38834         * doc/posix-functions/cbrtl.texi: Mention the new module.
38836 2012-02-29  Bruno Haible  <bruno@clisp.org>
38838         Tests for module 'cbrtf'.
38839         * modules/cbrtf-tests: New file.
38840         * tests/test-cbrtf.c: New file.
38842         New module 'cbrtf'.
38843         * lib/math.in.h (cbrtf): New declaration.
38844         * lib/cbrtf.c: New file.
38845         * m4/cbrtf.m4: New file.
38846         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38848         HAVE_DECL_CBRTF.
38849         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38850         HAVE_DECL_CBRTF.
38851         * modules/cbrtf: New file.
38852         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38853         * doc/posix-functions/cbrtf.texi: Mention the new module.
38855 2012-02-29  Bruno Haible  <bruno@clisp.org>
38857         cbrt: Provide replacement on MSVC and Minix.
38858         * lib/math.in.h (cbrt): New declaration.
38859         * lib/cbrt.c: New file.
38860         * m4/cbrt.m4: New file.
38861         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38863         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38864         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38865         (Depends-on): Add dependencies.
38866         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38867         * tests/test-math-c++.cc: Check the declaration of cbrt.
38868         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38869         replacement.
38871 2012-02-29  Bruno Haible  <bruno@clisp.org>
38873         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38874         * m4/hypotl-ieee.m4: New file.
38875         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38876         test whether hypotl works with mixed NaN and Infinity arguments.
38877         Replace it if not.
38878         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38880         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38881         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38882         (Depends-on): Update conditions.
38883         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38884         (Depends-on): Add hypot-ieee.
38885         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38886         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38888         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38889         * m4/hypotf-ieee.m4: New file.
38890         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38891         test whether hypotf works with mixed NaN and Infinity arguments.
38892         Replace it if not.
38893         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38894         (Depends-on): Add hypot-ieee.
38895         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38896         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38898         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38899         * lib/math.in.h (hypot): New declaration.
38900         * lib/hypot.c: New file.
38901         * m4/hypot-ieee.m4: New file.
38902         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38903         whether hypot works with mixed NaN and Infinity arguments. Replace it
38904         if not.
38905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38906         REPLACE_HYPOT.
38907         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38908         * modules/hypot (Files): Add lib/hypot.c.
38909         (Depends-on): Add dependencies.
38910         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38911         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38912         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38913         * tests/test-math-c++.cc: Check the declaration of hypot.
38914         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38916         Tests for module 'hypotl-ieee'.
38917         * modules/hypotl-ieee-tests: New file.
38918         * tests/test-hypotl-ieee.c: New file.
38920         New module 'hypotl-ieee'.
38921         * modules/hypotl-ieee: New file.
38923         Tests for module 'hypot-ieee'.
38924         * modules/hypot-ieee-tests: New file.
38925         * tests/test-hypot-ieee.c: New file.
38927         New module 'hypot-ieee'.
38928         * modules/hypot-ieee: New file.
38930         Tests for module 'hypotf-ieee'.
38931         * modules/hypotf-ieee-tests: New file.
38932         * tests/test-hypotf-ieee.c: New file.
38933         * tests/test-hypot-ieee.h: New file.
38935         New module 'hypotf-ieee'.
38936         * modules/hypotf-ieee: New file.
38938 2012-02-29  Bruno Haible  <bruno@clisp.org>
38940         Remove unused variables.
38941         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38942         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38943         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38944         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38946 2012-02-29  Eric Blake  <eblake@redhat.com>
38948         termios: fix pid_t always, not just for tcgetsid
38949         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38950         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38951         just when building tcgetsid.
38953 2012-02-29  Bruno Haible  <bruno@clisp.org>
38955         Tests for module 'hypotl'.
38956         * modules/hypotl-tests: New file.
38957         * tests/test-hypotl.c: New file.
38959         New module 'hypotl'.
38960         * lib/math.in.h (hypotl): New declaration.
38961         * lib/hypotl.c: New file.
38962         * m4/hypotl.m4: New file.
38963         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38965         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38966         * modules/hypotl: New file.
38967         * tests/test-math-c++.cc: Check the hypotl declaration.
38968         * doc/posix-functions/hypotl.texi: Mention the new module.
38970 2012-02-29  Eric Blake  <eblake@redhat.com>
38972         tcgetsid: fix cygwin header bug
38973         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38975         docs: update cygwin progress
38976         * doc/posix-functions/llround.texi (llround): Added in cygwin
38977         1.7.8.
38978         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38979         * doc/glibc-functions/program_invocation_name.texi
38980         (program_invocation_name): Likewise.
38981         * doc/glibc-functions/program_invocation_short_name.texi
38982         (program_invocation_short_name): Likewise.
38983         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38984         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38985         Likewise.
38986         * doc/posix-functions/pthread_spin_destroy.texi
38987         (pthread_spin_destroy): Added in cygwin 1.7.10.
38988         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38989         Likewise.
38990         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38991         Likewise.
38992         * doc/posix-functions/pthread_spin_trylock.texi
38993         (pthread_spin_trylock): Likewise.
38994         * doc/posix-functions/pthread_spin_unlock.texi
38995         (pthread_spin_unlock): Likewise.
38996         * doc/posix-functions/pthread_setschedprio.texi
38997         (pthread_setschedprio): Likewise.
38998         * doc/posix-functions/pthread_attr_getstack.texi
38999         (pthread_attr_getstack): Likewise.
39000         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
39001         (pthread_attr_getstackaddr): Likewise.
39002         * doc/glibc-functions/pthread_getattr_np.texi
39003         (pthread_getattr_np): Likewise.
39004         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
39005         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
39006         * doc/posix-functions/clock_settime.texi (clock_settime):
39007         Likewise.
39008         * doc/posix-functions/pthread_attr_getguardsize.texi
39009         (pthread_attr_getguardsize): Likewise.
39010         * doc/posix-functions/pthread_attr_setguardsize.texi
39011         (pthread_attr_setguardsize): Likewise.
39012         * doc/posix-functions/pthread_attr_setstack.texi
39013         (pthread_attr_setstack): Likewise.
39014         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
39015         (pthread_attr_setstackaddr): Likewise.
39016         * doc/posix-functions/clock_getcpuclockid.texi
39017         (clock_getcpuclockid): Likewise.
39018         * doc/posix-functions/pthread_getcpuclockid.texi
39019         (pthread_getcpuclockid): Likewise.
39020         * doc/glibc-functions/error.texi (error): Likewise.
39021         * doc/glibc-functions/error_at_line.texi (error_at_line):
39022         Likewise.
39023         * doc/glibc-functions/error_message_count.texi
39024         (error_message_count): Likewise.
39025         * doc/glibc-functions/error_one_per_line.texi
39026         (error_one_per_line): Likewise.
39027         * doc/glibc-functions/error_print_progname.texi
39028         (error_print_progname): Likewise.
39029         * doc/posix-functions/pthread_condattr_getclock.texi
39030         (pthread_condattr_getclock): Likewise.
39031         * doc/posix-functions/pthread_condattr_setclock.texi
39032         (pthread_condattr_setclock): Likewise.
39033         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
39034         Likewise.
39035         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
39036         * doc/glibc-functions/getpt.texi (getpt): Likewise.
39037         * doc/glibc-functions/get_current_dir_name.texi
39038         (get_current_dir_name): Likewise.
39039         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
39040         Likewise.
39041         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
39042         wrong return type.
39043         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
39044         1.7.11.
39046 2012-02-29  Bruno Haible  <bruno@clisp.org>
39048         Tests for module 'hypotf'.
39049         * modules/hypotf-tests: New file.
39050         * tests/test-hypotf.c: New file.
39052         New module 'hypotf'.
39053         * lib/math.in.h (hypotf): New declaration.
39054         * lib/hypotf.c: New file.
39055         * m4/hypotf.m4: New file.
39056         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
39057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
39058         REPLACE_HYPOTF.
39059         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
39060         REPLACE_HYPOTF.
39061         * modules/hypotf: New file.
39062         * tests/test-math-c++.cc: Check the hypotf declaration.
39063         * doc/posix-functions/hypotf.texi: Mention the new module.
39065         hypot: Prepare for hypotf module.
39066         * m4/hypot.m4: New file.
39067         * modules/hypot (Files): Add m4/hypot.m4.
39068         (configure.ac): Invoke gl_FUNC_HYPOT.
39070 2012-02-29  Bruno Haible  <bruno@clisp.org>
39072         hypot tests: More tests.
39073         * tests/test-hypot.c: Include <float.h>.
39074         (main): Add tests about overflow and underflow.
39076 2012-02-29  Bruno Haible  <bruno@clisp.org>
39078         math code: Add comments.
39079         * lib/acosl.c: Add comment about related glibc source files.
39080         * lib/asinl.c: Likewise.
39081         * lib/atanl.c: Likewise.
39082         * lib/expl.c: Likewise.
39083         * lib/logl.c: Likewise.
39084         * lib/sincosl.c: Likewise.
39085         * lib/sinl.c: Likewise.
39086         * lib/tanl.c: Likewise.
39087         * lib/trigl.c: Likewise.
39088         * lib/cosl.c: Likewise. Fix comments.
39090 2012-02-28  Bruno Haible  <bruno@clisp.org>
39092         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
39093         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
39094         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
39095         HUGE_VALL are defined.
39096         (numeric_equald): Renamed from numeric_equal.
39097         (numeric_equalf, numeric_equall): New functions.
39098         (main): Check also HUGE_VALF, HUGE_VALL.
39099         * modules/math-tests (Files): Add tests/macros.h.
39100         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
39101         HUGE_VALL.
39103 2012-02-28  Bruno Haible  <bruno@clisp.org>
39105         doc: Move ISO C11 feature notes into POSIX chapters.
39106         * doc/posix-functions/aligned_alloc.texi: Renamed from
39107         doc/glibc-functions/aligned_alloc.texi.
39108         * doc/posix-functions/quick_exit.texi: Renamed from
39109         doc/glibc-functions/quick_exit.texi.
39110         * doc/posix-headers/uchar.texi: Renamed from
39111         doc/glibc-headers/uchar.texi.
39112         * doc/posix-functions/c16rtomb.texi: Renamed from
39113         doc/glibc-functions/c16rtomb.texi.
39114         * doc/posix-functions/c32rtomb.texi: Renamed from
39115         doc/glibc-functions/c32rtomb.texi.
39116         * doc/posix-functions/mbrtoc16.texi: Renamed from
39117         doc/glibc-functions/mbrtoc16.texi.
39118         * doc/posix-functions/mbrtoc32.texi: Renamed from
39119         doc/glibc-functions/mbrtoc32.texi.
39120         * doc/gnulib.texi: Update.
39121         (Glibc uchar.h): Remove section.
39122         Suggested by Eric Blake.
39124 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
39126         stdnoreturn: port to MSVC better
39127         MSVC standard headers use __declspec(noreturn), so #define noreturn
39128         to empty on that platform.  Reported by Bruno Haible in
39129         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
39130         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
39131         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
39133 2012-02-28  Bruno Haible  <bruno@clisp.org>
39135         doc: Mention new glibc headers and functions.
39136         * doc/glibc-headers/uchar.texi: New file.
39137         * doc/glibc-functions/aligned_alloc.texi: New file.
39138         * doc/glibc-functions/c16rtomb.texi: New file.
39139         * doc/glibc-functions/c32rtomb.texi: New file.
39140         * doc/glibc-functions/clock_adjtime.texi: New file.
39141         * doc/glibc-functions/fanotify_init.texi: New file.
39142         * doc/glibc-functions/fanotify_mark.texi: New file.
39143         * doc/glibc-functions/inet6_opt_append.texi: New file.
39144         * doc/glibc-functions/inet6_opt_find.texi: New file.
39145         * doc/glibc-functions/inet6_opt_finish.texi: New file.
39146         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
39147         * doc/glibc-functions/inet6_opt_init.texi: New file.
39148         * doc/glibc-functions/inet6_opt_next.texi: New file.
39149         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
39150         * doc/glibc-functions/inet6_rth_add.texi: New file.
39151         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
39152         * doc/glibc-functions/inet6_rth_init.texi: New file.
39153         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
39154         * doc/glibc-functions/inet6_rth_segments.texi: New file.
39155         * doc/glibc-functions/inet6_rth_space.texi: New file.
39156         * doc/glibc-functions/login.texi: New file.
39157         * doc/glibc-functions/mbrtoc16.texi: New file.
39158         * doc/glibc-functions/mbrtoc32.texi: New file.
39159         * doc/glibc-functions/name_to_handle_at.texi: New file.
39160         * doc/glibc-functions/ntp_gettimex.texi: New file.
39161         * doc/glibc-functions/open_by_handle_at.texi: New file.
39162         * doc/glibc-functions/prlimit.texi: New file.
39163         * doc/glibc-functions/process_vm_readv.texi: New file.
39164         * doc/glibc-functions/process_vm_writev.texi: New file.
39165         * doc/glibc-functions/recvmmsg.texi: New file.
39166         * doc/glibc-functions/scandirat.texi: New file.
39167         * doc/glibc-functions/sendmmsg.texi: New file.
39168         * doc/glibc-functions/setns.texi: New file.
39169         * doc/glibc-functions/timespec_get.texi: New file.
39170         * doc/gnulib.texi: Include them.
39171         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
39172         sections.
39173         Reported by Eric Blake.
39175 2012-02-28  Bruno Haible  <bruno@clisp.org>
39177         Avoid compilation errors with MSVC option -fp:strict.
39178         * lib/floor.c: Use MSVC specific pragma fenv_access.
39179         * lib/ceil.c: Likewise.
39180         * lib/trunc.c: Likewise.
39181         * lib/round.c: Likewise.
39182         * lib/rint.c: Likewise.
39183         * lib/fma.c: Likewise.
39184         * lib/integer_length.c: Likewise.
39185         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39187         * tests/test-floor2.c: Likewise.
39188         * tests/test-floorf2.c: Likewise.
39189         * tests/test-ceil2.c: Likewise.
39190         * tests/test-ceilf2.c: Likewise.
39191         * tests/test-trunc2.c: Likewise.
39192         * tests/test-truncf2.c: Likewise.
39193         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39195 2012-02-27  Bruno Haible  <bruno@clisp.org>
39197         Tests for module 'sqrtl-ieee'.
39198         * modules/sqrtl-ieee-tests: New file.
39199         * tests/test-sqrtl-ieee.c: New file.
39201         New module 'sqrtl-ieee'.
39202         * modules/sqrtl-ieee: New file.
39204         Tests for module 'sqrt-ieee'.
39205         * modules/sqrt-ieee-tests: New file.
39206         * tests/test-sqrt-ieee.c: New file.
39208         New module 'sqrt-ieee'.
39209         * modules/sqrt-ieee: New file.
39211         Tests for module 'sqrtf-ieee'.
39212         * modules/sqrtf-ieee-tests: New file.
39213         * tests/test-sqrtf-ieee.c: New file.
39214         * tests/test-sqrt-ieee.h: New file.
39216         New module 'sqrtf-ieee'.
39217         * modules/sqrtf-ieee: New file.
39219 2012-02-27  Bruno Haible  <bruno@clisp.org>
39221         remainderl-ieee: Work around test failure on OSF/1.
39222         * m4/remainderl-ieee.m4: New file.
39223         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
39224         present, test whether remainderl works with a zero second argument.
39225         Replace it if not.
39226         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
39227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
39228         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
39229         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
39230         (Depends-on): Update conditions.
39231         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
39232         (Depends-on): Add remainder-ieee.
39233         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
39234         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
39235         module.
39237         remainderf-ieee: Work around test failure on OSF/1.
39238         * m4/remainderf-ieee.m4: New file.
39239         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
39240         present, test whether remainderf works with a zero second argument.
39241         Replace it if not.
39242         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
39243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
39244         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
39245         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
39246         (Depends-on): Update conditions.
39247         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
39248         (Depends-on): Add remainder-ieee.
39249         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
39250         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
39251         module.
39253         remainder-ieee: Work around test failure on OSF/1.
39254         * m4/remainder-ieee.m4: New file.
39255         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
39256         present, test whether remainder works with a zero second argument.
39257         Replace it if not.
39258         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
39259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
39260         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
39261         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
39262         (Depends-on): Update dependencies.
39263         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
39264         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
39265         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
39267         Tests for module 'remainderl-ieee'.
39268         * modules/remainderl-ieee-tests: New file.
39269         * tests/test-remainderl-ieee.c: New file.
39271         New module 'remainderl-ieee'.
39272         * modules/remainderl-ieee: New file.
39274         Tests for module 'remainder-ieee'.
39275         * modules/remainder-ieee-tests: New file.
39276         * tests/test-remainder-ieee.c: New file.
39278         New module 'remainder-ieee'.
39279         * modules/remainder-ieee: New file.
39281         Tests for module 'remainderf-ieee'.
39282         * modules/remainderf-ieee-tests: New file.
39283         * tests/test-remainderf-ieee.c: New file.
39284         * tests/test-remainder-ieee.h: New file.
39286         New module 'remainderf-ieee'.
39287         * modules/remainderf-ieee: New file.
39289 2012-02-27  Bruno Haible  <bruno@clisp.org>
39291         modff, modfl: Fix configure syntax error.
39292         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
39293         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39295 2012-02-27  Bruno Haible  <bruno@clisp.org>
39297         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
39298         * m4/fmodl-ieee.m4: New file.
39299         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
39300         whether fmodl works with zero arguments. Replace it if not.
39301         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
39302         (Depends-on): Add fmod-ieee.
39303         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
39304         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
39306         fmodf-ieee: Work around test failure on OSF/1.
39307         * m4/fmodf-ieee.m4: New file.
39308         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
39309         whether fmodf works with zero arguments. Replace it if not.
39310         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
39311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
39312         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
39313         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
39314         (Depends-on): Update dependencies.
39315         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
39316         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
39317         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
39319         fmodf-ieee: Work around test failure on MSVC 9.
39320         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
39321         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
39323         fmod-ieee: Work around test failures on OSF/1, mingw.
39324         * m4/fmod-ieee.m4: New file.
39325         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
39326         whether fmod works with zero arguments. Replace it if not.
39327         * lib/math.in.h (fmod): New declaration.
39328         * lib/fmod.c: New file.
39329         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
39330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
39331         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
39332         * modules/fmod (Files): Add lib/fmod.c.
39333         (Depends-on): Add math, isinf, trunc, fma.
39334         (configure.ac): Arrange to compile lib/fmod.c if needed.
39335         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
39336         m4/signbit.m4.
39337         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
39338         * tests/test-math-c++.cc: Check the declaration of fmod.
39339         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
39341         fmodl-ieee: Fix test failures.
39342         * lib/fmodl.c (fmodl): Treat Inf specially.
39343         * modules/fmodl (Depends-on): Add isinf.
39345         Tests for module 'fmodl-ieee'.
39346         * modules/fmodl-ieee-tests: New file.
39347         * tests/test-fmodl-ieee.c: New file.
39349         New module 'fmodl-ieee'.
39350         * modules/fmodl-ieee: New file.
39352         Tests for module 'fmod-ieee'.
39353         * modules/fmod-ieee-tests: New file.
39354         * tests/test-fmod-ieee.c: New file.
39356         New module 'fmod-ieee'.
39357         * modules/fmod-ieee: New file.
39359         Tests for module 'fmodf-ieee'.
39360         * modules/fmodf-ieee-tests: New file.
39361         * tests/test-fmodf-ieee.c: New file.
39362         * tests/test-fmod-ieee.h: New file.
39364         New module 'fmodf-ieee'.
39365         * modules/fmodf-ieee: New file.
39367 2012-02-27  Bruno Haible  <bruno@clisp.org>
39369         Tests for module 'rintl-ieee'.
39370         * modules/rintl-ieee-tests: New file.
39371         * tests/test-rintl-ieee.c: New file.
39373         New module 'rintl-ieee'.
39374         * modules/rintl-ieee: New file.
39376         Tests for module 'rint-ieee'.
39377         * modules/rint-ieee-tests: New file.
39378         * tests/test-rint-ieee.c: New file.
39380         New module 'rint-ieee'.
39381         * modules/rint-ieee: New file.
39383         Tests for module 'rintf-ieee'.
39384         * modules/rintf-ieee-tests: New file.
39385         * tests/test-rintf-ieee.c: New file.
39386         * tests/test-rint-ieee.h: New file.
39388         New module 'rintf-ieee'.
39389         * modules/rintf-ieee: New file.
39391 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39393         regex: re_search etc. should return -2 when memory exhausted
39394         This bug was uncovered when testing 'grep'.  Without the fix,
39395         re_search and friends return -1 when memory is exhausted, but -1
39396         means no match, and this causes grep to falsely report no-match
39397         instead of memory-exhaustion.  See
39398         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
39399         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
39400         trouble; this can occur if re_search_internal ran out of memory.
39402 2012-02-26  Bruno Haible  <bruno@clisp.org>
39404         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
39405         * m4/modfl-ieee.m4: New file.
39406         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
39407         whether modfl works with Inf. Replace it if not.
39408         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
39409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
39410         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
39411         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
39412         (Depends-on): Update dependencies.
39413         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
39414         m4/signbit.m4.
39415         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
39416         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
39418         modfl-ieee: Fix dependencies.
39419         * modules/modfl-ieee (Depends-on): Add modf-ieee.
39421         modfl-ieee: Fix test failures.
39422         * lib/modfl.c (modfl): Treat NaN and Inf specially.
39423         * modules/modfl (Depends-on): Add isfinite, isinf.
39425         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
39426         * m4/modff-ieee.m4: New file.
39427         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
39428         whether modff works with NaN and Inf. Replace it if not.
39429         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
39430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
39431         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
39432         * modules/modff (configure.ac): Consider REPLACE_MODFF.
39433         (Depends-on): Update dependencies.
39434         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
39435         m4/signbit.m4.
39436         (Depends-on): Add modf-ieee.
39437         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
39438         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
39440         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
39441         * m4/modf-ieee.m4: New file.
39442         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
39443         whether modf works with NaN and Inf. Replace it if not.
39444         * lib/math.in.h (modf): New declaration.
39445         * lib/modf.c: New file.
39446         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
39447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
39448         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
39449         * modules/modf (Files): Add lib/modf.c.
39450         (Depends-on): Add math, isfinite, trunc, isinf.
39451         (configure.ac): Addrange to compile lib/modf.c if needed.
39452         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
39453         m4/signbit.m4.
39454         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
39455         * tests/test-math-c++.cc: Check the declaration of modf.
39456         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
39458         Tests for module 'modfl-ieee'.
39459         * modules/modfl-ieee-tests: New file.
39460         * tests/test-modfl-ieee.c: New file.
39462         New module 'modfl-ieee'.
39463         * modules/modfl-ieee: New file.
39465         Tests for module 'modf-ieee'.
39466         * modules/modf-ieee-tests: New file.
39467         * tests/test-modf-ieee.c: New file.
39469         New module 'modf-ieee'.
39470         * modules/modf-ieee: New file.
39472         Tests for module 'modff-ieee'.
39473         * modules/modff-ieee-tests: New file.
39474         * tests/test-modff-ieee.c: New file.
39475         * tests/test-modf-ieee.h: New file.
39477         New module 'modff-ieee'.
39478         * modules/modff-ieee: New file.
39480 2012-02-26  Bruno Haible  <bruno@clisp.org>
39482         Tests for module 'fabsl-ieee'.
39483         * modules/fabsl-ieee-tests: New file.
39484         * tests/test-fabsl-ieee.c: New file.
39486         New module 'fabsl-ieee'.
39487         * modules/fabsl-ieee: New file.
39489         Tests for module 'fabs-ieee'.
39490         * modules/fabs-ieee-tests: New file.
39491         * tests/test-fabs-ieee.c: New file.
39493         New module 'fabs-ieee'.
39494         * modules/fabs-ieee: New file.
39496         Tests for module 'fabsf-ieee'.
39497         * modules/fabsf-ieee-tests: New file.
39498         * tests/test-fabsf-ieee.c: New file.
39499         * tests/test-fabs-ieee.h: New file.
39501         New module 'fabsf-ieee'.
39502         * modules/fabsf-ieee: New file.
39504 2012-02-26  Bruno Haible  <bruno@clisp.org>
39506         Tests for module 'fmal-ieee'.
39507         * modules/fmal-ieee-tests: New file.
39508         * tests/test-fmal-ieee.c: New file.
39510         New module 'fmal-ieee'.
39511         * modules/fmal-ieee: New file.
39513         Tests for module 'fma-ieee'.
39514         * modules/fma-ieee-tests: New file.
39515         * tests/test-fma-ieee.c: New file.
39517         New module 'fma-ieee'.
39518         * modules/fma-ieee: New file.
39520         Tests for module 'fmaf-ieee'.
39521         * modules/fmaf-ieee-tests: New file.
39522         * tests/test-fmaf-ieee.c: New file.
39523         * tests/test-fma-ieee.h: New file.
39525         New module 'fmaf-ieee'.
39526         * modules/fmaf-ieee: New file.
39528 2012-02-26  Bruno Haible  <bruno@clisp.org>
39530         Tests for module 'ldexpl-ieee'.
39531         * modules/ldexpl-ieee-tests: New file.
39532         * tests/test-ldexpl-ieee.c: New file.
39534         New module 'ldexpl-ieee'.
39535         * modules/ldexpl-ieee: New file.
39537         Tests for module 'ldexp-ieee'.
39538         * modules/ldexp-ieee-tests: New file.
39539         * tests/test-ldexp-ieee.c: New file.
39541         New module 'ldexp-ieee'.
39542         * modules/ldexp-ieee: New file.
39544         Tests for module 'ldexpf-ieee'.
39545         * modules/ldexpf-ieee-tests: New file.
39546         * tests/test-ldexpf-ieee.c: New file.
39547         * tests/test-ldexp-ieee.h: New file.
39549         New module 'ldexpf-ieee'.
39550         * modules/ldexpf-ieee: New file.
39552 2012-02-26  Bruno Haible  <bruno@clisp.org>
39554         Refactor frexp*-ieee tests.
39555         * tests/test-frexp-ieee.h: New file.
39556         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
39557         (main): Just call test_function.
39558         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
39559         (main): Just call test_function.
39560         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
39561         (main): Just call test_function.
39562         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
39563         * modules/frexp-ieee-tests (Files): Likewise.
39564         * modules/frexpl-ieee-tests (Files): Likewise.
39566         Tests for module 'frexpl-ieee'.
39567         * modules/frexpl-ieee-tests: New file.
39568         * tests/test-frexpl-ieee.c: New file.
39570         New module 'frexpl-ieee'.
39571         * modules/frexpl-ieee: New file.
39573         Tests for module 'frexp-ieee'.
39574         * modules/frexp-ieee-tests: New file.
39575         * tests/test-frexp-ieee.c: New file.
39577         New module 'frexp-ieee'.
39578         * modules/frexp-ieee: New file.
39580         Tests for module 'frexpf-ieee'.
39581         * modules/frexpf-ieee-tests: New file.
39582         * tests/test-frexpf-ieee.c: New file.
39584         New module 'frexpf-ieee'.
39585         * modules/frexpf-ieee: New file.
39587 2012-02-26  Bruno Haible  <bruno@clisp.org>
39589         roundl-ieee tests: More tests.
39590         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39591         (main): Add tests for [MX] shaded specification in POSIX.
39592         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39593         (Depends-on): Add isnanl-nolibm.
39595         round-ieee tests: More tests.
39596         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39597         (main): Add tests for [MX] shaded specification in POSIX.
39598         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39599         (Depends-on): Add isnand-nolibm.
39601         roundf-ieee tests: More tests.
39602         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39603         (main): Add tests for [MX] shaded specification in POSIX.
39604         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39605         (Depends-on): Add isnanf-nolibm.
39607         truncl-ieee tests: More tests.
39608         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39609         (main): Add tests for [MX] shaded specification in POSIX.
39610         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39611         (Depends-on): Add isnanl-nolibm.
39613         trunc-ieee tests: More tests.
39614         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39615         (main): Add tests for [MX] shaded specification in POSIX.
39616         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39617         (Depends-on): Add isnand-nolibm.
39619         truncf-ieee tests: More tests.
39620         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39621         (main): Add tests for [MX] shaded specification in POSIX.
39622         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39623         (Depends-on): Add isnanf-nolibm.
39625         ceill-ieee tests: More tests.
39626         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39627         (main): Add tests for [MX] shaded specification in POSIX.
39628         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39629         (Depends-on): Add isnanl-nolibm.
39631         ceil-ieee tests: More tests.
39632         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39633         (main): Add tests for [MX] shaded specification in POSIX.
39634         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39635         (Depends-on): Add isnand-nolibm.
39637         ceilf-ieee tests: More tests.
39638         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39639         (main): Add tests for [MX] shaded specification in POSIX.
39640         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39641         (Depends-on): Add isnanf-nolibm.
39643         floorl-ieee tests: More tests.
39644         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39645         (main): Add tests for [MX] shaded specification in POSIX.
39646         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39647         (Depends-on): Add isnanl-nolibm.
39649         floor-ieee tests: More tests.
39650         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39651         (main): Add tests for [MX] shaded specification in POSIX.
39652         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39653         (Depends-on): Add isnand-nolibm.
39655         floorf-ieee tests: More tests.
39656         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39657         (main): Add tests for [MX] shaded specification in POSIX.
39658         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39659         (Depends-on): Add isnanf-nolibm.
39661 2012-02-26  Bruno Haible  <bruno@clisp.org>
39663         fpieee: More comments.
39664         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39666 2012-02-25  Bruno Haible  <bruno@clisp.org>
39668         Tests for module 'log10l'.
39669         * modules/log10l-tests: New file.
39670         * tests/test-log10l.c: New file.
39671         * tests/test-math-c++.cc: Check the declaration of log10l.
39673         New module 'log10l'.
39674         * lib/math.in.h (log10l): New declaration.
39675         * lib/log10l.c: New file.
39676         * m4/log10l.m4: New file.
39677         * modules/log10l: New file.
39678         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39680         HAVE_DECL_LOG10L.
39681         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39682         HAVE_DECL_LOG10L.
39683         * doc/posix-functions/log10l.texi: Mention the new module.
39685 2012-02-25  Bruno Haible  <bruno@clisp.org>
39687         fmodl, remainder*: Avoid wrong results due to rounding errors.
39688         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39689         expected bounds.
39690         * lib/remainderf.c (remainderf): Likewise.
39691         * lib/remainder.c (remainder): Likewise.
39692         * lib/remainderl.c (remainderl): Likewise.
39694 2012-02-25  Bruno Haible  <bruno@clisp.org>
39696         Tests for module 'remainderl'.
39697         * modules/remainderl-tests: New file.
39698         * tests/test-remainderl.c: New file.
39699         * tests/test-math-c++.cc: Check the declaration of remainderl.
39701         New module 'remainderl'.
39702         * lib/math.in.h (remainderl): New declaration.
39703         * lib/remainderl.c: New file.
39704         * m4/remainderl.m4: New file.
39705         * modules/remainderl: New file.
39706         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39708         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39709         HAVE_REMAINDERL.
39710         * doc/posix-functions/remainderl.texi: Mention the new module.
39712 2012-02-25  Bruno Haible  <bruno@clisp.org>
39714         Tests for module 'remainderf'.
39715         * modules/remainderf-tests: New file.
39716         * tests/test-remainderf.c: New file.
39717         * tests/test-math-c++.cc: Check the declaration of remainderf.
39719         New module 'remainderf'.
39720         * lib/math.in.h (remainderf): New declaration.
39721         * lib/remainderf.c: New file.
39722         * m4/remainderf.m4: New file.
39723         * modules/remainderf: New file.
39724         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39726         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39727         HAVE_REMAINDERF.
39728         * doc/posix-functions/remainderf.texi: Mention the new module.
39730 2012-02-25  Bruno Haible  <bruno@clisp.org>
39732         remainder: Support for MSVC.
39733         * lib/math.in.h (remainder): New declaration.
39734         * lib/remainder.c: New file.
39735         * m4/remainder.m4: New file.
39736         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39737         (Depends-on): Add math, round, fma.
39738         (configure.ac): Use results of gl_FUNC_REMAINDER.
39739         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39741         HAVE_DECL_REMAINDER.
39742         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39743         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39744         * tests/test-math-c++.cc: Check the declaration of remainder.
39745         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39746         problems are fixed.
39748 2012-02-25  Bruno Haible  <bruno@clisp.org>
39750         Tests for module 'fmodl'.
39751         * modules/fmodl-tests: New file.
39752         * tests/test-fmodl.c: New file.
39753         * tests/test-math-c++.cc: Check the declaration of fmodl.
39755         New module 'fmodl'.
39756         * lib/math.in.h (fmodl): New declaration.
39757         * lib/fmodl.c: New file.
39758         * m4/fmodl.m4: New file.
39759         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39761         REPLACE_FMODL.
39762         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39763         REPLACE_FMODL.
39764         * modules/fmodl: New file.
39765         * doc/posix-functions/fmodl.texi: Mention the new module.
39767 2012-02-25  Bruno Haible  <bruno@clisp.org>
39769         Tests for module 'modfl'.
39770         * modules/modfl-tests: New file.
39771         * tests/test-modfl.c: New file.
39772         * tests/test-math-c++.cc: Check the declaration of modfl.
39774         New module 'modfl'.
39775         * lib/math.in.h (modfl): New declaration.
39776         * lib/modfl.c: New file.
39777         * m4/modfl.m4: New file.
39778         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39780         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39781         * modules/modfl: New file.
39782         * doc/posix-functions/modfl.texi: Mention the new module.
39784 2012-02-25  Bruno Haible  <bruno@clisp.org>
39786         Tests for module 'fabsl'.
39787         * modules/fabsl-tests: New file.
39788         * tests/test-fabsl.c: New file.
39789         * tests/test-math-c++.cc: Check the declaration of fabsl.
39791         New module 'fabsl'.
39792         * lib/math.in.h (fabsl): New declaration.
39793         * lib/fabsl.c: New file.
39794         * m4/fabsl.m4: New file.
39795         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39797         REPLACE_FABSL.
39798         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39799         REPLACE_FABSL.
39800         * modules/fabsl: New file.
39801         * doc/posix-functions/fabsl.texi: Mention the new module.
39803 2012-02-25  Bruno Haible  <bruno@clisp.org>
39805         fabs tests: More tests.
39806         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39807         (zero): New variable.
39808         (main): Add tests for signed zero.
39809         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39811         fabsf tests: More tests.
39812         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39813         (zero): New variable.
39814         (main): Add tests for signed zero.
39815         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39817 2012-02-24  Bruno Haible  <bruno@clisp.org>
39819         atanl: Provide function definition on MSVC.
39820         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39821         function pointer.
39822         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39824 2012-02-24  Bruno Haible  <bruno@clisp.org>
39826         acosl: Provide function definition on MSVC.
39827         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39828         function pointer.
39829         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39831 2012-02-24  Bruno Haible  <bruno@clisp.org>
39833         asinl: Provide function definition on MSVC.
39834         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39835         function pointer.
39836         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39838 2012-02-24  Bruno Haible  <bruno@clisp.org>
39840         tanl: Provide function definition on MSVC.
39841         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39842         function pointer.
39843         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39845 2012-02-24  Bruno Haible  <bruno@clisp.org>
39847         cosl: Provide function definition on MSVC.
39848         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39849         function pointer.
39850         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39852 2012-02-24  Bruno Haible  <bruno@clisp.org>
39854         sinl: Provide function definition on MSVC.
39855         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39856         function pointer.
39857         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39859 2012-02-24  Bruno Haible  <bruno@clisp.org>
39861         logl: Provide function definition on MSVC.
39862         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39863         function pointer.
39864         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39866 2012-02-24  Bruno Haible  <bruno@clisp.org>
39868         expl: Provide function definition on MSVC.
39869         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39870         function pointer.
39871         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39873 2012-02-24  Bruno Haible  <bruno@clisp.org>
39875         sqrtl: Provide function definition on MSVC.
39876         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39877         a function pointer.
39878         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39880 2012-02-24  Bruno Haible  <bruno@clisp.org>
39882         ceill: Provide function definition on MSVC.
39883         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39884         used as a function pointer.
39885         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39887 2012-02-24  Bruno Haible  <bruno@clisp.org>
39889         floorl: Provide function definition on MSVC.
39890         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39891         used as a function pointer.
39892         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39894 2012-02-24  Bruno Haible  <bruno@clisp.org>
39896         ceilf: Provide function definition on MSVC.
39897         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39898         used as a function pointer.
39899         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39901 2012-02-24  Bruno Haible  <bruno@clisp.org>
39903         floorf: Provide function definition on MSVC.
39904         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39905         used as a function pointer.
39906         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39908 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39910         stdnoreturn: new module
39911         This implements a replacement for C11's <stdnoreturn.h>.
39912         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39913         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39914         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39915         * tests/test-stdnoreturn.c: New files.
39917 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39919         regex: fix false multibyte matches in some regular expressions
39920         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39921         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39922         * lib/regex_internal.c (re_string_skip_chars):
39923         Fix miscomputation of remain_len that may cause incomplete
39924         multi-byte character and false match.
39926 2012-02-24  Jim Meyering  <meyering@redhat.com>
39928         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39929         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39930         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39931         Remove now-unnecessary str''cmp obfuscation.
39932         Suggested by Akim Demaille.
39934 2012-02-24  Bruno Haible  <bruno@clisp.org>
39936         streq: Rename macro.
39937         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39938         * NEWS: Mention the change.
39939         * lib/mbrtowc.c (mbrtowc): Update.
39940         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39941         * lib/wcwidth.c (wcwidth): Update.
39942         Suggested by Akim Demaille and Jim Meyering.
39944 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39946         regex: fix typo in definition of MIN
39947         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39948         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39950 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39951             Bruno Haible  <bruno@clisp.org>
39953         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39954         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39955         entries into a stack-allocated buffer directly.
39956         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39958 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39959             Bruno Haible  <bruno@clisp.org>
39961         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39963          - There were several instances of this pattern:
39965              for (;;) {
39966                n = acl (f, GETACLCNT, 0, NULL);
39967                [ allocate an array A of size N ]
39968                if (acl (f, GETACL, n, a) == n)
39969                  break;
39970              }
39972            This loop might never terminate if some other process is constantly
39973            manipulating the file's ACL.  The loop should be rewritten to
39974            terminate.
39976          - The acl (... GETACLNT ...) call is merely an optimization; its value
39977            is merely a hint as to how big to make the array.  A better
39978            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39979            and just guess a reasonably-big size, growing the size and trying
39980            again if it's not large enough.  This guarantees termination, and
39981            saves a system call.
39983         * lib/acl-internal.h: Include <limits.h>.
39984         (MIN, SIZE_MAX): New macros.
39985         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39986         a stack-allocated buffer, and use malloc if it does not fit. Don't
39987         use GETACLCNT.
39988         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39990 2012-02-19  Bruno Haible  <bruno@clisp.org>
39992         acl: Fix endless loop on Solaris with vxfs.
39993         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39994         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39995         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39996         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39997         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39998         Reported by Bill Jones in
39999         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
40001 2012-02-19  Bruno Haible  <bruno@clisp.org>
40003         acl: Fix copy-acl test failure on Solaris 11.0.
40004         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
40005         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
40006         that this function returns 0 in some more cases.
40008 2012-02-19  Bruno Haible  <bruno@clisp.org>
40010         acl: Update doc references.
40011         * doc/acl-resources.txt: Update links to Solaris documentation.
40013 2012-02-19  Bruno Haible  <bruno@clisp.org>
40015         Fix test failure in many locales on Solaris 11.
40016         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
40017         'tr' arguments.
40018         * tests/test-pipe-filter-ii1.c (main): Likewise.
40019         * build-aux/bootstrap (check_versions): Run 'tr' command with range
40020         expressions in the C locale.
40021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40022         * m4/host-os.m4 (gl_HOST_OS): Likewise.
40024 2012-02-19  Bruno Haible  <bruno@clisp.org>
40026         gnulib-tool: Improve usage message.
40027         * gnulib-tool (func_usage): Move doc of --help and --version to the
40028         section "Operation modes".
40030 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
40032         README-release: make it easier to execute commands
40033         * top/README-release: break commands out on to separate lines.
40035 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
40037         GNUmakefile: simplify detection of unconfigured trees
40038         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
40039         whether the tree make is being run from is already configured or
40040         not.  Related simplifications.
40042 2012-02-13  Simon Josefsson  <simon@josefsson.org>
40044         * gnulib-tool (func_usage): Document --help and --version.
40046 2012-02-11  Jim Meyering  <meyering@redhat.com>
40048         bootstrap: don't exit 0 upon gnulib-tool failure
40049         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
40050         its exit status, not 0.
40052 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
40054         README-release: various improvements
40055         * top/README-release: Give a command to push changes for the
40056         release.  Add "distcheck" to list of other pre-release checks.
40057         Fix instance of "make stable" which should be "make TYPE".
40059 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40061         maint: replace FSF snail-mail addresses with URLs
40062         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
40063         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
40064         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
40065         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
40066         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
40067         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
40068         * lib/check-version.c, lib/check-version.h, lib/config.charset:
40069         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
40070         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
40071         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
40072         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
40073         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
40074         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
40075         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
40076         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
40077         * lib/glthread/thread.c, lib/glthread/thread.h:
40078         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
40079         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
40080         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
40081         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
40082         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
40083         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
40084         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
40085         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
40086         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
40087         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
40088         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
40089         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
40090         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
40091         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
40092         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
40093         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
40094         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
40095         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
40096         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
40097         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
40098         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
40099         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
40100         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
40101         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
40102         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
40103         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
40104         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
40105         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
40106         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
40107         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
40108         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
40109         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
40110         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
40111         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
40112         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
40113         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
40114         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
40115         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
40116         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
40117         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
40118         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
40119         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
40120         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
40121         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
40122         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
40123         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
40124         * tests/test-poll.c, tests/test-quotearg-simple.c:
40125         * tests/test-quotearg.c, tests/test-quotearg.h:
40126         * tests/test-round-ieee.c, tests/test-round1.c:
40127         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
40128         * tests/test-roundl-ieee.c, tests/test-roundl.c:
40129         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
40130         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
40131         * tests/test-strerror.c, tests/test-strerror_r.c:
40132         * tests/test-strsignal.c, tests/test-strverscmp.c:
40133         * tests/test-xmemdup0.c:
40134         Replace FSF snail mail addresses with URLs, as per GNU coding
40135         standards.  See glibc bug
40136         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
40138 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40140         README-release: capitalize a word and split a line
40141         * top/README-release: Fix punctuation and spacing.
40143 2012-02-08  Akim Demaille  <demaille@gostai.com>
40145         fatal-signal: use C prototypes (with explicit void).
40146         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40147         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
40149 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40151         regex: spelling fix
40152         * lib/regexec.c: spelling fix
40154         regex: rely on stdint.h for SIZE_MAX
40155         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
40157 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40159         regex: merge glibc changes
40161         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
40162         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
40163         (init_word_char): Work even if bitset words are not exactly 32 or
40164         64 bits wide.  Don't assume there are no padding bits.
40165         * lib/regex.c [_LIBC]: Do not include <config.h>.
40166         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
40167         and -Wtype-limits.
40168         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
40169         needless disagreement with glibc.  All uses changed.  Define it to
40170         1 only if _GNU_SOURCE, to match glibc.
40171         (_REG_RM_NAME): Remove; no longer needed, since the names in
40172         question are now all protected by __USE_GNU.
40173         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
40174         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
40175         * lib/regex_internal.h (MIN): New macro.
40177         2012-01-03 Ulrich Drepper <drepper@gmail.com>
40178         * lib/regcomp.c (init_word_char): Optimize regex a bit.
40180         2011-12-30 Jakub Jelinek <jakub@redhat.com>
40181         * lib/regex_internal.c (re_string_fetch_byte_case):
40182         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
40183         is miscompiled, and it turns out it is because of an incorrect
40184         attribute on re_string_fetch_byte_case.  Unlike
40185         re_string_peek_byte_case, this one is really not pure, it modifies
40186         memory (increments pstr->cur_idx), and with the pure attribute GCC
40187         assumed it doesn't and it cached the presumed value of
40188         regexp->cur_idx in a variable across the
40189          for (;; ++i)
40190            {
40191              if (i >= BRACKET_NAME_BUF_SIZE)
40192                return REG_EBRACK;
40193              if (token->type == OP_OPEN_CHAR_CLASS)
40194                ch = re_string_fetch_byte_case (regexp);
40195              else
40196                ch = re_string_fetch_byte (regexp);
40197              if (re_string_eoi(regexp))
40198                return REG_EBRACK;
40199              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
40200                break;
40201              elem->opr.name[i] = ch;
40202            }
40204         2011-11-29 Andreas Schwab <schwab@redhat.com>
40205         * lib/regcomp.c (build_equiv_class):
40206         Fix access after end of search string in regex matcher.
40208         2011-11-12 Ulrich Drepper <drepper@redhat.com>
40209         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
40211         2011-10-12 Ulrich Drepper <drepper@redhat.com>
40212         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
40214         2011-10-11 Ulrich Drepper <drepper@redhat.com>
40215         * lib/regcomp.c (parse_branch, parse_sub_exp):
40216         More regex memory leak fixes and tests.
40217         (parse_sub_exp, parse_bracket_exp):
40218         Fix memory leak for some invalid regular expressions.
40220         2011-05-28 Ulrich Drepper <drepper@gmail.com>
40221         * lib/regex_internal.c, lib/regexec.c:
40222         Fix unnecessary overallocation due to incomplete character.  When
40223         incomplete characters are found at the end of a string the code
40224         ran amok and allocated lots of memory.  Stricter limits are now in
40225         place.
40227         2011-05-20 Reuben Thomas <rrt@sc3d.org>
40228         * lib/regex.h: Update documentation.
40230         2011-05-16 Aharon Robbins <arnold@skeeve.com>
40231         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
40233         2010-05-05 Andreas Schwab <schwab@redhat.com>
40234         * lib/regexec.c (find_collation_sequence_value):
40235         Fix lookup of collation sequence value during regexp matching.
40237         2010-01-22 Ulrich Drepper <drepper@redhat.com>
40238         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
40240         2008-01-16 Ulrich Drepper <drepper@redhat.com>
40241         * lib/regex.h: Cleanup namespace.
40243         2007-11-26 Ulrich Drepper <drepper@redhat.com>
40244         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
40246         2007-08-26 Ulrich Drepper <drepper@redhat.com>
40247         * lib/regex_internal.h: Prevent some declarations and definitions
40248         to be seen when used in tests.
40250         2005-05-06 Ulrich Drepper <drepper@redhat.com>
40251         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
40252         __libc_lock_* macros if not _LIBC.
40253         (struct re_dfa_t): Add lock.
40255 2012-02-07  Eric Blake  <eblake@redhat.com>
40257         maint.mk: also prohibit lower-case @var@
40258         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
40259         lower case, like @top_srcdir@.
40261 2012-02-04  Eric Blake  <eblake@redhat.com>
40263         canonicalize: avoid uninitialized memory use
40264         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
40265         random '/' left in dest.
40266         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
40268 2012-02-04  Bruno Haible  <bruno@clisp.org>
40270         isatty: Fix test failure of ptsname_r on native Windows.
40271         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
40272         and don't set errno.
40273         (isatty): Test first whether fd is valid. Set errno when returning 0.
40275 2012-02-04  Bruno Haible  <bruno@clisp.org>
40277         spawn-pipe tests: Fix a NULL program name in a diagnostic.
40278         * tests/test-spawn-pipe-main.c: Include progname.h.
40279         (main): Invoke set_program_name.
40280         * modules/spawn-pipe-tests (Depends-on): Add progname.
40282         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
40283         * tests/test-nonblocking-socket-main.c: Include progname.h.
40284         (main): Invoke set_program_name.
40285         * modules/nonblocking-socket-tests (Depends-on): Add progname.
40287         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
40288         * tests/test-nonblocking-pipe-main.c: Include progname.h.
40289         (main): Invoke set_program_name.
40290         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
40292 2012-02-04  Eric Blake  <eblake@redhat.com>
40294         canonicalize-lgpl: fix // handling
40295         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
40297         canonicalize: fix // handling
40298         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
40299         /// to //, since only // is special.
40301 2012-02-04  Bruno Haible  <bruno@clisp.org>
40303         ioctl: Fix test failure on native Windows.
40304         * lib/ioctl.c: Include msvc-nothrow.h.
40305         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
40307 2012-02-04  Bruno Haible  <bruno@clisp.org>
40309         fsync: Avoid test failure on native Windows.
40310         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
40311         read-only.
40313 2012-02-04  Bruno Haible  <bruno@clisp.org>
40315         sys_select: Avoid syntax error on OpenBSD 5.0.
40316         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
40317         currently being included, just include the system's <sys/select.h>.
40319 2012-02-04  Bruno Haible  <bruno@clisp.org>
40321         sys_select: Avoid syntax error on OpenBSD 5.0.
40322         * lib/sys_select.in.h: Include <signal.h> only after the include_next
40323         <sys/select.h>, not before.
40324         Reported by Jiri B <jirib@devio.us>.
40326 2012-02-04  Bruno Haible  <bruno@clisp.org>
40328         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
40329         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
40330         global variables.
40331         * tests/test-get-rusage-data.c (main): Likewise.
40332         Reported by Jim Meyering.
40334 2012-02-04  Bruno Haible  <bruno@clisp.org>
40336         stdioext: Fix last commit.
40337         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
40339 2012-02-03  Bruno Haible  <bruno@clisp.org>
40341         stdioext: Add tentative support for Plan9.
40342         * lib/stdio-impl.h: Include <errno.h>.
40343         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
40344         * lib/freadable.c (freadable): Likewise.
40345         * lib/fwritable.c (fwritable): Likewise.
40346         * lib/fbufmode.c (fbufmode): Likewise.
40347         * lib/freading.c (freading): Likewise.
40348         * lib/fwriting.c (fwriting): Likewise.
40349         * lib/freadptr.c (freadptr): Likewise.
40350         * lib/freadseek.c (freadptrinc): Likewise.
40351         * lib/freadahead.c (freadahead): Likewise.
40352         * lib/fpurge.c (fpurge): Likewise.
40353         * lib/fseeko.c (rpl_fseeko): Likewise.
40354         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
40355         Reported by Jens Staal <staal1978@gmail.com>.
40357 2012-02-02  Jim Meyering  <meyering@redhat.com>
40359         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
40360         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
40361         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
40362         not even to try to add the attribute.  Instead, add a pragma to suppress
40363         the suggestion/warning.
40365 2012-01-31  Karl Berry  <karl@gnu.org>
40367         setstate doc: typo.
40368         * doc/posix-functions/setstate.texi (setstate): { not (.
40370 2012-01-31  Bruno Haible  <bruno@clisp.org>
40372         popen: Make more robust on Windows.
40373         * lib/popen.c: On native Windows, use the _popen based code even if
40374         HAVE_POPEN is set.
40375         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
40376         environment variable on native Windows.
40378 2012-01-30  Bruno Haible  <bruno@clisp.org>
40380         pclose: Fix typo.
40381         * lib/stdio.in.h (pclose): Fix typo in warning message.
40383 2012-01-30  Bruno Haible  <bruno@clisp.org>
40385         doc about getlogin_r, setstate.
40386         * doc/posix-functions/getlogin_r.texi: List the incompatible
40387         declaration problem under "not fixed by gnulib".
40388         * doc/posix-functions/setstate.texi: Mention incompatible declaration
40389         problem on Solaris 11 and other platforms.
40391 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
40392             Bruno Haible  <bruno@clisp.org>
40394         poll tests: Make test more robust.
40395         * tests/test-poll.c: Include macros.h.
40396         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
40397         return value of various I/O operations.
40398         * modules/poll-tests (Files): Add tests/macros.h.
40400 2012-01-30  Bruno Haible  <bruno@clisp.org>
40402         sys_stat: Fix support for mingw64 and MSVC.
40403         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
40404         header files already do it.
40405         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
40406         stat itself.
40407         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40409 2012-01-30  Bruno Haible  <bruno@clisp.org>
40411         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
40412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
40413         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
40415 2012-01-29  Bruno Haible  <bruno@clisp.org>
40417         quotearg: Fix test failure on MacOS X 10.5.
40418         * tests/test-quotearg-simple.c: Include localcharset.h.
40419         (main): If the locale encoding is not ASCII, bypass the tests of
40420         locale_quoting_style and clocale_quoting_style.
40421         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
40423 2012-01-29  Jim Meyering  <meyering@redhat.com>
40425         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
40426         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
40427         detect uses of canonicalize_file_name.
40429 2012-01-28  Bruno Haible  <bruno@clisp.org>
40431         test-framework-sh: Fix test failure with AIX 7.1 diff.
40432         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
40433         in column 1, like 'diff -c' does.
40434         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
40435         whether 'diff -u' is used. Instead, test whether the output contains
40436         some '@' character.
40438 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40440         strtoimax: eliminate need for stdint.h, inttypes.h checks
40441         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
40442         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
40443         the prerequisites for a recently-introduced strtoimax test.
40444         I guess this might cause strtoimax to be replaced when not
40445         strictly necessary on older hosts, but this shouldn't introduce
40446         any bugs and it should make Emacs 'configure' faster on typical
40447         modern hosts.  Problem discovered when importing the latest gnulib
40448         to an Emacs test version.
40449         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
40451 2012-01-28  Bruno Haible  <bruno@clisp.org>
40453         sys_time: Override 'struct timeval' on some native Windows platforms.
40454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
40455         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
40456         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
40457         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
40458         needs to be overridden.
40459         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
40460         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
40461         * tests/test-sys_select.c: Check that the tv_sec member has the same
40462         size as a 'time_t'.
40463         * tests/test-sys_time.c: Likewise.
40464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
40465         is set, set also REPLACE_GETTIMEOFDAY.
40466         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
40467         convert the resulting 'struct timeval' before returning.
40468         * lib/select.c: Include <sys/time.h>.
40469         (select, timeval): Undefine at the right place.
40470         * modules/select (Depends-on): Add sys_time.
40471         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
40472         some Windows platforms.
40473         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40475 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40477         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
40478         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
40479         an integer.
40480         * lib/fcntl.c (dupfd): Likewise.
40481         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
40483 2012-01-28  Bruno Haible  <bruno@clisp.org>
40485         fcntl: Avoid compilation error on native Windows.
40486         * modules/fcntl (Depends-on): Add 'close'.
40488 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40490         select, poll, isatty: Avoid warnings on x86_64 mingw64.
40491         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
40492         pointer to an integer.
40493         * lib/poll.c (IsConsoleHandle): Likewise.
40494         * lib/isatty.c (IsConsoleHandle): Likewise.
40496 2012-01-28  Jim Meyering  <meyering@redhat.com>
40498         doc: clarify README-release
40499         * top/README-release: Clarify: you should make a point to have
40500         the latest stable versions of build tools in your PATH, and the
40501         reference to buildreq is solely for its list of tool names, not
40502         for its minimal-functional version numbers.
40503         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
40505         maint.mk: use more readable (yet functionally equivalent) quoting
40506         It is common to quote a single quote in a single quoted string like
40507         this:  '...'\''...'.  Unless you know the idiom, that looks like
40508         gibberish, so prefer to double-quote the string when possible.
40509         Then you can use a more readable, lone single quote: "...'..."
40510         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
40511         "don't" is more readable than the equivalent 'don'\''t'.
40512         (sc_cast_of_x_alloc_return_value): Likewise.
40513         (sc_cast_of_alloca_return_value): Likewise.
40514         (sc_makefile_path_separator_check): Similar: use ":" in '...',
40515         rather than '\'':'\''.
40517 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40519         stdalign: relax _Alignof and tighten _Alignas test
40520         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
40521         as it was too strict: alignof must divide offsetof, but it need
40522         not equal offsetof.  Inspired by Joseph S. Myers's comment
40523         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
40524         Conversely, tighten the _Alignas test a bit, as the resulting
40525         alignment must be exactly 8.
40527 2012-01-27  Bruno Haible  <bruno@clisp.org>
40529         stdalign: Document the last change.
40530         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
40532 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40534         stdalign: check that alignof and offsetof are consistent
40535         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
40536         Problem reported for gnulib by Richard W.M. Jones in
40537         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
40539 2012-01-27  Jim Meyering  <meyering@redhat.com>
40541         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
40542         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
40543         convert a sequence with gaps to the minimal containing range.
40544         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
40545         * tests/test-update-copyright.sh: Test for this.
40546         The FSF confirmed it is ok to do this, assuming there is at
40547         least one significant change per year in the affected range:
40548         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
40550 2012-01-26  Bruno Haible  <bruno@clisp.org>
40552         pipe2: refine doc about thread-safety
40553         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
40554         multithread-safety problem.
40555         * doc/glibc-functions/accept4.texi: Likewise.
40557 2012-01-26  Bruno Haible  <bruno@clisp.org>
40559         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
40560         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
40561         In the test program, include <fcntl.h>, for O_RDONLY.
40563 2012-01-26  Eric Blake  <eblake@redhat.com>
40565         pipe2: document lack of thread-safety in replacement
40566         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
40567         issue in replacement.
40568         * doc/glibc-functions/accept4.texi (accept4): Likewise.
40569         Based on a report by Eric Wong.
40571 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40572             Bruno Haible  <bruno@clisp.org>
40574         malloca: Avoid warnings on x86_64 mingw64.
40575         * lib/malloca.c: Include <stdint.h>.
40576         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
40577         * modules/malloca (Depends-on): Add stdint.
40578         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
40580 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40582         obstack: remove __STDC__ conditionals
40583         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
40584         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
40585         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
40586         m4/include_next.m4 as the only gnulib-maintained places that still
40587         refer to __STDC__.
40589 2012-01-24  Bruno Haible  <bruno@clisp.org>
40591         havelib: Modern quoting.
40592         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40593         the recent change to the GNU coding standards.
40595 2012-01-24  Bruno Haible  <bruno@clisp.org>
40597         stdint: Improve support for Android.
40598         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40599         Reported by Simon Josefsson <simon@josefsson.org>.
40601 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40603         doc: omit trailing empty lines from INSTALL etc.
40604         * doc/Makefile (INSTALL): Omit trailing empty lines.
40605         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40606         omit trailing empty lines.  This simplifies the build procedure.
40608 2012-01-23  Jim Meyering  <meyering@redhat.com>
40610         tests: avoid spurious warnings about gl_sockets_startup
40611         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40612         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40613         reporting a "statement with no effect".
40614         * tests/test-accept.c (main): Mark as "(void)".
40615         * tests/test-accept4.c (main): Likewise.
40616         * tests/test-bind.c (main): Likewise.
40617         * tests/test-connect.c (main): Likewise.
40618         * tests/test-getpeername.c (main): Likewise.
40619         * tests/test-getsockname.c (main): Likewise.
40620         * tests/test-getsockopt.c (main): Likewise.
40621         * tests/test-listen.c (main): Likewise.
40622         * tests/test-recv.c (main): Likewise.
40623         * tests/test-recvfrom.c (main): Likewise.
40624         * tests/test-send.c (main): Likewise.
40625         * tests/test-sendto.c (main): Likewise.
40626         * tests/test-setsockopt.c (main): Likewise.
40627         * tests/test-shutdown.c (main): Likewise.
40629 2012-01-21  Bruno Haible  <bruno@clisp.org>
40631         locale-fr.m4: Fix for Android.
40632         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40633         failure of the test program on Bionic libc.
40635 2012-01-21  Jim Meyering  <meyering@redhat.com>
40637         bootstrap: fail when bootstrap_post_import_hook fails
40638         Otherwise, it's far too easy to miss diagnostics emitted
40639         between gnulib-tool's output and that of running configure.
40640         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40642 2012-01-17  Jim Meyering  <meyering@redhat.com>
40644         maint: enable sc_trailing_blank
40645         * build-aux/pmccabe.css: Remove trailing blanks.
40646         * doc/acl-cygwin.txt: Likewise.
40647         * doc/gnu-oids.texi: Likewise
40648         * cfg.mk: Enable sc_trailing_blank.
40649         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40651 2012-01-17  Jim Meyering  <meyering@redhat.com>
40653         maint: enable sc_prohibit_openat_without_use
40654         * cfg.mk: Enable sc_prohibit_openat_without_use.
40655         Exempt lib/selinux-at.c.
40657 2012-01-17  Jim Meyering  <meyering@redhat.com>
40659         maint: enable sc_prohibit_cloexec_without_use
40660         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40661         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40663 2012-01-17  Jim Meyering  <meyering@redhat.com>
40665         maint: enable sc_prohibit_intprops_without_use
40666         * cfg.mk: Enable sc_prohibit_intprops_without_use
40667         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40669 2012-01-17  Jim Meyering  <meyering@redhat.com>
40671         maint: enable sc_prohibit_hash_pjw_without_use
40672         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40673         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40674         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40675         following " (".
40677 2012-01-17  Jim Meyering  <meyering@redhat.com>
40679         maint: enable double-word-prohibiting rule
40680         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40681         Exempt three files.
40683 2012-01-17  Jim Meyering  <meyering@redhat.com>
40685         maint: remove empty lines at EOF, but excluding modules/*
40686         Apply syntax rules at home as well as abroad.  Most changes
40687         were induced by running this:
40688           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40689             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40690             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40691         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40692         Exempt modules/* and two binary files.
40693         Also exempt doc/INSTALL*, per request from Bruno Haible.
40694         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40695         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40696         * doc/Copyright/request-assign.future: Likewise.
40697         * doc/Copyright/request-disclaim.changes: Likewise.
40698         * doc/INSTALL: Likewise.
40699         * doc/INSTALL.ISO: Likewise.
40700         * doc/INSTALL.UTF-8: Likewise.
40701         * doc/acl-cygwin.txt: Likewise.
40702         * doc/acl-resources.txt: Likewise.
40703         * doc/fdl-1.2.texi: Likewise.
40704         * doc/fdl-1.3.texi: Likewise.
40705         * doc/fdl.texi: Likewise.
40706         * lib/argp-pin.c: Likewise.
40707         * lib/round.c: Likewise.
40708         * lib/unicase/u16-totitle.c: Likewise.
40709         * lib/unictype/block_test.c: Likewise.
40710         * lib/uninorm/canonical-decomposition.c: Likewise.
40711         * m4/README: Likewise.
40712         * m4/relocatable-lib.m4: Likewise.
40713         * tests/test-isnand-nolibm.c: Likewise.
40714         * tests/test-isnand.c: Likewise.
40715         * tests/uninorm/NormalizationTest.txt: Likewise.
40717 2012-01-17  Jim Meyering  <meyering@redhat.com>
40719         maint: add framework to run syntax-check rules against gnulib sources
40720         * cfg.mk: New file, to disable all currently-failing tests.
40721         We'll enable them one by one, as they are made to pass.
40722         * Makefile (sc_maint): New rule.
40724 2012-01-21  Bruno Haible  <bruno@clisp.org>
40726         stdint: Add support for Android.
40727         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40728         include the system's <stdint.h>.
40729         Reported by Simon Josefsson <simon@josefsson.org>.
40731 2012-01-19  Jim Meyering  <meyering@redhat.com>
40733         bootstrap: add bootstrap_post_import_hook
40734         Bison does still need something like the gnulib_mk_hook whose
40735         invocation I had to remove along with slurp in commit 767ccd40.
40736         Technically, we could get along without it, but doing so would
40737         have required living with a warning and a mandatory post-bootstrap
40738         automake rerun.
40739         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40740         (bootstrap_post_import_hook): New function.
40741         Invoke it after gnulib-tool --import and before autoreconf.
40743 2012-01-18  Jim Meyering  <meyering@redhat.com>
40745         gitlog-to-changelog: don't use "no_"-prefixed variable name
40746         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40747         to enable both --cluster and --no-cluster.  Change variable name,
40748         s/\$no_cluster/$cluster/, and reverse usage to match.
40750         gitlog-to-changelog: use "||", not "or" in expressions
40751         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40752         expressions.
40754 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40756         gitlog-to-changelog: new option --no-cluster
40757         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40758         clustering of adjacent commit messages.
40760 2012-01-17  Jim Meyering  <meyering@redhat.com>
40762         maint: spell file systems with two words, not one
40763         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40764         two words, not one.
40766 2012-01-16  Jim Meyering  <meyering@redhat.com>
40768         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40769         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40771 2012-01-16  Eric Blake  <eblake@redhat.com>
40773         bootstrap: cater to autoconf 2.59
40774         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40775         is not available.
40777         bootstrap: properly check for libtool
40778         * build-aux/bootstrap (libtoolize): Also run libtool when older
40779         usage is detected.
40781 2012-01-15  Bruno Haible  <bruno@clisp.org>
40783         Improve support for MSVC 9.
40784         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40785         clashes on MSVC.
40786         * lib/fcntl.in.h: Likewise.
40787         * lib/stdlib.in.h: Likewise.
40788         * lib/sys_stat.in.h: Likewise.
40790 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40792         gnupload: we hold the master copy of this script now
40793         For motivation and more information, see:
40794         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40795         * build-aux/gnupload: Make it clear in the heading comments that the
40796         master copy of this file is maintained by gnulib.  Since we are at
40797         it, bump its copyright year and ...
40798         ($scriptversion): ... the date in its version.
40799         ($usage): Patches and bug reports should be sent to the gnulib list,
40800         not the automake one.
40801         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40802         anymore.
40804 2012-01-15  Bruno Haible  <bruno@clisp.org>
40806         Fix module 'random'.
40807         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40808         initstate, setstate are declared.
40810 2012-01-14  Bruno Haible  <bruno@clisp.org>
40812         Tests for module 'random'.
40813         * modules/random-tests: New file.
40814         * tests/test-random.c: New file, based on tests/test-random_r.c.
40816         New module 'random'.
40817         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40818         declarations.
40819         * lib/random.c: New file, based on glibc/stdlib/random.c.
40820         * m4/random.m4: New file.
40821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40822         HAVE_RANDOM.
40823         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40824         * modules/random: New file.
40825         * config/srclist.txt: Add an entry for random.c.
40826         * doc/posix-functions/random.texi: Mention the 'random' module.
40827         * doc/posix-functions/initstate.texi: Likewise.
40828         * doc/posix-functions/setstate.texi: Likewise.
40829         * doc/posix-functions/srandom.texi: Likewise.
40831 2012-01-12  Bruno Haible  <bruno@clisp.org>
40833         random_r: Use common idioms.
40834         * lib/random_r.c: Include <stdlib.h> first.
40836         random_r: Override incompatible API on AIX, OSF/1.
40837         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40838         Override the system function if REPLACE_RANDOM_R is 1.
40839         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40840         and OSF/1, set REPLACE_RANDOM_R.
40841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40842         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40843         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40844         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40845         * doc/glibc-functions/random_r.texi: Likewise.
40846         * doc/glibc-functions/setstate_r.texi: Likewise.
40848         random_r: Support for MSVC 9.
40849         * lib/random_r.c: Include stdint.h, not inttypes.h.
40851 2012-01-12  Eric Blake  <eblake@redhat.com>
40853         inet_ntop: guard extra work by IF_LINT
40854         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40855         better code generation when not checking for warnings.
40856         Suggested by Paul Eggert and Jim Meyering.
40858         strptime: fix regression on mingw
40859         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40860         Fix regression.  Reported by Bruno Haible.
40862 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40863             Bruno Haible  <bruno@clisp.org>
40865         copy-file: add error-code-returning variant.
40866         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40867         (qcopy_file_preserving): New declaration.
40868         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40869         copy_file_preserving. Change return type to 'int'. Don't emit an error
40870         message here.
40871         (copy_file_preserving): New function.
40872         * tests/test-copy-file.c: Include <stdlib.h>.
40873         (main): Test qcopy_file_preserving if the environment variable
40874         NO_STDERR_OUTPUT is set.
40875         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40876         with NO_STDERR_OUTPUT
40877         * tests/test-copy-file-2.sh: Likewise.
40879 2012-01-10  Bruno Haible  <bruno@clisp.org>
40881         copy-file: Use 'quote' module consistently.
40882         * lib/copy-file.c (copy_file_preserving): Use quote().
40884         copy-file: Refactor.
40885         * lib/copy-file.c: Include quote.h.
40886         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40887         message here.
40888         * modules/copy-file (Depends-on): Add quote.
40890         acl: Export qcopy_acl.
40891         * lib/acl.h (qcopy_acl): New declaration.
40892         * lib/copy-acl.c (qcopy_acl): Make non-static.
40894         acl: Rename a local variable.
40895         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40897         acl: Align return values of copy_acl and qcopy_acl.
40898         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40899         maybe < -1.
40901 2012-01-11  Eric Blake  <eblake@redhat.com>
40903         strptime: silence gcc warnings
40904         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40905         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40906         Reported by Daniel P. Berrange.
40908         inet_ntop: silence gcc warning
40909         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40910         Reported by Daniel P. Berrange.
40912 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40914         getloadavg test: skip the test on GNU/Linux without /proc mounted
40915         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40916         file.  When /proc is not mounted, it always fails with ENOENT.
40917         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40918         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40920 2012-01-10  Bruno Haible  <bruno@clisp.org>
40922         regex: Avoid link error on MSVC 9.
40923         * modules/regex (Depends-on): Add wctype.
40925 2012-01-10  Bruno Haible  <bruno@clisp.org>
40927         doc: Mention --with-tests option.
40928         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40929         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40930         --with-tests.
40931         Reported by Reuben Thomas.
40933 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40935         users.txt: order package names lexicographically.
40936         * users.txt: Order package names lexicographically.
40938 2012-01-10  Jim Meyering  <meyering@redhat.com>
40940         maint.mk: fix description in comment
40941         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40943         ignore-value: remove deprecated ignore_ptr function
40944         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40945         * NEWS: Note this.
40947 2012-01-09  Jim Meyering  <meyering@redhat.com>
40949         test-init.sh: avoid a subshell
40950         * tests/test-init.sh: Remove protective subshell.
40951         Suggested by Bernhard Voelker.  While a subshell is normally
40952         required to protect against older shells (Solaris, FreeBSD) that
40953         warn about a missing program before performing redirection, the
40954         shell-selection tests performed by init.sh probably exclude any
40955         offending shell.
40957 2012-01-08  Bruno Haible  <bruno@clisp.org>
40959         setlocale tests: Avoid test failure on Solaris 11.0.
40960         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40961         variable.
40963 2012-01-08  Bruno Haible  <bruno@clisp.org>
40965         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40966         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40967         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40968         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40969         macro.
40970         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40971         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40972         * lib/spawn_faction_addopen.c: Add workaround implementation if
40973         HAVE_WORKING_POSIX_SPAWN.
40974         * modules/spawn (Makefile): Substitute
40975         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40976         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40977         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40978         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40979         (Depends-on): Update conditions.
40980         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40981         the Solaris 11 bug.
40983 2012-01-08  Bruno Haible  <bruno@clisp.org>
40985         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40986         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40987         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40988         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40989         macro.
40990         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40992         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40993         HAVE_WORKING_POSIX_SPAWN.
40994         * modules/spawn (Makefile): Substitute
40995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40996         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40997         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40998         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40999         (Depends-on): Update conditions.
41000         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41001         the Solaris 11 bug.
41003 2012-01-08  Bruno Haible  <bruno@clisp.org>
41005         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
41006         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
41007         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
41008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
41009         HAVE_WORKING_POSIX_SPAWN.
41010         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
41011         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
41012         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
41013         * lib/spawn_faction_addclose.c: Add workaround implementation if
41014         HAVE_WORKING_POSIX_SPAWN.
41015         * modules/spawn (Makefile): Substitute
41016         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
41017         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
41018         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
41019         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
41020         (Depends-on): Update conditions.
41021         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41022         the Solaris 11 bug.
41024 2012-01-08  Bruno Haible  <bruno@clisp.org>
41026         doc: Update for Solaris 11.0.
41027         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
41028         * m4/printf.m4: Update comments.
41030 2012-01-08  Bruno Haible  <bruno@clisp.org>
41032         mktime: Avoid compilation error on Solaris 11.
41033         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
41035 2012-01-08  Bruno Haible  <bruno@clisp.org>
41037         doc: Small fix.
41038         * doc/posix-headers/nl_types.texi: Correct platforms list.
41040 2012-01-08  Simon Josefsson  <simon@josefsson.org>
41042         Add lgpl-3.0 module.
41043         * MODULES.html.sh (Support for building documentation): Add
41044         lgpl-3.0.
41045         * modules/lgpl-3.0: New file.
41047 2012-01-08  Jim Meyering  <meyering@redhat.com>
41049         select.c: indent with spaces, not TABs
41050         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
41052 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41054         quotearg: do not use grave accent for left quote
41055         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
41056         locale_quoting_style.
41057         (quotearg_buffer_restyled): Fix example.
41058         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
41060 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41062         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
41063         Most programs do not have translation catalogs for English and much
41064         less separate catalogs for British and American English.  Drop the
41065         suggestion to translators about these two, and provide it
41066         automatically for Unicode locales.  Like most programs, even those
41067         using American English, we use single quotation marks.  This conflicts
41068         with the American typographic convention, but works better when you
41069         cite the entire error message within double quotes.  It also tries not
41070         to clash with established practice and with what non-gnulib programs
41071         will usually do.
41072         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
41073         using an UTF-8 or GB-18030 locale.  The list of other locales with
41074         quotes was provided by Bruno Haible.
41075         (quotearg_buffer_restyled): Adjust instructions to translators.
41076         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
41077         text, since this would be wrong when using Unicode.
41078         * modules/quotearg: Depend on c-strcaseeq.
41080 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41082         quotearg: fix Wikipedia link
41083         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
41085 2012-01-07  Simon Josefsson  <simon@josefsson.org>
41087         Fix for mingw with MSVC9.
41088         * m4/ld-version-script.m4: Check that compiler rejects version
41089         scripts with syntax errors.  Reported by Bruno Haible
41090         <bruno@clisp.org>.
41092 2012-01-06  Bruno Haible  <bruno@clisp.org>
41094         Talk about "native Windows API", not "Woe32".
41095         * lib/accept4.c: Update comments to mention native Windows.
41096         * lib/execute.c: Likewise.
41097         * lib/fatal-signal.c: Likewise.
41098         * lib/localcharset.c: Likewise.
41099         * lib/nanosleep.c: Likewise.
41100         * lib/nl_langinfo.c: Likewise.
41101         * lib/pclose.c: Likewise.
41102         * lib/pipe-filter-gi.c: Likewise.
41103         * lib/pipe-filter-ii.c: Likewise.
41104         * lib/pipe.c: Likewise.
41105         * lib/pipe2.c: Likewise.
41106         * lib/popen.c: Likewise.
41107         * lib/progreloc.c: Likewise.
41108         * lib/relocatable.c: Likewise.
41109         * lib/sigaction.c: Likewise.
41110         * lib/sigprocmask.c: Likewise.
41111         * lib/spawn-pipe.h: Likewise.
41112         * lib/spawn-pipe.c: Likewise.
41113         * lib/spawni.c: Likewise.
41114         * lib/stat-time.h: Likewise.
41115         * lib/w32spawn.h: Likewise.
41116         * tests/test-isatty.c: Likewise.
41117         * lib/config.charset: More comments.
41118         * doc/gnulib-intro.texi: Mention native Windows.
41119         * doc/posix-functions/_Exit_C99.texi: Likewise.
41120         * doc/posix-headers/fcntl.texi: Likewise.
41122 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
41124         argp: Avoid crash if translator uses % characters in a translation.
41125         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
41126         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41128 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
41130         doc: C11 and C++11 are now official
41131         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
41132         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
41133         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
41134         * modules/stdalign:
41135         Replace references to draft C1X to C11, and to draft C++0X to C++11.
41137 2012-01-06  Bruno Haible  <bruno@clisp.org>
41139         uc-is-grapheme-break tests: Tweak.
41140         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
41141         message.
41143 2012-01-06  Bruno Haible  <bruno@clisp.org>
41145         test-init.sh: correct the test for diff -u
41146         * tests/test-init.sh: Also redirect stdout to /dev/null.
41148 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41150         Use ', not `, for quoting output.
41151         * build-aux/announce-gen (usage, sizes, print_news_deltas)
41152         (print_changelog_deltas, get_tool_versions, main program):
41153         * build-aux/git-version-gen:
41154         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
41155         * build-aux/move-if-change (help):
41156         * build-aux/useless-if-before-free (usage, main program):
41157         * check-module (parse_module_file, usage)
41158         (find_included_lib_files, check_module):
41159         * lib/argmatch.c (main) [TEST]:
41160         * lib/argp-help.c (_help):
41161         * lib/getopt1.c (main) [TEST]:
41162         * lib/git-merge-changelog.c (usage):
41163         * lib/xstrtol-error.c (xstrtol_error):
41164         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
41165         * m4/argz.m4 (gl_FUNC_ARGZ):
41166         * m4/bison.m4 (gl_BISON):
41167         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
41168         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
41169         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41170         * m4/fpending.m4 (gl_PREREQ_FPENDING):
41171         * m4/gc-random.m4 (gl_GC_RANDOM):
41172         * m4/intl.m4 (gt_CHECK_DECL):
41173         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
41174         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
41175         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
41176         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
41177         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
41178         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
41179         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
41180         * tests/test-dirname.c (main):
41181         * tests/test-getpass.c (main):
41182         * tests/test-iconvme.c (main):
41183         * tests/test-parse-datetime.c (LOG):
41184         * tests/test-xstrtoimax.sh:
41185         * tests/test-xstrtol.sh:
41186         * tests/test-xstrtoll.sh:
41187         * tests/test-xstrtoumax.sh:
41188         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
41189         * top/GNUmakefile (abort-due-to-no-makefile):
41190         Quote 'like this', not `like this', as per the recent change to
41191         the GNU coding standards.
41193 2012-01-05  Bruno Haible  <bruno@clisp.org>
41195         strtoimax: Don't force a replacement on systems where intmax_t is int.
41196         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
41197         'intmax_t' is not larger than 'int'.
41198         Reported by Pádraig Brady <P@draigBrady.com>.
41200 2012-01-05  Bruno Haible  <bruno@clisp.org>
41202         doc: Mention NetBSD bugs.
41203         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
41204         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
41206 2012-01-05  Bruno Haible  <bruno@clisp.org>
41208         strtoumax tests: Enhance tests.
41209         * tests/test-strtoumax.c (main): Add tests for large values.
41211 2012-01-05  Bruno Haible  <bruno@clisp.org>
41213         strtoimax: Work around AIX 5.1 bug.
41214         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
41215         definition.
41216         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
41217         Set HAVE_STRTOIMAX.
41218         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
41219         REPLACE_STRTOIMAX.
41220         * modules/inttypes-incomplete (Makefile.am): Substitute
41221         REPLACE_STRTOIMAX.
41222         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
41223         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
41224         (Depends-on): Update conditions.
41225         * tests/test-strtoimax.c (main): Add tests for large values.
41226         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
41228 2012-01-05  Bruno Haible  <bruno@clisp.org>
41230         inttypes: Modernize.
41231         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
41232         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
41233         (Makefile.am): Update inttypes.h rule.
41235 2012-01-05  Jim Meyering  <meyering@redhat.com>
41237         init.sh: don't waste a subshell just to redirect stderr
41238         * tests/init.sh: In testing for diff -u and diff -c, use a
41239         stderr-redirecting exec inside `...` rather than a subshell.
41241         test-init.sh: avoid failure on HP-UX 11.00
41242         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
41243         resolves to diff -c or cmp.  Reported by Bruno Haible.
41245 2012-01-05  Bruno Haible  <bruno@clisp.org>
41247         Tests for module 'strtoull'.
41248         * modules/strtoull-tests: New file.
41249         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
41251 2012-01-05  Bruno Haible  <bruno@clisp.org>
41253         Tests for module 'strtoll'.
41254         * modules/strtoll-tests: New file.
41255         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
41257 2012-01-05  Bruno Haible  <bruno@clisp.org>
41259         Tests for module 'strtoul'.
41260         * modules/strtoul-tests: New file.
41261         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
41263 2012-01-05  Bruno Haible  <bruno@clisp.org>
41265         Tests for module 'strtol'.
41266         * modules/strtol-tests: New file.
41267         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
41269 2012-01-04  Jim Meyering  <meyering@redhat.com>
41271         test-init.sh: accommodate Solaris 5.10's different diff -u output
41272         * tests/test-init.sh: Also exempt @@ lines from the comparison
41273         of diff output, since Solaris 5.10 and GNU diff formats differ.
41274         Reported by Stefano Lattarini.
41276 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41278         test-posixtm: don't assume signed integer wraparound
41279         * tests/test-posixtm.c (main): Don't assume wraparound semantics
41280         after signed integer overflow.  Inspired by (though it may not
41281         fix) Bruno Haible's bug report in
41282         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
41284         Spell out "Windows 9x" and "Windows XP".
41285         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
41286         "Windows 9x" and "WinXP" with "Windows XP".
41288 2012-01-04  Jim Meyering  <meyering@redhat.com>
41290         test-vc-list-files-cvs.sh: remove obsolete comment
41291         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
41292         double exit.  Now that's all encapsulated via skip_ and Exit.
41294 2012-01-04  Bruno Haible  <bruno@clisp.org>
41296         Talk about "native Windows API", not "Win32".
41297         * lib/classpath.c: Update comments to mention native Windows.
41298         * lib/csharpexec.c: Likewise.
41299         * lib/dup2.c: Likewise.
41300         * lib/error.c: Likewise.
41301         * lib/fcntl.c: Likewise.
41302         * lib/filename.h: Likewise.
41303         * lib/findprog.c: Likewise.
41304         * lib/get-rusage-as.c: Likewise.
41305         * lib/get-rusage-data.c: Likewise.
41306         * lib/getpagesize.c: Likewise.
41307         * lib/javaexec.c: Likewise.
41308         * lib/msvc-inval.c: Likewise.
41309         * lib/msvc-nothrow.c: Likewise.
41310         * lib/nanosleep.c: Likewise.
41311         * lib/nonblocking.c: Likewise.
41312         * lib/printf-parse.c: Likewise.
41313         * lib/setlocale.c: Likewise.
41314         * lib/sigaction.c: Likewise.
41315         * lib/strerror_r.c: Likewise.
41316         * lib/tmpdir.c: Likewise.
41317         * lib/vasnprintf.c: Likewise.
41318         * lib/w32spawn.h: Likewise.
41319         * lib/waitpid.c: Likewise.
41320         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
41321         * m4/locale-ar.m4: Likewise.
41322         * m4/locale-fr.m4: Likewise.
41323         * m4/locale-ja.m4: Likewise.
41324         * m4/locale-tr.m4: Likewise.
41325         * m4/locale-zh.m4: Likewise.
41326         * m4/printf.m4: Likewise.
41327         * tests/test-cloexec.c: Likewise.
41328         * tests/test-copy-acl.sh: Likewise.
41329         * tests/test-copy-file.sh: Likewise.
41330         * tests/test-file-has-acl.sh: Likewise.
41331         * tests/test-set-mode-acl.sh: Likewise.
41332         * tests/test-dup-safer.c: Likewise.
41333         * tests/test-dup2.c: Likewise.
41334         * tests/test-dup3.c: Likewise.
41335         * tests/test-fcntl.c: Likewise.
41336         * tests/test-nonblocking-pipe.h: Likewise.
41337         * tests/test-nonblocking-socket.h: Likewise.
41338         * tests/test-pipe.c: Likewise.
41339         * tests/test-pipe2.c: Likewise.
41340         * tests/test-spawn-pipe-child.c: Likewise.
41341         * doc/acl-resources.txt: Likewise.
41342         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41343         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
41344         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
41345         * lib/localcharset.c: Update comments to mention native Windows.
41346         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41347         * lib/localename.c: Likewise.
41348         * lib/progreloc.c: Likewise.
41349         * lib/relocatable.c: Likewise.
41350         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41351         (windows_compute_revents): Renamed from win32_compute_revents.
41352         (windows_compute_revents_socket): Renamed from
41353         win32_compute_revents_socket.
41354         * lib/select.c: Update comments to mention native Windows.
41355         (windows_poll_handle): Renamed from win32_poll_handle.
41356         * m4/threadlib.m4: Update comments to mention native Windows.
41357         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
41358         --enable-threads=windows instead of --enable-threads=win32. Set
41359         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
41360         * lib/glthread/lock.h: Update comments to mention native Windows.
41361         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
41362         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
41363         USE_WIN32_THREADS.
41364         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
41365         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
41366         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
41367         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
41368         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
41369         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
41370         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
41371         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
41372         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
41373         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
41374         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
41375         * tests/test-tls.c: Likewise.
41376         Rationale:
41377         Microsoft renamed the "Win32 API" to "Windows API", as it is available
41378         on both 32-bit and 64-bit Windows systems.
41379         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
41380         line of distinction is between "native Windows" on one side and Unix/
41381         POSIX systems on the other side. More details in
41382         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
41383         Suggested by Paul Eggert.
41385 2012-01-03  Bruno Haible  <bruno@clisp.org>
41387         isatty: Support for MSVC 9.
41388         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
41389         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
41390         (_isatty_nothrow): New function.
41391         (isatty): Use it instead of _isatty.
41392         (IsConsoleHandle): Add comment, from Paolo Bonzini.
41393         * lib/poll.c (IsConsoleHandle): Likewise.
41394         * lib/select.c (IsConsoleHandle): Likewise.
41395         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
41396         (gl_PREREQ_ISATTY): New macro.
41397         * modules/isatty (Depends-on): Add msvc-inval.
41398         (configure.ac): Invoke gl_PREREQ_ISATTY.
41400 2012-01-03  Jim Meyering  <meyering@redhat.com>
41402         maint.mk: remove temporary transition aid from over 1.5 years ago
41403         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
41404         purpose was to aid in the transition (avoiding silent malfunction)
41405         from that old name to the new _sc_search_regexp.  This shim was
41406         added by commit 219c504b.
41408         init.sh: do not try to accommodate compare arguments starting with "-"
41409         * tests/init.sh (compare_dev_null_): Do not try to accommodate
41410         compare arguments that start with "-".  Besides, we do not worry
41411         about this when invoking diff or cmp; why start now with sed?
41412         Using "--" to separate options from argument would trigger sed
41413         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
41414         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
41416 2012-01-02  Bruno Haible  <bruno@clisp.org>
41418         Enhance tests for module 'isatty'.
41419         * modules/isatty-tests (Depends-on): Add pipe-posix.
41420         * tests/test-isatty.c: Include <fcntl.h>.
41421         (DEV_NULL): New macro.
41422         (main): Test the resut of isatty() also on regular files, pipes, and
41423         /dev/null.
41425         New module 'isatty'.
41426         * lib/unistd.in.h (isatty): New declaration.
41427         * lib/isatty.c: New file, based on an idea of
41428         Bastien Roucariès <roucaries.bastien@gmail.com>.
41429         * m4/isatty.m4: New file.
41430         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
41431         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
41432         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
41433         REPLACE_ISATTY.
41434         * modules/isatty: New file.
41435         * doc/posix-functions/isatty.texi: Mention the new module.
41436         Suggested by Paolo Bonzini.
41438 2012-01-02  Bruno Haible  <bruno@clisp.org>
41440         canonicalize: Tweak 2011-12-29 commit.
41441         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
41442         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
41444 2012-01-02  Jim Meyering  <meyering@redhat.com>
41446         gitlog-to-changelog: describe input syntax in --help output
41447         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
41449         gitlog-to-changelog: fix typo in --help: show backslash before email @
41450         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
41451         in sources, but not in actual output.
41453 2011-12-30  Jim Meyering  <meyering@redhat.com>
41455         gitlog-to-changelog: don't malfunction when name contains %-directive
41456         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
41457         in a name string cause trouble.  E.g., with a user name of "%s",
41458         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
41460 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
41462         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
41463         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
41464         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
41465         the "  (tiny change)" notation that is appended to the standard
41466         ChangeLog "date  name  email" header line.
41468 2012-01-01  Jim Meyering  <meyering@redhat.com>
41470         test-framework-sh: init.sh: fix "make dist" failure
41471         When using gnulib-tool's --with-tests option and any module that
41472         depends on test-framework-sh, "make dist" would fail due to the
41473         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
41474         in the gltests directory, and not in the gllib/ directory.
41475         One way to work around that is to move the EXTRA_DIST += init.sh
41476         from the primary module to the -tests one:
41477         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
41478         * modules/test-framework-sh (Makefile.am): ...not here.
41479         Reported by Tom G. Christensen in
41480         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
41482         version-etc: update copyright year reported by --version
41483         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
41485 2011-12-31  Pádraig Brady  <P@draigBrady.com>
41487         canonicalize: only stat() if required
41488         * lib/canonicalize.c (canonicalize_filename_mode):
41489         Avoid calling l?stat() when both CAN_MISSING,
41490         and CAN_NOLINKS are set, as we neither need
41491         to resolve symlinks or test component existence.
41493 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
41495         doc: cover st_ino issues once; add OpenVMS etc.
41496         * doc/posix-functions/stat.texi (stat):
41497         * doc/posix-functions/lstat.texi (lstat):
41498         * doc/posix-functions/fstatat.texi (fstatat):
41499         * doc/posix-functions/fstat.texi (fstat):
41500         Move general 'struct stat' stuff to sys_stat.texi,
41501         leaving behind a pointer.
41502         * doc/posix-headers/sys_stat.texi (sys/stat.h):
41503         Merge duplicate info about 'struct stat' problems into here.
41504         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
41505         and suggest partial workarounds.
41507         same-inode: port to OpenVMS
41508         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
41509         three st_ino values.
41511 2011-12-30  Pádraig Brady  <P@draigBrady.com>
41513         canonicalize: fix references to stat() and lstat()
41514         * lib/canonicalize.c (canonicalize_filename_mode):
41515         Ensure references always resolve to a replacement
41516         function if required (even via a macro).
41518 2011-12-30  Jim Meyering  <meyering@redhat.com>
41520         gitlog-to-changelog: remove a little duplication
41521         * build-aux/gitlog-to-changelog (main): Grep @lines once,
41522         rather than twice.
41524 2011-12-29  Pádraig Brady  <P@draigBrady.com>
41526         canonicalize: add support for not resolving symlinks
41527         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
41528         indicate we don't want to follow symlinks.  Also
41529         provide CAN_MODE_MASK to aid setting these existing
41530         mutually exclusive values.
41531         * lib/canonicalize.c (canonicalize_filename_mode):
41532         Extract the flags from can_mode parameter, which
41533         are currently just used to select between stat()
41534         and lstat().  Also ensure that mutually exclusive
41535         values are flagged immediately as invalid.
41536         * tests/test-canonicalize.c: Verify symlinks are
41537         not followed, and that invalid flag combinations
41538         are diagnosed.
41540 2011-12-25  Jim Meyering  <meyering@redhat.com>
41542         gitlog-to-changelog: do not clump multi-paragraph entries
41543         Identical header lines (date,name,email+coauthors) are suppressed,
41544         thus putting all entries with those same characteristics under
41545         a single header.  However, when a log entry consists of two or
41546         more paragraphs, it may not be clear where it starts and ends.
41547         This change makes it so that such an entry is always separated
41548         from others by a header line, even when that header would
41549         otherwise be suppressed.
41550         * build-aux/gitlog-to-changelog: Implement the above.
41551         Inspired by a related request from Stefano Lattarini in
41552         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
41554 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41556         announce-gen: fix `cmd' typo in diagnostic
41557         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
41558         diagnostic: a missing '$' meant that the command was not output.
41560 2011-12-23  Jim Meyering  <meyering@redhat.com>
41562         test-framework-sh: distribute init.sh
41563         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41564         Otherwise, "make -C gnulib-tests check" (at least in grep) would
41565         fail due to the lack of init.sh.
41567         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
41568         * modules/atexit-tests: Rather than listing tests/init.sh,
41569         now that there's a module for it, simply depend on that new module.
41570         * modules/closein-tests: Likewise.
41571         * modules/exclude-tests: Likewise.
41572         * modules/getcwd-tests: Likewise.
41573         * modules/perror-tests: Likewise.
41574         * modules/pread-tests: Likewise.
41575         * modules/pwrite-tests: Likewise.
41576         * modules/vc-list-files-tests: Likewise.
41577         * modules/verify-tests: Likewise.
41578         * modules/xalloc-die-tests: Likewise.
41579         * modules/xstrtoimax-tests: Likewise.
41580         * modules/xstrtol-tests: Likewise.
41581         * modules/xstrtoll-tests: Likewise.
41582         * modules/xstrtoumax-tests: Likewise.
41583         * modules/yesno-tests: Likewise.
41585 2011-12-22  Jim Meyering  <meyering@redhat.com>
41587         test-framework-sh: add minimal tests of init.sh's compare function
41588         * modules/test-framework-sh-tests: New file.
41589         * tests/test-init.sh: New file.
41591         test-framework-sh: new module
41592         * modules/test-framework-sh: New file.
41593         * MODULES.html.sh (Support for maintaining and releasing projects):
41594         List it.
41596         init.sh: do not emit simulated diff output to stderr
41597         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41599 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41601         .gitignore: ignore gnulib.dvi and regex.info
41602         * doc/.gitignore:add gnulib.dvi and regex.info
41604 2011-12-22  Jim Meyering  <meyering@redhat.com>
41606         init.sh: correct previous change
41607         * tests/init.sh (compare): My previous change was wrong.
41608         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41610         init.sh: avoid unwarranted test failure when using "set -e"
41611         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41612         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41613         a use like "compare exp out" would get evoke an unconditional failure.
41615 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41617         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41618         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41619         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41620         autoreconf that did not.
41621         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41622         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41624 2011-12-17  Jim Meyering  <meyering@redhat.com>
41626         bootstrap: remove some now-unneeded code
41627         This script arose back when gnulib-tool was young.
41628         Since then, it has seen improvements that render much of this
41629         script unnecessary.  In particular, it can now make symlinks
41630         to the files it uses.  Also, I no longer see as much value in
41631         marking files as read-only via comments.
41632         If you relied on the symlink-creation feature of the preceding
41633         version of this script, you can get most of that functionality
41634         by adding the --symlink option to the definition of
41635         gnulib_tool_option_extras in your bootstrap.conf file.
41636         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41637         Run autopoint and libtoolize *before* gnulib-tool.
41638         After it, run an abbreviated autoreconf, rather than a loop around
41639         all tools.
41640         (slirp, bt_mark_as_generated): Remove functions.
41642 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41644         ftoastr: fix typo
41645         * lib/ftoastr.h: Fix misspelling in comment.
41647 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41649         * top/README-release: fix punctuation.
41651 2011-12-17  Jim Meyering  <meyering@redhat.com>
41653         bootstrap: correct the recent buildreq change
41654         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41655         had no effect.
41656         * build-aux/bootstrap (buildreq): Bracket each search term with
41657         "*...*", so that the shell "case" statement works as intended.
41658         Add comments.
41660 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41662         build: let bootstrap resort to wget when downloading .po files
41663         * build-aux/bootstrap (download_po_files): Fallback to wget when
41664         downloading the .po files via rsync fails.  This is necessary to
41665         bootstrap from behind a strict firewall.
41667 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41669         stdint: don't assume C++11 when compiling with g++
41670         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41671         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41672         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41673         work also in C++ before C++11, as that improperly inhibits
41674         generating a substitute stdint.h for that case.
41676 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41678         alloca: protect comment from gnulib-tool
41679         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41680         that gnulib-tool doesn't think it's a license, and munge it to
41681         say "GCC version 3".
41683 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41685         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41686         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41687         $(abs_top_builddir) instead of $(top_builddir).
41689 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41691         strftime-tests: also test nanoseconds
41692         * tests/test-strftime.c (T): Add a test of %N.
41694 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41696         inttypes, stdint: add C++11 support
41697         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41698         when including inttypes.h and stdint.h.  Support this change to
41699         the standard.
41700         * doc/posix-headers/inttypes.texi (inttypes.h):
41701         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41702         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41703         Define if not defined already, for the benefit of pre-C++11 hosts.
41704         Define the standard format macros (e.g., PRId8) always.
41705         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41706         Likewise, if __cpluspus.  Define the standard constant and limit
41707         macros (e.g., INT8_C, INT8_MAX) always.
41708         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41709         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41710         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41711         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41712         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41713         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41714         Likewise.
41716 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41718         nonblocking tests: Fix test failure on Linux/PPC.
41719         Suggested by Prerna Saxena in
41720         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41721         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41722         Set to 1100000.
41724 2011-12-12  Jim Meyering  <meyering@redhat.com>
41726         argmatch: don't hard-code `' when listing valid option arguments
41727         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41728         use the quote function to add quotes.  Use fputs rather than
41729         fprintf for the format string with no format directive.
41731 2011-12-07  Eric Blake  <eblake@redhat.com>
41733         bootstrap: detect tools required by gnulib-tool
41734         * build-aux/bootstrap (buildreq): Provide minimum implicit
41735         dependencies.
41736         * DEPENDENCIES: Mention patch as a prereq.
41738 2011-12-04  Bruno Haible  <bruno@clisp.org>
41740         sethostname: Port to Windows platforms.
41741         * lib/sethostname.c: Provide an alternate implementation for Windows
41742         platforms.
41743         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41744         (main): Skip the test if sethostname() fails with EPERM. On Windows
41745         platforms, don't check the result of gethostname().
41747 2011-12-04  Bruno Haible  <bruno@clisp.org>
41748             Jim Meyering  <meyering@redhat.com>
41750         tests: Avoid spurious error message on platforms without mktemp program.
41751         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41753 2011-12-04  Bruno Haible  <bruno@clisp.org>
41755         sethostname: Fix documentation.
41756         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41757         "not fixed" section.
41759 2011-12-03  Bruno Haible  <bruno@clisp.org>
41761         gnulib-tool: Verify that the License field is present and non-empty.
41762         * gnulib-tool (func_get_license_raw): New function, extracted from
41763         func_get_license.
41764         (func_get_license): Use it. Warn if the module is not a test module and
41765         has no license.
41766         Suggested by Jim Meyering.
41768 2011-12-03  Bruno Haible  <bruno@clisp.org>
41770         sethostname tests: Fix link error on mingw.
41771         * tests/test-sethostname1.c: New file, extracted from
41772         tests/test-sethostname.c.
41773         * tests/test-sethostname2.c: New file, extracted from
41774         tests/test-sethostname.c.
41775         * tests/test-sethostname.c: Remove file.
41776         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41777         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41778         (Depends-on): Add gethostname.
41779         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41780         Link the latter with $(GETHOSTNAME_LIB).
41782         sethostname tests: Fix compilation error on mingw.
41783         * tests/test-sethostname.c: Don't include <sys/types.h>.
41784         (geteuid): Use a dummy value without uid_t.
41785         * modules/sethostname-tests (Depends-on): Remove sys_types.
41787         sethostname tests: Avoid a gcc warning.
41788         * tests/test-sethostname.c (main): Remove an unused variable.
41790         Tweak last commit.
41791         * modules/sethostname-tests (Files): Sort by decreasing importance.
41792         (configure.ac): Check for geteuid.
41793         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41794         the test when there's nothing to test. Drop an unnecessary cast.
41795         Improve an error message. Verify that the final sethostname() call
41796         succeeds.
41798 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41800         Add a test suite for the sethostname module.
41801         * modules/sethostname-tests: New file.  A test program
41802         for the sethostname module.
41803         * tests/test-sethostname.c: Likewise.
41805 2011-12-03  Bruno Haible  <bruno@clisp.org>
41807         Tweak last commit.
41808         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41809         Fix preprocessor directives indentation. Fix typos.
41810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41811         * modules/unistd (Makefile): Likewise.
41813 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41815         Integrate the sethostname module into unistd.
41816         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41817         into the unistd.h header.
41818         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41819         preprocessor directives.
41820         * modules/unistd: Setup the Makefile substitutions of the
41821         SETHOSTNAME preprocessor directives.
41823 2011-12-03  Bruno Haible  <bruno@clisp.org>
41825         Tweak last commit.
41826         * lib/sethostname.c: Don't include <string.h>.
41827         (sethostname): No need to copy the argument string to the stack. Don't
41828         call clearerr. Preserve errno when fprintf failed.
41829         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41830         Don't invoke AC_REPLACE_FUNCS.
41831         * modules/sethostname (Link): Remove empty section.
41832         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41833         failure problem.
41835 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41837         New module 'sethostname'.
41838         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41839         for systems that lack it.
41840         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41841         sethostname declaration and function.
41842         * modules/sethostname: New file.  Define the sethostname module.
41844 2011-12-03  Bruno Haible  <bruno@clisp.org>
41846         Tweak last commit.
41847         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41849 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41851         Split the HOST_NAME_MAX detection into a separate m4 macro.
41852         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41853         macro so it can be used by the pending sethostname module.
41855 2011-12-03  Bruno Haible  <bruno@clisp.org>
41857         Fix module descriptions syntax.
41858         * modules/argv-iter (License): Fix syntax.
41859         * modules/di-set (License): Likewise.
41860         * modules/ino-map (License): Likewise.
41861         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41863 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41865         stdalign: port to Clang 3.0
41866         Problem reported by Simon Josefsson in
41867         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41868         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41869         which has <stdalign.h> but which does not define alignof.
41870         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41872 2011-12-01  Eric Blake  <eblake@redhat.com>
41874         mktempd: silence dd usage
41875         * build-aux/mktempd (rand_bytes): Silence dd.
41877 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41879         manywarnings: Don't mention gcc version in docstring.
41880         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41881         Jim Meyering <meyering@redhat.com>.
41883 2011-11-30  Jim Meyering  <meyering@redhat.com>
41885         hash: mark a few floating point constants with "f" suffix
41886         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41887         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41888         floating point constants with "f", since they're destined to be
41889         saved/used as "float"s.
41891 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41893         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41894         * tests/test-float.c (test_long_double): Correct and re-enable the
41895         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41897 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41899         Avoid subtracting two pointers that don't point into the same block.
41900         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41901         only pointers into the same memory block are subtracted. We cannot
41902         assume that sizeof (ptrdiff_t) == sizeof (void *).
41904 2011-11-29  Eric Blake  <eblake@redhat.com>
41906         maint.mk: add syntax check for use of compare from init.sh
41907         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41908         moved here from coreutils.
41910         manywarnings: drop -Wunsuffixed-float-constants
41911         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41912         '1.0D', which is the only way to silence this warning for 'double'.
41914 2011-11-29  Jim Meyering  <meyering@redhat.com>
41916         hash: mark compute_bucket_size with the pure attribute
41917         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41919         quotearg, propername: correct pragma guard expression
41920         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41921         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41923 2011-11-28  Jim Meyering  <meyering@redhat.com>
41925         propername: do not mark proper_name with the const attribute
41926         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41927         since it examines data pointed to by its parameter.
41928         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41929         the suggestion from -Wsuggest-attribute=const.
41931         propername: mark one more function as const
41932         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41934 2011-11-27  Jim Meyering  <meyering@redhat.com>
41936         mark functions with const and pure attributes
41938         Mark functions per suggestions from gcc-4.6 when using these options:
41939         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41940         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41941         Follow these guidelines: when possible, apply the attribute to
41942         an extern declaration, not to its definition.  Apply it to the
41943         definition only when the definition is static.
41944         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41945         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41946         * lib/base64.h (isbase64): Likewise.
41947         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41948         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41949         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41950         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41951         (c_tolower, c_toupper): Likewise.
41952         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41953         * lib/chdir-long.c (find_non_slash): Likewise.
41954         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41955         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41956         * lib/file-type.h (file_type): Likewise.
41957         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41958         * lib/filevercmp.c (verrevcmp): Likewise.
41959         * lib/freadahead.h (freadahead): Likewise.
41960         * lib/fts.c (fts_maxarglen): Likewise.
41961         * lib/hash-pjw.h (hash_pjw): Likewise.
41962         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41963         * lib/hash.c (is_prime, next_prime): Likewise.
41964         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41965         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41966         (hash_table_ok, hash_get_first, hash_string): Likewise.
41967         (compute_bucket_size): Likewise.
41968         * lib/i-ring.h (i_ring_empty): Likewise.
41969         * lib/isnan.c (isnanl): Likewise.
41970         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41971         * lib/memcasecmp.h (memcasecmp): Likewise.
41972         * lib/memchr2.h (memchr2): Likewise.
41973         * lib/memcmp2.h (memcmp2): Likewise.
41974         * lib/parse-datetime.y (lookup_zone): Likewise.
41975         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41976         [!WINDOWS_SOCKETS]: Likewise.
41977         * lib/strnlen1.h (strnlen1): Likewise.
41978         * lib/uniwidth.in.h (uc_width): Likewise.
41979         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41980         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41981         (quoting_options_from_style): Add a comment.
41982         * lib/propername.h (proper_name): Add a comment.
41984 2011-11-27  Bruno Haible  <bruno@clisp.org>
41986         Remove unused macros from !_LIBC code in glibc-borrowed files.
41987         * lib/fnmatch.c (STRCOLL): Remove macro.
41988         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41989         * lib/glob.c (__stat, __readdir64): Remove macros.
41990         * lib/tempname.c (__open64, __xstat64): Remove macros.
41991         Suggested by Paul Eggert.
41993 2011-11-27  Bruno Haible  <bruno@clisp.org>
41995         getcwd: Fix link error on MSVC 9.
41996         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41998 2011-11-27  Bruno Haible  <bruno@clisp.org>
42000         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
42001         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
42002         HAVE_OPENDIR is 0.
42003         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
42004         HAVE_CLOSEDIR is 0.
42005         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
42006         is 0.
42007         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
42009 2011-11-27  Bruno Haible  <bruno@clisp.org>
42011         getcwd: Fix bug from 2011-08-17.
42012         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
42013         platforms that need it.
42014         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
42015         code of 4 to be a failure, not a success. This ensures that
42016         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
42018 2011-11-27  Bruno Haible  <bruno@clisp.org>
42020         binary-io tests: Avoid test failure on mingw when libtool is used.
42021         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
42022         Don't verify the size of t-bin-out1.tmp here.
42023         * tests/test-binary-io.sh: Verify it here.
42024         Reported by Simon Josefsson.
42026 2011-11-26  Bruno Haible  <bruno@clisp.org>
42028         Fix conflict between two instantiations of module 'unistd'.
42029         * gnulib-tool (func_emit_autoconf_snippet): Substitute
42030         ${include_guard_prefix} also in the autoconf snippet.
42031         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
42032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
42033         GNULIB_UNISTD_H_GETOPT.
42034         * modules/getopt-posix (configure.ac): Set the
42035         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
42036         * modules/getopt-gnu (configure.ac): Likewise.
42037         * modules/unistd (Makefile.am): Change the substitution value of
42038         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
42039         Reported by Simon Josefsson.
42041 2011-11-25  Bruno Haible  <bruno@clisp.org>
42043         pagealign_alloc: Doc and comments.
42044         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
42045         module.
42046         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
42048 2011-11-25  Jim Meyering  <meyering@redhat.com>
42050         test-update-copyright.sh: avoid false-positive failure
42051         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
42052         around false positive failure on Cygwin/Windows.  The latter was
42053         matching erroneously-created files with names like
42054         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
42056 2011-11-25  Simon Josefsson  <simon@josefsson.org>
42058         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
42059         * m4/valgrind-tests.m4: Check that the parameters that will be
42060         used works, not just a subset of them.  Reported by Bruno Haible
42061         <bruno@clisp.org>.
42063 2011-11-24  Jim Meyering  <meyering@redhat.com>
42065         test-stdalign.c: comment out long double tests
42066         * tests/test-stdalign.c: Don't try to reduce alignment of long double
42067         variables.  That provokes errors like this from gcc-4.7.0 20111124:
42068         error: '_Alignas' specifiers cannot reduce alignment of \
42069         'static_longdouble_alignas'.
42071 2011-11-22  Jim Meyering  <meyering@redhat.com>
42073         init.sh: make "compare /dev/null FILE" output more readable
42074         * tests/init.sh (compare_): Document the preferred order of arguments.
42075         (emit_diff_u_header_): New function.
42076         (compare_dev_null_): Emit a simulated diff, rather than just the
42077         contents of the unexpected file.  Suggestion from Bruno Haible.
42079 2011-11-21  Jim Meyering  <meyering@redhat.com>
42080             Eric Blake  <eblake@redhat.com>
42082         init.sh: work around OSF/1 5.1's mishandling of /dev/null
42083         * tests/init.sh: Make our compare function slightly more portable.
42084         Reported by Bruno Haible in
42085         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
42087 2011-11-21  Simon Josefsson  <simon@josefsson.org>
42089         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
42090         before using it, in code that ends up in config.h.
42092 2011-11-20  Bruno Haible  <bruno@clisp.org>
42094         getcwd: Work around getcwd bug on AIX 5..7.
42095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
42096         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
42097         Use a different value for gl_cv_func_getcwd_path_max. Move the
42098         definition of HAVE_PARTLY_WORKING_GETCWD from here...
42099         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
42100         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
42101         Define HAVE_MINIMALLY_WORKING_GETCWD.
42102         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
42103         where it is not even minimally working, that is, on AIX.
42104         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
42105         m4/getcwd-path-max.m4.
42106         (main): Update exit code computation.
42107         * doc/posix-functions/getcwd.texi: Mention list of platforms where
42108         getcwd does not handle long file names.
42110 2011-11-20  Bruno Haible  <bruno@clisp.org>
42112         getcwd: Fix bug from 2009-09-10.
42113         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
42114         like "no".
42116 2011-11-20  Simon Josefsson  <simon@josefsson.org>
42118         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
42120 2011-11-20  Bruno Haible  <bruno@clisp.org>
42122         fma tests: Avoid shadowing local variables.
42123         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
42124         expected.
42126 2011-11-20  Bruno Haible  <bruno@clisp.org>
42128         copysignf tests: Fix.
42129         * tests/test-copysignf.c: Fix signature check.
42131 2011-11-20  Bruno Haible  <bruno@clisp.org>
42133         fma: Remove unused code.
42134         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
42135         unused macros.
42137 2011-11-20  Bruno Haible  <bruno@clisp.org>
42139         sethostname: Fix doc about AIX.
42140         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
42141         sethostname; it has it.
42143         sethostname: Mention more portability problems.
42144         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
42145         problem.
42146         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
42148 2011-11-19  Bruno Haible  <bruno@clisp.org>
42150         Depend on module fcntl-h when AT_FDCWD is used.
42151         * modules/utimens (Depends-on): Add fcntl-h.
42152         * modules/areadlinkat (Depends-on): Likewise.
42153         * modules/areadlinkat-with-size (Depends-on): Likewise.
42154         * modules/faccessat (Depends-on): Likewise.
42155         * modules/fchmodat (Depends-on): Likewise.
42156         * modules/fchownat (Depends-on): Likewise.
42157         * modules/getcwd (Depends-on): Likewise.
42158         * modules/mkdirat (Depends-on): Likewise.
42159         * modules/mkfifoat (Depends-on): Likewise.
42160         * modules/readlinkat (Depends-on): Likewise.
42161         * modules/symlinkat (Depends-on): Likewise.
42162         * modules/dup2-tests (Depends-on): Likewise.
42163         * modules/fdutimensat-tests (Depends-on): Likewise.
42164         * modules/futimens-tests (Depends-on): Likewise.
42166 2011-11-19  Bruno Haible  <bruno@clisp.org>
42168         euidaccess: Update a comment.
42169         * lib/euidaccess.c: Update comment about platforms with faccessat.
42171 2011-11-19  Bruno Haible  <bruno@clisp.org>
42173         openat: Fix file list.
42174         * modules/openat (Files): Remove lib/at-func.c.
42176 2011-11-19  Bruno Haible  <bruno@clisp.org>
42178         fstatat: Simplify.
42179         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
42180         gnulib should define rpl_fstatat, there is a
42181         "#define fstatat rpl_fstatat" in <sys/stat.h>.
42183 2011-11-19  Bruno Haible  <bruno@clisp.org>
42185         Ensure 'inline' can be used in tests/test-utimens-common.h.
42186         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
42187         * modules/futimens-tests (configure.ac): Likewise.
42188         * modules/utimens-tests (configure.ac): Likewise.
42189         * modules/utimensat-tests (configure.ac): Likewise.
42191 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42193         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
42194         not hash_insert0.
42195         (hash_insert_if_absent): Doc fix.
42197 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42199         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
42201 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
42203         test-getcwd: disambiguate exit status
42204         * tests/test-getcwd.c (test_long_name): Return 0..7.
42205         (main): Exit with an unambiguous exit status.  The old
42206         code yielded a mysterious mixture of two failure codes.
42208         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
42209         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
42210         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
42211         rpl_fstatat or fstatat.  This should fix the other problem
42212         reported by Kai Habel in
42213         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42214         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
42215         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
42216         and I reproduced it on a Solaris 8 host we still have in production.
42218 2011-11-18  Jim Meyering  <meyering@redhat.com>
42220         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
42221         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
42222         Add a sentence to the comment.
42223         (hash_insert0): New function that simply calls hash_insert_if_absent.
42224         * lib/hash.h (hash_insert_if_absent): Declare it.
42225         (hash_insert0): Add deprecation attribute.
42226         (_GL_ATTRIBUTE_DEPRECATED): Define.
42227         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
42228         not hash_insert0.
42229         * NEWS: Mention it, even though it's not really an incompatible change.
42231 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
42233         openat: avoid compilation failure due to lack of <errno.h> inclusion
42234         * lib/openat.c: Include <errno.h>.
42236 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42238         * modules/getcwd (Depends-on): Add fdopendir.
42239         This fixes one of the two problems reported by Kai Habel in
42240         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42242         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
42243         stdalign problem reported by Ian Beckwith in
42244         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
42245         * modules/crypto/gc-arcfour (Depends-on):
42246         Depend conditionally on crypto/arcfour.
42247         * modules/crypto/gc-arctwo (Depends-on):
42248         Depend conditionally on crypto/arctwo.
42249         * modules/crypto/gc-des (Depends-on):
42250         Depend conditionally on crypto/des.
42251         * modules/crypto/gc-hmac-md5 (Depends-on):
42252         Depend conditionally on crypto/hmac-md5.
42253         * modules/crypto/gc-hmac-sha1 (Depends-on):
42254         Depend conditionally on crypto/hmac-sha1.
42255         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
42256         * modules/crypto/gc-md4 (Depends-on):
42257         Depend conditionally on crypto/md4.
42258         * modules/crypto/gc-md5 (Depends-on):
42259         Depend conditionally on crypto/md5.
42260         * modules/crypto/gc-rijndael (Depends-on):
42261         Depend conditionally on crypto/rijndael.
42262         * modules/crypto/gc-sha1 (Depends-on):
42263         Depend conditionally on crypto/sha1.
42264         * modules/crypto/gc-arcfour:
42265         * modules/crypto/gc-arctwo:
42266         * modules/crypto/gc-des:
42267         * modules/crypto/gc-hmac-md5:
42268         * modules/crypto/gc-hmac-sha1:
42269         * modules/crypto/gc-md2:
42270         * modules/crypto/gc-md4:
42271         * modules/crypto/gc-md5:
42272         * modules/crypto/gc-rijndael:
42273         * modules/crypto/gc-sha1:
42274         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
42275         now that the conditional dependencies do the work for us.
42277 2011-11-17  Jim Meyering  <meyering@redhat.com>
42279         tests: factor st_ctime-comparison out of two headers
42280         * tests/test-utimens-common.h (ctime_compare): Define.
42281         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
42282         * tests/test-lutimens.h (test_lutimens): Likewise.
42283         * tests/test-utimens.h (test_utimens): Likewise.
42285         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
42286         Invoke the test program via an init.sh-using wrapper.
42287         * tests/test-getcwd.sh: New file.
42288         * modules/getcwd-tests (Files): Add it.
42289         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
42291 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
42293         gitlog-to-changelog: support multi-author commits.
42294         The FSF cares about keeping track of all authors of patches to its
42295         projects, but Git doesn't provide obvious support for multi-author
42296         changesets. Consensus seems to be forming around the use of extra
42297         Signed-off-by inspired lines in the log message formatted as
42298         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
42299         multi-author commits between version control systems.
42300         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
42301         log message and output in standard ChangeLog multi-author format.
42302         Reported by Peter Rosin <peda@lysator.liu.se>
42304 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
42305             Bruno Haible  <bruno@clisp.org>
42307         Fix some modules' file list.
42308         * modules/fstatat (Files): Add m4/lstat.m4.
42309         * modules/openat (Files): Likewise.
42310         * modules/unlinkat (Files): Likewise.
42312 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
42314         maint.mk: fix tight-scope.mk generation in VPATH builds.
42315         * top/maint.mk (tight-scope.mk): Make sure to prefix file
42316         reference with $(srcdir) so that the file is found correctly even
42317         when running `make syntax-check' in a VPATH build.
42319 2011-11-13  Bruno Haible  <bruno@clisp.org>
42320             Jim Meyering  <meyering@redhat.com>
42322         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
42323         * tests/init.sh (compare): Remove "No differences encountered" or
42324         synonymous output from the 'diff' program.
42326 2011-11-13  Bruno Haible  <bruno@clisp.org>
42328         Makefile: Tweak indentation.
42329         * Makefile: Use tab as first character in every line that contains rule
42330         commands.
42332 2011-11-13  Bruno Haible  <bruno@clisp.org>
42334         Syntax check for copyright statements.
42335         * check-copyright: New file.
42336         * Makefile (sc_check_copyright): New rule.
42338 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42340         * build-aux/git-version-gen: Add --prefix to configure the tag
42341         match string.
42343 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42345         * build-aux/git-version-gen: Add --help and --version.
42347 2011-11-12  Jim Meyering  <meyering@redhat.com>
42349         revamp the other test-exclude?.sh scripts to use init.sh, too
42350         * tests/test-exclude1.sh: Use init.sh.
42351         * tests/test-exclude2.sh: Likewise.
42352         * tests/test-exclude3.sh: Likewise.
42353         * tests/test-exclude4.sh: Likewise.
42354         * tests/test-exclude5.sh: Likewise.
42355         * tests/test-exclude6.sh: Likewise.
42356         * tests/test-exclude7.sh: Likewise.
42357         * tests/test-exclude8.sh: Likewise.
42358         * modules/exclude-tests (Files): List init.sh.
42360         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
42361         These shell scripts ignored failure of the binary test-exclude,
42362         so making the latter return 77 didn't cause them to be skipped.
42363         * tests/test-exclude5.sh: Exit with test-exclude's error status
42364         when that program fails.  Revamp to use init.sh.
42365         * tests/test-exclude2.sh: Likewise.
42367         test-exclude: fix a typo
42368         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
42370 2011-11-11  Bruno Haible  <bruno@clisp.org>
42372         obstack: Fix compilation error on MSVC 9.
42373         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
42375 2011-11-11  Jim Meyering  <meyering@redhat.com>
42377         test-exclude: skip tests rather than failing on deficient systems
42378         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
42379         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
42380         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
42381         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
42383 2011-11-10  Bruno Haible  <bruno@clisp.org>
42385         ptsname_r test: Avoid gcc warning on glibc systems.
42386         * tests/test-ptsname_r.c (null_ptr): New function.
42387         (test_errors): Use it.
42389 2011-11-10  Bruno Haible  <bruno@clisp.org>
42391         ptsname_r: Avoid compilation error on OSF/1 5.1.
42392         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
42393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
42394         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
42395         function is not declared or incompatibly declared.
42396         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
42397         * modules/ptsname_r (Depends-on, configure.ac): Update.
42398         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
42400 2011-11-10  Bruno Haible  <bruno@clisp.org>
42402         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
42403         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
42404         When cross-compiling, guess yes on all platforms except AIX.
42405         Reported by Ludovic Courtès <ludo@gnu.org>.
42407 2011-11-09  Bruno Haible  <bruno@clisp.org>
42409         ptsname_r tests: Fix bugs.
42410         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
42411         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
42413 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42415         fstatat: work with cross-compilation
42416         Problem reported by Ludovic Courtès in
42417         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
42418         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
42419         "cross-compiling" and assume the bug is present.  Replace
42420         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
42421         an inverted sense, to be more conservative about our assumptions.
42422         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
42424 2011-11-09  Bruno Haible  <bruno@clisp.org>
42426         Improve MODULES.html output.
42427         * modules/mkfifoat (Description): Use the word "function".
42428         * modules/readlinkat (Description): Likewise.
42429         * modules/symlinkat (Description): Likewise.
42431 2011-11-09  Eric Blake  <eblake@redhat.com>
42433         ptsname_r-tests: new test module
42434         * modules/ptsname_r-tests: New module.
42435         * tests/test-ptsname_r.c: New file.
42437         ptsname_r: new module
42438         * modules/ptsname_r: New module.
42439         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
42440         * lib/ptsname.c (__ptsname_r): Split...
42441         * lib/ptsname_r.c: ...into new file.
42442         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42443         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
42444         * modules/stdlib (Makefile.am): Substitute witnesses.
42445         * lib/stdlib.in.h (ptsname_r): Declare it.
42446         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
42447         * MODULES.html.sh (Misc): Likewise.
42448         * modules/ptsname (Depends-on): Alter dependency.
42449         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
42451 2011-11-09  Jim Meyering  <meyering@redhat.com>
42453         announce-gen: be more concise when there's only one URL+tarball
42454         * build-aux/announce-gen (get_tool_versions): When you distribute
42455         only one type of tarball, combine the first two "Here are..."
42456         sections and make the key-checking grammar independent of
42457         how many tarballs there are.
42459 2011-11-09  Eric Blake  <eblake@redhat.com>
42461         openpty: provide a stub on mingw
42462         * lib/pty.in.h (includes): Provide forward declarations.
42463         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
42465         raise: fix mingw handling of SIGPIPE
42466         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
42468 2011-11-08  Bruno Haible  <bruno@clisp.org>
42470         More conditional dependencies.
42471         * modules/faccessat (Depends-on): Add conditions.
42472         * modules/fchmodat (Depends-on): Likewise.
42473         * modules/fchownat (Depends-on): Likewise.
42474         * modules/fstatat (Depends-on): Likewise.
42475         * modules/mkfifoat (Depends-on): Likewise.
42476         * modules/readlinkat (Depends-on): Likewise.
42477         * modules/symlinkat (Depends-on): Likewise.
42478         * modules/unlinkat (Depends-on): Likewise.
42479         * modules/utimensat (Depends-on): Likewise.
42480         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
42481         * modules/linkat (Depends-on): Refine the conditions.
42482         * modules/renameat (Depends-on): Likewise.
42484 2011-11-08  Bruno Haible  <bruno@clisp.org>
42486         faccessat: Move AC_LIBOBJ invocation to module description.
42487         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
42488         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
42489         invocation from here...
42490         * modules/faccessat (configure.ac): ... to here. Invoke
42491         gl_PREREQ_FACCESSAT.
42493 2011-11-08  Bruno Haible  <bruno@clisp.org>
42495         faccessat: Simplify autoconf macro.
42496         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
42497         gl_FUNC_EUIDACCESS.
42499 2011-11-08  Bruno Haible  <bruno@clisp.org>
42501         renameat: Fix dependencies.
42502         * modules/renameat (Depends-on): Add stdbool.
42504 2011-11-08  Bruno Haible  <bruno@clisp.org>
42506         mkfifoat: Fix module description.
42507         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
42508         not gl_UNISTD_MODULE_INDICATOR.
42510 2011-11-08  Bruno Haible  <bruno@clisp.org>
42512         fstatat: Remove unused dependency.
42513         * modules/fstatat (Depends-on): Remove fstat.
42515 2011-11-08  Simon Josefsson  <simon@josefsson.org>
42517         GNUmakefile: behave when Makefile is missing.
42518         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
42520 2011-11-08  Bruno Haible  <bruno@clisp.org>
42522         openat: Conditionalize dependencies.
42523         * lib/openat.c: Reduce the scope of some #includes.
42524         * modules/openat (Depends-on): Add conditions.
42526 2011-11-07  Jim Meyering  <meyering@redhat.com>
42528         maint.mk: extract GPG key ID without using a temporary file
42529         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
42530         without using a temporary file.  Based on a suggestion from Werner Koch
42531         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
42533 2011-11-07  Eric Blake  <eblake@redhat.com>
42535         grantpt: fix typo
42536         * lib/stdlib.in.h (grantpt): Check correct function.
42538         maint.mk: silence new syntax check
42539         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42541 2011-11-06  Bruno Haible  <bruno@clisp.org>
42543         Doc about floating-point and math API.
42544         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
42545         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
42547 2011-11-06  Bruno Haible  <bruno@clisp.org>
42549         stdalign tests: Skip the test when compiled by Sun C.
42550         * tests/test-stdalign.c (main): Skip the test on Sun C.
42552 2011-11-06  Bruno Haible  <bruno@clisp.org>
42554         ansi-c++-opt: Complete the 2011-06-05 change.
42555         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
42556         does not support namespaces, set the variable to "no", not to ":".
42558 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42560         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
42562 2011-11-06  Bruno Haible  <bruno@clisp.org>
42564         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
42565         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
42566         (minus_zerol) [HP-UX]: New macro.
42567         (unary_minus) [HP-UX]: New function.
42568         (copysignl) [HP-UX]: Use unary_minus function.
42570 2011-11-06  Bruno Haible  <bruno@clisp.org>
42572         ldexp, ldexpf, ldexpl: Enhance tests.
42573         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
42574         and tests/test-ldexpl.c.
42575         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
42576         LDEXP, MIN_EXP, MAX_EXP): New macros.
42577         Include test-ldexp.h.
42578         (main): Just call test_function.
42579         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
42580         infinity.h, nan.h.
42581         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42582         MAX_EXP): New macros.
42583         Include test-ldexp.h.
42584         (x, y): Remove variables.
42585         (main): Just call test_function.
42586         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42587         infinity.h, nan.h.
42588         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42589         MAX_EXP): New macros.
42590         Include test-ldexp.h.
42591         (x, y): Remove variables.
42592         (main): Just call test_function.
42593         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42594         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42595         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42596         (Depends-on): Add isnand-nolibm, signbit, float.
42597         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42598         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42599         (Depends-on): Add isnanf-nolibm, signbit, float.
42601 2011-11-06  Bruno Haible  <bruno@clisp.org>
42603         math tests: Cosmetics.
42604         * tests/test-math-c++.cc: Reorder declarations.
42606 2011-11-05  Bruno Haible  <bruno@clisp.org>
42608         fma*: Simplify test.
42609         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42610         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42612         Tests for module 'fmal'.
42613         * modules/fmal-tests: New file.
42614         * tests/test-fmal1.c: New file.
42615         * tests/test-fmal2.c: New file.
42617         New module 'fmal'.
42618         * lib/math.in.h (fmal): New declaration.
42619         * lib/fmal.c: New file.
42620         * m4/fmal.m4: New file.
42621         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42623         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42624         REPLACE_FMAL.
42625         * modules/fmal: New file.
42626         * doc/posix-functions/fmal.texi: Mention the new module and the various
42627         bugs.
42629         Tests for module 'fmaf'.
42630         * modules/fmaf-tests: New file.
42631         * tests/test-fmaf1.c: New file.
42632         * tests/test-fmaf2.c: New file.
42634         New module 'fmaf'.
42635         * lib/math.in.h (fmaf): New declaration.
42636         * lib/fmaf.c: New file.
42637         * m4/fmaf.m4: New file.
42638         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42640         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42641         REPLACE_FMAF.
42642         * modules/fmaf: New file.
42643         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42644         bugs.
42646         Tests for module 'fma'.
42647         * modules/fma-tests: New file.
42648         * tests/test-fma1.c: New file.
42649         * tests/test-fma1.h: New file.
42650         * tests/test-fma2.c: New file.
42651         * tests/test-fma2.h: New file.
42653         New module 'fma'.
42654         * lib/math.in.h (fma): New declaration.
42655         * lib/fma.c: New file.
42656         * m4/fma.m4: New file.
42657         * m4/fegetround.m4: New file.
42658         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42660         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42661         REPLACE_FMA.
42662         * modules/fma: New file.
42663         * doc/posix-functions/fma.texi: Mention the new module and the various
42664         bugs.
42666         Extend gl_MATHFUNC.
42667         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42668         Support 'void' as argument type.
42669         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42671 2011-11-05  Jim Meyering  <meyering@redhat.com>
42673         maint.mk: also prohibit inclusion of dirent.h without use
42674         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42676 2011-11-05  Bruno Haible  <bruno@clisp.org>
42678         ldexpl tests: Avoid test failure on MSVC 9.
42679         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42680         value. Needed in order to enforce the conversion from a value greater
42681         than LDBL_MAX to Infinity.
42683 2011-11-05  Bruno Haible  <bruno@clisp.org>
42685         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42686         * modules/at-internal: New file, extracted from modules/openat.
42687         * modules/openat-h: New file.
42688         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42689         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42690         * modules/openat (Description): Add reference to POSIX function.
42691         (Files): Remove lib/openat.h, lib/openat-proc.c.
42692         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42693         intprops, unistd.
42694         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42695         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42696         gl_FCNTL_MODULE_INDICATOR.
42697         (Include): Remove unistd.h, openat.h.
42698         * modules/areadlinkat (Files): Add lib/at-func.c.
42699         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42700         openat-die, openat-h, save-cwd.
42701         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42702         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42703         openat-die, openat-h, save-cwd, unistd.
42704         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42705         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42706         openat-h, save-cwd. Remove fcntl-h, openat.
42707         * modules/fchmodat (Files): Remove lib/openat.h.
42708         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42709         openat, stdbool, unistd.
42710         * modules/fchownat (Files): Remove lib/openat.h.
42711         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42712         openat, stdbool, sys_stat.
42713         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42714         lib/openat-proc.c.
42715         (Depends-on): Add at-internal.
42716         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42717         * modules/fstatat (Files): Remove lib/openat.h.
42718         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42719         stdbool, unistd.
42720         * modules/fts (Depends-on): Add openat-h.
42721         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42722         openat.
42723         * modules/mkdirat (Files): Remove lib/openat.h.
42724         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42725         openat, stdbool, sys_stat.
42726         * modules/mkfifoat (Files): Add lib/at-func.c.
42727         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42728         openat-h, save-cwd. Remove fcntl-h, openat.
42729         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42730         * modules/readlinkat (Files): Add lib/at-func.c.
42731         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42732         openat-h, save-cwd. Remove fcntl-h, openat.
42733         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42734         openat.
42735         * modules/selinux-at (Files): Add lib/at-func.c.
42736         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42737         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42738         * modules/symlinkat (Files): Add lib/at-func.c.
42739         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42740         openat-h, save-cwd. Remove fcntl-h, openat.
42741         * modules/unlinkat (Files): Remove lib/openat.h.
42742         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42743         stdbool.
42744         * modules/utimensat (Files): Add lib/at-func.c.
42745         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42746         openat-die, openat-h, save-cwd.
42747         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42748         * modules/fdutimensat-tests (Depends-on): Add openat.
42749         * modules/fstatat-tests (Depends-on): Add openat-h.
42750         * modules/readlinkat-tests (Depends-on): Add openat.
42751         * modules/symlinkat-tests (Depends-on): Add openat.
42753 2011-11-05  Bruno Haible  <bruno@clisp.org>
42755         openat: Include <stdbool.h>.
42756         * lib/openat.c: Include <stdbool.h>.
42758 2011-11-04  Bruno Haible  <bruno@clisp.org>
42760         fchownat, renameat, unlinkat: Fix dependencies.
42761         * modules/fchownat (Depends-on): Add fstatat.
42762         * modules/renameat (Depends-on): Likewise.
42763         * modules/unlinkat (Depends-on): Likewise.
42765 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42767         openat: remove direct dependency on dirent
42768         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42769         and hasn't been needed ever since fdopendir was split into its own
42770         module on 2009-08-31.
42771         * modules/openat (Depends-on): Remove dirent.
42773 2011-11-04  Bruno Haible  <bruno@clisp.org>
42775         renameat: Optimize code size.
42776         * modules/renameat (configure.ac): Don't compile at-func2.c if
42777         REPLACE_RENAMEAT is 1.
42779 2011-11-04  Bruno Haible  <bruno@clisp.org>
42781         openat tests: Fix file list.
42782         * modules/openat-tests (Files): Add tests/test-open.h.
42784 2011-11-04  Bruno Haible  <bruno@clisp.org>
42786         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42787         * modules/fchmodat (Depends-on): Add openat-die.
42788         * modules/fchownat (Depends-on): Likewise.
42789         * modules/linkat (Depends-on): Likewise.
42790         * modules/renameat (Depends-on): Likewise.
42791         * modules/openat (Depends-on): Add dirent.
42793 2011-11-04  Jim Meyering  <meyering@redhat.com>
42795         at-func*.c: fix comments
42796         * lib/at-func2.c: Correct/improve first-line comment.
42797         * lib/at-func.c: Correct grammar in first-line comment.
42799 2011-11-04  Bruno Haible  <bruno@clisp.org>
42801         New module 'mkdirat', split off from module 'openat'.
42802         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42803         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42804         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42805         * modules/mkdirat: New file, extracted from modules/openat.
42806         * modules/openat (Files): Remove lib/mkdirat.c.
42807         (Depends-on): Remove mkdir.
42808         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42809         (Include): Remove <sys/stat.h>.
42810         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42811         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42812         tests/test-mkdir.h.
42813         (Depends-on): Remove ignore-value.
42814         (Makefile.am): Remove rules for test-mkdirat.
42815         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42816         of module 'openat'.
42817         * NEWS: Mention the change.
42819 2011-11-04  Bruno Haible  <bruno@clisp.org>
42821         closedir: Avoid warning on mingw.
42822         * lib/closedir.c: Include <unistd.h>.
42824 2011-11-04  Bruno Haible  <bruno@clisp.org>
42826         New module 'fstatat', split off from module 'openat'.
42827         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42828         defined.
42829         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42830         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42831         gl_FUNC_FSTATAT.
42832         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42833         * modules/fstatat: New file, extracted from modules/openat.
42834         * modules/openat (Files): Remove lib/fstatat.c.
42835         (Depends-on): Remove lstat.
42836         (configure.ac): Remove AC_LIBOBJ of fstatat.
42837         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42838         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42839         tests/test-lstat.h, tests/test-stat.h.
42840         (Depends-on): Remove getcwd-lgpl.
42841         (Makefile.am): Remove rules for test-fstatat.
42842         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42843         of module 'openat'.
42844         * NEWS: Mention the change.
42845         * modules/getcwd (Depends-on): Add fstatat.
42846         * modules/linkat (Depends-on): Likewise.
42847         * modules/mkfifoat-tests (Depends-on): Likewise.
42848         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42850 2011-11-03  Bruno Haible  <bruno@clisp.org>
42852         New module 'unlinkat', split off from module 'openat'.
42853         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42854         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42855         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42856         * modules/unlinkat: New file, extracted from modules/openat. Correct
42857         the dependency conditions.
42858         * modules/openat (Files): Remove lib/unlinkat.c.
42859         (Depends-on): Remove rmdir, unlink.
42860         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42861         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42862         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42863         tests/test-rmdir.h, tests/test-unlink.h.
42864         (Depends-on): Remove unlinkdir.
42865         (Makefile.am): Remove rules for test-unlinkat.
42866         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42867         of module 'openat'.
42868         * NEWS: Mention the change.
42869         * modules/linkat-tests (Depends-on): Add unlinkat.
42870         * modules/mkfifoat-tests (Depends-on): Likewise.
42871         * modules/readlinkat-tests (Depends-on): Likewise.
42873 2011-11-02  Bruno Haible  <bruno@clisp.org>
42875         New module 'fchmodat', split off from module 'openat'.
42876         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42877         defined.
42878         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42879         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42880         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42881         * modules/fchmodat: New file, extracted from modules/openat.
42882         * modules/openat (Files): Remove lib/fchmodat.c.
42883         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42884         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42885         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42886         (Makefile.am): Remove rules for test-fchmodat.
42887         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42888         of module 'openat'.
42889         * NEWS: Mention the change.
42891 2011-11-02  Jim Meyering  <meyering@redhat.com>
42893         putenv: indent #definition of "environ" to placate cppi
42894         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42896         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42897         Git logs are often treated as immutable, because editing them
42898         changes the SHA1 checksums of all descendants.  Thus, errors in
42899         git logs tend to stay there forever.  However, when we generate
42900         a ChangeLog file -- typically for distribution -- from that git log,
42901         we can actually make corrections in the generated file.  The key
42902         lies in recording in machine-readable/applicable form the desired
42903         corrections.  See --help for description and an example.
42904         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42905         (usage): Describe it; alphabetize option descriptions.
42906         (main): Honor the new option, carefully.
42908 2011-11-01  Jim Meyering  <meyering@redhat.com>
42910         gitlog-to-changelog: avoid an infloop
42911         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42912         that ends up being empty.
42914 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42916         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42917         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42918         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42919         contains (possibly-quoted) backslashes.  This should avoid
42920         all-too-common shell bugs if COMPLICATED contains backslashes in
42921         the "wrong" places.  Reported by David Evans in
42922         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42923         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42924         because we want ASCII ranges.  Is there some reason we don't use
42925         the C locale everywhere in this script?
42926         (func_module, top level): Avoid unwanted pathname expansion when
42927         $repo_url_prefix or $repo_url_suffix_repl contain shell
42928         metacharacters like '?' and '*'.
42930 2011-11-01  Bruno Haible  <bruno@clisp.org>
42932         fchownat: Improve description.
42933         * modules/fchownat (Description): Add link to function.
42935 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42937         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42938         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42939         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42940         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42942 2011-11-01  Bruno Haible  <bruno@clisp.org>
42944         alignof: Avoid collision with stdalign module.
42945         * lib/alignof.h (alignof): Remove macro.
42946         * NEWS: Mention the change.
42947         Reported by Paul Eggert.
42949 2011-11-01  Bruno Haible  <bruno@clisp.org>
42951         New module 'fchownat', split off from module 'openat'.
42952         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42953         defined.
42954         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42955         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42956         invoke gl_FUNC_FCHOWNAT.
42957         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42958         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42959         * modules/fchownat: New file, extracted from modules/openat.
42960         * modules/openat (Files): Remove lib/fchownat.c.
42961         (Depends-on): Remove lchown.
42962         (configure.ac): Remove AC_LIBOBJ of fchownat.
42963         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42964         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42965         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42966         (Depends-on): Remove mgetgroups, usleep, stat-time.
42967         (configure.ac): Remove test for getegid.
42968         (Makefile.am): Remove rules for test-fchownat.
42969         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42970         of module 'openat'.
42971         * NEWS: Mention the change.
42973 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42975         stdalign: port better to MSVC and to Sun C 5.11
42976         This fixes some of the problems reported by Bruno Haible in
42977         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42978         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42979         shortcomings of MSVC and of Sun C 5.11.
42980         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42981         around __declspec arg.
42982         * modules/stdalign-tests (Files): Add tests/macros.h.
42983         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42984         Include macros.h, for ASSERT.
42985         (DECLARE_ALIGNED): Remove.
42986         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42987         to catch bug), and to 1 if not (simplifies the rest of the code).
42988         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42989         (CHECK_AUTO): Remove.
42990         (CHECK_ALIGNED): Check only the alignment of the static vars,
42991         since auto var alignment isn't supported by Sun C 5.11.
42992         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42993         ASSERT failures are easier to diagnose.
42995 2011-10-31  Bruno Haible  <bruno@clisp.org>
42997         doc about some IRIX 5.3 problems.
42998         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42999         on IRIX 5.3.
43000         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
43001         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
43002         5.3.
43003         * doc/posix-functions/grantpt.texi: Likewise.
43004         * doc/posix-functions/unlockpt.texi: Likewise.
43005         * doc/posix-functions/lgamma.texi: Likewise.
43006         * doc/posix-functions/nextafter.texi: Likewise.
43007         * doc/posix-functions/remainder.texi: Likewise.
43008         * doc/posix-functions/select.texi: Mention misplaced declaration on
43009         IRIX 5.3.
43010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43012 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
43014         gitlog-to-changelog: fix git-log invocation.
43015         git-log mishandles date strings before 1970-01-01 UTC, and there is
43016         no use to specify --since=1970-01-01 by default anyway.
43017         * build-aux/gitlog-to-changelog: By default, when no --since option
43018         was given, do not specify explicit --since option to git-log.
43020 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
43022         gitlog-to-changelog: new option --append-dot.
43023         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
43024         first non-blank line of each commit message terminated with a dot.
43026 2011-10-30  Bruno Haible  <bruno@clisp.org>
43028         ffsl, ffsll: Avoid compilation error due to 'restrict'.
43029         * lib/ffsl.h: Include <config.h>.
43030         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
43032 2011-10-30  Jim Meyering  <meyering@redhat.com>
43034         GNUmakefile: reenable "make syntax-check" for most projects
43035         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
43036         build-aux variable", "syntax-check" would do nothing but succeed with
43037         the "No version control files detected..." diagnostic (unless you
43038         happened to override _build-aux via cfg.mk).
43039         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
43040         to precede inclusion of maint.mk.  Otherwise, these variables would
43041         be used undefined in any project that does not override the default.
43043 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
43045         gitlog-to-changelog: treat a message with only blank lines as empty.
43046         * build-aux/gitlog-to-changelog: Move the code that removes leading and
43047         trailing blank lines before the code that issues a warning about an
43048         empty commit message.
43050 2011-10-30  Jim Meyering  <meyering@redhat.com>
43052         test-parse-datetime.c: avoid new DST-related false positive test failure
43053         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
43054         based on the time/date we'll convert, not the current time.
43055         Otherwise, the moment we cross a DST boundary like today's in
43056         Europe, (CEST to CET), that offset ends up being one hour off.
43058 2011-10-27  Bruno Haible  <bruno@clisp.org>
43060         fstat: Tweak documentation.
43061         * modules/fstat (Description): More precise description.
43063 2011-10-27  Bruno Haible  <bruno@clisp.org>
43065         Update documentation regarding 'largefile' module.
43066         * doc/posix-functions/fstat.texi: Tweak wording.
43067         * doc/posix-functions/opendir.texi: Mention that the module fixes the
43068         problems with huge directories and/or small ino_t types.
43069         * doc/posix-functions/readdir.texi: Likewise.
43070         * doc/posix-functions/rewinddir.texi: Likewise.
43072 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
43074         maint.mk: don't maintain a second build-aux variable.
43075         * maint.mk (build_aux): Removed.  The maintainer-makefile module
43076         depends on GNUmakefile, which already maintains a cfg.mk
43077         overridable $(_build-aux) for projects with a non-standard
43078         build-aux directory location, although without the $(srcdir)
43079         prefix.  Use that variable consistently instead of introducing a
43080         second one.  Adjust all call sites.
43082 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
43084         Add stdalign module and use it in other modules.
43085         This is based on a previous proposal by Bruno Haible
43086         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
43088         stdalign: new module
43089         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
43090         * modules/stdalign: New files.
43091         * MODULES.html.sh (c1x_core_properties): Add stdalign.
43092         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
43094         stdalign-tests: new module
43095         * modules/stdalign-tests, tests/test-stdalign.c: New files.
43097         argp: use stdalign
43098         * lib/argp-parse.c: Include <stdalign.h>.
43099         (alignof): Remove.
43100         * modules/argp (Depends-on): Add stdalign.
43102         crypto libraries: use stdalign
43103         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
43104         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
43105         Do not include <stdlib.h> twice, in md4.c.
43106         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
43107         because we are accessing a pointer's bit-pattern, not a size.
43108         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
43109         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
43110         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
43111         * modules/crypto/sha512: Likewise.
43113         sys_socket: use stdalign, not alignof
43114         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
43115         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
43117 2011-10-27  Bruno Haible  <bruno@clisp.org>
43119         raise test: Avoid a test failure on Linux/MIPS.
43120         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
43121         because 99 is a valid signal on Linux/MIPS.
43123 2011-10-27  Bruno Haible  <bruno@clisp.org>
43125         nonblocking tests: Fix test failure on Linux/MIPS.
43126         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
43127         Set to 270000.
43129 2011-10-27  Bruno Haible  <bruno@clisp.org>
43131         utimensat: Work around problem on Linux/hppa.
43132         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
43133         values.
43134         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
43136 2011-10-25  Jim Meyering  <meyering@redhat.com>
43138         maint.mk: fix a bug in sc_prohibit_stddef_without_use
43139         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
43140         after symbols like NULL, size_t, etc.
43141         Reported by Alfred M. Szmidt.
43143         maint.mk: exempt ENODATA from a syntax-check rule
43144         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
43145         from the sc_prohibit_always-defined_macros syntax-check rule.
43146         Add a comment.  See this for more details:
43147         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
43149 2011-10-23  Jim Meyering  <meyering@redhat.com>
43151         fts: close parent dir FD before returning from post-traversal fts_read
43152         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
43153         unlink A, even though an FD open on A remained.  This is suboptimal
43154         (holding a file descriptor open longer than needed), but otherwise not
43155         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
43156         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
43157         that represents a real problem: it causes the removal of A to fail
43158         with e.g., "rm: cannot remove `A': Device or resource busy"
43160         fts visits each directory twice and keeps a cache (fts_fd_ring) of
43161         directory file descriptors.  After completing the final, FTS_DP,
43162         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
43163         cache, but then proceeded to add a new FD to it via the subsequent
43164         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
43165         final file descriptor would be closed only via fts_close's call to
43166         fd_ring_clear.  Now, it is usually closed earlier, via the final
43167         FTS_DP-returning fts_read call.
43168         * lib/fts.c (restore_initial_cwd): New function, converted from
43169         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
43170         Update callers.
43171         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
43172         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
43174 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
43175             Bruno Haible  <bruno@clisp.org>
43176             Jim Meyering  <jim@meyering.net>
43178         readme-release: improve safety of release prep instructions.
43179         * README-release: Don't git pull all branches when only master
43180         is needed for the release process.
43181         Run make maintainer-clean before changing trees and merging.
43182         Don't try to run ./configure right after git pull in case files
43183         that influence the bootstrap process have changed, move the
43184         ./configure step to after running ./bootstrap.
43185         Don't bootstrap "one last time"... it's the first time!
43187 2011-10-22  Bruno Haible  <bruno@clisp.org>
43189         errno, strerror-override: Support for MSVC 10.
43190         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
43191         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
43192         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
43193         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
43194         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
43195         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
43196         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
43197         Assign values compatible with MSVC 10.
43198         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
43199         New macros.
43200         (GNULIB_defined_EWINSOCK): New macro.
43201         * lib/strerror-override.c (strerror_override): Update accordingly.
43202         * lib/strerror-override.h: Likewise.
43203         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
43204         longer equal to the corresponding errno value.
43205         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43207 2011-10-22  Bruno Haible  <bruno@clisp.org>
43209         perror: Recognize when test program crashes.
43210         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
43211         strerror, set gl_cv_func_perror_works to no.
43212         Reported by Daniel Richard G. <skunk@iskunk.org>.
43214         perror: Fix indentation.
43215         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
43217 2011-10-22  Bruno Haible  <bruno@clisp.org>
43219         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
43220         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
43221         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
43222         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
43223         functions, not as a macro.
43224         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
43225         macros.
43226         (isfinite, isinf, isnan, signbit): Check overloaded functions and
43227         absence of macro.
43228         Suggested by Eric Blake.
43229         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43231 2011-10-21  Bruno Haible  <bruno@clisp.org>
43233         relocatable-prog-wrapper: Don't leave object files behind.
43234         * build-aux/install-reloc: Re-synchronize list of .o files to be
43235         removed with list of compilation units.
43237 2011-10-20  Bruno Haible  <bruno@clisp.org>
43239         openpty, posix_openpt: Remove code duplication.
43240         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
43241         * lib/openpty.c: Include <stdlib.h>.
43242         (openpty): Use posix_openpt on all platforms except IRIX.
43243         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
43245 2011-10-20  Bruno Haible  <bruno@clisp.org>
43247         unlockpt: Detect invalid argument.
43248         * lib/unlockpt.c: Include <fcntl.h>.
43249         (unlockpt): Check whether fd is valid, using fcntl().
43250         * modules/unlockpt (Depends-on): Add fcntl-h.
43252 2011-10-20  Bruno Haible  <bruno@clisp.org>
43254         openpty: Avoid compilation error on AIX 6.1.
43255         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
43257 2011-10-20  Bruno Haible  <bruno@clisp.org>
43259         posix_openpt: Support for OpenBSD.
43260         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
43261         (posix_openpt) [OpenBSD]: New code.
43262         * lib/grantpt.c: Include <fcntl.h>.
43263         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
43264         * modules/grantpt (Depends-on): Add fcntl-h.
43266 2011-10-20  Bruno Haible  <bruno@clisp.org>
43268         posix_openpt test: Coding style.
43269         * tests/test-posix_openpt.c: Use GNU coding style.
43271 2011-10-20  Bruno Haible  <bruno@clisp.org>
43273         grantpt: Support --avoid=pt_chown.
43274         * modules/grantpt (Files): Add lib/pty-private.h.
43276 2011-10-20  Bruno Haible  <bruno@clisp.org>
43278         posix_openpt: Fix autoconf macro.
43279         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
43280         unneeded check for _getpty.
43282 2011-10-20  Bruno Haible  <bruno@clisp.org>
43284         openpty: Update comments.
43285         * lib/openpty.c: Add comments about Minix.
43287 2011-10-19  Eric Blake  <eblake@redhat.com>
43289         openpty: relax license
43290         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
43292         pt_chown: use configmake to simplify build
43293         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
43295         ptsname and others: relax license
43296         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
43297         * modules/unlockpt (License): Likewise.
43298         * modules/pt_chown (License): Likewise.
43299         * modules/ptsname (License): Likewise.
43300         * modules/ttyname_r (License): Likewise.
43302 2011-10-19  Jim Meyering  <meyering@redhat.com>
43304         posix_openpt: remove spurious #endif
43305         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
43307 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
43309         maint.mk: Respect $(build_aux) in web-manual rule.
43310         * top/maint.mk (web-manual): Find gen-announce script in user's
43311         $(build_aux) directory instead of hard-coding 'build-aux'.
43313 2011-10-19  Bruno Haible  <bruno@clisp.org>
43315         posix_openpt: Fix compilation error.
43316         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
43317         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
43318         Mention the openpty module as an alternative.
43320 2011-10-19  Bruno Haible  <bruno@clisp.org>
43322         Support for old NeXTstep 3.3 frexp().
43323         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
43324         execution time of the test to 5 seconds.
43325         Reported by Daniel Richard G. <skunk@iskunk.org>.
43327 2011-10-19  Bruno Haible  <bruno@clisp.org>
43329         Support for old NeXTstep 3.3 sed.
43330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
43331         part, use /.../, not \|...|. Escape periods in the header file name.
43332         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
43333         Reported by Daniel Richard G. <skunk@iskunk.org>.
43335 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43337         Support for old NeXTstep 3.3 gcc.
43338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
43339         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
43340         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
43341         * lib/spawn.in.h (_Restrict_arr_): Likewise.
43342         * lib/regex.h (_Restrict_arr_): Likewise.
43343         * lib/regex_internal.h (re_token_t): Likewise.
43344         * lib/regexec.c (check_node_accept_bytes): Likewise.
43345         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
43347 2011-10-18  Eric Blake  <eblake@redhat.com>
43349         posix_openpt: new module
43350         * modules/posix_openpt: New module.
43351         * m4/posix_openpt.m4: New file.
43352         * lib/posix_openpt.c: Likewise.
43353         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43354         (gl_STDLIB_H_DEFAULTS): Set defaults.
43355         * modules/stdlib (Makefile.am): Substitute macros.
43356         * lib/stdlib.in.h (posix_openpt): Declare.
43357         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
43358         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
43359         * modules/posix_openpt-tests: New test module.
43360         * tests/test-posix_openpt.c: New test.
43362 2011-10-15  Bruno Haible  <bruno@clisp.org>
43364         xstrtoll: Fix compilation failure.
43365         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
43366         from lib/strtol.c.
43367         * doc/posix-headers/limits.texi: Mention missing numerical limits on
43368         some platforms.
43369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43371 2011-10-15  Bruno Haible  <bruno@clisp.org>
43373         vasnprintf: Optimize bit search operation.
43374         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
43375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
43376         gl_DOUBLE_EXPONENT_LOCATION.
43377         * modules/vasnprintf (Files): Add m4/exponentd.m4.
43378         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43379         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43380         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43381         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43382         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43383         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43384         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43385         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
43387 2011-10-15  Bruno Haible  <bruno@clisp.org>
43389         vasnprintf: Fix comments.
43390         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
43392 2011-10-14  Bruno Haible  <bruno@clisp.org>
43394         Tests for module 'integer_length_ll'.
43395         * modules/integer_length_ll-tests: New file.
43396         * tests/test-integer_length_ll.c: New file.
43398         New module 'integer_length_ll'.
43399         * lib/integer_length_ll.c: New file.
43400         * modules/integer_length_ll: New file.
43402 2011-10-14  Bruno Haible  <bruno@clisp.org>
43404         Tests for module 'integer_length_l'.
43405         * modules/integer_length_l-tests: New file.
43406         * tests/test-integer_length_l.c: New file.
43408         New module 'integer_length_l'.
43409         * lib/integer_length_l.c: New file.
43410         * modules/integer_length_l: New file.
43412 2011-10-14  Bruno Haible  <bruno@clisp.org>
43414         Tests for module 'integer_length'.
43415         * modules/integer_length-tests: New file.
43416         * tests/test-integer_length.c: New file.
43418         New module 'integer_length'.
43419         * lib/integer_length.h: New file.
43420         * lib/integer_length.c: New file.
43421         * modules/integer_length: New file.
43423 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43425         popen: Fix dependency conditions.
43426         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
43428 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43430         perror: Fix autoconf test.
43431         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
43432         <stdlib.h> and <string.h>.
43434 2011-10-14  Bruno Haible  <bruno@clisp.org>
43436         ffsl: Optimize on 64-bit platforms.
43437         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
43438         unrolling.
43440 2011-10-13  Bruno Haible  <bruno@clisp.org>
43442         ffsl: Optimize on 32-bit platforms.
43443         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
43444         use ffs() without a loop.
43446         ffsl, ffsll: Optimize for GCC.
43447         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
43448         * lib/ffsl.c (GCC_BUILTIN): New macro.
43449         * lib/ffsll.c (GCC_BUILTIN): Likewise.
43451 2011-10-13  Bruno Haible  <bruno@clisp.org>
43453         ffs, bcopy, memset: Support symbol renaming via config.h.
43454         * lib/ffs.c: Include <config.h>.
43455         * lib/bcopy.c: Likewise.
43456         * lib/memset.c: Likewise.
43458 2011-10-10  Bruno Haible  <bruno@clisp.org>
43460         atanl: Simplify for platforms where 'long double' == 'double'.
43461         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43462         alternative implementation.
43463         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43464         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43465         * modules/atanl (Depends-on): Add atan. Update conditions.
43467 2011-10-10  Bruno Haible  <bruno@clisp.org>
43469         acosl: Simplify for platforms where 'long double' == 'double'.
43470         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43471         alternative implementation.
43472         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43473         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43474         * modules/acosl (Depends-on): Add acos. Update conditions.
43476 2011-10-10  Bruno Haible  <bruno@clisp.org>
43478         asinl: Simplify for platforms where 'long double' == 'double'.
43479         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43480         alternative implementation.
43481         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43482         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43483         * modules/asinl (Depends-on): Add asin. Update conditions.
43485 2011-10-10  Bruno Haible  <bruno@clisp.org>
43487         tanl: Simplify for platforms where 'long double' == 'double'.
43488         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43489         implementation.
43490         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43491         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43492         * modules/tanl (Depends-on): Add tan. Update conditions.
43493         (configure.ac): Don't compile trigl.c if
43494         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43496 2011-10-10  Bruno Haible  <bruno@clisp.org>
43498         cosl: Simplify for platforms where 'long double' == 'double'.
43499         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43500         implementation.
43501         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43502         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43503         * modules/cosl (Depends-on): Add cos. Update conditions.
43504         (configure.ac): Don't compile sincosl.c and trigl.c if
43505         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43507 2011-10-10  Bruno Haible  <bruno@clisp.org>
43509         sinl: Simplify for platforms where 'long double' == 'double'.
43510         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43511         implementation.
43512         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43513         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43514         * modules/sinl (Depends-on): Add sin. Update conditions.
43515         (configure.ac): Don't compile sincosl.c and trigl.c if
43516         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43518 2011-10-10  Bruno Haible  <bruno@clisp.org>
43520         logl: Simplify for platforms where 'long double' == 'double'.
43521         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43522         implementation.
43523         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43524         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43525         * modules/logl (Depends-on): Add log. Update conditions.
43527 2011-10-10  Bruno Haible  <bruno@clisp.org>
43529         expl: Simplify for platforms where 'long double' == 'double'.
43530         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43531         implementation.
43532         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43533         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43534         * modules/expl (Depends-on): Add exp. Update conditions.
43536 2011-10-10  Bruno Haible  <bruno@clisp.org>
43538         sqrtl: Simplify for platforms where 'long double' == 'double'.
43539         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43540         alternative implementation.
43541         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43542         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43543         * modules/sqrtl (Depends-on): Update conditions.
43545 2011-10-10  Bruno Haible  <bruno@clisp.org>
43547         ldexpl: Simplify for platforms where 'long double' == 'double'.
43548         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43549         alternative implementation.
43550         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43551         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43552         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
43554 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
43556         ffsll: set correct witness
43557         * modules/ffsll (configure.ac): Fix typo.
43559 2011-10-10  Bruno Haible  <bruno@clisp.org>
43561         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
43562         * lib/printf-frexpl.c: Include <config.h>.
43563         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43564         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
43565         second time.
43566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
43567         gl_LONG_DOUBLE_VS_DOUBLE.
43568         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
43569         conditions.
43571 2011-10-10  Bruno Haible  <bruno@clisp.org>
43573         frexpl: Simplify for platforms where 'long double' == 'double'.
43574         * lib/frexpl.c: Include <config.h>.
43575         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43576         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43577         time.
43578         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43579         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43580         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
43581         * modules/frexpl (Depends-on): Add frexp. Update conditions.
43582         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
43583         conditions.
43585 2011-10-10  Jim Meyering  <meyering@redhat.com>
43587         test-renameat: don't leave behind a temporary file
43588         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43589           ERROR: files left in build directory after distclean:
43590           ./gltests/test-renameat.too
43591           make[1]: *** [distcleancheck] Error 1
43592         Reported by Tom G. Christensen.
43594 2011-10-09  Bruno Haible  <bruno@clisp.org>
43596         rint: Determine RINT_LIBM correctly on AIX 7.
43597         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43598         directly, not only through a function pointer. Also accept an optional
43599         4th argument with extra code.
43600         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43601         rintf() call by gcc when optimizing.
43603         mathfunc.m4: Refactor.
43604         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43605         m4 variable.
43607 2011-10-09  Bruno Haible  <bruno@clisp.org>
43609         rintl: Simplify for platforms where 'long double' == 'double'.
43610         * lib/rintl.c: Include <config.h>.
43611         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43612         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43613         time.
43614         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43615         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43616         * modules/rintl (Depends-on): Add rint. Update conditions.
43618 2011-10-09  Bruno Haible  <bruno@clisp.org>
43620         roundl: Simplify for platforms where 'long double' == 'double'.
43621         * lib/roundl.c: Include <config.h>.
43622         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43623         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43624         time.
43625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43626         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43627         * modules/roundl (Depends-on): Add round. Update conditions.
43629 2011-10-09  Bruno Haible  <bruno@clisp.org>
43631         truncl: Simplify for platforms where 'long double' == 'double'.
43632         * lib/truncl.c: Include <config.h>.
43633         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43634         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43635         time.
43636         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43637         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43638         * modules/truncl (Depends-on): Add trunc. Update conditions.
43640 2011-10-09  Bruno Haible  <bruno@clisp.org>
43642         ceill: Simplify for platforms where 'long double' == 'double'.
43643         * lib/ceill.c: Include <config.h>.
43644         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43645         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43646         time.
43647         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43648         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43649         * modules/ceill (Depends-on): Add ceil. Update conditions.
43651 2011-10-09  Bruno Haible  <bruno@clisp.org>
43653         floorl: Simplify for platforms where 'long double' == 'double'.
43654         * lib/floorl.c: Include <config.h>.
43655         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43656         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43657         time.
43658         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43659         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43660         * modules/floorl (Depends-on): Add floor. Update conditions.
43662 2011-10-09  Bruno Haible  <bruno@clisp.org>
43664         rint: Fix ordering constraints.
43665         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43666         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43667         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43669 2011-10-09  Bruno Haible  <bruno@clisp.org>
43671         copysignl: Simplify for platforms where 'long double' == 'double'.
43672         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43673         alternative.
43674         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43675         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43676         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43678 2011-10-09  Bruno Haible  <bruno@clisp.org>
43680         Tests for module 'rintl'.
43681         * modules/rintl-tests: New file.
43682         * tests/test-rintl.c: New file.
43684         New module 'rintl'.
43685         * lib/math.in.h (rintl): New declaration.
43686         * lib/rintl.c: New file.
43687         * m4/rintl.m4: New file.
43688         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43690         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43691         * modules/rintl: New file.
43692         * tests/test-math-c++.cc: Check the declaration of rintl.
43693         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43694         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43695         * doc/posix-functions/rintl.texi: Mention the new module.
43697 2011-10-09  Bruno Haible  <bruno@clisp.org>
43699         Tests for module 'rintf'.
43700         * modules/rintf-tests: New file.
43701         * tests/test-rintf.c: New file.
43703         New module 'rintf'.
43704         * lib/math.in.h (rintf): New declaration.
43705         * lib/rintf.c: New file.
43706         * m4/rintf.m4: New file.
43707         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43709         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43710         * modules/rintf: New file.
43711         * tests/test-math-c++.cc: Check the declaration of rintf.
43712         * doc/posix-functions/rintf.texi: Mention the new module.
43714 2011-10-09  Bruno Haible  <bruno@clisp.org>
43716         rint: Support for MSVC.
43717         * lib/math.in.h (rint): New declaration.
43718         * lib/rint.c: New file.
43719         * m4/rint.m4: New file.
43720         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43722         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43723         * modules/rint (Description): Fix.
43724         (Files): Add lib/rint.c, m4/rint.m4.
43725         (Depends-on): Add math.
43726         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43727         gl_MATH_MODULE_INDICATOR.
43728         * tests/test-math-c++.cc: Check the declaration of rint.
43729         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43730         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43731         * doc/posix-functions/rint.texi: Mention the replacement provided by
43732         the module.
43734         rint tests: More tests.
43735         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43736         minus-zero.h, infinity.h, nan.h.
43737         (main): Skip the test if the current rounding mode is not standard. Add
43738         tests for negative numbers, minus zero, infinity, NaN.
43739         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43740         tests/nan.h.
43741         (Depends-on): Add isnand-nolibm.
43743 2011-10-09  Bruno Haible  <bruno@clisp.org>
43745         Tests for module 'copysignl'.
43746         * modules/copysignl-tests: New file.
43747         * tests/test-copysignl.c: New file.
43749         New module 'copysignl'.
43750         * lib/math.in.h (copysignl): New declaration.
43751         * lib/copysignl.c: New file.
43752         * m4/copysignl.m4: New file.
43753         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43755         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43756         HAVE_COPYSIGNL.
43757         * modules/copysignl: New file.
43758         * tests/test-math-c++.cc: Check the declaration of copysignl.
43759         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43760         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43761         * doc/posix-functions/copysignl.texi: Mention the new module.
43763 2011-10-09  Bruno Haible  <bruno@clisp.org>
43765         Tests for module 'copysignf'.
43766         * modules/copysignf-tests: New file.
43767         * tests/test-copysignf.c: New file.
43769         New module 'copysignf'.
43770         * lib/math.in.h (copysignf): New declaration.
43771         * lib/copysignf.c: New file.
43772         * m4/copysignf.m4: New file.
43773         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43775         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43776         HAVE_COPYSIGNF.
43777         * modules/copysignf: New file.
43778         * tests/test-math-c++.cc: Check the declaration of copysignf.
43779         * doc/posix-functions/copysignf.texi: Mention the new module.
43781 2011-10-09  Bruno Haible  <bruno@clisp.org>
43783         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43784         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43785         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43786         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43787         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43788         gl_SIGNAL_H_DEFAULTS.
43790 2011-10-09  Bruno Haible  <bruno@clisp.org>
43792         poll: Make macro safer.
43793         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43794         ac_cv_header_poll_h is not set.
43796 2011-10-09  Bruno Haible  <bruno@clisp.org>
43798         copysign: Provide replacement.
43799         * lib/math.in.h (copysign): New declaration.
43800         * lib/copysign.c: New file.
43801         * m4/copysign.m4: New file.
43802         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43804         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43805         HAVE_COPYSIGN.
43806         * modules/copysign (Description): Clarify.
43807         (Files): Add lib/copysign.c, m4/copysign.m4.
43808         (Depends-on): Add math, signbit.
43809         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43810         gl_MATH_MODULE_INDICATOR.
43811         * tests/test-math-c++.cc: Check the declaration of copysign.
43812         * doc/posix-functions/copysign.texi: Mention the effects of the module
43813         on Minix and MSVC.
43815 2011-10-09  Bruno Haible  <bruno@clisp.org>
43817         isinf: Ensure macro on AIX 5.1.
43818         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43819         macro.
43820         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43822 2011-10-09  Bruno Haible  <bruno@clisp.org>
43824         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43825         * modules/snprintf-posix-tests (configure.ac): Require
43826         gl_LONG_DOUBLE_VS_DOUBLE.
43827         * modules/sprintf-posix-tests (configure.ac): Likewise.
43828         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43829         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43830         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43831         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43832         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43833         tests on platforms where 'long double' is the same as 'double'.
43834         * tests/test-sprintf-posix.h (test_function): Likewise.
43835         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43836         * tests/test-vasprintf-posix.c (test_function): Likewise.
43838         *printf: Fix for platforms where 'long double' == 'double'.
43839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43840         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43841         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43842         * modules/fprintf-posix (Files): Likewise.
43843         * modules/obstack-printf-posix (Files): Likewise.
43844         * modules/snprintf-posix (Files): Likewise.
43845         * modules/sprintf-posix (Files): Likewise.
43846         * modules/vasnprintf (Files): Likewise.
43847         * modules/vasnprintf-posix (Files): Likewise.
43848         * modules/vasprintf-posix (Files): Likewise.
43849         * modules/vdprintf-posix (Files): Likewise.
43850         * modules/vfprintf-posix (Files): Likewise.
43851         * modules/vsnprintf-posix (Files): Likewise.
43852         * modules/vsprintf-posix (Files): Likewise.
43853         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43854         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43855         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43856         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43857         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43858         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43859         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43861         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43862         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43863         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43864         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43865         'long double'.
43866         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43868         isinf: Fix for platforms where 'long double' == 'double'.
43869         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43870         Don't blindly assume 80-bit 'long double'.
43872         isfinite: Fix for platforms where 'long double' == 'double'.
43873         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43874         Don't blindly assume 80-bit 'long double'.
43876         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43877         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43878         * modules/isfinite-tests (configure.ac): Require
43879         gl_LONG_DOUBLE_VS_DOUBLE.
43880         * modules/isinf-tests (configure.ac): Likewise.
43881         * modules/isnan-tests (configure.ac): Likewise.
43882         * modules/isnanl-tests (configure.ac): Likewise.
43883         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43884         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43885         tests on platforms where 'long double' is the same as 'double'.
43886         * tests/test-isinf.c (test_isinfl): Likewise.
43887         * tests/test-isnan.c (test_long_double): Likewise.
43888         * tests/test-isnanl.h (main): Likewise.
43890 2011-10-08  Bruno Haible  <bruno@clisp.org>
43892         Tests for module 'tanhf'.
43893         * modules/tanhf-tests: New file.
43894         * tests/test-tanhf.c: New file.
43896         New module 'tanhf'.
43897         * lib/math.in.h (tanhf): New declaration.
43898         * lib/tanhf.c: New file.
43899         * m4/tanhf.m4: New file.
43900         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43902         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43903         * modules/tanhf: New file.
43904         * tests/test-math-c++.cc: Check the declaration of tanhf.
43905         * doc/posix-functions/tanhf.texi: Mention the new module.
43907         tanh: Use a .m4 file.
43908         * m4/tanh.m4: New file.
43909         * modules/tanh (Files): Add it.
43910         (configure.ac): Just invoke gl_FUNC_TANH.
43912 2011-10-08  Bruno Haible  <bruno@clisp.org>
43914         Tests for module 'coshf'.
43915         * modules/coshf-tests: New file.
43916         * tests/test-coshf.c: New file.
43918         New module 'coshf'.
43919         * lib/math.in.h (coshf): New declaration.
43920         * lib/coshf.c: New file.
43921         * m4/coshf.m4: New file.
43922         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43924         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43925         * modules/coshf: New file.
43926         * tests/test-math-c++.cc: Check the declaration of coshf.
43927         * doc/posix-functions/coshf.texi: Mention the new module.
43929         cosh: Use a .m4 file.
43930         * m4/cosh.m4: New file.
43931         * modules/cosh (Files): Add it.
43932         (configure.ac): Just invoke gl_FUNC_COSH.
43934 2011-10-08  Bruno Haible  <bruno@clisp.org>
43936         Tests for module 'sinhf'.
43937         * modules/sinhf-tests: New file.
43938         * tests/test-sinhf.c: New file.
43940         New module 'sinhf'.
43941         * lib/math.in.h (sinhf): New declaration.
43942         * lib/sinhf.c: New file.
43943         * m4/sinhf.m4: New file.
43944         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43946         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43947         * modules/sinhf: New file.
43948         * tests/test-math-c++.cc: Check the declaration of sinhf.
43949         * doc/posix-functions/sinhf.texi: Mention the new module.
43951         sinh: Use a .m4 file.
43952         * m4/sinh.m4: New file.
43953         * modules/sinh (Files): Add it.
43954         (configure.ac): Just invoke gl_FUNC_SINH.
43956 2011-10-08  Bruno Haible  <bruno@clisp.org>
43958         Tests for module 'atan2f'.
43959         * modules/atan2f-tests: New file.
43960         * tests/test-atan2f.c: New file.
43962         New module 'atan2f'.
43963         * lib/math.in.h (atan2f): New declaration.
43964         * lib/atan2f.c: New file.
43965         * m4/atan2f.m4: New file.
43966         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43968         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43969         * modules/atan2f: New file.
43970         * tests/test-math-c++.cc: Check the declaration of atan2f.
43971         * doc/posix-functions/atan2f.texi: Mention the new module.
43973         atan2: Use a .m4 file.
43974         * m4/atan2.m4: New file.
43975         * modules/atan2 (Files): Add it.
43976         (configure.ac): Just invoke gl_FUNC_ATAN2.
43978 2011-10-08  Bruno Haible  <bruno@clisp.org>
43980         Tests for module 'atanf'.
43981         * modules/atanf-tests: New file.
43982         * tests/test-atanf.c: New file.
43984         New module 'atanf'.
43985         * lib/math.in.h (atanf): New declaration.
43986         * lib/atanf.c: New file.
43987         * m4/atanf.m4: New file.
43988         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43990         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43991         * modules/atanf: New file.
43992         * tests/test-math-c++.cc: Check the declaration of atanf.
43993         * doc/posix-functions/atanf.texi: Mention the new module.
43995         atan: Use a .m4 file.
43996         * m4/atan.m4: New file.
43997         * modules/atan (Files): Add it.
43998         (configure.ac): Just invoke gl_FUNC_ATAN.
44000 2011-10-08  Bruno Haible  <bruno@clisp.org>
44002         Tests for module 'acosf'.
44003         * modules/acosf-tests: New file.
44004         * tests/test-acosf.c: New file.
44006         New module 'acosf'.
44007         * lib/math.in.h (acosf): New declaration.
44008         * lib/acosf.c: New file.
44009         * m4/acosf.m4: New file.
44010         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
44011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
44012         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
44013         * modules/acosf: New file.
44014         * tests/test-math-c++.cc: Check the declaration of acosf.
44015         * doc/posix-functions/acosf.texi: Mention the new module.
44017         acos: Use a .m4 file.
44018         * m4/acos.m4: New file.
44019         * modules/acos (Files): Add it.
44020         (configure.ac): Just invoke gl_FUNC_ACOS.
44022 2011-10-08  Bruno Haible  <bruno@clisp.org>
44024         Tests for module 'asinf'.
44025         * modules/asinf-tests: New file.
44026         * tests/test-asinf.c: New file.
44028         New module 'asinf'.
44029         * lib/math.in.h (asinf): New declaration.
44030         * lib/asinf.c: New file.
44031         * m4/asinf.m4: New file.
44032         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
44033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
44034         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
44035         * modules/asinf: New file.
44036         * tests/test-math-c++.cc: Check the declaration of asinf.
44037         * doc/posix-functions/asinf.texi: Mention the new module.
44039         asin: Use a .m4 file.
44040         * m4/asin.m4: New file.
44041         * modules/asin (Files): Add it.
44042         (configure.ac): Just invoke gl_FUNC_ASIN.
44044 2011-10-08  Bruno Haible  <bruno@clisp.org>
44046         Tests for module 'tanf'.
44047         * modules/tanf-tests: New file.
44048         * tests/test-tanf.c: New file.
44050         New module 'tanf'.
44051         * lib/math.in.h (tanf): New declaration.
44052         * lib/tanf.c: New file.
44053         * m4/tanf.m4: New file.
44054         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
44055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
44056         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
44057         * modules/tanf: New file.
44058         * tests/test-math-c++.cc: Check the declaration of tanf.
44059         * doc/posix-functions/tanf.texi: Mention the new module.
44061         tan: Use a .m4 file.
44062         * m4/tan.m4: New file.
44063         * modules/tan (Files): Add it.
44064         (configure.ac): Just invoke gl_FUNC_TAN.
44066 2011-10-08  Bruno Haible  <bruno@clisp.org>
44068         Tests for module 'cosf'.
44069         * modules/cosf-tests: New file.
44070         * tests/test-cosf.c: New file.
44072         New module 'cosf'.
44073         * lib/math.in.h (cosf): New declaration.
44074         * lib/cosf.c: New file.
44075         * m4/cosf.m4: New file.
44076         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
44077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
44078         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
44079         * modules/cosf: New file.
44080         * tests/test-math-c++.cc: Check the declaration of cosf.
44081         * doc/posix-functions/cosf.texi: Mention the new module.
44083         cos: Use a .m4 file.
44084         * m4/cos.m4: New file.
44085         * modules/cos (Files): Add it.
44086         (configure.ac): Just invoke gl_FUNC_COS.
44088 2011-10-08  Bruno Haible  <bruno@clisp.org>
44090         Tests for module 'sinf'.
44091         * modules/sinf-tests: New file.
44092         * tests/test-sinf.c: New file.
44094         New module 'sinf'.
44095         * lib/math.in.h (sinf): New declaration.
44096         * lib/sinf.c: New file.
44097         * m4/sinf.m4: New file.
44098         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
44099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
44100         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
44101         * modules/sinf: New file.
44102         * tests/test-math-c++.cc: Check the declaration of sinf.
44103         * doc/posix-functions/sinf.texi: Mention the new module.
44105         sin: Use a .m4 file.
44106         * m4/sin.m4: New file.
44107         * modules/sin (Files): Add it.
44108         (configure.ac): Just invoke gl_FUNC_SIN.
44110 2011-10-08  Bruno Haible  <bruno@clisp.org>
44112         Tests for module 'powf'.
44113         * modules/powf-tests: New file.
44114         * tests/test-powf.c: New file.
44116         New module 'powf'.
44117         * lib/math.in.h (powf): New declaration.
44118         * lib/powf.c: New file.
44119         * m4/powf.m4: New file.
44120         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
44121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
44122         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
44123         * modules/powf: New file.
44124         * tests/test-math-c++.cc: Check the declaration of powf.
44125         * doc/posix-functions/powf.texi: Mention the new module.
44127         pow: Use a .m4 file.
44128         * m4/pow.m4: New file.
44129         * modules/pow (Files): Add it.
44130         (configure.ac): Just invoke gl_FUNC_POW.
44132 2011-10-08  Bruno Haible  <bruno@clisp.org>
44134         Tests for module 'log10f'.
44135         * modules/log10f-tests: New file.
44136         * tests/test-log10f.c: New file.
44138         New module 'log10f'.
44139         * lib/math.in.h (log10f): New declaration.
44140         * lib/log10f.c: New file.
44141         * m4/log10f.m4: New file.
44142         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
44143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
44144         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
44145         * modules/log10f: New file.
44146         * tests/test-math-c++.cc: Check the declaration of log10f.
44147         * doc/posix-functions/log10f.texi: Mention the new module.
44149         log10: Use a .m4 file.
44150         * m4/log10.m4: New file.
44151         * modules/log10 (Files): Add it.
44152         (configure.ac): Just invoke gl_FUNC_LOG10.
44154 2011-10-08  Bruno Haible  <bruno@clisp.org>
44156         Tests for module 'logf'.
44157         * modules/logf-tests: New file.
44158         * tests/test-logf.c: New file.
44160         New module 'logf'.
44161         * lib/math.in.h (logf): New declaration.
44162         * lib/logf.c: New file.
44163         * m4/logf.m4: New file.
44164         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
44165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
44166         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
44167         * modules/logf: New file.
44168         * tests/test-math-c++.cc: Check the declaration of logf.
44169         * doc/posix-functions/logf.texi: Mention the new module.
44171         log: Use a .m4 file.
44172         * m4/log.m4: New file.
44173         * modules/log (Files): Add it.
44174         (configure.ac): Just invoke gl_FUNC_LOG.
44176 2011-10-08  Bruno Haible  <bruno@clisp.org>
44178         Tests for module 'expf'.
44179         * modules/expf-tests: New file.
44180         * tests/test-expf.c: New file.
44182         New module 'expf'.
44183         * lib/math.in.h (expf): New declaration.
44184         * lib/expf.c: New file.
44185         * m4/expf.m4: New file.
44186         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
44187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
44188         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
44189         * modules/expf: New file.
44190         * tests/test-math-c++.cc: Check the declaration of expf.
44191         * doc/posix-functions/expf.texi: Mention the new module.
44193         exp: Use a .m4 file.
44194         * m4/exp.m4: New file.
44195         * modules/exp (Files): Add it.
44196         (configure.ac): Just invoke gl_FUNC_EXP.
44198 2011-10-08  Bruno Haible  <bruno@clisp.org>
44200         Tests for module 'sqrtf'.
44201         * modules/sqrtf-tests: New file.
44202         * tests/test-sqrtf.c: New file.
44204         New module 'sqrtf'.
44205         * lib/math.in.h (sqrtf): New declaration.
44206         * lib/sqrtf.c: New file.
44207         * m4/sqrtf.m4: New file.
44208         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
44209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
44210         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
44211         * modules/sqrtf: New file.
44212         * tests/test-math-c++.cc: Check the declaration of sqrtf.
44213         * doc/posix-functions/sqrtf.texi: Mention the new module.
44215 2011-10-08  Bruno Haible  <bruno@clisp.org>
44217         Tests: Avoid link failures w.r.t. libintl.
44218         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
44219         $(LIBINTL).
44220         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
44221         $(LIBINTL).
44222         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
44223         against $(LIBINTL).
44224         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
44225         $(LIBINTL).
44226         * modules/openat-tests (Makefile.am): Link test-fchmodat against
44227         $(LIBINTL).
44228         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
44230 2011-10-08  Bruno Haible  <bruno@clisp.org>
44232         pow tests: Defeat compiler optimizations.
44233         * tests/test-pow.c (main): Assign arguments to x and y before use.
44235 2011-10-08  Bruno Haible  <bruno@clisp.org>
44237         gnulib-tool: Improve last commit.
44238         * gnulib-tool (func_modules_transitive_closure): Simplify code.
44239         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
44240         ignore dependencies that are not among the modules list.
44242 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
44244         gnulib-tool: don't follow dependencies to avoided modules
44245         This fixes a bug that is related to the previous one.
44246         * gnulib-tool (func_modules_transitive_closure)
44247         (func_emit_autoconf_snippets):
44248         Check whether a dependency is acceptable before using it.
44249         (--extract-dependencies): Report an error if --avoid is also used,
44250         since this combination of options is not yet supported.
44252         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
44253         Problem reported by Peter Dyballa in
44254         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
44255         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
44256         when echoing "$condition".
44258 2011-10-07  Bruno Haible  <bruno@clisp.org>
44260         Fix documentation about math functions on MacOS X.
44261         * doc/posix-functions/exp2.texi: Don't say the function is missing on
44262         MacOS X 10.5.
44263         * doc/posix-functions/fdim.texi: Likewise.
44264         * doc/posix-functions/feclearexcept.texi: Likewise.
44265         * doc/posix-functions/fegetenv.texi: Likewise.
44266         * doc/posix-functions/fegetround.texi: Likewise.
44267         * doc/posix-functions/feholdexcept.texi: Likewise.
44268         * doc/posix-functions/feraiseexcept.texi: Likewise.
44269         * doc/posix-functions/fesetenv.texi: Likewise.
44270         * doc/posix-functions/fesetround.texi: Likewise.
44271         * doc/posix-functions/fetestexcept.texi: Likewise.
44272         * doc/posix-functions/feupdateenv.texi: Likewise.
44273         * doc/posix-functions/fmax.texi: Likewise.
44274         * doc/posix-functions/fmin.texi: Likewise.
44275         * doc/posix-functions/log2.texi: Likewise.
44276         * doc/posix-functions/modff.texi: Likewise.
44277         * doc/posix-functions/nan.texi: Likewise.
44278         * doc/posix-functions/nanf.texi: Likewise.
44279         * doc/posix-functions/nextafterf.texi: Likewise.
44280         * doc/posix-functions/remquo.texi: Likewise.
44282 2011-10-07  Bruno Haible  <bruno@clisp.org>
44284         modff: Drop assumption about library that defines modff.
44285         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
44286         AC_CHECK_FUNCS.
44287         * modules/modff (Files): Add m4/mathfunc.m4.
44289 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
44291         raise tests: Avoid a GCC warning.
44292         * tests/test-raise.c (handler): Use _Noreturn.
44294 2011-10-07  Bruno Haible  <bruno@clisp.org>
44296         Tests for module 'ldexpf'.
44297         * modules/ldexpf-tests: New file.
44298         * tests/test-ldexpf.c: New file.
44300         New module 'ldexpf'.
44301         * lib/math.in.h (ldexpf): New declaration.
44302         * lib/ldexpf.c: New file.
44303         * m4/ldexpf.m4: New file.
44304         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
44305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
44306         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
44307         * modules/ldexpf: New file.
44308         * tests/test-math-c++.cc: Check the declaration of ldexpf.
44309         * doc/posix-functions/ldexpf.texi: Mention the new module.
44311 2011-10-06  Bruno Haible  <bruno@clisp.org>
44313         frexpf: Work around problems on IRIX and mingw.
44314         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
44315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
44316         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
44317         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
44318         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
44319         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
44320         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
44322 2011-10-06  Bruno Haible  <bruno@clisp.org>
44324         fabsf: Drop assumption about library that defines fabsf.
44325         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
44326         AC_CHECK_FUNCS.
44327         * modules/fabsf (Files): Add m4/mathfunc.m4.
44329 2011-10-06  Bruno Haible  <bruno@clisp.org>
44331         frexpf: Drop assumption about library that defines frexpf.
44332         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
44333         'int *', 'float *', 'long double *', 'float', 'long double'.
44334         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
44335         AC_CHECK_FUNCS.
44336         * modules/frexpf (Files): Add m4/mathfunc.m4.
44338         Tests for module 'frexpf'.
44339         * modules/frexpf-tests: New file.
44340         * tests/test-frexpf.c: New file.
44342         New module 'frexpf'.
44343         * lib/math.in.h (frexpf): New declaration.
44344         * lib/frexpf.c: New file.
44345         * m4/frexpf.m4: New file.
44346         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
44347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
44348         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
44349         * modules/frexpf: New file.
44350         * tests/test-math-c++.cc: Check the declaration of frexpf.
44351         * doc/posix-functions/frexpf.texi: Mention the new module.
44353 2011-10-06  Bruno Haible  <bruno@clisp.org>
44355         math: Sort function declarations of math.in.h.
44356         * lib/math.in.h (frexp, logb): Move declarations.
44358 2011-10-05  Bruno Haible  <bruno@clisp.org>
44360         Tests for module 'modff'.
44361         * modules/modff-tests: New file.
44362         * tests/test-modff.c: New file.
44364         New module 'modff'.
44365         * lib/math.in.h (modff): New declaration.
44366         * lib/modff.c: New file.
44367         * m4/modff.m4: New file.
44368         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
44369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
44370         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
44371         * modules/modff: New file.
44372         * tests/test-math-c++.cc: Check the declaration of modff.
44373         * doc/posix-functions/modff.texi: Mention the new module.
44375         modf tests: Make test sharper.
44376         * tests/test-modf.c (main): Strengthen upper bound.
44378         modf: Use a .m4 file.
44379         * m4/modf.m4: New file.
44380         * modules/modf (Files): Add it.
44381         (configure.ac): Just invoke gl_FUNC_MODF.
44383 2011-10-05  Bruno Haible  <bruno@clisp.org>
44385         Tests for module 'fmodf'.
44386         * modules/fmodf-tests: New file.
44387         * tests/test-fmodf.c: New file.
44389         New module 'fmodf'.
44390         * lib/math.in.h (fmodf): New declaration.
44391         * lib/fmodf.c: New file.
44392         * m4/fmodf.m4: New file.
44393         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
44394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
44395         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
44396         * modules/fmodf: New file.
44397         * tests/test-math-c++.cc: Check the declaration of fmodf.
44398         * doc/posix-functions/fmodf.texi: Mention the new module.
44400         fmod: Use a .m4 file.
44401         * m4/fmod.m4: New file.
44402         * modules/fmod (Files): Add it.
44403         (configure.ac): Just invoke gl_FUNC_FMOD.
44405 2011-10-05  Bruno Haible  <bruno@clisp.org>
44407         Tests for module 'fabsf'.
44408         * modules/fabsf-tests: New file.
44409         * tests/test-fabsf.c: New file.
44411         New module 'fabsf'.
44412         * lib/math.in.h (fabsf): New declaration.
44413         * lib/fabsf.c: New file.
44414         * m4/fabsf.m4: New file.
44415         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
44416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
44417         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
44418         * modules/fabsf: New file.
44419         * tests/test-math-c++.cc: Check the declaration of fabsf.
44420         * doc/posix-functions/fabsf.texi: Mention the new module.
44422         fabs: Use a .m4 file.
44423         * m4/fabs.m4: New file.
44424         * modules/fabs (Files): Add it.
44425         (configure.ac): Just invoke gl_FUNC_FABS.
44427 2011-10-05  Jim Meyering  <meyering@redhat.com>
44429         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
44430         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
44431         ls -lL regression introduced in coreutils-8.12, it does so at the
44432         cost of an additional stat call in the common case.  Besides, now
44433         that the kernel change that prompted commit 95f7c57f has been reverted
44434         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
44435         we have no use for commit 95f7c57f, "file-has-acl: use
44436         acl_extended_file_nofollow if available".
44438 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
44440         file-has-acl: revert unintended change in behavior of ls -L
44441         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
44442         derived from...
44443         (file_has_acl): ...code here.  Call it.
44444         This problem was introduced with 2011-07-22 commit 95f7c57f,
44445         "file-has-acl: use acl_extended_file_nofollow if available".
44446         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
44448 2011-10-03  Bruno Haible  <bruno@clisp.org>
44450         poll: Avoid link errors on MSVC.
44451         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
44452         * modules/poll (Depends-on): Add sockets.
44453         (Link): New section.
44454         * NEWS: Mention the change.
44455         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
44456         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
44457         $(LIB_POLL) instead of $(LIBSOCKET).
44459 2011-10-03  Bruno Haible  <bruno@clisp.org>
44461         sys_select tests: Fix link error on MSVC 9.
44462         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
44463         with $(LIB_SELECT) instead of $(LIBSOCKET).
44465 2011-10-03  Bruno Haible  <bruno@clisp.org>
44467         sys_select: Fix compilation error on mingw.
44468         * lib/sys_select.in.h: On native Windows, include <io.h>.
44470 2011-10-03  Bruno Haible  <bruno@clisp.org>
44472         wmemset: Support for MSVC.
44473         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
44474         whether wmemset() exists.
44476 2011-10-03  Bruno Haible  <bruno@clisp.org>
44478         wmemmove: Support for MSVC.
44479         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
44480         whether wmemmove() exists.
44482 2011-10-03  Bruno Haible  <bruno@clisp.org>
44484         wmemcpy: Support for MSVC.
44485         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
44486         whether wmemcpy() exists.
44488 2011-10-03  Bruno Haible  <bruno@clisp.org>
44490         wmemcmp: Support for MSVC.
44491         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
44492         whether wmemcmp() exists.
44494 2011-10-03  Bruno Haible  <bruno@clisp.org>
44496         wmemchr: Support for MSVC.
44497         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
44498         whether wmemchr() exists.
44500 2011-10-03  Bruno Haible  <bruno@clisp.org>
44502         glthread/*, strsignal: Support for MSVC.
44503         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
44504         including <winsock.h> on MSVC 9.
44505         * lib/glthread/lock.h: Likewise.
44506         * lib/glthread/thread.h: Likewise.
44507         * lib/glthread/tls.h: Likewise.
44508         * lib/glthread/yield.h: Likewise.
44509         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
44510         if HAVE_UNISTD_H is false.
44511         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
44513 2011-10-03  Bruno Haible  <bruno@clisp.org>
44515         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
44516         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
44517         Set to 100000.
44519 2011-10-03  Bruno Haible  <bruno@clisp.org>
44521         acl: Fix specification.
44522         * lib/file-has-acl.c (file_has_acl): Fix specification.
44524 2011-10-03  Bruno Haible  <bruno@clisp.org>
44526         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
44527         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
44528         (compute_curr_prefix, shared_library_fullname,
44529         find_shared_library_fullname, get_shared_library_fullname, relocate):
44530         Use it together with PIC && INSTALLDIR.
44531         Reported by <jojelino@gmail.com>
44532         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
44534 2011-10-01  Jim Meyering  <meyering@redhat.com>
44536         maint.mk: adjust a release-related rule not to require use of gzip
44537         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
44538         Instead, check each file in $(DIST_ARCHIVES).  This is better for
44539         projects that build only .tar.xz files.  Also fix an erroneous test.
44541         test-linkat: don't leave behind a temporary file
44542         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
44543         Otherwise, coreutils' "make distcheck" would fail with this:
44544           Only in /c/cu/tests/torture/coreutils/test/\
44545             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
44546           make[2]: *** [my-distcheck] Error 1
44548         float, math: add omitted file
44549         * lib/itold.c: Add file, required for yesterday's float change.
44551 2011-10-01  Bruno Haible  <bruno@clisp.org>
44553         isinf: Fix for OpenBSD/x86.
44554         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
44555         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
44556         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
44558 2011-10-01  Bruno Haible  <bruno@clisp.org>
44560         isfinite: Fix syntax error in configure test.
44561         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44563         isfinite: Fix typo.
44564         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
44565         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
44567 2011-10-01  Bruno Haible  <bruno@clisp.org>
44569         nonblocking tests: Fix test failure on Linux/IA-64.
44570         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
44571         Set to 270000.
44573 2011-10-01  Bruno Haible  <bruno@clisp.org>
44575         mkfifoat tests: Fix a test failure on mingw.
44576         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
44577         with error ENOSYS.
44579 2011-09-30  Bruno Haible  <bruno@clisp.org>
44581         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
44582         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
44583         'long double'. Set REPLACE_ITOLD.
44584         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
44585         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
44586         * lib/itold.c: New file.
44587         * modules/float (Files): Add lib/itold.c.
44588         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44589         (Makefile.am): Substitute REPLACE_ITOLD.
44590         * modules/math (Depends-on): Add float.
44591         (Makefile.am): Substitute REPLACE_ITOLD.
44592         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44593         * doc/posix-headers/math.texi: Likewise.
44594         * doc/posix-functions/logl.texi: Likewise.
44596 2011-09-30  Bruno Haible  <bruno@clisp.org>
44598         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44599         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44600         Set to 140000.
44602 2011-09-30  Bruno Haible  <bruno@clisp.org>
44604         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44605         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44606         invocation, say "right after AC_PROG_CC_STDC", not "right after
44607         AC_PROG_CC".
44608         Reported by Gary V. Vaughan <gary@gnu.org>.
44610 2011-09-30  Bruno Haible  <bruno@clisp.org>
44612         Centralize C99 requirement.
44613         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44614         * modules/stdarg (configure.ac-early): Invoke it instead of
44615         AC_PROG_CC_STDC.
44616         Reported by Gary V. Vaughan and Paul Eggert.
44618 2011-09-29  Bruno Haible  <bruno@clisp.org>
44620         float: Fix LDBL_MAX value on Linux/PowerPC.
44621         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44622         on Linux/PowerPC.
44623         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44624         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44625         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44626         platform.
44627         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44629 2011-09-29  Bruno Haible  <bruno@clisp.org>
44631         doc: Improve doc about gl_EARLY.
44632         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44633         AC_PROG_CC_STDC invocation.
44634         Reported by Gary V. Vaughan <gary@gnu.org>.
44636 2011-09-28  Bruno Haible  <bruno@clisp.org>
44638         fgetc, fputc, fread, fwrite tests: Fix link error.
44639         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44640         on non-MSVC platforms.
44641         * tests/test-fputc.c (main): Likewise.
44642         * tests/test-fread.c (main): Likewise.
44643         * tests/test-fwrite.c (main): Likewise.
44644         Reported by Jim Meyering.
44646 2011-09-27  Bruno Haible  <bruno@clisp.org>
44648         fputc, fwrite tests: Avoid test failure on MSVC.
44649         * tests/test-fgetc.c: Include msvc-inval.h.
44650         (main): Invoke gl_msvc_inval_ensure_handler.
44651         * tests/test-fputc.c: Include msvc-inval.h.
44652         (main): Invoke gl_msvc_inval_ensure_handler.
44653         * tests/test-fread.c: Include msvc-inval.h.
44654         (main): Invoke gl_msvc_inval_ensure_handler.
44655         * tests/test-fwrite.c: Include msvc-inval.h.
44656         (main): Invoke gl_msvc_inval_ensure_handler.
44657         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44658         * modules/fputc-tests (Depends-on): Likewise.
44659         * modules/fread-tests (Depends-on): Likewise.
44660         * modules/fwrite-tests (Depends-on): Likewise.
44662 2011-09-27  Bruno Haible  <bruno@clisp.org>
44664         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44665         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44666         (raise): Remove older, duplicated declaration.
44667         (_gl_raise_SIGPIPE): New declaration.
44668         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44669         (rpl_raise): Remove function.
44670         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44671         a gnulib-defined SIGPIPE here.
44672         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44673         'sigprocmask' has detected missing signal-blocking and the module
44674         'sigpipe' is enabled.
44675         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44677 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44679         base64-tests: avoid memory leak
44680         * tests/test-base64.c (main): Plug memory leak.
44682         base32: new module
44683         * modules/base32: New module.
44684         * lib/base32.c: New file.
44685         * lib/base32.h: Likewise.
44686         * m4/base32.m4: Likewise.
44687         * modules/base32-tests: New test.
44688         * tests/test-base32.c: Likewise.
44689         * MODULES.html.sh (Misc): Mention it.
44691 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44693         gnulib: use more-standard license notice wording
44694         * gnulib-tool (func_emit_copyright_notice): When emitting a
44695         license notice into a file, use the standard wording as suggested
44696         by the current information for GNU maintainers, except say "file"
44697         rather than "program".  The new wording gives a license version
44698         number, which addresses an issue raised by Glenn Morris in
44699         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44700         * m4/onceonly.m4: Use that same wording here, too.
44702         dup2: minor simplification
44703         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44704         as lib/dup2.c no longer uses 'inline'.
44706 2011-09-25  Bruno Haible  <bruno@clisp.org>
44708         strings: Fix compilation error on MSVC.
44709         * lib/strings.in.h: Include <stddef.h> for size_t.
44711 2011-09-25  Bruno Haible  <bruno@clisp.org>
44713         fflush et al.: Document limitation on MSVC.
44714         * doc/posix-functions/fflush.texi: Document possible crash in handling
44715         mode other than DEFAULT_HANDLING.
44716         * doc/posix-functions/fgetc.texi: Likewise.
44717         * doc/posix-functions/fputc.texi: Likewise.
44718         * doc/posix-functions/fread.texi: Likewise.
44719         * doc/posix-functions/fwrite.texi: Likewise.
44721 2011-09-25  Bruno Haible  <bruno@clisp.org>
44723         msvc-inval: Allow three invalid parameter handling modes.
44724         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44725         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44726         macros.
44727         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44728         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44729         SANE_LIBRARY_HANDLING as a no-op.
44730         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44731         <stdlib.h>.
44732         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44734 2011-09-25  Bruno Haible  <bruno@clisp.org>
44736         msvc-inval: Make handler multithread-safe.
44737         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44738         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44739         declarations.
44740         (gl_msvc_inval_current): New declaration.
44741         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44742         Operate on the structure returned by gl_msvc_inval_current().
44743         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44744         Remove varaiables.
44745         (tls_index, tls_initialized): New variables.
44746         (not_per_thread): New variable.
44747         (gl_msvc_inval_current): New function.
44748         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44749         returned by gl_msvc_inval_current().
44751 2011-09-25  Bruno Haible  <bruno@clisp.org>
44753         msvc-inval: Install handler globally.
44754         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44755         !_MSC_VER.
44756         (gl_msvc_invalid_parameter_handler): Remove declaration.
44757         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44758         declarations.
44759         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44760         Install the handler globally, don't uninstall it.
44761         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44762         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44763         currently valid, call RaiseException instead.
44764         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44765         for !_MSC_VER.
44767 2011-09-25  Bruno Haible  <bruno@clisp.org>
44769         strerror_r-posix: Fix for MSVC 9.
44770         * lib/strerror_r.c (local_snprintf): New function.
44771         (snprintf): Define to local_snprintf, not to _snprintf.
44773 2011-09-25  Bruno Haible  <bruno@clisp.org>
44775         ftruncate: Support for MSVC 9.
44776         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44777         (chsize_nothrow): New function.
44778         (chsize): Redefine as a macro.
44779         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44780         * modules/ftruncate (Depends-on): Add msvc-inval.
44782 2011-09-25  Bruno Haible  <bruno@clisp.org>
44784         New module 'fstat'.
44785         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44786         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44787         * lib/fchdir.c (rpl_fstat): Remove function.
44788         * m4/fstat.m4: New file.
44789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44791         declared.
44792         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44793         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44794         * modules/fstat: New file.
44795         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44796         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44797         is set.
44798         * doc/posix-functions/fstat.texi: Mention the new module and the
44799         problem on MSVC.
44800         * NEWS: Mention the change.
44801         * modules/acl (Depends-on): Add fstat.
44802         * modules/chdir-safer (Depends-on): Likewise.
44803         * modules/chown (Depends-on): Likewise.
44804         * modules/copy-file (Depends-on): Likewise.
44805         * modules/fchdir (Depends-on): Likewise.
44806         * modules/fdopendir (Depends-on): Likewise.
44807         * modules/fopen (Depends-on): Likewise.
44808         * modules/fts (Depends-on): Likewise.
44809         * modules/getcwd (Depends-on): Likewise.
44810         * modules/isapipe (Depends-on): Likewise.
44811         * modules/linkat (Depends-on): Likewise.
44812         * modules/lseek (Depends-on): Likewise.
44813         * modules/mkdir-p (Depends-on): Likewise.
44814         * modules/open (Depends-on): Likewise.
44815         * modules/openat (Depends-on): Likewise.
44816         * modules/read-file (Depends-on): Likewise.
44817         * modules/renameat (Depends-on): Likewise.
44818         * modules/utimens (Depends-on): Likewise.
44820 2011-09-25  Bruno Haible  <bruno@clisp.org>
44822         linkat: Fix compilation on MSVC 9.
44823         * lib/linkat.c: Don't include <stdint.h>.
44825 2011-09-25  Bruno Haible  <bruno@clisp.org>
44827         fclose: Support for MSVC 9.
44828         * lib/fclose.c: Include msvc-inval.h.
44829         (fclose_nothrow): New function.
44830         (rpl_fclose): Use it.
44831         * modules/fclose (Depends-on): Add msvc-inval.
44832         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44834 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44836         dup2: minor simplifications
44837         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44838         that it's a performance win.
44839         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44840         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44842 2011-09-24  Jim Meyering  <meyering@redhat.com>
44844         test-futimens: avoid a warning from gcc -Wshadow
44845         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44846         to avoid a shadowing warning.
44848 2011-09-24  Bruno Haible  <bruno@clisp.org>
44850         fdopen: Support for MSVC 9.
44851         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44852         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44853         * lib/fdopen.c: Include msvc-inval.h.
44854         (fdopen_nothrow): New function.
44855         (rpl_fdopen): Use it.
44856         * modules/fdopen (Depends-on): Add msvc-inval.
44857         * modules/fclose-tests (Depends-on): Add fdopen.
44858         * modules/fflush-tests (Depends-on): Likewise.
44859         * modules/fgetc-tests (Depends-on): Likewise.
44860         * modules/fputc-tests (Depends-on): Likewise.
44861         * modules/fread-tests (Depends-on): Likewise.
44862         * modules/freopen-tests (Depends-on): Likewise.
44863         * modules/fseeko-tests (Depends-on): Likewise.
44864         * modules/ftello-tests (Depends-on): Likewise.
44865         * modules/fwrite-tests  (Depends-on): Likewise.
44866         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44868 2011-09-24  Bruno Haible  <bruno@clisp.org>
44870         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44871         * modules/fgetc-tests (Depends-on): Add unistd.
44872         * modules/fputc-tests (Depends-on): Likewise.
44873         * modules/fread-tests (Depends-on): Likewise.
44874         * modules/fwrite-tests (Depends-on): Likewise.
44876 2011-09-24  Bruno Haible  <bruno@clisp.org>
44878         dup: Simplify autoconf test.
44879         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44880         on gl_MSVC_INVAL's result.
44882 2011-09-24  Bruno Haible  <bruno@clisp.org>
44884         Tests for function fwrite().
44885         * modules/fwrite-tests: New file.
44886         * tests/test-fwrite.c: New file.
44887         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44889         Tests for function fread().
44890         * modules/fread-tests: New file.
44891         * tests/test-fread.c: New file.
44892         * modules/stdio-tests (Depends-on): Add fread-tests.
44894         Activate fputc tests.
44895         * modules/stdio-tests (Depends-on): Add fputc-tests.
44897         Enhance fgetc, fputc tests.
44898         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44899         * tests/test-fputc.c (main): Likewise.
44901 2011-09-24  Bruno Haible  <bruno@clisp.org>
44903         write: Support for MSVC 9.
44904         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44905         is not 1.
44906         * lib/write.c (write_nothrow): New function.
44907         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44908         not 1. Use write_nothrow.
44909         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44910         invalid parameter handler.
44911         (gl_PREREQ_WRITE): New macro.
44912         * modules/write (Depends-on): Add msvc-inval.
44913         (configure.ac): Invoke gl_PREREQ_WRITE.
44914         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44916 2011-09-24  Bruno Haible  <bruno@clisp.org>
44918         read: Fix last commit.
44919         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44921 2011-09-24  Bruno Haible  <bruno@clisp.org>
44923         dup2: Fix last commit.
44924         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44925         (rpl_dup2): Disable fcntl workaround on native Windows.
44927         sigprocmask: Make code safer.
44928         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44929         section that changes macro definitions for this compilation unit.
44931 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44933         dup2: clarify by coalescing Windows-specific material
44934         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44935         "msvc-nothrow.h"' to the Windows-specific section, so that the
44936         Emacs source need not contain these include files.
44937         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44938         Windows-specific fixes into this function rather than just the
44939         nothrow fix, as this shortens and clarifies the code.  Always
44940         define as a function, as that's a bit cleaner than having it be
44941         sometimes a function and sometimes a macro.
44942         (rpl_dup2): Move the Windows-specific stuff out of here and into
44943         ms_windows_dup2.  Don't protect the Haiku-related fix with
44944         "#if !defined __linux__", as the same code also works around
44945         a Linux kernel bug, and it doesn't add any system calls on any
44946         platform.  Add comment about FreeBSD 6.1.
44948         sigprocmask: move #include directive
44949         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44950         Windows-specific section, so that the Emacs source need not
44951         contain msvc-inval.h.
44953 2011-09-23  Bruno Haible  <bruno@clisp.org>
44955         read: Support for MSVC 9.
44956         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44957         is not 1.
44958         * lib/read.c (read_nothrow): New function.
44959         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44960         read_nothrow.
44961         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44962         invalid parameter handler.
44963         (gl_PREREQ_READ): New macro.
44964         * modules/read (Depends-on): Add msvc-inval.
44965         (configure.ac): Invoke gl_PREREQ_READ.
44966         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44968 2011-09-23  Bruno Haible  <bruno@clisp.org>
44970         close: Support for MSVC 9.
44971         * lib/close.c: Include <errno.h>, msvc-inval.h.
44972         (close_nothrow): New function.
44973         (rpl_close): Use it.
44974         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44975         invalid parameter handler.
44976         * modules/close (Depends-on): Add msvc-inval.
44977         * modules/dup2-tests (Depends-on): Add close.
44978         * modules/dup3-tests (Depends-on): Likewise.
44979         * modules/fcntl-tests (Depends-on): Likewise.
44980         * modules/spawn-pipe-tests (Depends-on): Likewise.
44981         * modules/unistd-safer-tests (Depends-on): Likewise.
44982         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44984 2011-09-23  Bruno Haible  <bruno@clisp.org>
44986         New module 'dup'.
44987         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44988         Allow replacement.
44989         * lib/dup.c: New file.
44990         * lib/fchdir.c (rpl_dup): Remove function.
44991         * m4/dup.m4: New file.
44992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44993         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44994         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44995         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44996         * modules/dup: New file.
44997         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44998         'dup' module is in use.
44999         * modules/fdopendir (Depends-on): Add dup.
45000         * modules/fdutimensat-tests (Depends-on): Likewise.
45001         * modules/fts (Depends-on): Likewise.
45002         * modules/futimens-tests (Depends-on): Likewise.
45003         * modules/posix_spawnp-tests (Depends-on): Likewise.
45004         * modules/unistd-safer-tests (Depends-on): Likewise.
45005         * modules/utimens-tests (Depends-on): Likewise.
45006         * doc/posix-functions/dup.texi: Mention the new module and the problem
45007         on MSVC.
45009 2011-09-23  Bruno Haible  <bruno@clisp.org>
45011         getdtablesize: Support for MSVC 9.
45012         * lib/getdtablesize.c: Include msvc-inval.h.
45013         (_setmaxstdio_nothrow): New function.
45014         (_setmaxstdio): Redefine it.
45015         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
45016         * modules/getdtablesize (Depends-on): Add msvc-inval.
45017         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
45019 2011-09-23  Bruno Haible  <bruno@clisp.org>
45021         signal-h: Rename from signal.
45022         * modules/signal-h: Renamed from modules/signal.
45023         * modules/pthread_sigmask (Depends-on): Update.
45024         * modules/raise (Depends-on): Likewise.
45025         * modules/sigaction (Depends-on): Likewise.
45026         * modules/sigpipe (Depends-on): Likewise.
45027         * modules/sigprocmask (Depends-on): Likewise.
45028         * modules/sys_select (Depends-on): Likewise.
45029         * modules/signal-h-tests: Renamed from modules/signal-tests.
45030         (Files, Depends-on, Makefile.am): Update.
45031         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
45032         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
45033         (Files, Makefile.am): Update.
45034         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
45035         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
45036         * modules/signal: New placeholder file.
45037         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
45038         * doc/posix-headers/signal.texi: Update.
45039         * NEWS: Mention the change.
45041 2011-09-23  Bruno Haible  <bruno@clisp.org>
45043         sigprocmask: Avoid crashes through signal() on MSVC 9.
45044         * lib/sigprocmask.c: Include msvc-inval.h.
45045         (signal_nothrow): New function.
45046         (signal): Redefine it.
45047         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
45048         * modules/sigprocmask (Depends-on): Add msvc-inval.
45049         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
45051 2011-09-23  Bruno Haible  <bruno@clisp.org>
45053         Tests for module 'raise'.
45054         * modules/raise-tests: New file.
45055         * tests/test-raise.c: New file.
45057         raise: Support for MSVC.
45058         * lib/signal.in.h (raise): New declaration.
45059         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
45060         for native Windows platforms.
45061         * m4/raise.m4: New file.
45062         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
45063         HAVE_RAISE, REPLACE_RAISE.
45064         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
45065         REPLACE_RAISE.
45066         * modules/raise (Status, Notice): Remove fields.
45067         (Files): Add m4/raise.m4.
45068         (Depends-on): Add signal, msvc-inval.
45069         (configure.ac): Use the common idioms.
45070         (Maintainer): Add me.
45071         * tests/test-signal-c++.cc: Check the signature of raise.
45072         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
45074 2011-09-23  Bruno Haible  <bruno@clisp.org>
45076         pipe2: Fix compilation on pre-C99 compilers.
45077         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
45079 2011-09-23  Bruno Haible  <bruno@clisp.org>
45081         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
45082         * lib/msvc-nothrow.h: New file.
45083         * lib/msvc-nothrow.c: New file.
45084         * m4/msvc-nothrow.m4: New file.
45085         * modules/msvc-nothrow: New file.
45086         * lib/dup2.c: Include msvc-nothrow.h.
45087         (rpl_dup2): No need to protect _get_osfhandle call here.
45088         * lib/accept4.c: Include msvc-nothrow.h.
45089         * lib/error.c: Likewise.
45090         * lib/fcntl.c: Likewise.
45091         * lib/lseek.c: Likewise.
45092         * lib/nonblocking.c: Likewise.
45093         * lib/poll.c: Likewise.
45094         * lib/read.c: Likewise.
45095         * lib/select.c: Likewise.
45096         * lib/sockets.h: Likewise.
45097         * lib/sockets.c: Likewise.
45098         * lib/stdio-read.c: Likewise.
45099         * lib/stdio-write.c: Likewise.
45100         * lib/write.c: Likewise.
45101         * lib/w32sock.h: Likewise.
45102         * lib/w32spawn.h: Likewise.
45103         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
45104         * lib/fsync.c: Likewise.
45105         * lib/isapipe.c: Likewise.
45106         * modules/dup2 (Depends-on): Add msvc-nothrow.
45107         * modules/accept4 (Depends-on): Likewise.
45108         * modules/error (Depends-on): Likewise.
45109         * modules/fcntl (Depends-on): Likewise.
45110         * modules/lseek (Depends-on): Likewise.
45111         * modules/nonblocking (Depends-on): Likewise.
45112         * modules/poll (Depends-on): Likewise.
45113         * modules/read (Depends-on): Likewise.
45114         * modules/select (Depends-on): Likewise.
45115         * modules/sockets (Depends-on): Likewise.
45116         * modules/sigpipe (Depends-on): Likewise.
45117         * modules/write (Depends-on): Likewise.
45118         * modules/accept (Depends-on): Likewise.
45119         * modules/bind (Depends-on): Likewise.
45120         * modules/connect (Depends-on): Likewise.
45121         * modules/gethostname (Depends-on): Likewise.
45122         * modules/getpeername (Depends-on): Likewise.
45123         * modules/getsockname (Depends-on): Likewise.
45124         * modules/getsockopt (Depends-on): Likewise.
45125         * modules/ioctl (Depends-on): Likewise.
45126         * modules/listen (Depends-on): Likewise.
45127         * modules/recv (Depends-on): Likewise.
45128         * modules/recvfrom (Depends-on): Likewise.
45129         * modules/send (Depends-on): Likewise.
45130         * modules/sendto (Depends-on): Likewise.
45131         * modules/setsockopt (Depends-on): Likewise.
45132         * modules/shutdown (Depends-on): Likewise.
45133         * modules/socket (Depends-on): Likewise.
45134         * modules/execute (Depends-on): Likewise.
45135         * modules/spawn-pipe (Depends-on): Likewise.
45136         * modules/flock (Depends-on): Likewise.
45137         * modules/fsync (Depends-on): Likewise.
45138         * modules/isapipe (Depends-on): Likewise.
45139         * tests/test-cloexec.c: Include msvc-nothrow.h.
45140         * tests/test-dup-safer.c: Likewise.
45141         * tests/test-dup2.c: Likewise.
45142         * tests/test-dup3.c: Likewise.
45143         * tests/test-fcntl.c: Likewise.
45144         * tests/test-pipe.c: Likewise.
45145         * tests/test-pipe2.c: Likewise.
45146         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
45147         * modules/unistd-safer-tests (Depends-on): Likewise.
45148         * modules/dup2-tests (Depends-on): Likewise.
45149         * modules/dup3-tests (Depends-on): Likewise.
45150         * modules/fcntl-tests (Depends-on): Likewise.
45151         * modules/pipe-posix-tests (Depends-on): Likewise.
45152         * modules/pipe2-tests (Depends-on): Likewise.
45154 2011-09-23  Bruno Haible  <bruno@clisp.org>
45156         dup2: Make code more maintainable.
45157         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
45158         (rpl_dup2): Use it.
45159         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
45160         * modules/dup2 (configure.ac): Invoke it.
45161         Reported by Paul Eggert.
45163 2011-09-23  Bruno Haible  <bruno@clisp.org>
45165         msvc-inval: Fix compilation error.
45166         * lib/msvc-inval.h: Include <excpt.h>.
45168 2011-09-23  Bruno Haible  <bruno@clisp.org>
45170         mkdir: Tweak for MSVC 9.
45171         * lib/sys_stat.in.h: Update comments.
45172         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
45174         Tests for module 'chdir'.
45175         * modules/chdir-tests: New file.
45176         * tests/test-chdir.c: New file.
45178         New module 'chdir'.
45179         * modules/chdir: New file.
45180         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
45181         (chdir): New declaration.
45182         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
45183         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
45184         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
45185         * tests/test-unistd-c++.cc: Check signature of chdir.
45186         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
45187         * modules/chdir-long (Depends-on): Add chdir.
45188         * modules/fchdir (Depends-on): Likewise.
45189         * modules/rename (Depends-on): Likewise.
45190         * modules/savewd (Depends-on): Likewise.
45192         rmdir: Support for mingw, MSVC 9.
45193         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
45194         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
45196         getcwd: Tweak for MSVC 9.
45197         * lib/unistd.in.h: Update comments.
45198         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
45200 2011-09-22  Bruno Haible  <bruno@clisp.org>
45202         strerror_r-posix: Avoid a link error on MSVC.
45203         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
45204         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
45206 2011-09-22  Bruno Haible  <bruno@clisp.org>
45208         select: Avoid link errors on MSVC.
45209         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
45210         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
45211         * modules/pselect (Link): Likewise.
45212         * NEWS: Mention the change.
45213         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
45214         test-select-stdin against $(LIB_SELECT).
45215         * modules/pselect-tests (Makefile.am): Link test-pselect against
45216         $(LIB_SELECT).
45218 2011-09-22  Bruno Haible  <bruno@clisp.org>
45220         select: Avoid compilation error on MSVC.
45221         * lib/select.c: Don't include <stdbool.h>.
45223 2011-09-21  Bruno Haible  <bruno@clisp.org>
45225         Consolidate all uses of PATH_MAX in *.m4 files.
45226         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
45227         macros.
45228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
45229         and gl_PATHMAX_SNIPPET.
45230         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45231         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45232         * modules/chdir-long (Files): Add m4/pathmax.m4.
45233         * modules/getcwd (Files): Likewise.
45235 2011-09-21  Bruno Haible  <bruno@clisp.org>
45237         ftruncate: Un-deprecate, concentrate on Win32 support.
45238         * modules/ftruncate (Status, Notice): Remove sections.
45239         (Depends-on): Add largefile.
45240         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
45241         non-mingw platforms.
45242         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
45243         include <io.h>.
45244         * modules/perror-tests (Depends-on): Add ftruncate.
45245         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
45246         'ftruncate' module.
45248 2011-09-21  Bruno Haible  <bruno@clisp.org>
45250         Add dependencies to new dirent related modules.
45251         * modules/opendir (Depends-on): Add closedir.
45252         * modules/getcwd (Depends-on): Add opendir, closedir.
45253         * modules/dirent-safer-tests (Depends-on): Likewise.
45254         * modules/fdopendir-tests (Depends-on): Likewise.
45255         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
45256         * modules/renameat-tests (Depends-on): Likewise.
45258 2011-09-21  Bruno Haible  <bruno@clisp.org>
45260         opendir: Avoid compilation error on mingw.
45261         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
45262         * modules/opendir (Depends-on): Add unistd.
45264 2011-09-21  Bruno Haible  <bruno@clisp.org>
45266         ftruncate tests: Avoid a test failure on mingw.
45267         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
45269 2011-09-21  Bruno Haible  <bruno@clisp.org>
45271         select tests: Avoid test failures on OSF/1 5.1 and mingw.
45272         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
45273         native Windows.
45275 2011-09-21  Bruno Haible  <bruno@clisp.org>
45277         New module 'fdopen'.
45278         * lib/stdio.in.h (fdopen): New declaration.
45279         * lib/fdopen.c: New file.
45280         * m4/fdopen.m4: New file.
45281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
45282         REPLACE_FDOPEN.
45283         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
45284         REPLACE_FDOPEN.
45285         * modules/fdopen: New file.
45286         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
45287         * tests/test-stdio-c++.cc: Check signature of fdopen.
45288         * doc/posix-functions/fdopen.texi: Mention the new module.
45290 2011-09-21  Bruno Haible  <bruno@clisp.org>
45292         unlockpt tests: Avoid test failure on NetBSD 5.1.
45293         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
45294         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
45296 2011-09-21  Bruno Haible  <bruno@clisp.org>
45298         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
45299         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
45300         * tests/test-getlogin_r.c (main): Likewise.
45302 2011-09-20  Bruno Haible  <bruno@clisp.org>
45304         time tests: Don't require pid_t.
45305         * doc/posix-headers/time.texi: Revert last change.
45306         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
45307         * tests/test-time.c: Comment out the check for pid_t.
45309 2011-09-20  Bruno Haible  <bruno@clisp.org>
45311         fsync tests: Avoid a test failure on mingw.
45312         * tests/test-fsync.c (main): Allow a failure with EIO.
45314 2011-09-20  Bruno Haible  <bruno@clisp.org>
45316         euidaccess: Update comments.
45317         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
45319 2011-09-20  Bruno Haible  <bruno@clisp.org>
45321         Ensure EBADF returns for socket functions on mingw.
45322         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
45323         descriptor is invalid.
45324         * lib/bind.c (rpl_bind): Likewise.
45325         * lib/connect.c (rpl_connect): Likewise.
45326         * lib/getpeername.c (rpl_getpeername): Likewise.
45327         * lib/getsockname.c (rpl_getsockname): Likewise.
45328         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45329         * lib/listen.c (rpl_listen): Likewise.
45330         * lib/recv.c (rpl_recv): Likewise.
45331         * lib/recvfrom.c (rpl_recvfrom): Likewise.
45332         * lib/send.c (rpl_send): Likewise.
45333         * lib/sendto.c (rpl_sendto): Likewise.
45334         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45335         * lib/shutdown.c (rpl_shutdown): Likewise.
45337 2011-09-20  Bruno Haible  <bruno@clisp.org>
45339         select tests: EBADF tests.
45340         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
45341         test_bad_fd): New functions.
45342         (test_function): Invoke also test_bad_fd.
45344 2011-09-20  Bruno Haible  <bruno@clisp.org>
45346         Tests for module 'posix_spawn_file_actions_addopen.
45347         * modules/posix_spawn_file_actions_addopen-tests: New file.
45348         * tests/test-posix_spawn_file_actions_addopen.c: New file.
45350         Tests for module 'posix_spawn_file_actions_adddup2'.
45351         * modules/posix_spawn_file_actions_adddup2-tests: New file.
45352         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
45354         Tests for module 'posix_spawn_file_actions_addclose'.
45355         * modules/posix_spawn_file_actions_addclose-tests: New file.
45356         * tests/test-posix_spawn_file_actions_addclose.c: New file.
45358 2011-09-20  Bruno Haible  <bruno@clisp.org>
45360         Tests for module 'unlockpt'.
45361         * modules/unlockpt-tests: New file.
45362         * tests/test-unlockpt.c: New file.
45363         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
45365         Tests for module 'grantpt'.
45366         * modules/grantpt-tests: New file.
45367         * tests/test-grantpt.c: New file.
45368         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
45370 2011-09-20  Bruno Haible  <bruno@clisp.org>
45372         freopen tests: EBADF tests.
45373         * tests/test-freopen.c: Include errno.h, unistd.h.
45374         (main): Add tests for EBADF, commented out for the moment.
45376         fclose tests: EBADF tests.
45377         * tests/test-fclose.c (main): Add tests for EBADF.
45379         fflush tests: EBADF tests.
45380         * tests/test-fflush.c: Include errno.h, macros.h.
45381         (main): Add tests for EBADF.
45383         ftello tests: EBADF tests.
45384         * tests/test-ftello4.sh: New file.
45385         * tests/test-ftello4.c: New file.
45386         * modules/ftello-tests (Files): Add them.
45387         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
45389         fseeko tests: EBADF tests.
45390         * tests/test-fseeko4.sh: New file.
45391         * tests/test-fseeko4.c: New file.
45392         * modules/fseeko-tests (Files): Add them.
45393         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
45395         Tests for function fputc().
45396         * modules/fputc-tests: New file.
45397         * tests/test-fputc.c: New file.
45398         * modules/stdio-tests (Depends-on): Add fputc-tests.
45400         Tests for function fgetc().
45401         * modules/fgetc-tests: New file.
45402         * tests/test-fgetc.c: New file.
45403         * modules/stdio-tests (Depends-on): Add fgetc-tests.
45405         Tests for function fdopen().
45406         * modules/fdopen-tests: New file.
45407         * tests/test-fdopen.c: New file.
45408         * modules/stdio-tests (Depends-on): Add fdopen-tests.
45410         Tests for module 'vdprintf'.
45411         * modules/vdprintf-tests: New file.
45412         * tests/test-vdprintf.c: New file.
45414         Tests for module 'dprintf'.
45415         * modules/dprintf-tests: New file.
45416         * tests/test-dprintf.c: New file.
45418 2011-09-20  Bruno Haible  <bruno@clisp.org>
45420         Tests for module 'ioctl'.
45421         * modules/ioctl-tests: New file.
45422         * tests/test-ioctl.c: New file.
45424 2011-09-20  Bruno Haible  <bruno@clisp.org>
45426         fcntl tests: EBADF tests.
45427         * tests/test-fcntl.c (main): Add more tests for EBADF.
45429 2011-09-20  Bruno Haible  <bruno@clisp.org>
45431         utimensat tests: EBADF tests.
45432         * tests/test-utimensat.c (main): Add tests for EBADF.
45434         renameat tests: EBADF tests.
45435         * tests/test-renameat.c (main): Add tests for EBADF.
45437         mkfifoat tests: EBADF tests.
45438         * tests/test-mkfifoat.c (main): Add tests for EBADF.
45440         readlinkat tests: EBADF tests.
45441         * tests/test-readlinkat.c (main): Add tests for EBADF.
45443         symlinkat tests: EBADF tests.
45444         * tests/test-symlinkat.c (main): Add tests for EBADF.
45446         linkat tests: EBADF tests.
45447         * tests/test-linkat.c (main): Add tests for EBADF.
45449         Tests for module 'faccessat'.
45450         * modules/faccessat-tests: New file.
45451         * tests/test-faccessat.c: New file.
45453         fdopendir tests: EBADF tests.
45454         * tests/test-fdopendir.c (main): Add more tests for EBADF.
45456         openat tests: EBADF tests.
45457         * tests/test-fchownat.c (main): Add tests for EBADF.
45458         * tests/test-fstatat.c (main): Likewise.
45459         * tests/test-mkdirat.c (main): Likewise.
45460         * tests/test-openat.c (main): Likewise.
45461         * tests/test-unlinkat.c (main): Likewise.
45462         * tests/test-fchmodat.c: New file.
45463         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
45464         (Makefile.am): Also run 'test-fchmodat'.
45466 2011-09-20  Bruno Haible  <bruno@clisp.org>
45468         utimens, futimens, fdutimensat tests: EBADF tests.
45469         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
45471         Tests for function fstat().
45472         * modules/fstat-tests: New file.
45473         * tests/test-fstat.c: New file.
45474         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
45476 2011-09-20  Bruno Haible  <bruno@clisp.org>
45478         test-ttyname_r tests: EBADF tests.
45479         * tests/test-ttyname_r.c (main): Add tests for EBADF.
45481         Tests for module 'isatty'.
45482         * modules/isatty-tests: New file.
45483         * tests/test-isatty.c: New file.
45485         Tests for module 'write'.
45486         * modules/write-tests: New file.
45487         * tests/test-write.c: New file.
45489         Tests for module 'read'.
45490         * modules/read-tests: New file.
45491         * tests/test-read.c: New file.
45493         pwrite tests: EBADF tests.
45494         * tests/test-pwrite.c (main): Add tests for EBADF.
45496         pread tests: EBADF tests.
45497         * tests/test-pread.c (main): Add tests for EBADF.
45499         lseek tests: EBADF tests.
45500         * tests/test-lseek.c (main): Add more tests for EBADF.
45502         Tests for module 'ftruncate'.
45503         * modules/ftruncate-tests: New file.
45504         * tests/test-ftruncate.sh: New file.
45505         * tests/test-ftruncate.c: New file.
45507         fsync tests: EBADF tests.
45508         * tests/test-fsync.c (main): Add more tests for EBADF.
45510         fdatasync tests: EBADF tests.
45511         * tests/test-fdatasync.c (main): Add more tests for EBADF.
45513         Tests for module 'fchown'.
45514         * modules/fchown-tests: New file.
45515         * tests/test-fchown.c: New file.
45517         Tests for module 'fchmod'.
45518         * modules/fchmod-tests: New file.
45519         * tests/test-fchmod.c: New file.
45521         fchdir tests: EBADF tests.
45522         * tests/test-fchdir.c (main): Add more tests for EBADF.
45524         dup2 tests: EBADF tests.
45525         * tests/test-dup2.c (main): Add more tests for EBADF.
45527         Tests for module 'dup'.
45528         * modules/dup-tests: New file.
45529         * tests/test-dup.c: New file.
45531         Tests for module 'close'.
45532         * modules/close-tests: New file.
45533         * tests/test-close.c: New file.
45535 2011-09-20  Bruno Haible  <bruno@clisp.org>
45537         Tests for module 'shutdown'.
45538         * modules/shutdown-tests: New file.
45539         * tests/test-shutdown.c: New file.
45541         Tests for module 'setsockopt'.
45542         * modules/setsockopt-tests: New file.
45543         * tests/test-setsockopt.c: New file.
45545         Tests for module 'sendto'.
45546         * modules/sendto-tests: New file.
45547         * tests/test-sendto.c: New file.
45549         Tests for module 'send'.
45550         * modules/send-tests: New file.
45551         * tests/test-send.c: New file.
45553         Tests for module 'recvfrom'.
45554         * modules/recvfrom-tests: New file.
45555         * tests/test-recvfrom.c: New file.
45557         Tests for module 'recv'.
45558         * modules/recv-tests: New file.
45559         * tests/test-recv.c: New file.
45561         Tests for module 'listen'.
45562         * modules/listen-tests: New file.
45563         * tests/test-listen.c: New file.
45565         Tests for module 'getsockopt'.
45566         * modules/getsockopt-tests: New file.
45567         * tests/test-getsockopt.c: New file.
45569         Tests for module 'getsockname'.
45570         * modules/getsockname-tests: New file.
45571         * tests/test-getsockname.c: New file.
45573         Tests for module 'getpeername'.
45574         * modules/getpeername-tests: New file.
45575         * tests/test-getpeername.c: New file.
45577         Tests for module 'connect'.
45578         * modules/connect-tests: New file.
45579         * tests/test-connect.c: New file.
45581         Tests for module 'bind'.
45582         * modules/bind-tests: New file.
45583         * tests/test-bind.c: New file.
45585         accept4 tests: Fix for native Windows.
45586         * tests/test-accept4.c: Include sockets.h.
45587         (main): Invoke gl_sockets_startup.
45588         * modules/accept4-tests (Depends-on): Add sockets.
45590         accept tests: Fix for native Windows.
45591         * tests/test-accept.c: Include sockets.h.
45592         (main): Invoke gl_sockets_startup.
45593         * modules/accept-tests (Depends-on): Add sockets.
45595 2011-09-19  Bruno Haible  <bruno@clisp.org>
45597         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45598         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45599         do...while(0).
45600         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45601         Suggested by Paul Eggert.
45603 2011-09-19  Bruno Haible  <bruno@clisp.org>
45605         sched: Ensure pid_t is defined.
45606         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45607         not define pid_t.
45608         * lib/sched.in.h: Include <sys/types.h>.
45609         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45612 2011-09-19  Bruno Haible  <bruno@clisp.org>
45614         msvc-inval: Ensure the entire expansion is a single statement.
45615         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45616         of braces.
45618 2011-09-19  Jim Meyering  <meyering@redhat.com>
45620         tests: use printf, not echo in init.sh's warn_ function
45621         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45622         misbehave when given strings containing a backslash or starting
45623         with e.g., -n.  James Youngman suggested setting IFS.
45625 2011-09-19  Eric Blake  <eblake@redhat.com>
45627         futimens: enhance test
45628         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45629         closed non-negative fd.
45631         date: accept 'hence' as opposite of 'ago'
45632         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45633         * tests/test-parse-datetime.c (main): Enhance test.
45634         Suggested by Jesse Wilson.
45636 2011-09-19  Jim Meyering  <meyering@redhat.com>
45638         getcwd: don't fail in a deep directory on a system without openat
45639         Before this change, getcwd would fail when called from a directory
45640         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45641         the non-openat implementation used "..", "../..", "../../..", etc.
45642         to access ancestor directories.  With too many, that string would
45643         be longer than PATH_MAX.
45644         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45645         using gnulib's openat replacement.
45646         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45647         we're using the replacement function.
45649 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45651         maint.mk: avoid warnings from perl about missing files
45652         * top/maint.mk (def_sym_regex): Ignore files listed in
45653         $(gl_other_headers_) that do not exist, say because a project
45654         does not use a corresponding module.
45656 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45658         stat: use pathmax.h only if needed
45659         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45660         This is better for Emacs, which does not have a mingw port and
45661         therefore can avoid the pathmax module.
45663         utimens: remove dependency on dup2
45664         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45665         to work around the Linux kernel bug.
45666         * modules/utimens (Depends-on): Remove dup2.
45668 2011-09-18  Bruno Haible  <bruno@clisp.org>
45670         inet_ntop, inet_pton: Look for it also in libresolv.
45671         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45672         libnsl, search for it in libresolv.
45673         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45674         Needed on Solaris 7.
45676 2011-09-18  Bruno Haible  <bruno@clisp.org>
45678         accept, accept4 tests: Avoid link error on Solaris.
45679         * modules/accept-tests (Makefile.am): Link test-accept against
45680         $(LIBSOCKET).
45681         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45682         $(LIBSOCKET).
45684         accept4: Avoid link error on Solaris.
45685         * modules/accept4 (Link): New section.
45687         socket functions: Avoid link errors on Solaris.
45688         * modules/accept (Depends-on): Add socketlib.
45689         (Link): New section.
45690         * modules/bind (Depends-on): Add socketlib.
45691         (Link): New section.
45692         * modules/connect (Depends-on): Add socketlib.
45693         (Link): New section.
45694         * modules/getpeername (Depends-on): Add socketlib.
45695         (Link): New section.
45696         * modules/getsockname (Depends-on): Add socketlib.
45697         (Link): New section.
45698         * modules/getsockopt (Depends-on): Add socketlib.
45699         (Link): New section.
45700         * modules/listen (Depends-on): Add socketlib.
45701         (Link): New section.
45702         * modules/recv (Depends-on): Add socketlib.
45703         (Link): New section.
45704         * modules/recvfrom (Depends-on): Add socketlib.
45705         (Link): New section.
45706         * modules/send (Depends-on): Add socketlib.
45707         (Link): New section.
45708         * modules/sendto (Depends-on): Add socketlib.
45709         (Link): New section.
45710         * modules/setsockopt (Depends-on): Add socketlib.
45711         (Link): New section.
45712         * modules/shutdown (Depends-on): Add socketlib.
45713         (Link): New section.
45714         * modules/socket (Depends-on): Add socketlib.
45715         (Link): New section.
45717 2011-09-18  Bruno Haible  <bruno@clisp.org>
45719         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45720         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45721         than 5 seconds.
45722         * modules/ptsname-tests (configure.ac): Test for alarm.
45724 2011-09-18  Bruno Haible  <bruno@clisp.org>
45726         posix_spawn_file_actions_add*: Fix module dependencies.
45727         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45728         posix_spawn_file_actions_init.
45729         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45730         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45732 2011-09-18  Bruno Haible  <bruno@clisp.org>
45734         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45735         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45736         * tests/test-renameat.c (main): Likewise.
45738 2011-09-18  Bruno Haible  <bruno@clisp.org>
45740         Tests for module 'accept4'.
45741         * modules/accept4-tests: New file.
45742         * tests/test-accept4.c: New file.
45744 2011-09-18  Bruno Haible  <bruno@clisp.org>
45746         Tests for module 'accept'.
45747         * modules/accept-tests: New file.
45748         * tests/test-accept.c: New file.
45750 2011-09-18  Bruno Haible  <bruno@clisp.org>
45752         dup2: Support for MSVC.
45753         * lib/dup2.c: Include msvc-inval.h.
45754         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45755         _get_osfhandle calls.
45756         * modules/dup2 (Depends-on): Add msvc-inval.
45757         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45759         New module 'msvc-inval'.
45760         * lib/msvc-inval.h: New file.
45761         * lib/msvc-inval.c: New file.
45762         * m4/msvc-inval.m4: New file.
45763         * modules/msvc-inval: New file.
45765 2011-09-17  Bruno Haible  <bruno@clisp.org>
45767         Tests for module 'pclose'.
45768         * modules/pclose-tests: New file.
45770         New module 'pclose'.
45771         * lib/stdio.in.h (pclose): New declaration.
45772         * lib/pclose.c: New file.
45773         * m4/pclose.m4: New file.
45774         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45775         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45776         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45777         * modules/pclose: New file.
45778         * modules/popen-tests (Depends-on): Add pclose.
45779         * modules/popen-safer-tests (Depends-on): Likewise.
45780         * doc/posix-functions/pclose.texi: Mention the new module.
45782 2011-09-17  Bruno Haible  <bruno@clisp.org>
45784         popen: Support for MSVC.
45785         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45786         * lib/popen.c (popen): Provide alternate definition for native Windows.
45787         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45789         * modules/popen (Depends-on, configure.ac): Update condition.
45790         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45791         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45792         fixed.
45794 2011-09-17  Bruno Haible  <bruno@clisp.org>
45796         isnanl, isnand, isnanf: Work around MSVC bug.
45797         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45799 2011-09-17  Bruno Haible  <bruno@clisp.org>
45801         sys_socket tests: Fix recent mistake.
45802         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45804 2011-09-17  Bruno Haible  <bruno@clisp.org>
45806         putenv: Support for MSVC.
45807         * modules/putenv (Depends-on): Add environ.
45808         * lib/putenv.c (environ): Disable declaration.
45809         * lib/unistd.in.h: Update comment.
45811 2011-09-17  Bruno Haible  <bruno@clisp.org>
45813         math: Avoid macro redefinition warnings on MSVC.
45814         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45815         Undefine before redefining.
45817 2011-09-17  Bruno Haible  <bruno@clisp.org>
45819         doc: Mention functions which are declared as macros.
45820         * doc/posix-functions/*[fl].texi: Mention that some functions are
45821         defined as macros with arguments only.
45823 2011-09-17  Bruno Haible  <bruno@clisp.org>
45825         Add dependencies to new dirent related modules.
45826         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45827         * modules/fts (Depends-on): Likewise.
45828         * modules/glob (Depends-on): Likewise.
45829         * modules/savedir (Depends-on): Likewise.
45830         * modules/scandir (Depends-on): Likewise.
45831         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45832         * modules/fdopendir (Depends-on): Add opendir.
45834 2011-09-17  Bruno Haible  <bruno@clisp.org>
45836         inet_pton: Support for MSVC on Windows Vista or newer.
45837         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45838         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45839         HAVE_DECL_INET_PTON is defined.
45840         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45841         On platforms with <winsock2.h>, test whether inet_pton is declared in
45842         <ws2tcpip.h>. If so, arrange to replace it.
45843         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45844         REPLACE_INET_PTON.
45845         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45846         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45847         (Depends-on, configure.ac): Update condition.
45848         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45850 2011-09-17  Bruno Haible  <bruno@clisp.org>
45852         inet_ntop: Support for MSVC on Windows Vista or newer.
45853         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45854         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45855         HAVE_DECL_INET_NTOP is defined.
45856         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45857         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45858         <ws2tcpip.h>. If so, arrange to replace it.
45859         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45860         REPLACE_INET_NTOP.
45861         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45862         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45863         (Depends-on, configure.ac): Update condition.
45864         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45866 2011-09-16  Eric Blake  <eblake@redhat.com>
45868         test-fsync: yet another enhancement
45869         * tests/test-fsync.c (main): Also test behavior on read-only text
45870         file.
45872 2011-09-16  Bruno Haible  <bruno@clisp.org>
45874         Enhance fsync, fdatasync tests.
45875         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45876         * tests/test-fdatasync.c (main): Likewise.
45878 2011-09-16  Bruno Haible  <bruno@clisp.org>
45880         Support for MSVC compiler: Ensure mode_t gets defined.
45881         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45882         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45884         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45885         * tests/test-fcntl-h.c: Check that mode_t is defined.
45886         * tests/test-sys_stat.c: Likewise.
45887         * tests/test-sys_types.c: Likewise.
45888         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45889         * doc/posix-headers/sys_stat.texi: Likewise.
45890         * doc/posix-headers/sys_types.texi: Likewise.
45892 2011-09-16  Bruno Haible  <bruno@clisp.org>
45894         sys_stat: Support for MSVC.
45895         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45896         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45897         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45898         MSVC.
45900 2011-09-16  Bruno Haible  <bruno@clisp.org>
45902         Support for MSVC compiler: Ensure off_t gets defined.
45903         * lib/unistd.in.h: Include <sys/types.h>.
45904         * tests/test-fcntl-h.c: Check that off_t is defined.
45905         * tests/test-sys_stat.c: Likewise.
45906         * tests/test-sys_types.c: Likewise.
45908 2011-09-16  Eric Blake  <eblake@redhat.com>
45910         fdatasync: port to Solaris
45911         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45912         * modules/fdatasync (Link): Document it.
45913         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45915         fdatasync: port to MacOS X 10.7
45916         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45917         declared.
45918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45919         * modules/unistd (Makefile.am): Substitute it.
45920         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45921         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45923         fdatasync: minor improvements
45924         * modules/fdatasync (Depends-on): Add condition for fsync.
45925         * lib/fdatasync.c (fdatasync): Add comment.
45926         * tests/test-unistd-c++.cc: Test fdatasync.
45928         unistd: update refs to newer POSIX
45929         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45930         Suggested by Bruno Haible.
45932         fdatasync: new module
45933         * modules/fsync (Description): Document difference to fdatasync.
45934         * modules/fdatasync: New module.
45935         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45936         * lib/fdatasync.c (fdatasync): Likewise.
45937         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45938         defaults.
45939         * modules/unistd (Makefile.am): Set witnesses.
45940         * lib/unistd.in.h (fdatasync): Declare.
45941         * MODULES.html.sh: Document it.
45942         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45943         * modules/fdatasync-tests: New test.
45944         * tests/test-fdatasync.c: Likewise.
45946 2011-09-16  Eric Blake  <eblake@redhat.com>
45948         test-fsync: enhance tests
45949         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45950         * tests/test-fsync.c (main): Enhance test.
45952 2011-09-15  Bruno Haible  <bruno@clisp.org>
45954         Support for MSVC compiler: Ensure ssize_t gets defined.
45955         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45956         * doc/posix-headers/stdio.texi: Likewise.
45957         * modules/stdio (Depends-on): Add ssize_t.
45958         * modules/sys_socket (Depends-on): Likewise.
45959         * modules/sys_types (Depends-on): Likewise.
45960         * modules/sys_uio (Depends-on): Likewise.
45961         * modules/unistd (Depends-on): Likewise.
45962         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45963         * tests/test-sys_types.c: Check that ssize_t is defined.
45965 2011-09-14  Bruno Haible  <bruno@clisp.org>
45967         Avoid using #, the m4 comment starter character, near brackets.
45968         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45969         delimiter character in sed expressions.
45970         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45971         Suggested by Eric Blake.
45973         Properly quote AC_CHECK_DECLS' 4th argument.
45974         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45975         argument.
45976         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45977         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45978         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45979         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45980         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45981         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45982         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45983         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45984         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45985         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45987         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45988         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45989         * m4/isinf.m4 (gl_ISINF): Likewise.
45990         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45991         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45992         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45993         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45994         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45995         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45996         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45997         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45998         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45999         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
46000         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46001         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
46003         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46005         Reported by Eric Blake.
46007         Properly quote AC_CHECK_DECL's 4th argument.
46008         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
46009         argument.
46010         * m4/argp.m4 (gl_ARGP): Likewise.
46011         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
46012         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
46013         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
46014         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
46015         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
46016         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
46017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
46018         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
46019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46020         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
46021         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
46022         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
46023         Reported by Eric Blake.
46025 2011-09-14  Eric Blake  <eblake@redhat.com>
46027         opendir: avoid compile warning
46028         * lib/opendir.c (includes): Always include errno.h.
46029         Reported by Tatsuro MATSUOKA.
46031 2011-09-14  Jim Meyering  <meyering@redhat.com>
46033         maint.mk: sc_tight_scope: propagate failure from sub-make
46034         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
46035         Reported by Martin von Gagern.
46037 2011-09-13  Bruno Haible  <bruno@clisp.org>
46039         tempname: Support for MSVC.
46040         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
46041         MSVC.
46042         * modules/tempname (Depends-on): Add fcntl-h.
46044 2011-09-13  Bruno Haible  <bruno@clisp.org>
46046         sys_time: Support for MSVC.
46047         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
46048         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
46049         include <winsock2.h>.
46050         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
46051         function declarations that collide with POSIX.
46052         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
46053         (Makefile.am): Substitute HAVE_WINSOCK2_H.
46055 2011-09-13  Bruno Haible  <bruno@clisp.org>
46057         stat: Support for MSVC.
46058         * lib/stat.c: Include pathmax.h.
46059         * modules/stat (Depends-on): Add pathmax.
46061         pathmax: Support for native Windows.
46062         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
46064 2011-09-12  Bruno Haible  <bruno@clisp.org>
46066         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
46067         * lib/dirent.in.h (struct dirent): New type.
46068         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
46069         DT_WHT): New macros.
46070         (DIR): New type.
46071         (opendir, closedir): Declare only if the module 'opendir' is enabled.
46072         (readdir, rewinddir): New declarations.
46073         * lib/dirent-private.h: New file.
46074         * lib/opendir.c: New file.
46075         * lib/readdir.c: New file.
46076         * lib/rewinddir.c: New file.
46077         * lib/closedir.c: New file.
46078         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
46079         * m4/opendir.m4: New file.
46080         * m4/readdir.m4: New file.
46081         * m4/rewinddir.m4: New file.
46082         * m4/closedir.m4: New file.
46083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
46084         REPLACE_CLOSEDIR here.
46085         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
46086         readdir, rewinddir are declared.
46087         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
46088         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
46089         HAVE_REWINDDIR, HAVE_CLOSEDIR.
46090         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
46091         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
46092         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
46093         * modules/opendir: New file.
46094         * modules/readdir: New file.
46095         * modules/rewinddir: New file.
46096         * modules/closedir: New file.
46097         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
46098         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
46099         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
46100         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
46101         * NEWS: Mention the 'fchdir' change.
46103 2011-09-11  Bruno Haible  <bruno@clisp.org>
46105         asm-underscore.m4: Support for MSVC.
46106         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
46107         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
46109 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
46111         Doc about crypt functions.
46112         * doc/posix-functions/crypt.texi: Expand range of glibc versions
46113         needing for _GNU_SOURCE to get crypt.
46114         * doc/posix-functions/encrypt.texi: Likewise.
46115         * doc/posix-functions/setkey.texi: Likewise.
46117 2011-09-11  Bruno Haible  <bruno@clisp.org>
46119         doc: Update regarding MSVC 9.
46120         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
46121         tested".
46122         * doc/posix-functions/*.texi: Update with info about MSVC 9.
46123         * doc/posix-headers/*.texi: Likewise.
46124         * doc/pastposix-functions/*.texi: Likewise.
46125         * doc/glibc-functions/*.texi: Likewise.
46126         * doc/glibc-headers/*.texi: Likewise.
46128 2011-09-11  Bruno Haible  <bruno@clisp.org>
46130         unistd et al.: Don't assume <unistd.h> exists.
46131         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
46132         does not exist.
46133         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
46134         exist. But include <stdlib.h>.
46135         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
46136         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
46137         symlink() does not exist.
46138         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
46139         include <io.h> instead.
46140         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
46141         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
46142         include <direct.h> instead.
46143         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46145         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
46146         <io.h> instead.
46147         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
46148         correctly if the system does not have hard links.
46149         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
46150         <direct.h> instead.
46151         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
46152         it when looking for function declarations.
46153         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
46154         <direct.h> and <io.h> instead.
46155         * doc/posix-headers/unistd.texi: More details about MSVC problem.
46157 2011-09-11  Bruno Haible  <bruno@clisp.org>
46159         strcase: Support for MSVC.
46160         * modules/strcase (Status, Notice): Remove obsoletion mark.
46161         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
46162         * doc/posix-functions/strncasecmp.texi: Likewise.
46164         strings: Don't assume <strings.h> exists.
46165         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
46166         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
46167         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
46168         * doc/posix-headers/strings.texi: Mention the MSVC problem.
46170 2011-09-11  Bruno Haible  <bruno@clisp.org>
46172         dirent: Don't assume <dirent.h> exists.
46173         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
46174         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
46175         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
46176         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
46178 2011-09-11  Bruno Haible  <bruno@clisp.org>
46180         Fix wint_t on MSVC.
46181         * lib/wchar.in.h (wint_t): On MSVC, override it.
46182         * lib/wctype.in.h (wint_t): Likewise.
46183         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
46184         MSVC.
46185         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
46186         * doc/posix-headers/wctype.texi: Likewise.
46188 2011-09-11  Bruno Haible  <bruno@clisp.org>
46190         sys_types: Fix typo.
46191         * lib/sys_types.in.h: Fix typo in comment.
46192         Reported by Paul Eggert.
46194         Support for MSVC compiler: Ensure size_t gets defined.
46195         * modules/strings (Depends-on): Add 'sys_types'.
46196         * modules/sys_uio (Depends-on): Likewise.
46197         * lib/sys_uio.in.h: Update comment.
46199         C++ tests for module 'sys_types'.
46200         * modules/sys_types-c++-tests: New file.
46201         * tests/test-sys_types-c++.cc: New file.
46203         Tests for module 'sys_types'.
46204         * modules/sys_types-tests: New file.
46205         * tests/test-sys_types.c: New file.
46207         New module 'sys_types'.
46208         * lib/sys_types.in.h: New file.
46209         * m4/sys_types_h.m4: New file.
46210         * modules/sys_types: New file.
46211         * doc/posix-headers/sys_types.texi: Mention the new module and the
46212         size_t problem on MSVC 9.
46214 2011-09-11  Bruno Haible  <bruno@clisp.org>
46216         Support for MSVC compiler: Avoid division by a literal 0.
46217         * lib/math.in.h (NAN): Define through a function call also on MSVC.
46218         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
46219         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
46220         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
46221         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
46222         * tests/infinity.h: New file.
46223         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
46224         on MSVC.
46225         * tests/test-ceilf1.c: Include infinity.h.
46226         (main): Use Infinityf.
46227         * tests/test-ceil1.c: Include infinity.h.
46228         (main): Use Infinityd.
46229         * tests/test-ceill.c: Include infinity.h.
46230         (main): Use Infinityl.
46231         * tests/test-dprintf-posix.c: Include infinity.h.
46232         (test_function): Use Infinityd.
46233         * tests/test-floorf1.c: Include infinity.h.
46234         (main): Use Infinityf.
46235         * tests/test-floor1.c: Include infinity.h.
46236         (main): Use Infinityd.
46237         * tests/test-floorl.c: Include infinity.h.
46238         (main): Use Infinityl.
46239         * tests/test-fprintf-posix.c: Include infinity.h.
46240         (test_function): Use Infinityd.
46241         * tests/test-frexp.c: Include infinity.h.
46242         (main): Use Infinityd.
46243         * tests/test-frexpl.c: Include infinity.h.
46244         (main): Use Infinityl.
46245         * tests/test-isfinite.c: Include infinity.h.
46246         (test_isfinitef): Use Infinityf.
46247         (test_isfinited): Use Infinityd.
46248         (test_isfinitel): Use Infinityl.
46249         * tests/test-isinf.c: Include infinity.h.
46250         (test_isinff): Use Infinityf.
46251         (test_isinfd): Use Infinityd.
46252         (test_isinfl): Use Infinityl.
46253         * tests/test-isnan.c: Include infinity.h.
46254         (test_float): Use Infinityf.
46255         (test_double): Use Infinityd.
46256         (test_long_double): Use Infinityl.
46257         * tests/test-isnanf.h: Include infinity.h.
46258         (main): Use Infinityf.
46259         * tests/test-isnand.h: Include infinity.h.
46260         (main): Use Infinityd.
46261         * tests/test-isnanl.h: Include infinity.h.
46262         (main): Use Infinityl.
46263         * tests/test-ldexpl.c: Include infinity.h.
46264         (main): Use Infinityl.
46265         * tests/test-printf-posix.h: Include infinity.h.
46266         (test_function): Use Infinityd.
46267         * tests/test-roundf1.c: Include infinity.h.
46268         (main): Use Infinityf.
46269         * tests/test-round1.c: Include infinity.h.
46270         (main): Use Infinityd.
46271         * tests/test-roundl.c: Include infinity.h.
46272         (main): Use Infinityl.
46273         * tests/test-signbit.c: Include infinity.h.
46274         (test_signbitf): Use Infinityf.
46275         (test_signbitd): Use Infinityd.
46276         (test_signbitl): Use Infinityl.
46277         * tests/test-snprintf-posix.h: Include infinity.h.
46278         (test_function): Use Infinityd, Infinityl.
46279         * tests/test-sprintf-posix.h: Include infinity.h.
46280         (test_function): Use Infinityd, Infinityl.
46281         * tests/test-truncf1.c: Include infinity.h.
46282         (main): Use Infinityf.
46283         * tests/test-trunc1.c: Include infinity.h.
46284         (main): Use Infinityd.
46285         * tests/test-truncl.c: Include infinity.h.
46286         (main): Use Infinityl.
46287         * tests/test-vasnprintf-posix.c: Include infinity.h.
46288         (test_function): Use Infinityd, Infinityl.
46289         * tests/test-vasprintf-posix.c: Include infinity.h.
46290         (test_function): Use Infinityd, Infinityl.
46291         * modules/ceilf-tests (Files): Add tests/infinity.h.
46292         * modules/ceil-tests (Files): Likewise.
46293         * modules/ceill-tests (Files): Likewise.
46294         * modules/dprintf-posix-tests (Files): Likewise.
46295         * modules/floorf-tests (Files): Likewise.
46296         * modules/floor-tests (Files): Likewise.
46297         * modules/floorl-tests (Files): Likewise.
46298         * modules/fprintf-posix-tests (Files): Likewise.
46299         * modules/frexp-tests (Files): Likewise.
46300         * modules/frexp-nolibm-tests (Files): Likewise.
46301         * modules/frexpl-tests (Files): Likewise.
46302         * modules/frexpl-nolibm-tests (Files): Likewise.
46303         * modules/isfinite-tests (Files): Likewise.
46304         * modules/isinf-tests (Files): Likewise.
46305         * modules/isnan-tests (Files): Likewise.
46306         * modules/isnanf-tests (Files): Likewise.
46307         * modules/isnanf-nolibm-tests (Files): Likewise.
46308         * modules/isnand-tests (Files): Likewise.
46309         * modules/isnand-nolibm-tests (Files): Likewise.
46310         * modules/isnanl-tests (Files): Likewise.
46311         * modules/isnanl-nolibm-tests (Files): Likewise.
46312         * modules/ldexpl-tests (Files): Likewise.
46313         * modules/printf-posix-tests (Files): Likewise.
46314         * modules/roundf-tests (Files): Likewise.
46315         * modules/round-tests (Files): Likewise.
46316         * modules/roundl-tests (Files): Likewise.
46317         * modules/signbit-tests (Files): Likewise.
46318         * modules/snprintf-posix-tests (Files): Likewise.
46319         * modules/sprintf-posix-tests (Files): Likewise.
46320         * modules/truncf-tests (Files): Likewise.
46321         * modules/trunc-tests (Files): Likewise.
46322         * modules/truncl-tests (Files): Likewise.
46323         * modules/vasnprintf-posix-tests (Files): Likewise.
46324         * modules/vasprintf-posix-tests (Files): Likewise.
46325         * modules/vdprintf-posix-tests (Files): Likewise.
46326         * modules/vfprintf-posix-tests (Files): Likewise.
46327         * modules/vprintf-posix-tests (Files): Likewise.
46328         * modules/vsnprintf-posix-tests (Files): Likewise.
46329         * modules/vsprintf-posix-tests (Files): Likewise.
46330         * modules/xprintf-posix-tests (Files): Likewise.
46332 2011-09-11  Bruno Haible  <bruno@clisp.org>
46334         Ensure pid_t gets defined.
46335         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
46336         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
46337         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
46339         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
46340         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
46341         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46342         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46343         * tests/test-fcntl-h.c: Check that pid_t is defined.
46344         * tests/test-sched.c: Likewise.
46345         * tests/test-termios.c: Likewise.
46346         * tests/test-time.c: Likewise.
46347         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
46348         * doc/posix-headers/signal.texi: Likewise.
46349         * doc/posix-headers/sys_types.texi: Likewise.
46350         * doc/posix-headers/time.texi: Likewise.
46352 2011-09-11  Bruno Haible  <bruno@clisp.org>
46354         acl: Fix compilation on Solaris 10 (older version).
46355         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
46356         of ACE_EVERYONE.
46357         * lib/set-mode-acl.c (qset_acl): Likewise.
46358         Reported by Christian Jullien <eligis@orange.fr>.
46360 2011-09-10  Bruno Haible  <bruno@clisp.org>
46362         iconv, unsetenv: Add support for MSVC compiler.
46363         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
46364         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
46366 2011-09-10  Bruno Haible  <bruno@clisp.org>
46368         *printf: Add support for MSVC compiler.
46369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
46370         handles the exception caused by the %n directive. When cross-compiling,
46371         guess no on native Windows.
46372         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46373         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
46374         emulate it through vsnprintf.
46375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
46376         * doc/posix-functions/dprintf.texi: Update documentation regarding
46377         MSVC 9.
46378         * doc/posix-functions/fprintf.texi: Likewise.
46379         * doc/posix-functions/printf.texi: Likewise.
46380         * doc/posix-functions/snprintf.texi: Likewise.
46381         * doc/posix-functions/sprintf.texi: Likewise.
46382         * doc/posix-functions/swprintf.texi: Likewise.
46383         * doc/posix-functions/vdprintf.texi: Likewise.
46384         * doc/posix-functions/vfprintf.texi: Likewise.
46385         * doc/posix-functions/vprintf.texi: Likewise.
46386         * doc/posix-functions/vsnprintf.texi: Likewise.
46387         * doc/posix-functions/vsprintf.texi: Likewise.
46388         * doc/glibc-functions/asprintf.texi: Likewise.
46389         * doc/glibc-functions/obstack_printf.texi: Likewise.
46390         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46391         * doc/glibc-functions/vasprintf.texi: Likewise.
46393 2011-09-10  Bruno Haible  <bruno@clisp.org>
46395         nocrash: Add support for native Windows.
46396         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
46398 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
46399             Bruno Haible  <bruno@clisp.org>
46401         absolute-header, include-next: Add support for MSVC compiler.
46402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
46403         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
46404         directory separator in #line directives.
46405         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
46406         recognize also backslash as directory separator in #line directives.
46408 2011-09-08  Jim Meyering  <meyering@redhat.com>
46410         maint.mk: mark the post-release commit log with "maint: " prefix
46411         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
46412         one-line commit-log summary.
46414 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
46415             Bruno Haible  <bruno@clisp.org>
46417         Doc about crypt functions.
46418         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
46419         systems.
46420         * doc/posix-functions/encrypt.texi: Likewise.
46421         * doc/posix-functions/setkey.texi: Likewise.
46423 2011-09-08  Simon Josefsson  <simon@josefsson.org>
46425         * lib/gc.h: Fix copyright header.
46427 2011-09-07  Bruno Haible  <bruno@clisp.org>
46429         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
46430         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
46431         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
46433 2011-09-07  Bruno Haible  <bruno@clisp.org>
46435         openat: Work around compilation error with OSF/1 5.1 DTK cc.
46436         * lib/fopen.c: Use different syntax for include of <stdio.h>.
46437         * lib/freopen.c: Likewise.
46438         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
46439         * lib/lstat.c: Likewise.
46440         * lib/stat.c: Likewise.
46441         * lib/open.c: Use different syntax for include of <fcntl.h>.
46442         * lib/openat.c: Include fcntl.h again, explicitly.
46444 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
46446         parse-datetime: document the newly accepted format
46447         * doc/parse-datetime.texi (Combined date and time of day items):
46448         New section.
46450 2011-09-06  Bruno Haible  <bruno@clisp.org>
46452         acl: Fix a test failure on newer Solaris 10 with ZFS.
46453         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
46454         ENOSYS as no ACL.
46455         Reported by Jim Meyering.
46457 2011-09-06  Bruno Haible  <bruno@clisp.org>
46459         acl: Update for AIX >= 5.3 with NFS.
46460         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
46461         ENOSYS as no ACL.
46463         acl: Fix a test failure on AIX >= 5.3 with NFS.
46464         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
46465         as no ACL.
46467 2011-09-06  Bruno Haible  <bruno@clisp.org>
46469         acl: Fix a test failure on IRIX 6.5 with NFS.
46470         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
46471         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
46472         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
46473         * lib/copy-acl.c (qcopy_acl): Likewise.
46475 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46477         openat: port to AIX 7.1 with large files
46478         AIX 7.1 does a "#define openat open64at" if large files are in use,
46479         so we can't simply #undef openat.  Use the orig_openat trick (similar
46480         to orig_open in lib/open.c) to work around the problem.  Problem
46481         reported by Kevin Brott for GNU tar, in the thread containing
46482         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
46483         * lib/openat.c (__need_system_fcntl_h): Define first.
46484         Include <fcntl.h> and <sys/types.h> before undefining.
46485         (orig_openat) [HAVE_OPENAT]: New inline function.
46486         (openat) [HAVE_OPENAT]: Do not undef.
46487         (rpl_openat): Use orig_openat, not openat.
46489 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46490             Bruno Haible  <bruno@clisp.org>
46492         acl: Avoid errors on NonStop Kernel.
46493         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
46494         ENOTSUP errors.
46496 2011-09-05  Bruno Haible  <bruno@clisp.org>
46498         acl: Clean up Solaris code.
46499         * lib/acl-internal.h: Remove no-op #if.
46500         * lib/file-has-acl.c: Likewise.
46501         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
46502         * lib/copy-acl.c (qcopy_acl): Likewise.
46504 2011-09-05  Bruno Haible  <bruno@clisp.org>
46506         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
46507         binaries built on the original Solaris 10.
46508         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
46509         trivial.
46511 2011-09-05  Bruno Haible  <bruno@clisp.org>
46513         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46514         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
46515         10.
46516         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
46517         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
46518         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
46519         instead of acl_get, facl_get, acl_set, facl_set.
46521 2011-09-05  Bruno Haible  <bruno@clisp.org>
46523         copy-file: Try unit tests on more file systems.
46524         * tests/test-copy-file-1.sh: New file.
46525         * tests/test-copy-file-2.sh: New file.
46526         * modules/copy-file-tests (Files): Add them.
46527         (Makefile.am): Add them to TESTS.
46529         acl: Try unit tests on more file systems.
46530         * tests/test-file-has-acl-1.sh: New file.
46531         * tests/test-file-has-acl-2.sh: New file.
46532         * tests/test-set-mode-acl-1.sh: New file.
46533         * tests/test-set-mode-acl-2.sh: New file.
46534         * tests/test-copy-acl-1.sh: New file.
46535         * tests/test-copy-acl-2.sh: New file.
46536         * modules/acl-tests (Files): Add them.
46537         (Makefile.am): Add them to TESTS.
46539 2011-09-04  Bruno Haible  <bruno@clisp.org>
46541         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46542         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
46543         10.
46544         (OLD_ALLOW, OLD_DENY): New macros.
46545         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
46546         ACE_ACCESS_ALLOWED_ACE_TYPE.
46547         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
46548         ACE_ACCESS_DENIED_ACE_TYPE.
46549         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
46550         (NEW_ACE_EXECUTE): Fix value.
46551         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
46552         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
46553         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
46554         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
46555         NEW_ACE_SYNCHRONIZE): New macros.
46556         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
46557         instead of acl_fromtext, acl_set, facl_set.
46558         Fixes a coreutils/tests/cp/perm failure.
46560 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
46562         openat: test for fstatat (..., 0) bug
46563         Further testing with tar suggests that fstatat (..., 0)
46564         does not work in general, on AIX 7.1; see
46565         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
46566         So, give up entirely on AIX 7.1's fstatat, and fall back on our
46567         replacement fstatat (which is what older AIX releases were using
46568         anyway).
46569         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
46570         use is now changed to orig_fstatat.  This was probably the right
46571         thing to do anyway.
46572         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
46573         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
46574         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
46575         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
46576         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
46577         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
46578         if the bug is found.
46580         openat: test for fstatat (AT_FDCWD, ..., 0) bug
46581         This tests for another fstatat bug on AIX 7.1:
46582         fstatat (AT_FDCWD, ..., 0) does not work.  See
46583         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
46584         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
46585         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
46586         (rpl_fstatat): Adjust so that it works around either (or both)
46587         bugs if present.
46588         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46590 2011-09-03  Karl Berry  <karl@gnu.org>
46592         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46593         in index entries.
46595 2011-09-02  Bruno Haible  <bruno@clisp.org>
46597         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46598         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46599         values of AR, ARFLAGS, RANLIB.
46600         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46602 2011-09-02  Bruno Haible  <bruno@clisp.org>
46604         Find 'ar' program that fits with --host argument.
46605         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46607 2011-09-02  Bruno Haible  <bruno@clisp.org>
46609         tests: init.sh: Support any non-GNU diff.
46610         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46611         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46612         Solaris 8.
46614 2011-09-02  Bruno Haible  <bruno@clisp.org>
46616         tests: init.sh: work also with any non-GNU diff that supports -u
46617         * tests/init.sh: Relax check for diff -u support.
46618         Rather than checking for GNU diff via --version, simply check
46619         for support for -u itself.  Useful at least on OpenBSD 4.9,
46620         AIX 7.1, IRIX 6.5, and Solaris 10.
46622 2011-09-01  Bruno Haible  <bruno@clisp.org>
46624         strtoimax, strtoumax: Document problem on HP-UX 11.
46625         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46626         * doc/posix-functions/strtoumax.texi: Likewise.
46628 2011-09-01  Bruno Haible  <bruno@clisp.org>
46630         strtoumax: Avoid link error on OSF/1 with DTK cc.
46631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46632         defined as a function.
46633         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46634         strtoumax is defined, not whether it is declared.
46636 2011-09-01  Bruno Haible  <bruno@clisp.org>
46638         strtoimax: Avoid link error on OSF/1 with DTK cc.
46639         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46640         defined as a function.
46641         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46642         strtoimax is defined, not whether it is declared.
46644 2011-09-01  Bruno Haible  <bruno@clisp.org>
46646         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46647         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46648         as a function.
46649         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46650         whether it is declared.
46652 2011-09-01  Bruno Haible  <bruno@clisp.org>
46654         imaxabs: Avoid link error on OSF/1 with DTK cc.
46655         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46656         as a function.
46657         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46658         whether it is declared.
46660 2011-09-01  Bruno Haible  <bruno@clisp.org>
46662         Tests for module 'strtoumax'.
46663         * modules/strtoumax-tests: New file.
46664         * tests/test-strtoumax.c: New file.
46666         Tests for module 'strtoimax'.
46667         * modules/strtoimax-tests: New file.
46668         * tests/test-strtoimax.c: New file.
46670         Tests for module 'imaxdiv'.
46671         * modules/imaxdiv-tests: New file.
46672         * tests/test-imaxdiv.c: New file.
46674         Tests for module 'imaxabs'.
46675         * modules/imaxabs-tests: New file.
46676         * tests/test-imaxabs.c: New file.
46678 2011-09-01  Bruno Haible  <bruno@clisp.org>
46680         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46681         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46682         pthread_create.
46684 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46686         openat: work around AIX 7.1 fstatat issue
46687         This should fix the problem that was not properly fixed
46688         in the previous change, dated 2011-08-30.
46689         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46690         __need_system_stat_h defined.
46691         (orig_fstatat) [HAVE_FSTATAT]: New function.
46692         (rpl_fstatat): Go back to the old way of doing things,
46693         except call orig_fstatat instead of fstatat.
46694         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46695         Remove unnecessary check whether fstatat fills in st_size etc.
46697 2011-09-01  Bruno Haible  <bruno@clisp.org>
46699         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46700         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46701         just include the system's header.
46703 2011-08-31  Jim Meyering  <meyering@redhat.com>
46705         tests: avoid spurious assertion failure in test-float.c on ppc64
46706         * tests/test-float.c (test_long_double): Comment out an assertion,
46707         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46708         with gcc-4.4.4.
46710         maint: indent with spaces, not TABs
46711         I need to get in the habit of running gnulib's "make check".
46712         Both of these would have been caught.
46713         * m4/largefile.m4: Indent with spaces, not TABs.
46714         * lib/parse-datetime.y (iso_8601_time): Likewise.
46715         Spotted by Pádraig Brady.
46717         test-parse-datetime.c: accommodate a relatively strict gcc warning
46718         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46719         to avoid a warning from gcc's -Werror=missing-declarations.
46720         Insert a few spaces-before-funcall-parenthesis.
46722 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46724         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46725         The parser now accepts ISO 8601 date-time strings with "T" as the
46726         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46727         with a space between the date and time strings.  Now it also parses
46728         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46729         variants like "2004-02-29T16:21:42.333-07:00"
46730         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46731         of day representation using the 'T' separator character.
46732         * doc/parse-datetime.texi (General date syntax): replace use of
46733         deprecated --iso-8601 option with --rfc-3339 in example of date
46734         command output formats that can be parsed.
46735         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46736         lib/parse-datetime.y.
46737         (gmt_offset): New function.
46738         (main): Add additional test cases to validate ISO8601 extended
46739         date and time of day parsing.
46741 2011-08-31  Bruno Haible  <bruno@clisp.org>
46743         freopen: Documentation.
46744         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46745         name.
46746         Reported by Claudio Bley <claudio.bley@gmail.com>.
46748 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46750         freopen: Don't crash if the filename argument is NULL.
46751         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46752         NULL.
46754 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46756         openat: work around AIX 7.1 fstatat bug
46757         Problem reported by Kevin Brott for GNU tar, in the thread containing
46758         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46759         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46760         FSTATAT_ST_SIZE_ETC_BROKEN.
46761         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46762         rpl_fstatat.
46763         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46764         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46765         AC_CHECK_FUNCS_ONCE for fstatat.
46766         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46767         fchmodat, mkdirat, openat and unlinkat.
46769 2011-08-30  Bruno Haible  <bruno@clisp.org>
46771         Avoid endless recursions if config.h includes some header files.
46772         * lib/fopen.c (__need_FILE): Define already before including config.h.
46773         * lib/freopen.c (__need_FILE): Likewise.
46774         * lib/open.c (__need_system_fcntl_h): Likewise.
46775         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46776         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46777         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46779 2011-08-25  Karl Berry  <karl@gnu.org>
46781         * config/srclist.txt (ylwrap): new try.
46782         * build-aux/ylwrap: new file.
46784 2011-08-23  Bruno Haible  <bruno@clisp.org>
46786         tmpdir: Use a good default directory on native Windows.
46787         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46788         (P_tmpdir): Default to _P_tmpdir on native Windows.
46789         (path_search): On native Windows, try the value returned by GetTempPath
46790         before trying P_tmpdir.
46791         * modules/tmpdir (Depends-on): Add pathmax.
46792         Suggested by John Darrington <john@darrington.wattle.id.au>.
46794 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46796         doc: fix typo in README-release
46797         * top/README-release: Capitalize first word of a sentence.
46799 2011-08-19  Jim Meyering  <meyering@redhat.com>
46801         fts: do not exhaust memory when processing million-entry directories
46802         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46803         directory would require about 256*N bytes of memory.  Thus, it was
46804         easy to construct a directory too large to be processed by any of
46805         those tools.  With this change, fts' maximum memory utilization is
46806         now limited to around 30MB.
46807         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46808         (fts_read): When we've processed the final entry (i.e., when
46809         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46810         using the parent entry to read any remaining entries.  Dispatch
46811         depending on what fts_build returns:
46812         - NULL+stop, aka failure: stop
46813         - NULL otherwise: move up in the dir hierarchy
46814         - non-NULL: handle this new entry
46815         (fts_build): Declare and use new local, continue_readdir.
46816         Prepare to be called from fts_read, when the entries
46817         from a partially-read directory have just been exhausted.
46818         In that case, we'll skip the opendir and instead use the parent's
46819         fts_dirp and derive dir_fd from that.
46820         Finally, in the readdir loop, if we read max_entries entries,
46821         exit the loop ensuring *not* to call closedir.  This is required
46822         so that fts_dirp can be reused on a subsequent call.
46823         Prompted by Ben England's report of memory exhaustion in find
46824         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46826         maint: fts: move decl of `dp' down into while loop; split a long line
46827         * lib/fts.c (fts_build): No semantic change.
46829         fts: add/use new struct member, fts_dirp
46830         We are about to use this to manage any directory with
46831         too many entries to read all of them into memory at once.
46832         To do that, we'll need to save the DIR* pointer in each
46833         affected FTSENT struct.
46834         * lib/fts_.h: Include <dirent.h>.
46835         (struct FTSENT) [fts_dirp]: New member.
46836         * lib/fts.c (closedir_and_clear): Define.
46837         Use it in place of closedir so that we are sure to
46838         clear the new fts_dirp member when done with it.
46839         (fts_alloc): Initialize the new member.
46840         (fts_lfree): Free, if needed.
46842         maint: fts: give __opendir2 a new parameter and rename
46843         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46844         than surreptitiously using sole caller's "dir_fd".
46845         (fts_opendir): Rename from __opendir2.
46847         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46848         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46850         maint: fts.c: correct off-by-one indentation
46851         * lib/fts.c (fts_build): Correct indentation, change style
46852         of a couple of block comments, and bracing style.
46854         maint: fts.c: move __opendir2 #define "up" out of function body
46855         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46857         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46858         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46859         out for a long time and besides was useful only on BSD systems.
46861 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46863         regex: port to Stratus OpenVOS
46864         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46865         define to empty, rather than attempting nonportable optimizations.
46866         Problem reported by Paul Green in:
46867         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46868         and fix suggested by Eric Blake in:
46869         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46871 2011-08-17  Eric Blake  <eblake@redhat.com>
46873         getcwd: fix test failures on mingw
46874         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46875         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46876         test if long directory cannot be created, and allow mingw errno.
46878         getcwd-lgpl: fix m4 to match relaxed test for BSD
46879         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46880         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46881         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46882         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46883         signature problem.
46885         getcwd: fix compilation on mingw64
46886         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46887         getcwd.
46888         Reported by Marc-André Lureau.
46890         pipe2: silence compiler warning
46891         * lib/pipe2.c (pipe2): Hide label if it is not used.
46893 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46895         relocatable-prog: fix link error
46896         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46897         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46898         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46899         into modules/relocatable-lib without noticing that
46900         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46901         also needs to build relocatable.c.
46903 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46905         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46907         shell code: it contained a 'break' that was not in a loop.
46908         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46909         via a shell-language loop; this may have been true in old Autoconf
46910         versions, but it's not true in Autoconf 2.68.  I found this bug
46911         when testing coreutils git on Solaris 8, whose shell complains
46912         about the syntax error.
46914 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46916         * lib/base64.c: Fix comment to reference RFC 4648.
46917         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46918         <gvtulder@gmail.com>.
46920 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46922         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46924         po/Makefile.in.in: fix make -q problem
46925         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46926         rule, since there's no file named 'check-macro-version' and its
46927         use as a file breaks make -q.
46928         (all): Don't depend on check-macro-version.
46929         (CHECK_MACRO_VERSION): New macro.
46930         (stamp-po): Use it.
46932         configmake: fix make -q problem
46933         * modules/configmake (configmake.h): Update configmake.h's time stamp
46934         even if the file does not change.  Otherwise, 'make -q' fails.
46935         Problem reported by Simon Josefsson in
46936         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46938 2011-08-11  Jim Meyering  <meyering@redhat.com>
46940         git-version-gen: correct the advice in a comment
46941         * build-aux/git-version-gen: Correct comment.
46942         Don't recommend to list .tarball-version in .gitignore.
46944 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46946         base64: fix off-by-one buffer size bug
46947         Problem and (trivial) fix reported by Gijs van Tulder in
46948         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46949         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46950         * tests/test-base64.c (main): Catch the bug.
46952 2011-08-10  Eric Blake  <eblake@redhat.com>
46954         closein: correct comments
46955         * lib/closein.c (close_stdin): Improve comments.
46957 2011-08-09  Bruno Haible  <bruno@clisp.org>
46959         More tests for 'fseeko'.
46960         * tests/test-fseeko3.c: New file, from Eric Blake.
46961         * tests/test-fseeko3.sh: New file.
46962         * modules/fseeko-tests (Files): Add them.
46963         (TESTS): Add test-fseeko3.sh.
46964         (check_PROGRAMS): Add test-fseeko3.
46966 2011-08-09  Eric Blake  <eblake@redhat.com>
46968         fseeko: remove unneeded hack
46969         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46971         fseeko: fix bug on glibc
46972         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46973         Reported by John W. Eaton.
46975 2011-08-08  Bruno Haible  <bruno@clisp.org>
46977         unictype/base: Fix interoperability with preinstalled libunistring.
46978         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46979         Reported by Simon Josefsson.
46981 2011-08-08  Bruno Haible  <bruno@clisp.org>
46983         iswblank: Detect declaration correctly.
46984         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46985         AC_CHECK_DECLS invocation.
46987 2011-08-08  Bruno Haible  <bruno@clisp.org>
46989         tcgetsid: Detect declaration correctly.
46990         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46991         AC_CHECK_DECLS invocation.
46992         Reported by Simon Josefsson.
46994 2011-08-08  Eric Blake  <eblake@redhat.com>
46996         largefile: fix typo that regressed large file support
46997         * modules/largefile (configure.ac-early): Fix section name.
46999 2011-08-06  Karl Berry  <karl@gnu.org>
47001         * MODULES.html.sh (func_all_files): _Noreturn is no longer
47002         a separate module.
47004 2011-08-05  Simon Josefsson  <simon@josefsson.org>
47006         openat: Fix warnings and commens when building unlinkat.c on Hurd.
47007         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
47008         get prototype for free.
47010 2011-08-04  Bruno Haible  <bruno@clisp.org>
47012         Tests for module 'pathmax'.
47013         * modules/pathmax-tests: New file.
47014         * tests/test-pathmax.c: New file.
47016         canonicalize-lgpl: Support larger filenames on the Hurd.
47017         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
47018         Reported by Paul Eggert.
47020         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
47021         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
47022         * lib/chdir-long.h: Include pathmax.h.
47023         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
47024         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
47025         (PATH_MAX): Remove code that is done by pathmax.h.
47026         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
47027         * lib/tmpfile.c: Add a comment.
47028         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
47029         * modules/chdir-long (Depends-on): Add pathmax.
47030         * modules/getcwd (Depends-on): Add pathmax.
47031         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
47032         is not defined.
47033         * doc/posix-headers/limits.texi: Mention the pathmax module.
47034         * NEWS: Mention the change.
47036 2011-08-02  Bruno Haible  <bruno@clisp.org>
47038         pthread_sigmask: Actually use results of gl_THREADLIB.
47039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
47040         gl_THREADLIB, not gl_[]THREADLIB.
47041         Reported by Eric Blake.
47043 2011-08-02  Jim Meyering  <meyering@redhat.com>
47045         maint.mk: relax the default _gl_TS_function_match regexp
47046         * top/maint.mk (_gl_TS_function_match): Don't require at least one
47047         space between function name and "(" in an "extern" declaration.
47048         That would fail to match a decl with no space there: extern void foo();
47050 2011-07-31  Iain Nicol  <iain@thenicols.net>
47052         git-version-gen: document that EXTRA_DIST must include .version
47053         * build-aux/git-version-gen: In the how-to-use comment, document
47054         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
47055         will fail when run from an unpacked distribution tarball.
47057 2011-08-01  Bruno Haible  <bruno@clisp.org>
47059         wctype-h: Fix last change.
47060         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
47061         REPLACE_TOWLOWER to 0.
47062         Reported by Sam Steingold <sds@gnu.org>.
47064 2011-07-31  Bruno Haible  <bruno@clisp.org>
47066         frexpl: Update autoconf test.
47067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
47068         according to changes of 2011-06-20.
47070 2011-07-31  Bruno Haible  <bruno@clisp.org>
47072         sys_utsname: Add support for Minix.
47073         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
47074         <sys/utsname.h>.
47075         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47076         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
47078 2011-07-31  Bruno Haible  <bruno@clisp.org>
47080         strings: Add support for Minix.
47081         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
47082         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
47083         * doc/posix-headers/strings.texi: Document the Minix problem.
47085 2011-07-31  Bruno Haible  <bruno@clisp.org>
47087         wctype-h: Add support for Minix.
47088         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
47089         REPLACE_TOWLOWER.
47090         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
47091         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
47092         REPLACE_ISWCNTRL.
47094 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
47096         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
47097         This is a performance improvement for 64-bit hosts: it causes the
47098         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
47100 2011-07-31  Bruno Haible  <bruno@clisp.org>
47102         stdioext: Add support for Minix.
47103         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
47104         * lib/fpurge.c (fpurge): Likewise.
47105         * lib/freadahead.c (freadahead): Likewise.
47106         * lib/freadable.c (freadable): Likewise.
47107         * lib/freading.c (freading): Likewise.
47108         * lib/freadptr.c (freadptr): Likewise.
47109         * lib/freadseek.c (freadptrinc): Likewise.
47110         * lib/fseeko.c (rpl_fseeko): Likewise.
47111         * lib/fseterr.c (fseterr): Likewise.
47112         * lib/fwritable.c (fwritable): Likewise.
47113         * lib/fwriting.c (fwriting): Likewise.
47114         * lib/fflush.c (clear_ungetc_buffer): Update comment.
47115         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
47117 2011-07-31  Bruno Haible  <bruno@clisp.org>
47119         errno: Port to Minix.
47120         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
47121         ECONNABORTED are defined.
47122         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
47123         GNULIB_defined_ECONNABORTED): New macros.
47124         * lib/strerror-override.h (strerror_override): Test also
47125         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
47126         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
47127         ECONNABORTED.
47128         * doc/posix-headers/errno.texi: Mention the Minix problem.
47130 2011-07-31  Bruno Haible  <bruno@clisp.org>
47132         Work around declaration collisions on Minix.
47133         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
47134         defined, set REPLACE_MBSINIT.
47135         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
47136         defined, set REPLACE_MBRTOWC.
47137         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
47138         set REPLACE_MBRLEN.
47139         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
47140         defined, set REPLACE_MBSRTOWCS.
47141         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
47142         defined, set REPLACE_WCRTOMB.
47143         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
47144         defined, set REPLACE_WCSRTOMBS.
47146 2011-07-31  Bruno Haible  <bruno@clisp.org>
47148         Add support for Minix with ACK compiler.
47149         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
47150         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
47151         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
47153 2011-07-31  Bruno Haible  <bruno@clisp.org>
47155         Documentation about Minix.
47156         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
47157         * doc/glibc-headers/*.texi: Likewise.
47158         * doc/posix-functions/*.texi: Likewise.
47159         * doc/glibc-functions/*.texi: Likewise.
47161 2011-07-31  Bruno Haible  <bruno@clisp.org>
47163         snippet/warn-on-use: Fix indentation.
47164         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
47166 2011-07-25  Jim Meyering  <meyering@redhat.com>
47168         tests: test-update-copyright.sh: remove unnecessary "rm" commands
47169         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
47170         commands.
47172 2011-07-27  Jim Meyering  <meyering@redhat.com>
47174         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
47175         * top/maint.mk (gl_extract_significant_defines_): Now that
47176         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
47177         gnulib/lib/signal.in.h, and now that we recommend to
47178         define-if-undefined those two symbols in application code,
47179         we must filter them out of the "significant" list.
47180         This avoids a "make syntax-check" failure in coreutils.
47182 2011-07-26  Eric Blake  <eblake@redhat.com>
47184         warnings: add comments about previous patch
47185         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
47186         * m4/include_next.m4: Likewise.
47187         * m4/warn-on-use.m4: Likewise.
47188         * m4/warnings.m4: Likewise, and simplify use.
47189         Suggested by Stefano Lattarini.
47191         include-next, warnings: support older autoconf
47192         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
47193         AS_VAR_PUSHDEF in a way that works with older autoconf.
47194         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
47195         Reported by Daniel P. Berrange.
47197 2011-07-25  Bruno Haible  <bruno@clisp.org>
47199         fseek, ftell: Fix doc.
47200         * doc/posix-functions/fseek.texi: Reword statement about
47201         AC_SYS_LARGEFILE.
47202         * doc/posix-functions/ftell.texi: Likewise.
47204 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47205             Bruno Haible  <bruno@clisp.org>
47207         Add dependencies to the 'largefile' module.
47208         * modules/fopen (Depends-on): Add 'largefile'.
47209         * modules/freopen (Depends-on): Likewise.
47210         * modules/fseeko (Depends-on): Likewise.
47211         * modules/ftello (Depends-on): Likewise.
47212         * modules/glob (Depends-on): Likewise.
47213         * modules/lseek (Depends-on): Likewise.
47214         * modules/lstat (Depends-on): Likewise.
47215         * modules/mkostemp (Depends-on): Likewise.
47216         * modules/mkostemps (Depends-on): Likewise.
47217         * modules/mkstemp (Depends-on): Likewise.
47218         * modules/mkstemps (Depends-on): Likewise.
47219         * modules/open (Depends-on): Likewise.
47220         * modules/openat (Depends-on): Likewise.
47221         * modules/pread (Depends-on): Likewise.
47222         * modules/pwrite (Depends-on): Likewise.
47223         * modules/scandir (Depends-on): Likewise.
47224         * modules/stat (Depends-on): Likewise.
47225         * modules/tmpfile (Depends-on): Likewise.
47226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
47227         since the containing module now depends on the largefile module.
47228         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
47229         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
47230         off_t is fixed by gnulib.
47231         * doc/posix-functions/freopen.texi: Likewise.
47232         * doc/posix-functions/fseeko.texi: Likewise.
47233         * doc/posix-functions/fstatat.texi: Likewise.
47234         * doc/posix-functions/ftello.texi: Likewise.
47235         * doc/posix-functions/glob.texi: Likewise.
47236         * doc/posix-functions/lseek.texi: Likewise.
47237         * doc/posix-functions/lstat.texi: Likewise.
47238         * doc/posix-functions/mkstemp.texi: Likewise.
47239         * doc/posix-functions/open.texi: Likewise.
47240         * doc/posix-functions/openat.texi: Likewise.
47241         * doc/posix-functions/pread.texi: Likewise.
47242         * doc/posix-functions/pwrite.texi: Likewise.
47243         * doc/posix-functions/scandir.texi: Likewise.
47244         * doc/posix-functions/stat.texi: Likewise.
47245         * doc/posix-functions/tmpfile.texi: Likewise.
47246         * doc/glibc-functions/mkostemp.texi: Likewise.
47247         * doc/glibc-functions/mkostemps.texi: Likewise.
47248         * doc/glibc-functions/mkstemps.texi: Likewise.
47250 2011-07-25  Bruno Haible  <bruno@clisp.org>
47252         fcntl: Move AC_LIBOBJ invocation to module description.
47253         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
47254         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
47256         fcntl: Remove call-in from fchdir.m4.
47257         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
47258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
47260         dup3: Remove potential call-in from fchdir.m4.
47261         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
47262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
47264         dup2: Move AC_LIBOBJ invocation to module description.
47265         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
47266         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
47267         Don't invoke AC_LIBOBJ.
47268         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
47270         dup2: Remove call-in from fchdir.m4.
47271         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
47272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
47274         fclose: Move AC_LIBOBJ invocation to module description.
47275         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
47276         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
47277         to 1.
47278         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
47280         fclose: Remove call-in from close.m4.
47281         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
47282         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
47284         close: Move AC_LIBOBJ invocation to module description.
47285         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
47286         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
47287         1.
47288         * modules/close (configure.ac): Invoke AC_LIBOBJ.
47290         close: Remove call-in from fchdir.m4.
47291         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
47292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
47294         open: Move AC_LIBOBJ invocation to module description.
47295         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
47296         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
47297         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
47299         open: Remove call-in from fchdir.m4.
47300         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
47301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
47303         fchdir: Start to remove gl_REPLACE_* idiom.
47304         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
47305         (gl_FUNC_FCHDIR): Invoke it.
47307 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47309         * lib/ftell.c (ftell): Comment out cast.
47311         close: use gl_REPLACE_FCLOSE only if defined
47312         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
47313         is defined.  The close module doesn't depend on the fclose module
47314         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
47315         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
47316         I reproduced the problem with "./gnulib-tool --test close sys_socket".
47318 2011-07-24  Jim Meyering  <meyering@redhat.com>
47320         test-select.h: avoid warning when using gcc's -Wmissing-declarations
47321         * tests/test-select.h (test_function): Declare as "static".
47323 2011-07-24  Bruno Haible  <bruno@clisp.org>
47325         doc: Mention the effects of AC_SYS_LARGEFILE.
47326         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
47327         on this function.
47328         * doc/posix-functions/aio_error.texi: Likewise.
47329         * doc/posix-functions/aio_fsync.texi: Likewise.
47330         * doc/posix-functions/aio_read.texi: Likewise.
47331         * doc/posix-functions/aio_return.texi: Likewise.
47332         * doc/posix-functions/aio_suspend.texi: Likewise.
47333         * doc/posix-functions/aio_write.texi: Likewise.
47334         * doc/posix-functions/fgetpos.texi: Likewise.
47335         * doc/posix-functions/fopen.texi: Likewise.
47336         * doc/posix-functions/freopen.texi: Likewise.
47337         * doc/posix-functions/fsetpos.texi: Likewise.
47338         * doc/posix-functions/fstatvfs.texi: Likewise.
47339         * doc/posix-functions/ftruncate.texi: Likewise.
47340         * doc/posix-functions/ftw.texi: Likewise.
47341         * doc/posix-functions/getrlimit.texi: Likewise.
47342         * doc/posix-functions/glob.texi: Likewise.
47343         * doc/posix-functions/lio_listio.texi: Likewise.
47344         * doc/posix-functions/lockf.texi: Likewise.
47345         * doc/posix-functions/mkstemp.texi: Likewise.
47346         * doc/posix-functions/mmap.texi: Likewise.
47347         * doc/posix-functions/nftw.texi: Likewise.
47348         * doc/posix-functions/openat.texi: Likewise.
47349         * doc/posix-functions/opendir.texi: Likewise.
47350         * doc/posix-functions/posix_fadvise.texi: Likewise.
47351         * doc/posix-functions/posix_fallocate.texi: Likewise.
47352         * doc/posix-functions/pread.texi: Likewise.
47353         * doc/posix-functions/pwrite.texi: Likewise.
47354         * doc/posix-functions/readdir.texi: Likewise.
47355         * doc/posix-functions/readdir_r.texi: Likewise.
47356         * doc/posix-functions/rewinddir.texi: Likewise.
47357         * doc/posix-functions/scandir.texi: Likewise.
47358         * doc/posix-functions/seekdir.texi: Likewise.
47359         * doc/posix-functions/setrlimit.texi: Likewise.
47360         * doc/posix-functions/statvfs.texi: Likewise.
47361         * doc/posix-functions/telldir.texi: Likewise.
47362         * doc/posix-functions/tmpfile.texi: Likewise.
47363         * doc/posix-functions/truncate.texi: Likewise.
47364         * doc/glibc-functions/fallocate.texi: Likewise.
47365         * doc/glibc-functions/fstatfs.texi: Likewise.
47366         * doc/glibc-functions/fts_children.texi: Likewise.
47367         * doc/glibc-functions/fts_read.texi: Likewise.
47368         * doc/glibc-functions/getdirentries.texi: Likewise.
47369         * doc/glibc-functions/mkostemp.texi: Likewise.
47370         * doc/glibc-functions/mkostemps.texi: Likewise.
47371         * doc/glibc-functions/mkstemps.texi: Likewise.
47372         * doc/glibc-functions/preadv.texi: Likewise.
47373         * doc/glibc-functions/pwritev.texi: Likewise.
47374         * doc/glibc-functions/sendfile.texi: Likewise.
47375         * doc/glibc-functions/statfs.texi: Likewise.
47377 2011-07-24  Bruno Haible  <bruno@clisp.org>
47379         doc: Fix typo.
47380         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
47382 2011-07-24  Bruno Haible  <bruno@clisp.org>
47384         doc: Mention fsusage.
47385         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
47387 2011-07-24  Bruno Haible  <bruno@clisp.org>
47389         doc: Mention new glibc headers and functions.
47390         * doc/glibc-headers/gshadow.texi: New file.
47391         * doc/glibc-functions/endsgent.texi: New file.
47392         * doc/glibc-functions/fgetsgent.texi: New file.
47393         * doc/glibc-functions/fgetsgent_r.texi: New file.
47394         * doc/glibc-functions/getsgent.texi: New file.
47395         * doc/glibc-functions/getsgent_r.texi: New file.
47396         * doc/glibc-functions/getsgnam.texi: New file.
47397         * doc/glibc-functions/getsgnam_r.texi: New file.
47398         * doc/glibc-functions/putsgent.texi: New file.
47399         * doc/glibc-functions/setsgent.texi: New file.
47400         * doc/glibc-functions/sgetsgent.texi: New file.
47401         * doc/glibc-functions/sgetsgent_r.texi: New file.
47402         * doc/glibc-functions/malloc_info.texi: New file.
47403         * doc/glibc-functions/preadv.texi: New file.
47404         * doc/glibc-functions/pwritev.texi: New file.
47405         * doc/glibc-functions/register_printf_modifier.texi: New file.
47406         * doc/glibc-functions/register_printf_specifier.texi: New file.
47407         * doc/glibc-functions/register_printf_type.texi: New file.
47408         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
47409         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
47410         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
47411         * doc/glibc-functions/pthread_getname_np.texi: New file.
47412         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
47413         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
47414         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
47415         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
47416         * doc/glibc-functions/pthread_setname_np.texi: New file.
47417         * doc/glibc-functions/pthread_sigqueue.texi: New file.
47418         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
47419         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
47420         * doc/glibc-functions/qsort_r.texi: New file.
47421         * doc/glibc-functions/quick_exit.texi: New file.
47422         * doc/glibc-functions/syncfs.texi: New file.
47423         * doc/gnulib.texi: Include them.
47424         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
47425         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
47426         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
47427         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
47428         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
47429         * doc/glibc-functions/execvpe.texi: Likewise.
47431 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47433         ftell: don't include <unistd.h>
47434         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
47435         guaranteed to define off_t, and the ftell module depends on the
47436         stdio module.
47438         ftell: do not assume wraparound signed arithmetic
47439         * lib/ftell.c: Include <limits.h>.
47440         (ftell): Don't assume wraparound signed arithmetic.
47442 2011-07-24  Bruno Haible  <bruno@clisp.org>
47444         close: No longer depend on module 'fclose'.
47445         * modules/close (Depends-on): Remove fclose.
47446         * NEWS: Mention the change.
47447         Suggested by Sam Steingold <sds@gnu.org>.
47449 2011-07-24  Bruno Haible  <bruno@clisp.org>
47451         fsusage: Enable large volume support on AIX >= 5.2.
47452         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
47453         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
47454         instead of STAT_STATVFS.
47455         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
47457         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
47458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
47459         f_blocks field only on MacOS X.
47461         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
47462         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
47463         * modules/fsusage (Depends-on): Add largefile.
47465 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47467         * README: Modernize discussion of signed integers.
47468         Assuming overflow wraparound is no longer safe.
47469         Mention ones' complement and signed magnitude.
47471 2011-07-22  Bruno Haible  <bruno@clisp.org>
47473         select tests, pselect tests: Refactor.
47474         * tests/test-select.h: New file, extracted from tests/test-select.c.
47475         (select_fn): New type.
47476         (test, do_select, do_select_nowait, do_select_wait, test_tty,
47477         test_connect_first, test_accept_first, test_pair, test_socket_pair,
47478         test_pipe): Add my_select argument.
47479         (test_function): Renamed from main. Add my_select argument.
47480         * tests/test-select.c: Move most code to tests/test-select.h. Include
47481         test-select.h.
47482         * modules/select-tests (Files): Add tests/test-select.h.
47483         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
47484         (my_select, main): New functions.
47485         * modules/pselect-tests (Files): Add tests/test-select.h,
47486         tests/macros.h, tests/signature.h.
47487         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
47488         (configure.ac): Check for <sys/wait.h>.
47490 2011-07-22  Bruno Haible  <bruno@clisp.org>
47492         sys_select tests: Check the signature of FD_*.
47493         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
47494         signature tests from here...
47495         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
47496         here.
47497         * modules/sys_select-tests (Files): Add tests/signature.h.
47499 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47501         largefile: new module, replacing large-inode
47502         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
47503         * MODULES.html.sh: Add largefile, remove large-inode.
47504         * modules/largefile, m4/largefile.m4: New files.
47505         * modules/large-inode, m4/large-inode.m4: Remove.
47507         fsusage: port to MacOS X 10.7 with 4 TiB file systems
47508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
47509         implementations that use only 32 bits to count blocks.
47510         On typical hosts with 1024-byte blocks, this fails with file
47511         systems as small as 4 TiB.  Problem reported by Herb Wartens
47512         <http://debbugs.gnu.org/9140> and this should also fix a similar
47513         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
47515         large-inode: New module
47516         * MODULES.html.sh: Add it.
47517         * modules/large-inode, m4/large-inode.m4: New files.
47519         extensions: Enable extensions on MacOS X 10.5 and later.
47520         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
47522 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
47524         file-has-acl: use acl_extended_file_nofollow if available
47525         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
47526         (acl_extended_file): New macro.
47527         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
47528         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
47530 2011-07-21  Bruno Haible  <bruno@clisp.org>
47532         Declare system functions in a way that works with C++.
47533         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
47534         declare fdopendir as extern "C".
47535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47536         declare frexpl as extern "C".
47537         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
47538         declare gai_strerror as extern "C".
47539         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
47540         programs, declare gai_strerror as extern "C".
47541         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
47542         declare getlogin_r as extern "C".
47543         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
47544         as extern "C".
47545         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
47546         declare ldexpl as extern "C".
47547         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
47548         as extern "C".
47549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
47550         program, declare getmntinfo as extern "C".
47551         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
47552         stpncpy as extern "C".
47553         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
47554         program, declare __xpg_strerror_r as extern "C".
47555         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
47556         strndup as extern "C".
47557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
47558         declare memset and bzero as extern "C".
47559         Reported by Sam Steingold <sds@gnu.org>.
47561 2011-07-12  Jim Meyering  <meyering@redhat.com>
47563         maint.mk: prohibit inclusion of "verify.h" without use
47564         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
47566 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47568         timer-time: A new module to check for timer_settime()
47569         * m4/timer_time.m4: Check for the posix function.
47570         * modules/timer-time: Add the new module.
47571         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
47572         Mention it.
47574 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
47575             Bruno Haible  <bruno@clisp.org>
47577         pthread_sigmask: assume POSIX threads if --avoid=threadlib
47578         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
47579         not defined, assume POSIX threads and look for pthread_sigmask in
47580         $LIBS, without changing $CPPFLAGS.
47582 2011-07-19  Bruno Haible  <bruno@clisp.org>
47584         strstr: Update cross-compilation guess.
47585         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
47586         CPUs, guess no, in view of glibc
47587         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47588         Suggested by Eric Blake. Reported by Reuben Thomas.
47590 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47592         getopt-gnu: suppress core dumps from detection code
47593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47594         to suppress core dumps that may well occur on glibc systems.
47595         * modules/getopt-gnu: Depend on nocrash.
47597 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47599         pthread_sigmask: ensure usleep is declared
47600         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47601         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47603 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47605         doc: Document NonStop portability issues.
47606         * doc/posix-functions/sigaction.texi (sigaction):
47607         * doc/posix-headers/signal.texi (signal.h):
47608         Document NonStop.  See Joachim Schmitz in
47609         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47611 2011-07-15  Bruno Haible  <bruno@clisp.org>
47613         ffsl, ffsll: Avoid unportable behaviour.
47614         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47616 2011-07-15  Bruno Haible  <bruno@clisp.org>
47618         ffs: More tests.
47619         * tests/test-ffs.c (NBITS): New macro.
47620         (main): Add more tests.
47621         * tests/test-ffsl.c (NBITS): New macro.
47622         (main): Add more tests.
47623         * tests/test-ffsll.c (NBITS): New macro.
47624         (main): Add more tests.
47626 2011-07-15  Eric Blake  <eblake@redhat.com>
47628         ffsl, ffsll: new modules
47629         * modules/ffsl: New file.
47630         * modules/ffsll: Likewise.
47631         * m4/ffsl.m4: Likewise.
47632         * m4/ffsll.m4: Likewise.
47633         * lib/ffsl.c: Likewise.
47634         * lib/ffsl.h: Likewise.
47635         * lib/ffsll.c: Likewise.
47636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47637         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47638         * modules/string (Makefile.am): Substitute witnesses.
47639         * lib/strings.in.h (ffsl, ffsll): Declare.
47640         * modules/ffsl-tests: New test file.
47641         * modules/ffsll-tests: Likewise.
47642         * tests/test-ffsl.c: Likewise.
47643         * tests/test-ffsll.c: Likewise.
47644         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47645         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47646         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47648         ffs: fix m4 prerequisite
47649         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47651         ffs: avoid undefined behavior
47652         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47653         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47654         Reported by Bruno Haible.
47656 2011-07-12  Bruno Haible  <bruno@clisp.org>
47658         pthread_sigmask: Rely on module 'threadlib'.
47659         * modules/pthread_sigmask (Depends-on): Add threadlib.
47660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47661         is defined.
47663 2011-07-12  Bruno Haible  <bruno@clisp.org>
47665         regex: Depend on module 'strcase'.
47666         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47668 2011-07-12  Jim Meyering  <meyering@redhat.com>
47670         warn-on-use: fix typo in file name
47671         * modules/snippet/warn-on-use (Files): Correct file name:
47672         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47674 2011-07-12  Bruno Haible  <bruno@clisp.org>
47676         strings: Document module.
47677         * doc/posix-headers/strings.texi: Mention module 'strings'.
47679 2011-07-12  Bruno Haible  <bruno@clisp.org>
47681         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47682         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47683         (Files, Makefile.am): Update.
47684         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47685         * modules/stdlib (Depends-on): Update.
47687 2011-07-12  Bruno Haible  <bruno@clisp.org>
47689         * NEWS: Mention the changes.
47691         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47692         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47693         (Files, Makefile.am): Update.
47694         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47695         * modules/arpa_inet (Depends-on): Update.
47696         * modules/ctype (Depends-on): Update.
47697         * modules/dirent (Depends-on): Update.
47698         * modules/fcntl-h (Depends-on): Update.
47699         * modules/glob (Depends-on): Update.
47700         * modules/iconv-h (Depends-on): Update.
47701         * modules/inttypes-incomplete (Depends-on): Update.
47702         * modules/langinfo (Depends-on): Update.
47703         * modules/locale (Depends-on): Update.
47704         * modules/math (Depends-on): Update.
47705         * modules/netdb (Depends-on): Update.
47706         * modules/poll-h (Depends-on): Update.
47707         * modules/pty (Depends-on): Update.
47708         * modules/search (Depends-on): Update.
47709         * modules/signal (Depends-on): Update.
47710         * modules/spawn (Depends-on): Update.
47711         * modules/stdio (Depends-on): Update.
47712         * modules/stdlib (Depends-on): Update.
47713         * modules/string (Depends-on): Update.
47714         * modules/strings (Depends-on): Update.
47715         * modules/sys_file (Depends-on): Update.
47716         * modules/sys_ioctl (Depends-on): Update.
47717         * modules/sys_select (Depends-on): Update.
47718         * modules/sys_socket (Depends-on): Update.
47719         * modules/sys_stat (Depends-on): Update.
47720         * modules/sys_time (Depends-on): Update.
47721         * modules/sys_times (Depends-on): Update.
47722         * modules/sys_utsname (Depends-on): Update.
47723         * modules/sys_wait (Depends-on): Update.
47724         * modules/termios (Depends-on): Update.
47725         * modules/time (Depends-on): Update.
47726         * modules/unistd (Depends-on): Update.
47727         * modules/wchar (Depends-on): Update.
47728         * modules/wctype-h (Depends-on): Update.
47729         * MODULES.html.sh (Support for building libraries and executables):
47730         Update.
47732         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47733         * modules/snippet/unused-parameter: Renamed from
47734         modules/unused-parameter.
47735         (Files, Makefile.am): Update.
47736         * build-aux/snippet/unused-parameter.h: Renamed from
47737         build-aux/unused-parameter.h.
47738         * modules/selinux-h (Depends-on): Update.
47739         * modules/unistr/base (Depends-on): Update.
47740         * MODULES.html.sh (Core language properties): Update.
47742         Rename module 'link-warning' to 'snippet/link-warning'.
47743         * modules/snippet/link-warning: Renamed from modules/link-warning.
47744         (Files, Makefile.am): Update.
47745         * build-aux/snippet/link-warning.h: Renamed from
47746         build-aux/link-warning.h.
47747         * MODULES.html.sh (Support for building libraries and executables):
47748         Update.
47750         Rename module 'c++defs' to 'snippet/c++defs'.
47751         * modules/snippet/c++defs: Renamed from modules/c++defs.
47752         (Files, Makefile.am): Update.
47753         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47754         * modules/arpa_inet (Depends-on): Update.
47755         * modules/ctype (Depends-on): Update.
47756         * modules/dirent (Depends-on): Update.
47757         * modules/fcntl-h (Depends-on): Update.
47758         * modules/glob (Depends-on): Update.
47759         * modules/iconv-h (Depends-on): Update.
47760         * modules/langinfo (Depends-on): Update.
47761         * modules/locale (Depends-on): Update.
47762         * modules/math (Depends-on): Update.
47763         * modules/netdb (Depends-on): Update.
47764         * modules/poll-h (Depends-on): Update.
47765         * modules/pty (Depends-on): Update.
47766         * modules/search (Depends-on): Update.
47767         * modules/signal (Depends-on): Update.
47768         * modules/spawn (Depends-on): Update.
47769         * modules/stdio (Depends-on): Update.
47770         * modules/stdlib (Depends-on): Update.
47771         * modules/string (Depends-on): Update.
47772         * modules/strings (Depends-on): Update.
47773         * modules/sys_ioctl (Depends-on): Update.
47774         * modules/sys_select (Depends-on): Update.
47775         * modules/sys_socket (Depends-on): Update.
47776         * modules/sys_stat (Depends-on): Update.
47777         * modules/sys_time (Depends-on): Update.
47778         * modules/sys_wait (Depends-on): Update.
47779         * modules/termios (Depends-on): Update.
47780         * modules/time (Depends-on): Update.
47781         * modules/unistd (Depends-on): Update.
47782         * modules/wchar (Depends-on): Update.
47783         * modules/wctype-h (Depends-on): Update.
47785         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47786         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47787         (Files, Makefile.am): Update.
47788         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47789         * modules/argv-iter (Depends-on): Update.
47790         * modules/arpa_inet (Depends-on): Update.
47791         * modules/dirent (Depends-on): Update.
47792         * modules/fcntl-h (Depends-on): Update.
47793         * modules/fnmatch (Depends-on): Update.
47794         * modules/getopt-posix (Depends-on): Update.
47795         * modules/glob (Depends-on): Update.
47796         * modules/iconv-h (Depends-on): Update.
47797         * modules/inttypes-incomplete (Depends-on): Update.
47798         * modules/locale (Depends-on): Update.
47799         * modules/math (Depends-on): Update.
47800         * modules/netdb (Depends-on): Update.
47801         * modules/search (Depends-on): Update.
47802         * modules/signal (Depends-on): Update.
47803         * modules/spawn (Depends-on): Update.
47804         * modules/stdio (Depends-on): Update.
47805         * modules/stdlib (Depends-on): Update.
47806         * modules/string (Depends-on): Update.
47807         * modules/strings (Depends-on): Update.
47808         * modules/sys_socket (Depends-on): Update.
47809         * modules/sys_stat (Depends-on): Update.
47810         * modules/sys_time (Depends-on): Update.
47811         * modules/sys_times (Depends-on): Update.
47812         * modules/sys_utsname (Depends-on): Update.
47813         * modules/time (Depends-on): Update.
47814         * modules/unistd (Depends-on): Update.
47815         * modules/wchar (Depends-on): Update.
47816         * MODULES.html.sh (Support for building libraries and executables):
47817         Update.
47819 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47821         Improvements on _Noreturn and related modules.
47823         modules/_Exit-tests: test _Noreturn too
47824         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47825         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47826         (main): Use them.
47828         stdnoreturn, stdnoreturn-tests: remove modules
47829         They're not needed here and a bit premature for use elsewhere.  See
47830         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47831         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47832         * tests/test-stdnoreturn.c: Remove files.
47833         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47834         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47835         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47836         and using noreturn.
47837         * modules/openat, modules/sigpipe-die, modules/xalloc:
47838         * modules/xmemdup0, modules/xstrtol:
47839         Remove dependency on stdnoreturn.
47841         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47842         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47843         Reparenthesize to avoid GCC warning.
47844         Support Microsoft's syntax.
47845         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47847         _Noreturn-tests: remove module
47848         * modules/_Noreturn-tests: Remove.
47849         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47850         * tests/test-_Noreturn.c: Remove.
47851         * tests/test-stdnoreturn.c: Merge from the old
47852         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47854 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47856         _Noreturn, stdnoreturn, and related modules.
47858         * top/maint.mk: Adjust to new noreturn support.
47859         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47860         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47862         xalloc: use stdnoreturn.h
47863         * lib/xalloc.h: Include <stdnoreturn.h>.
47864         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47865         * modules/xalloc (Depends-on): Add stdnoreturn.
47867         xstrtol: use stdnoreturn.h
47868         * lib/xstrtol.h: Include <stdnoreturn.h>.
47869         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47870         * modules/xstrtol (Depends-on): Add stdnoreturn.
47872         xmemdup0: use stdnoreturn.h
47873         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47874         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47875         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47877         sigpipe-die: use stdnoreturn.h
47878         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47879         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47880         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47882         openat: use stdnoreturn.h
47883         * lib/openat.h: Include <stdnoreturn.h>.
47884         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47885         * modules/openat (Depends-on): Add stdnoreturn.
47887         * lib/openat-die.c (openat_save_fail): Modernize comment.
47889         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47891         * lib/glthread/thread.h: Modernize comment.
47893         obstack: use _Noreturn
47894         * lib/obstack.c (__attribute__): Remove macro.
47895         (print_and_abort): Use _Noreturn.
47897         c-stack: use _Noreturn
47898         * lib/c-stack.c (die, overflow_handler, segv_handler):
47899         Use _Noreturn rather than __attribute__((noreturn)).
47901         argmatch-tests, exclude_tests: use _Noreturn
47902         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47903         Remove.
47904         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47906         stdlib: use _Noreturn
47907         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47908         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47909         * modules/stdlib (Depends-on): Add _Noreturn.
47910         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47912         stdnoreturn-tests: new module
47913         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47915         stdnoreturn: new module
47916         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47917         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47919         _Noreturn-tests: new module
47920         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47922         _Noreturn: new module
47923         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47924         New section, mentioning it.
47925         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47927         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47929 2011-07-11  Eric Blake  <eblake@redhat.com>
47931         ffs: new module
47932         * modules/ffs: New file.
47933         * m4/ffs.m4: Likewise.
47934         * lib/ffs.c: Likewise.
47935         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47936         * modules/strings (Makefile.am): Substitute witness.
47937         (Depends-on): Add c++defs.
47938         * lib/strings.in.h (ffs): Declare.
47939         * modules/ffs-tests: New test file.
47940         * tests/test-ffs.c: Test new module.
47941         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47942         * doc/posix-functions/ffs.texi (ffs): Likewise.
47944         regex: avoid compiler warning
47945         * lib/regex.c (includes): Include <strings.h>, for use of
47946         strcasecmp in regcomp.c.
47947         Reported by Joachim Schmitz.
47949 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47951         stdint: respect system's intmax_t if INTMAX_MAX
47952         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47953         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47954         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47955         long but int64_t is long long, and where we will clash with the
47956         system intmax_t if we override it.  See
47957         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47958         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47959         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47960         similarly for UINTMAX_C.
47962 2011-07-08  Bruno Haible  <bruno@clisp.org>
47964         pthread_sigmask tests: Avoid a compiler warning.
47965         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47966         non-zero.
47968         sigprocmask tests: A better way to avoid a compiler warning.
47969         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47970         (main): Complain if system() returns non-zero.
47971         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47973 2011-07-08  Bruno Haible  <bruno@clisp.org>
47975         pthread_sigmask: Work around IRIX bug.
47976         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47977         bug.
47978         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47979         there may be unblocked pending signals.
47980         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47982 2011-07-08  Bruno Haible  <bruno@clisp.org>
47984         pthread_sigmask: Work around Cygwin bug.
47985         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47986         bug.
47987         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47988         the system's pthread_sigmask function.
47989         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47991 2011-07-08  Bruno Haible  <bruno@clisp.org>
47993         pthread_sigmask: Work around bug in single-threaded implementation.
47994         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47995         FreeBSD, HP-UX, Solaris bug.
47996         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47997         * lib/pthread_sigmask.c: Include <stddef.h>.
47998         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47999         the system's pthread_sigmask function.
48000         * modules/pthread_sigmask (configure.ac): Invoke
48001         gl_PREREQ_PTHREAD_SIGMASK.
48002         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
48003         HP-UX, Solaris.
48005 2011-07-08  Eric Blake  <eblake@redhat.com>
48007         test-sigprocmask: avoid compiler warning
48008         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
48009         * tests/test-sigprocmask.c (main): Use it to silence warning.
48010         Reported by Jim Meyering.
48012         test-snprintf: avoid compiler warning
48013         * tests/test-snprintf.c (main): Avoid shadowed declaration.
48014         * tests/test-vsnprintf.c (main): Likewise.
48015         Reported by Jim Meyering.
48017 2011-07-08  Bruno Haible  <bruno@clisp.org>
48019         Tests for module 'pthread_sigmask'.
48020         * modules/pthread_sigmask-tests: New file.
48021         * tests/test-pthread_sigmask1.c: New file, based on
48022         tests/test-sigprocmask.c.
48023         * tests/test-pthread_sigmask2.c: New file.
48025 2011-07-08  Jim Meyering  <meyering@redhat.com>
48027         test-getopt.h: avoid warning about an unused variable
48028         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
48030 2011-07-07  Jim Meyering  <meyering@redhat.com>
48032         maint: reduce list of files exempt from sc_prohibit_leading_TABs
48033         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
48034         now that it no longer contains leading TABs.
48035         Remove unused "url=FIXME" statement.
48037 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48039         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
48040         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
48041         When gl_THREADLIB is not in use, assume that the POSIX sematics
48042         are desired.  This is better for Emacs, which uses POSIX semantics
48043         on GNUish and/or POSIXish platforms, and does not use threads at
48044         all otherwise.
48046         pthread_sigmask: fix typo when testing for libraries
48047         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
48048         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
48050 2011-07-08  Eric Blake  <eblake@redhat.com>
48052         fts: introduce FTS_NOATIME
48053         * lib/fts_.h (FTS_NOATIME): New bit flag.
48054         (FTS_OPTIONMASK): Adjust.
48055         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
48056         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
48058 2011-07-08  Bruno Haible  <bruno@clisp.org>
48060         Tests for module 'thread'.
48061         * modules/thread-tests: New file.
48062         * tests/test-thread_self.c: New file.
48063         * tests/test-thread_create.cc: New file.
48065 2011-07-08  Bruno Haible  <bruno@clisp.org>
48067         thread: Avoid gcc warnings when using gl_thread_self().
48068         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
48069         'void *'.
48070         (gl_thread_self_pointer): Update.
48072 2011-07-07  Bruno Haible  <bruno@clisp.org>
48074         signal-c++-tests: Check declaration of pthread_sigmask.
48075         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
48076         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
48077         $(LIB_PTHREAD_SIGMASK).
48079 2011-07-07  Bruno Haible  <bruno@clisp.org>
48081         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
48082         * lib/signal.in.h (pthread_sigmask): Override if
48083         REPLACE_PTHREAD_SIGMASK is 1.
48084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48085         REPLACE_PTHREAD_SIGMASK.
48086         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
48087         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
48088         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
48089         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
48090         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
48092 2011-07-07  Bruno Haible  <bruno@clisp.org>
48094         pthread_sigmask: Ensure declaration in <signal.h>.
48095         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
48096         include <pthread.h>.
48097         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
48098         problem.
48100 2011-07-07  Bruno Haible  <bruno@clisp.org>
48102         pthread_sigmask: Document the module.
48103         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
48105 2011-07-07  Bruno Haible  <bruno@clisp.org>
48107         pthread_sigmask: Follow gnulib conventions.
48108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
48109         gl_PTHREAD_SIGMASK.
48110         * modules/pthread_sigmask (configure.ac): Update.
48112 2011-07-07  Bruno Haible  <bruno@clisp.org>
48114         pthread_sigmask: Make declaration C++ safe.
48115         * lib/signal.in.h: In two special conditions, just do an #include_next.
48116         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
48117         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
48118         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48119         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
48120         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
48121         not REPLACE_PTHREAD_MASK.
48122         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
48123         not REPLACE_PTHREAD_MASK.
48124         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
48126 2011-07-07  Bruno Haible  <bruno@clisp.org>
48128         pthread_sigmask: Fix return value.
48129         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
48130         * lib/pthread_sigmask.c: New file.
48131         * modules/pthread_sigmask (Files): Add it.
48132         (configure.ac): Invoke AC_LIBOBJ.
48134 2011-07-07  Eric Blake  <eblake@redhat.com>
48136         getopt: more portable argv creation
48137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
48138         const, use char arrays rather than strings.
48139         Suggested by Paul Eggert.
48141 2011-07-07  Bruno Haible  <bruno@clisp.org>
48143         Tests for module 'sigprocmask'.
48144         * modules/sigprocmask-tests: New file.
48145         * tests/test-sigprocmask.c: New file.
48147 2011-07-07  Bruno Haible  <bruno@clisp.org>
48149         float tests: Tweak.
48150         * tests/test-float.c (main): Tweak skip message.
48152 2011-07-07  Eric Blake  <eblake@redhat.com>
48154         getopt: avoid compiler warning during configure
48155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
48156         assigning string literals to non-const pointer.
48158         getopt-gnu: avoid crash in glibc getopt
48159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
48160         * tests/test-getopt.h (test_getopt): Enhance test.
48161         * tests/test-getopt_long.h (test_getopt_long): Likewise.
48162         * doc/posix-functions/getopt.texi (getopt): Document it.
48163         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48165         Likewise.
48167 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
48169         getopt: handle W; without long options in getopt [BZ #12922]
48170         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
48171         but no long options are defined, just return 'W'.
48173 2011-07-07  Bruno Haible  <bruno@clisp.org>
48175         Avoid literal tabs.
48176         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
48177         variable containing a tab instead of a literal tab.
48178         Reported by Jim Meyering.
48180 2011-07-07  Bruno Haible  <bruno@clisp.org>
48182         Comments.
48183         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
48185 2011-07-06  Bruno Haible  <bruno@clisp.org>
48187         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
48188         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
48189         <winsock2.h>.
48190         (rpl_fd_isset, FD_ISSET): New definitions, copied from
48191         lib/sys_socket.in.h.
48192         (close, gethostname): Hide declarations from <winsock2.h>.
48193         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48194         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
48195         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
48196         (select): Don't override if gnulib's <sys/select.h> was already
48197         included.
48198         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48199         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48200         setsockopt, shutdown, select): Tweak indentation.
48202 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48204         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
48205         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
48206         in an application that does not use the sys_select module.
48208 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
48210         poll: do not return 0 on timeout=-1
48211         * lib/poll.c: Loop with yield if no events occurred.
48213 2011-07-06  Eric Blake  <eblake@redhat.com>
48215         pthread_sigmask: always replace when not using pthread
48216         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
48217         replacement when using some threading other than pthread.  Fix
48218         logic bug.
48220 2011-07-06  Bruno Haible  <bruno@clisp.org>
48222         Comments.
48223         * m4/printf.m4: Update comments about mingw.
48225 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48227         sys_select: define sigset_t more portably
48228         * lib/sys_select.in.h: Always include <sys/types.h>, since
48229         we now need sigset_t and mingw defines it there.
48230         Include <signal.h> before split inclusion guard, to avoid
48231         mishaps on Solaris, whose <signal.h> eventually includes us.
48232         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
48233         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
48234         which come from ...
48235         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48236         gl_CHECK_TYPE_SIGSET_T.
48237         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
48238         does the real work.
48239         * modules/sys_select (Depends-on): Add 'signal'.
48241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
48242         Suggested by Bruno Haible.
48244         pselect: Use pthread_sigmask, not sigprocmask.
48245         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
48246         multithreaded apps better than sigprocmask does.
48247         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
48248         sigprocmask directly.
48250 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48252         * lib/pselect.c (pselect): Use plain name, without "rpl_".
48253         Don't #undef,  since we don't need any underlying pselect.
48254         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
48255         (Depends-on): Add select.
48256         (Link): Add $(LIBSOCKET).
48257         These changes suggested by Bruno Haible.
48259         pselect: document better
48260         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48261         * doc/posix-functions/pselect.texi (pselect): Document new module.
48263         pthread_sigmask: new module
48264         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48265         * doc/posix-functions/pthread_sigmask.texi: Document new module.
48266         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
48267         This is done only as a macro; I don't know how well that'll
48268         work for C++.  Move <sys/types.h> include before the include_next,
48269         to avoid mishap on Solaris.
48270         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
48271         * modules/signal (Makefile.am): Substitute the check's results.
48272         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
48274         test-pselect: new module
48275         * modules/pselect-tests, tests/test-pselect.c: New files.
48276         * tests/test-select.c, tests/test-sys_select-c++.cc:
48277         If TEST_PSELECT is defined, test pselect instead of testing select.
48279         * tests/test-sys_select.c (sigset_t): Test for it, too.
48280         Suggested by Bruno Haible.
48282 2011-07-05  Eric Blake  <eblake@redhat.com>
48284         snprintf: guarantee %1$d, for libintl
48285         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
48286         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48287         * doc/posix-functions/snprintf.texi (snprintf): Update.
48288         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48289         * tests/test-snprintf.c (main): Enhance test.
48290         * tests/test-vsnprintf.c (main): Likewise.
48292 2011-07-05  Jim Meyering  <meyering@redhat.com>
48294         maint: exempt stdio-read.c and stdio-write.c from the cppi check
48295         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
48296         per Bruno's request, to accommodate this idiom (no space after "#")
48297         even when the function is inside an #if block:
48298         char *
48299         gets (char *s)
48300         #undef gets
48301         {
48302           ...
48303         }
48305 2011-07-04  Jim Meyering  <meyering@redhat.com>
48307         maint: indent with spaces, not TABs, and add a rule to check this
48308         * tests/test-userspec.c: Indent with spaces, not TABs.
48309         * tests/test-argp.c: Likewise.
48310         * tests/test-c-stack2.sh: Likewise.
48311         * tests/test-parse-duration.sh: Likewise
48312         * m4/strtod.m4: Likewise.
48313         * m4/alloca.m4: Likewise.
48314         * m4/pselect.m4: Likewise.
48315         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
48317 2011-07-03  Jim Meyering  <meyering@redhat.com>
48319         maint.mk: correct omissions in prohibit_argmatch_without_use check
48320         This rule would mistakenly report that argmatch.h is included without
48321         use even when both the argmatch and invalid_arg macro were used.
48322         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
48323         of argmatch and invalid_arg.
48325 2011-07-03  Bruno Haible  <bruno@clisp.org>
48327         Comments about EINTR.
48328         * lib/safe-read.h: Explain the purpose of this module.
48329         * lib/safe-write.h: Likewise.
48330         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
48331         module.
48332         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
48333         module.
48334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48336 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48338         xnanosleep: Rewrite to use new dtotimespec module.
48339         It has the conversion code that used to be in xnanosleep.
48340         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
48341         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
48342         (TIME_T_MAX): Remove.
48343         (xnanosleep): Rewrite in terms of dtotimespec.
48344         * modules/xnanosleep (Depends-on): Add dtotimespec.
48345         Remove intprops, stdbool.
48347         timespec-add, timespec-sub: new modules
48348         * lib/timespec.h (timespec_add, timespec_sub): New decls.
48349         * lib/timespec-add.c, lib/timespec-sub.c:
48350         * modules/timespec-add, modules/timespec-sub: New files.
48352         dtotimespec: new module
48353         * lib/timespec.h (dtotimespec): New decl.
48354         * lib/dtotimespec.c, modules/dtotimespec: New files.
48356         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
48358         pselect: new module
48359         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
48360         (pselect): New decls.
48361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
48362         since the standard pselect decl uses 'restrict'.
48363         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
48364         HAVE_PSELECT, REPLACE_PSELECT.
48365         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
48366         HAVE_PSELECT, REPLACE_PSELECT.
48367         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
48369         sys_select: don't depend on sys_socket
48370         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
48371         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
48372         This fix works on GNU and GNU-like platforms, but has not been tested
48373         on native Windows.
48374         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
48375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
48376         gl_HEADER_SYS_SOCKET.
48377         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
48378         gl_PREREQ_SYS_H_WINSOCK2.
48380 2011-06-29  Eric Blake  <eblake@redhat.com>
48382         pipe2: fix C89 compile problem
48383         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
48384         Reported by Bruno Haible.
48386         pipe, pipe2: don't corrupt fd on error
48387         * lib/pipe.c (pipe): Leave fd unchanged on error.
48388         * lib/pipe2.c (pipe2): Likewise.
48389         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
48390         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48392 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
48394         mmap-anon: do not use regular expressions inadvertently
48395         * m4/mmap-anon.m4: Remove trailing period from strings sought
48396         in the output.
48398 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
48400         nanosleep: fix integer overflow problem
48401         * lib/nanosleep.c (my_usleep): Don't assume signed integer
48402         arithmetic wraps around on overflow.
48404         nanosleep: simplify carrying
48405         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
48406         first call to the underyling nanosleep, not for the last one.
48407         This doesn't fix any bugs, but it simplifies the computation of
48408         the remaining delay.  Found while auditing integer overflow issues.
48410         dup2: remove test for existence of fcntl
48411         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
48412         "#if HAVE_FCNTL", in the configure-time test program.
48413         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
48414         and therefore speeds up "configure" a bit.  Found while
48415         adding the dup2 module to Emacs.
48417 2011-06-24  Eric Blake  <eblake@redhat.com>
48419         maint.mk: enhance useless header checks
48420         * top/maint.mk (_sc_header_without_use): Check both include
48421         styles.
48422         (sc_prohibit_assert_without_use)
48423         (sc_prohibit_close_stream_without_use)
48424         (sc_prohibit_getopt_without_use)
48425         (sc_prohibit_quotearg_without_use)
48426         (sc_prohibit_quote_without_use)
48427         (sc_prohibit_long_options_without_use)
48428         (sc_prohibit_inttostr_without_use)
48429         (sc_prohibit_ignore_value_without_use)
48430         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
48431         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
48432         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
48433         (sc_prohibit_hash_pjw_without_use)
48434         (sc_prohibit_safe_read_without_use)
48435         (sc_prohibit_argmatch_without_use)
48436         (sc_prohibit_canonicalize_without_use)
48437         (sc_prohibit_root_dev_ino_without_use)
48438         (sc_prohibit_openat_without_use)
48439         (sc_prohibit_c_ctype_without_use)
48440         (sc_prohibit_signal_without_use)
48441         (sc_prohibit_stdio--_without_use)
48442         (sc_prohibit_stdio-safer_without_use)
48443         (sc_prohibit_strings_without_use)
48444         (sc_prohibit_intprops_without_use)
48445         (sc_prohibit_stddef_without_use)
48446         (sc_prohibit_xfreopen_without_use): Update clients.
48448 2011-06-24  Jim Meyering  <meyering@redhat.com>
48450         syntax-check: keep one maint.mk rule in sync with its header
48451         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
48452         of the bug Eric has just fixed, with today's commit 25e4c2ec.
48453         I prefer to avoid temporary files here, so use <(...), but that
48454         is not supported by /bin/sh, so...
48455         (SHELL): Define to /bin/bash.
48457 2011-06-24  Eric Blake  <eblake@redhat.com>
48459         maint.mk: update sc_prohibit_intprops_without_use
48460         * top/maint.mk (_intprops_names): Match recent changes.
48462 2011-06-24  Bruno Haible  <bruno@clisp.org>
48464         strerror-override: No-op tweak.
48465         * lib/strerror-override.h (strerror_override): Reorder conditions,
48466         for consistency with lib/strerror-override.c.
48468 2011-06-23  Eric Blake  <eblake@redhat.com>
48470         maint.mk: test further PATH_MAX issues
48471         * top/maint.mk (sc_prohibit_path_max_array): Rename...
48472         (sc_prohibit_path_max_allocation): ...and also test alloca.
48473         Suggested by Jim Meyering.
48475 2011-06-22  Eric Blake  <eblake@redhat.com>
48477         maint.mk: add syntax-check to avoid char[PATH_MAX]
48478         * top/maint.mk (sc_prohibit_path_max_array): New rule.
48480         stat: be robust to PATH_MAX definition
48481         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
48482         * modules/stat (Depends-on): Add verify.
48484         link: work around IRIX bug
48485         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
48486         * lib/link.c (rpl_link): Work around it.
48487         * tests/test-link.h (test_link): Enhance test.
48488         * doc/posix-functions/link.texi (link): Document the bug.
48490         getopt: silence clang warning
48491         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
48492         dereference.
48493         Reported by Gustavo Martin Domato.
48495 2011-06-22  Jim Meyering  <meyering@redhat.com>
48497         bootstrap: do not insert a blank line into each .gitignore file
48498         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
48500 2011-06-21  Eric Blake  <eblake@redhat.com>
48502         perror: test for output mismatch
48503         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
48504         perror on IRIX.
48506         strerror_r: fix OpenBSD behavior on out-of-range
48507         * lib/strerror_r.c (strerror_r): Always use maximal string.
48508         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
48510         strerror_r: fix OpenBSD behavior on 0
48511         * lib/strerror-override.c (strerror_override): Also override 0
48512         when needed.
48513         * lib/strerror-override.h (strerror_override): Likewise.
48514         * lib/strerror.c (strerror): Simplify, now that 0 override is done
48515         earlier.
48516         * lib/strerror_r.c (strerror_r): Likewise.
48517         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
48518         behavior...
48519         (gl_FUNC_STRERROR_0): ...into new macro.
48520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
48521         is overridden.
48522         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
48523         * modules/strerror-override (Files): Add strerror.m4.
48524         (configure.ac): Also provide override for 0 when needed.
48525         * doc/posix-functions/strerror.texi (strerror): Document this.
48526         * doc/posix-functions/perror.texi (perror): Likewise.
48528         perror: adjust array size
48529         * modules/perror (Depends-on): Add strerror-override.
48530         * lib/perror.c (perror): Use it to avoid magic number.
48532         strerror-override: reduce size
48533         * lib/strerror-override.c (strerror_override): Use fewer lines.
48535 2011-06-20  Bruno Haible  <bruno@clisp.org>
48537         pathmax: Ensure correct value for PATH_MAX on HP-UX.
48538         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
48540 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48542         alloca: port to compilers that can optimize like GCC 4.6.0
48543         * lib/alloca.c (find_stack_direction): New signature, taken from
48544         Autoconf git.  This works with GCC 4.6.0.  This code should never
48545         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
48546         be used with other compilers that optimize as well as GCC 4.6.0 does.
48547         (alloca): Adjust to new signature.
48548         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
48549         New macro, which patches Autoconf in a similar way.
48551         c-stack: stop worrying about stack direction
48552         * lib/c-stack.c (find_stack_direction): Remove.
48553         (segv_handler): Don't worry about stack direction growth, as it's
48554         too much of a pain to configure this correctly, given how compilers
48555         are optimizing-away our stack-growth detection code.  Instead, assume
48556         that any access to just before or just after the stack is OK.
48557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48558         Don't require AC_FUNC_ALLOCA; no longer needed.
48560 2011-06-20  Eric Blake  <eblake@redhat.com>
48562         test-stat: don't allocate PATH_MAX bytes
48563         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
48564         PATH_MAX-sized buffer.
48565         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
48566         * modules/stat-tests (Depends-on): Likewise.
48567         * tests/test-fstatat.c (includes): Drop pathmax.h.
48568         * tests/test-stat.c (includes): Likewise.
48569         Reported by Bruno Haible.
48571 2011-06-20  Bruno Haible  <bruno@clisp.org>
48573         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
48574         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
48575         * lib/float.c: New file.
48576         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
48577         REPLACE_FLOAT_LDBL.
48578         * modules/float (Files): Add lib/float.c.
48579         (configure.ac): Invoke AC_LIBOBJ.
48580         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
48582 2011-06-20  Bruno Haible  <bruno@clisp.org>
48584         Tests for module 'float'.
48585         * modules/float-tests: New file.
48586         * tests/test-float.c: New file.
48588 2011-06-19  Bruno Haible  <bruno@clisp.org>
48590         isinf: Coding style.
48591         * lib/isinf.c: Use GNU coding style.
48593 2011-06-19  Bruno Haible  <bruno@clisp.org>
48595         linkat test: Avoid test failure on AIX 7.1.
48596         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48597         * tests/test-link.h (test_link): Likewise.
48599 2011-06-19  Bruno Haible  <bruno@clisp.org>
48601         pread test: Avoid test failure on OpenBSD 4.9.
48602         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48604 2011-06-19  Bruno Haible  <bruno@clisp.org>
48606         sprintf-posix: Fix test failure on AIX 7.1.
48607         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48608         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48609         on AIX.
48610         * doc/posix-functions/fprintf.texi: Likewise.
48611         * doc/posix-functions/printf.texi: Likewise.
48612         * doc/posix-functions/snprintf.texi: Likewise.
48613         * doc/posix-functions/sprintf.texi: Likewise.
48614         * doc/posix-functions/vdprintf.texi: Likewise.
48615         * doc/posix-functions/vfprintf.texi: Likewise.
48616         * doc/posix-functions/vprintf.texi: Likewise.
48617         * doc/posix-functions/vsnprintf.texi: Likewise.
48618         * doc/posix-functions/vsprintf.texi: Likewise.
48620 2011-06-19  Bruno Haible  <bruno@clisp.org>
48622         roundl-ieee: Fix test failure on AIX 7.1.
48623         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48624         * doc/posix-functions/roundl.texi: Mention problem with negative
48625         arguments.
48627 2011-06-19  Bruno Haible  <bruno@clisp.org>
48629         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48630         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48631         * doc/posix-functions/round.texi: Mention problem with negative
48632         arguments.
48633         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48635 2011-06-19  Bruno Haible  <bruno@clisp.org>
48637         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48638         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48639         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48640         * doc/posix-functions/roundf.texi: Mention problem with negative
48641         arguments.
48642         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48644 2011-06-19  Bruno Haible  <bruno@clisp.org>
48646         ceilf-ieee: Work around bug on MacOS X 10.5.
48647         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48649         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48650         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48651         IEEE compliant, avoid compiler optimizations.
48652         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48653         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48654         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48655         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48656         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48657         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48658         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48659         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48660         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48661         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48663 2011-06-19  Bruno Haible  <bruno@clisp.org>
48665         ceilf-ieee: Work around bug on AIX 7.1.
48666         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48667         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48669 2011-06-19  Bruno Haible  <bruno@clisp.org>
48671         ceil-ieee: Work around bug on AIX 7.1.
48672         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48673         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48675 2011-06-18  Bruno Haible  <bruno@clisp.org>
48677         fsync test: Avoid test failure on MacOS X and AIX.
48678         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48679         EINVAL.
48681 2011-06-18  Bruno Haible  <bruno@clisp.org>
48683         openat, fdopendir tests: Fix link errors.
48684         * modules/openat-tests (Depends-on): Add progname.
48685         * modules/fdopendir-tests (Depends-on): Likewise.
48686         * tests/test-fchownat.c: Include progname.h.
48687         (main): Call set_program_name.
48688         * tests/test-fstatat.c: Include progname.h.
48689         (main): Call set_program_name.
48690         * tests/test-mkdirat.c: Include progname.h.
48691         (main): Call set_program_name.
48692         * tests/test-openat.c: Include progname.h.
48693         (main): Call set_program_name.
48694         * tests/test-unlinkat.c: Include progname.h.
48695         (main): Call set_program_name.
48696         * tests/test-fdopendir.c: Include progname.h.
48697         (main): Call set_program_name.
48699 2011-06-18  Bruno Haible  <bruno@clisp.org>
48701         Doc update.
48702         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48703         HP-UX.
48704         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48706 2011-06-18  Bruno Haible  <bruno@clisp.org>
48708         getcwd tests: Avoid compilation error on HP-UX 11.31.
48709         * modules/getcwd-tests (Depends-on): Add pathmax.
48710         * tests/test-getcwd.c: Include pathmax.h.
48712 2011-06-18  Bruno Haible  <bruno@clisp.org>
48714         isfinite, isinf: Fix link error on AIX 6 and 7.
48715         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48716         needed, also test the macro with a 'float' argument.
48717         * m4/isinf.m4 (gl_ISINF): Likewise.
48719 2011-06-18  Bruno Haible  <bruno@clisp.org>
48721         getloadavg: Don't clobber LIBS. Regression from previous commit.
48722         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48723         AC_CHECK_LIB from here...
48724         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48725         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48726         gl_func_getloadavg_done.
48727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48729 2011-06-18  Bruno Haible  <bruno@clisp.org>
48731         clean-temp: Improve documentation.
48732         * lib/clean-temp.h: Explain better how to use this module.
48733         Reported by John Darrington <john@darrington.wattle.id.au>.
48735 2011-06-17  Bruno Haible  <bruno@clisp.org>
48737         pread, pwrite: Avoid cc warning on AIX.
48738         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48739         (pwrite): Likewise.
48741 2011-06-17  Bruno Haible  <bruno@clisp.org>
48743         spawn-pipe tests: Fix link error.
48744         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48747 2011-06-17  Bruno Haible  <bruno@clisp.org>
48749         Tests: Remove unnecessary dependency.
48750         * modules/canonicalize-tests (Depends-on): Remove progname.
48751         * modules/chown-tests (Depends-on): Likewise.
48752         * modules/dirname-tests (Depends-on): Likewise.
48753         * modules/fdopendir-tests (Depends-on): Likewise.
48754         * modules/fdutimensat-tests (Depends-on): Likewise.
48755         * modules/hash-tests (Depends-on): Likewise.
48756         * modules/lchown-tests (Depends-on): Likewise.
48757         * modules/linkat-tests (Depends-on): Likewise.
48758         * modules/renameat-tests (Depends-on): Likewise.
48759         * modules/spawn-pipe-tests (Depends-on): Likewise.
48760         * modules/utimensat-tests (Depends-on): Likewise.
48762 2011-06-17  Bruno Haible  <bruno@clisp.org>
48764         spawn-pipe tests: Fix link error.
48765         * tests/test-spawn-pipe-child.c: Undefine fflush.
48767 2011-06-17  Bruno Haible  <bruno@clisp.org>
48769         Fix tests link errors.
48770         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48771         * modules/chown-tests (Makefile.am): Don't link test-chown with
48772         LIBINTL.
48773         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48774         LIBINTL.
48775         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48776         LIBINTL.
48777         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48778         LIBINTL.
48780 2011-06-16  Bruno Haible  <bruno@clisp.org>
48782         crypto/gc-sha1: Fix recent regression.
48783         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48784         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48786         crypto/gc-md5: Fix recent regression.
48787         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48789         crypto/gc-md4: Fix recent regression.
48790         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48791         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48793         crypto/gc-arctwo: Fix recent regression.
48794         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48795         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48797         crypto/gc-rijndael: Fix recent regression.
48798         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48799         (configure.ac): Invoke AC_LIBOBJ here.
48800         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48801         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48803         crypto/gc-hmac-sha1: Fix recent regression.
48804         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48805         (configure.ac): Invoke AC_LIBOBJ here.
48806         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48809         crypto/gc-hmac-md5: Fix recent regression.
48810         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48811         (configure.ac): Invoke AC_LIBOBJ here.
48812         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48815         crypto/gc-des: Fix recent regression.
48816         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48817         (configure.ac): Invoke AC_LIBOBJ here.
48818         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48821         crypto/gc-arcfour: Fix recent regression.
48822         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48823         (configure.ac): Invoke AC_LIBOBJ here.
48824         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48827 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48829         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48830         After the 2011-05-21 change, this macro requires
48831         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48832         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48834 2011-06-16  Bruno Haible  <bruno@clisp.org>
48836         fprintftime: Move AC_LIBOBJ invocations to module description.
48837         * m4/fprintftime.m4: Remove file.
48838         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48839         (configure.ac): Remove gl_FPRINTFTIME call.
48840         (Makefile.am): Augment lib_SOURCES.
48841         Reported by Jim Meyering.
48843 2011-06-16  Bruno Haible  <bruno@clisp.org>
48845         tmpfile-safer: Finish 2011-05-23 commit.
48846         * m4/stdio-safer.m4: Really remove file.
48847         Reported by Jim Meyering.
48849 2011-06-16  Bruno Haible  <bruno@clisp.org>
48851         syntax-check: Fix typo.
48852         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48853         printf-posix.m4.
48854         Reported by Jim Meyering.
48856 2011-06-13  Jim Meyering  <meyering@redhat.com>
48858         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48859         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48861 2011-05-23  Bruno Haible  <bruno@clisp.org>
48863         yesno: Move AC_LIBOBJ invocations to module description.
48864         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48865         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48867 2011-05-23  Bruno Haible  <bruno@clisp.org>
48869         xstrtol: Move AC_LIBOBJ invocations to module description.
48870         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48871         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48873 2011-05-23  Bruno Haible  <bruno@clisp.org>
48875         xstrtold: Move AC_LIBOBJ invocations to module description.
48876         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48877         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48879 2011-05-23  Bruno Haible  <bruno@clisp.org>
48881         xstrtod: Move AC_LIBOBJ invocations to module description.
48882         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48883         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48885 2011-05-23  Bruno Haible  <bruno@clisp.org>
48887         xnanosleep: Move AC_LIBOBJ invocations to module description.
48888         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48889         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48891 2011-05-23  Bruno Haible  <bruno@clisp.org>
48893         xgetcwd: Move AC_LIBOBJ invocations to module description.
48894         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48895         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48897 2011-05-23  Bruno Haible  <bruno@clisp.org>
48899         xalloc: Move AC_LIBOBJ invocations to module description.
48900         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48901         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48903 2011-05-23  Bruno Haible  <bruno@clisp.org>
48905         write-any-file: Move AC_LIBOBJ invocations to module description.
48906         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48907         invocation.
48908         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48910 2011-05-23  Bruno Haible  <bruno@clisp.org>
48912         utimens: Move AC_LIBOBJ invocations to module description.
48913         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48914         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48916 2011-05-23  Bruno Haible  <bruno@clisp.org>
48918         utimecmp: Move AC_LIBOBJ invocations to module description.
48919         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48920         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48922 2011-05-23  Bruno Haible  <bruno@clisp.org>
48924         userspec: Move AC_LIBOBJ invocations to module description.
48925         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48926         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48928 2011-05-23  Bruno Haible  <bruno@clisp.org>
48930         unlinkdir: Move AC_LIBOBJ invocations to module description.
48931         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48932         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48934 2011-05-23  Bruno Haible  <bruno@clisp.org>
48936         unistd-safer: Move AC_LIBOBJ invocations to module description.
48937         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48938         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48940 2011-05-23  Bruno Haible  <bruno@clisp.org>
48942         tempname: Move AC_LIBOBJ invocations to module description.
48943         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48944         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48946 2011-05-23  Bruno Haible  <bruno@clisp.org>
48948         strftime: Move AC_LIBOBJ invocations to module description.
48949         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48950         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48952 2011-05-23  Bruno Haible  <bruno@clisp.org>
48954         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48955         * m4/stdlib-safer.m4: Remove file.
48956         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48957         (configure.ac): Remove gl_STDLIB_SAFER call.
48958         (Makefile.am): Augment lib_SOURCES.
48960 2011-05-23  Bruno Haible  <bruno@clisp.org>
48962         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48963         * m4/stdio-safer.m4: Remove file.
48964         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48965         (configure.ac): Remove gl_TMPFILE_SAFER call.
48966         (Makefile.am): Augment lib_SOURCES.
48968 2011-05-23  Bruno Haible  <bruno@clisp.org>
48970         popen-safer: Move AC_LIBOBJ invocations to module description.
48971         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48972         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48973         (configure.ac): Remove gl_POPEN_SAFER call.
48974         (Makefile.am): Augment lib_SOURCES.
48976 2011-05-23  Bruno Haible  <bruno@clisp.org>
48978         freopen-safer: Move AC_LIBOBJ invocations to module description.
48979         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48980         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48981         (configure.ac): Remove gl_FREOPEN_SAFER call.
48982         (Makefile.am): Augment lib_SOURCES.
48984 2011-05-23  Bruno Haible  <bruno@clisp.org>
48986         fopen-safer: Move AC_LIBOBJ invocations to module description.
48987         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48988         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48989         (configure.ac): Remove gl_FOPEN_SAFER call.
48990         (Makefile.am): Augment lib_SOURCES.
48992 2011-05-23  Bruno Haible  <bruno@clisp.org>
48994         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48995         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48996         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48998 2011-05-23  Bruno Haible  <bruno@clisp.org>
49000         crypto/sha256: Move AC_LIBOBJ invocations to module description.
49001         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
49002         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
49004 2011-05-23  Bruno Haible  <bruno@clisp.org>
49006         crypto/sha1: Move AC_LIBOBJ invocations to module description.
49007         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
49008         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
49010 2011-05-23  Bruno Haible  <bruno@clisp.org>
49012         settime: Move AC_LIBOBJ invocations to module description.
49013         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
49014         * modules/settime (Makefile.am): Augment lib_SOURCES.
49016 2011-05-23  Bruno Haible  <bruno@clisp.org>
49018         savedir: Move AC_LIBOBJ invocations to module description.
49019         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
49020         * modules/savedir (Makefile.am): Augment lib_SOURCES.
49022 2011-05-23  Bruno Haible  <bruno@clisp.org>
49024         save-cwd: Move AC_LIBOBJ invocations to module description.
49025         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
49026         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
49028 2011-05-23  Bruno Haible  <bruno@clisp.org>
49030         same: Move AC_LIBOBJ invocations to module description.
49031         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
49032         * modules/same (Makefile.am): Augment lib_SOURCES.
49034 2011-05-23  Bruno Haible  <bruno@clisp.org>
49036         safe-write: Move AC_LIBOBJ invocations to module description.
49037         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
49038         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
49039         instead of gl_SAFE_WRITE.
49040         (Makefile.am): Augment lib_SOURCES.
49042 2011-05-23  Bruno Haible  <bruno@clisp.org>
49044         safe-read: Move AC_LIBOBJ invocations to module description.
49045         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
49046         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
49047         of gl_SAFE_READ.
49048         (Makefile.am): Augment lib_SOURCES.
49050 2011-05-23  Bruno Haible  <bruno@clisp.org>
49052         safe-alloc: Move AC_LIBOBJ invocations to module description.
49053         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
49054         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
49056 2011-05-23  Bruno Haible  <bruno@clisp.org>
49058         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
49059         * m4/rijndael.m4: Remove file.
49060         * modules/crypto/rijndael (Files): Remove it.
49061         (configure.ac): Remove gl_RIJNDAEL call.
49062         (Makefile.am): Augment lib_SOURCES.
49064 2011-05-23  Bruno Haible  <bruno@clisp.org>
49066         readtokens: Move AC_LIBOBJ invocations to module description.
49067         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
49068         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
49070 2011-05-23  Bruno Haible  <bruno@clisp.org>
49072         read-file: Move AC_LIBOBJ invocations to module description.
49073         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
49074         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
49075         of gl_FUNC_READ_FILE.
49076         (Makefile.am): Augment lib_SOURCES.
49078 2011-05-23  Bruno Haible  <bruno@clisp.org>
49080         quotearg: Move AC_LIBOBJ invocations to module description.
49081         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
49082         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
49084 2011-05-23  Bruno Haible  <bruno@clisp.org>
49086         quote: Move AC_LIBOBJ invocations to module description.
49087         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
49088         * modules/quote (Makefile.am): Augment lib_SOURCES.
49090 2011-05-23  Bruno Haible  <bruno@clisp.org>
49092         posixver: Move AC_LIBOBJ invocations to module description.
49093         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
49094         * modules/posixver (Makefile.am): Augment lib_SOURCES.
49096 2011-05-23  Bruno Haible  <bruno@clisp.org>
49098         posixtm: Move AC_LIBOBJ invocations to module description.
49099         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
49100         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
49102 2011-05-23  Bruno Haible  <bruno@clisp.org>
49104         physmem: Move AC_LIBOBJ invocations to module description.
49105         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
49106         * modules/physmem (Makefile.am): Augment lib_SOURCES.
49108 2011-05-23  Bruno Haible  <bruno@clisp.org>
49110         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
49111         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
49112         invocation.
49113         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
49115 2011-05-23  Bruno Haible  <bruno@clisp.org>
49117         mpsort: Move AC_LIBOBJ invocations to module description.
49118         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
49119         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
49121 2011-05-23  Bruno Haible  <bruno@clisp.org>
49123         modechange: Move AC_LIBOBJ invocations to module description.
49124         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
49125         * modules/modechange (Makefile.am): Augment lib_SOURCES.
49127 2011-05-23  Bruno Haible  <bruno@clisp.org>
49129         mkdir-p: Move AC_LIBOBJ invocations to module description.
49130         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
49131         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
49133 2011-05-23  Bruno Haible  <bruno@clisp.org>
49135         mkancesdirs: Move AC_LIBOBJ invocations to module description.
49136         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
49137         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
49139 2011-05-23  Bruno Haible  <bruno@clisp.org>
49141         mgetgroups: Move AC_LIBOBJ invocations to module description.
49142         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
49143         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
49145 2011-05-23  Bruno Haible  <bruno@clisp.org>
49147         memxor: Move AC_LIBOBJ invocations to module description.
49148         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
49149         * modules/memxor (Makefile.am): Augment lib_SOURCES.
49151 2011-05-23  Bruno Haible  <bruno@clisp.org>
49153         memcoll: Move AC_LIBOBJ invocations to module description.
49154         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
49155         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
49157 2011-05-23  Bruno Haible  <bruno@clisp.org>
49159         memcasecmp: Move AC_LIBOBJ invocations to module description.
49160         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
49161         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
49163 2011-05-23  Bruno Haible  <bruno@clisp.org>
49165         crypto/md5: Move AC_LIBOBJ invocations to module description.
49166         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
49167         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
49169 2011-05-23  Bruno Haible  <bruno@clisp.org>
49171         crypto/md4: Move AC_LIBOBJ invocations to module description.
49172         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
49173         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
49175 2011-05-23  Bruno Haible  <bruno@clisp.org>
49177         crypto/md2: Move AC_LIBOBJ invocations to module description.
49178         * m4/md2.m4: Remove file.
49179         * modules/crypto/md2 (Files): Remove it.
49180         (configure.ac): Remove gl_MD2 call.
49181         (Makefile.am): Augment lib_SOURCES.
49183 2011-05-23  Bruno Haible  <bruno@clisp.org>
49185         long-options: Move AC_LIBOBJ invocations to module description.
49186         * m4/long-options.m4: Remove file.
49187         * modules/long-options (Files): Remove it.
49188         (configure.ac): Remove gl_LONG_OPTIONS call.
49189         (Makefile.am): Augment lib_SOURCES.
49191 2011-05-23  Bruno Haible  <bruno@clisp.org>
49193         i-ring: Move AC_LIBOBJ invocations to module description.
49194         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
49195         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
49197 2011-05-23  Bruno Haible  <bruno@clisp.org>
49199         idcache: Move AC_LIBOBJ invocations to module description.
49200         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
49201         * modules/idcache (Makefile.am): Augment lib_SOURCES.
49203 2011-05-23  Bruno Haible  <bruno@clisp.org>
49205         human: Move AC_LIBOBJ invocations to module description.
49206         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
49207         * modules/human (Makefile.am): Augment lib_SOURCES.
49209 2011-05-23  Bruno Haible  <bruno@clisp.org>
49211         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
49212         * m4/hmac-sha1.m4: Remove file.
49213         * modules/crypto/hmac-sha1 (Files): Remove it.
49214         (configure.ac): Remove gl_HMAC_SHA1 call.
49215         (Makefile.am): Augment lib_SOURCES.
49217 2011-05-23  Bruno Haible  <bruno@clisp.org>
49219         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
49220         * m4/hmac-md5.m4: Remove file.
49221         * modules/crypto/hmac-md5 (Files): Remove it.
49222         (configure.ac): Remove gl_HMAC_MD5 call.
49223         (Makefile.am): Augment lib_SOURCES.
49225 2011-05-23  Bruno Haible  <bruno@clisp.org>
49227         hash: Move AC_LIBOBJ invocations to module description.
49228         * m4/hash.m4: Remove file.
49229         * modules/hash (Files): Remove it.
49230         (configure.ac): Remove gl_HASH call.
49231         (Makefile.am): Augment lib_SOURCES.
49233 2011-05-23  Bruno Haible  <bruno@clisp.org>
49235         hard-locale: Move AC_LIBOBJ invocations to module description.
49236         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
49237         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
49239 2011-05-23  Bruno Haible  <bruno@clisp.org>
49241         getugroups: Move AC_LIBOBJ invocations to module description.
49242         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
49243         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
49245 2011-05-23  Bruno Haible  <bruno@clisp.org>
49247         gettime: Move AC_LIBOBJ invocations to module description.
49248         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
49249         * modules/gettime (Makefile.am): Augment lib_SOURCES.
49251 2011-05-23  Bruno Haible  <bruno@clisp.org>
49253         getndelim2: Move AC_LIBOBJ invocations to module description.
49254         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
49255         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
49257 2011-05-23  Bruno Haible  <bruno@clisp.org>
49259         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
49260         * m4/gc-pbkdf2-sha1.m4: Remove file.
49261         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
49262         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
49263         (Makefile.am): Augment lib_SOURCES.
49265 2011-05-23  Bruno Haible  <bruno@clisp.org>
49267         fts: Move AC_LIBOBJ invocations to module description.
49268         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
49269         * modules/fts (configure.ac): ... to here.
49271 2011-05-23  Bruno Haible  <bruno@clisp.org>
49273         file-type: Move AC_LIBOBJ invocations to module description.
49274         * m4/file-type.m4: Remove file.
49275         * modules/file-type (Files): Remove it.
49276         (configure.ac): Remove gl_FILE_TYPE call.
49277         (Makefile.am): Augment lib_SOURCES.
49279 2011-05-23  Bruno Haible  <bruno@clisp.org>
49281         filenamecat*: Respect rules for use of AC_LIBOBJ.
49282         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
49283         Remove AC_LIBOBJ invocation.
49284         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
49285         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
49287 2011-05-23  Bruno Haible  <bruno@clisp.org>
49289         filemode: Move AC_LIBOBJ invocations to module description.
49290         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
49291         * modules/filemode (Makefile.am): Augment lib_SOURCES.
49293 2011-05-23  Bruno Haible  <bruno@clisp.org>
49295         openat-safer: Move AC_LIBOBJ invocations to module description.
49296         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
49297         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
49299 2011-05-23  Bruno Haible  <bruno@clisp.org>
49301         fcntl-safer: Move AC_LIBOBJ invocations to module description.
49302         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
49303         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
49305 2011-05-23  Bruno Haible  <bruno@clisp.org>
49307         exclude: Move AC_LIBOBJ invocations to module description.
49308         * m4/exclude.m4: Remove file.
49309         * modules/exclude (Files): Remove it.
49310         (configure.ac): Remove gl_EXCLUDE call.
49311         (Makefile.am): Augment lib_SOURCES.
49313 2011-05-23  Bruno Haible  <bruno@clisp.org>
49315         dirname*: Respect rules for use of AC_LIBOBJ.
49316         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
49317         invocations.
49318         * modules/dirname (Makefile.am): Augment lib_SOURCES.
49319         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
49321 2011-05-23  Bruno Haible  <bruno@clisp.org>
49323         dirent-safer: Move AC_LIBOBJ invocations to module description.
49324         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
49325         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
49327 2011-05-23  Bruno Haible  <bruno@clisp.org>
49329         crypto/des: Move AC_LIBOBJ invocations to module description.
49330         * m4/des.m4: Remove file.
49331         * modules/crypto/des (Files): Remove it.
49332         (configure.ac): Remove gl_DES call.
49333         (Makefile.am): Augment lib_SOURCES.
49335 2011-05-23  Bruno Haible  <bruno@clisp.org>
49337         cycle-check: Move AC_LIBOBJ invocations to module description.
49338         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
49339         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
49341 2011-05-23  Bruno Haible  <bruno@clisp.org>
49343         c-strtold: Move AC_LIBOBJ invocations to module description.
49344         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
49345         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
49347 2011-05-23  Bruno Haible  <bruno@clisp.org>
49349         c-strtod: Move AC_LIBOBJ invocations to module description.
49350         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
49351         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
49353 2011-05-23  Bruno Haible  <bruno@clisp.org>
49355         crc: Move AC_LIBOBJ invocations to module description.
49356         * m4/crc.m4: Remove file.
49357         * modules/crc (Files): Remove it.
49358         (configure.ac): Remove gl_CRC call.
49359         (Makefile.am): Augment lib_SOURCES.
49361 2011-05-23  Bruno Haible  <bruno@clisp.org>
49363         close-stream: Move AC_LIBOBJ invocations to module description.
49364         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
49365         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
49367 2011-05-23  Bruno Haible  <bruno@clisp.org>
49369         closeout: Move AC_LIBOBJ invocations to module description.
49370         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
49371         * modules/closeout (Makefile.am): Augment lib_SOURCES.
49373 2011-05-23  Bruno Haible  <bruno@clisp.org>
49375         closein: Move AC_LIBOBJ invocations to module description.
49376         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
49377         * modules/closein (Makefile.am): Augment lib_SOURCES.
49379 2011-05-23  Bruno Haible  <bruno@clisp.org>
49381         cloexec: Move AC_LIBOBJ invocations to module description.
49382         * m4/cloexec.m4: Remove file.
49383         * modules/cloexec (Files): Remove it.
49384         (configure.ac): Remove gl_CLOEXEC call.
49385         (Makefile.am): Augment lib_SOURCES.
49387 2011-05-23  Bruno Haible  <bruno@clisp.org>
49389         check-version: Move AC_LIBOBJ invocations to module description.
49390         * m4/check-version.m4: Remove file.
49391         * modules/check-version (Files): Remove it.
49392         (configure.ac): Remove gl_CHECK_VERSION call.
49393         (Makefile.am): Augment lib_SOURCES.
49395 2011-05-23  Bruno Haible  <bruno@clisp.org>
49397         chdir-safer: Move AC_LIBOBJ invocations to module description.
49398         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
49399         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
49401 2011-05-23  Bruno Haible  <bruno@clisp.org>
49403         canonicalize: Move AC_LIBOBJ invocations to module description.
49404         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
49405         AC_LIBOBJ invocation.
49406         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
49408 2011-05-23  Bruno Haible  <bruno@clisp.org>
49410         canon-host: Move AC_LIBOBJ invocations to module description.
49411         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
49412         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
49413         instead of gl_CANON_HOST.
49414         (Makefile.am): Augment lib_SOURCES.
49416 2011-05-23  Bruno Haible  <bruno@clisp.org>
49418         backupfile: Move AC_LIBOBJ invocations to module description.
49419         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
49420         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
49422 2011-05-23  Bruno Haible  <bruno@clisp.org>
49424         argmatch: Move AC_LIBOBJ invocations to module description.
49425         * m4/argmatch.m4: Remove file.
49426         * modules/argmatch (Files): Remove it.
49427         (configure.ac): Remove gl_ARGMATCH call.
49428         (Makefile.am): Augment lib_SOURCES.
49430 2011-05-23  Bruno Haible  <bruno@clisp.org>
49432         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
49433         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
49434         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
49436 2011-05-23  Bruno Haible  <bruno@clisp.org>
49438         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
49439         * m4/arcfour.m4: Remove file.
49440         * modules/crypto/arcfour (Files): Remove it.
49441         (configure.ac): Remove gl_ARCFOUR call.
49442         (Makefile.am): Augment lib_SOURCES.
49444 2011-05-22  Bruno Haible  <bruno@clisp.org>
49446         write: Move AC_LIBOBJ invocations to module description.
49447         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
49448         * modules/write (configure.ac): ... to here.
49450 2011-05-22  Bruno Haible  <bruno@clisp.org>
49452         wmemset: Move AC_LIBOBJ invocations to module description.
49453         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
49454         here...
49455         * modules/wmemset (configure.ac): ... to here.
49457 2011-05-22  Bruno Haible  <bruno@clisp.org>
49459         wmemmove: Move AC_LIBOBJ invocations to module description.
49460         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
49461         here...
49462         * modules/wmemmove (configure.ac): ... to here.
49464 2011-05-22  Bruno Haible  <bruno@clisp.org>
49466         wmemcpy: Move AC_LIBOBJ invocations to module description.
49467         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
49468         here...
49469         * modules/wmemcpy (configure.ac): ... to here.
49471 2011-05-22  Bruno Haible  <bruno@clisp.org>
49473         wmemcmp: Move AC_LIBOBJ invocations to module description.
49474         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
49475         here...
49476         * modules/wmemcmp (configure.ac): ... to here.
49478 2011-05-22  Bruno Haible  <bruno@clisp.org>
49480         wmemchr: Move AC_LIBOBJ invocations to module description.
49481         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
49482         here...
49483         * modules/wmemchr (configure.ac): ... to here.
49485 2011-05-22  Bruno Haible  <bruno@clisp.org>
49487         wcswidth: Move AC_LIBOBJ invocations to module description.
49488         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
49489         here...
49490         * modules/wcswidth (configure.ac): ... to here.
49492 2011-05-22  Bruno Haible  <bruno@clisp.org>
49494         wcwidth: Respect rules for use of AC_LIBOBJ.
49495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
49496         invocation from here...
49497         * modules/wcwidth (configure.ac): ... to here.
49498         (Depends-on): Update conditions.
49500 2011-05-22  Bruno Haible  <bruno@clisp.org>
49502         wctype: Move AC_LIBOBJ invocations to module description.
49503         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
49504         invocation from here...
49505         * modules/wctype (configure.ac): ... to here.
49506         (Depends-on): Update conditions.
49508 2011-05-22  Bruno Haible  <bruno@clisp.org>
49510         wctrans: Move AC_LIBOBJ invocations to module description.
49511         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
49512         invocation from here...
49513         * modules/wctrans (configure.ac): ... to here.
49515 2011-05-22  Bruno Haible  <bruno@clisp.org>
49517         wctomb: Move AC_LIBOBJ invocations to module description.
49518         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
49519         invocations from here...
49520         * modules/wctomb (configure.ac): ... to here.
49522 2011-05-22  Bruno Haible  <bruno@clisp.org>
49524         wctob: Move AC_LIBOBJ invocations to module description.
49525         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
49526         gl_PREREQ_WCTOB invocations from here...
49527         * modules/wctob (configure.ac): ... to here.
49528         (Depends-on): Update conditions.
49530 2011-05-22  Bruno Haible  <bruno@clisp.org>
49532         wcsxfrm: Move AC_LIBOBJ invocations to module description.
49533         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
49534         here...
49535         * modules/wcsxfrm (configure.ac): ... to here.
49537 2011-05-22  Bruno Haible  <bruno@clisp.org>
49539         wcstok: Move AC_LIBOBJ invocations to module description.
49540         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
49541         * modules/wcstok (configure.ac): ... to here.
49543 2011-05-22  Bruno Haible  <bruno@clisp.org>
49545         wcsstr: Move AC_LIBOBJ invocations to module description.
49546         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
49547         * modules/wcsstr (configure.ac): ... to here.
49549 2011-05-22  Bruno Haible  <bruno@clisp.org>
49551         wcsspn: Move AC_LIBOBJ invocations to module description.
49552         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
49553         * modules/wcsspn (configure.ac): ... to here.
49555 2011-05-22  Bruno Haible  <bruno@clisp.org>
49557         wcsrtombs: Move AC_LIBOBJ invocations to module description.
49558         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
49559         gl_PREREQ_WCSRTOMBS invocations from here...
49560         * modules/wcsrtombs (configure.ac): ... to here.
49562 2011-05-22  Bruno Haible  <bruno@clisp.org>
49564         wcsrchr: Move AC_LIBOBJ invocations to module description.
49565         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
49566         here...
49567         * modules/wcsrchr (configure.ac): ... to here.
49569 2011-05-22  Bruno Haible  <bruno@clisp.org>
49571         wcspbrk: Move AC_LIBOBJ invocations to module description.
49572         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
49573         here...
49574         * modules/wcspbrk (configure.ac): ... to here.
49576 2011-05-22  Bruno Haible  <bruno@clisp.org>
49578         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
49579         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
49580         gl_PREREQ_WCSNRTOMBS invocations from here...
49581         * modules/wcsnrtombs (configure.ac): ... to here.
49583 2011-05-22  Bruno Haible  <bruno@clisp.org>
49585         wcsnlen: Move AC_LIBOBJ invocations to module description.
49586         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49587         here...
49588         * modules/wcsnlen (configure.ac): ... to here.
49590 2011-05-22  Bruno Haible  <bruno@clisp.org>
49592         wcsncpy: Move AC_LIBOBJ invocations to module description.
49593         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49594         here...
49595         * modules/wcsncpy (configure.ac): ... to here.
49597 2011-05-22  Bruno Haible  <bruno@clisp.org>
49599         wcsncmp: Move AC_LIBOBJ invocations to module description.
49600         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49601         here...
49602         * modules/wcsncmp (configure.ac): ... to here.
49604 2011-05-22  Bruno Haible  <bruno@clisp.org>
49606         wcsncat: Move AC_LIBOBJ invocations to module description.
49607         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49608         here...
49609         * modules/wcsncat (configure.ac): ... to here.
49611 2011-05-22  Bruno Haible  <bruno@clisp.org>
49613         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49614         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49615         from here...
49616         * modules/wcsncasecmp (configure.ac): ... to here.
49618 2011-05-22  Bruno Haible  <bruno@clisp.org>
49620         wcslen: Move AC_LIBOBJ invocations to module description.
49621         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49622         * modules/wcslen (configure.ac): ... to here.
49624 2011-05-22  Bruno Haible  <bruno@clisp.org>
49626         wcsdup: Move AC_LIBOBJ invocations to module description.
49627         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49628         * modules/wcsdup (configure.ac): ... to here.
49630 2011-05-22  Bruno Haible  <bruno@clisp.org>
49632         wcscspn: Move AC_LIBOBJ invocations to module description.
49633         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49634         here...
49635         * modules/wcscspn (configure.ac): ... to here.
49637 2011-05-22  Bruno Haible  <bruno@clisp.org>
49639         wcscpy: Move AC_LIBOBJ invocations to module description.
49640         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49641         * modules/wcscpy (configure.ac): ... to here.
49643 2011-05-22  Bruno Haible  <bruno@clisp.org>
49645         wcscoll: Move AC_LIBOBJ invocations to module description.
49646         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49647         here...
49648         * modules/wcscoll (configure.ac): ... to here.
49650 2011-05-22  Bruno Haible  <bruno@clisp.org>
49652         wcscmp: Move AC_LIBOBJ invocations to module description.
49653         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49654         * modules/wcscmp (configure.ac): ... to here.
49656 2011-05-22  Bruno Haible  <bruno@clisp.org>
49658         wcschr: Move AC_LIBOBJ invocations to module description.
49659         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49660         * modules/wcschr (configure.ac): ... to here.
49662 2011-05-22  Bruno Haible  <bruno@clisp.org>
49664         wcscat: Move AC_LIBOBJ invocations to module description.
49665         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49666         * modules/wcscat (configure.ac): ... to here.
49668 2011-05-22  Bruno Haible  <bruno@clisp.org>
49670         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49671         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49672         here...
49673         * modules/wcscasecmp (configure.ac): ... to here.
49675 2011-05-22  Bruno Haible  <bruno@clisp.org>
49677         wcrtomb: Move AC_LIBOBJ invocations to module description.
49678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49679         invocations from here...
49680         * modules/wcrtomb (configure.ac): ... to here.
49682 2011-05-22  Bruno Haible  <bruno@clisp.org>
49684         wcpncpy: Move AC_LIBOBJ invocations to module description.
49685         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49686         here...
49687         * modules/wcpncpy (configure.ac): ... to here.
49689 2011-05-22  Bruno Haible  <bruno@clisp.org>
49691         wcpcpy: Move AC_LIBOBJ invocations to module description.
49692         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49693         * modules/wcpcpy (configure.ac): ... to here.
49695 2011-05-22  Bruno Haible  <bruno@clisp.org>
49697         waitpid: Move AC_LIBOBJ invocations to module description.
49698         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49699         invocation from here...
49700         * modules/waitpid (configure.ac): ... to here.
49702 2011-05-22  Bruno Haible  <bruno@clisp.org>
49704         utimensat: Move AC_LIBOBJ invocations to module description.
49705         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49706         here...
49707         * modules/utimensat (configure.ac): ... to here.
49709 2011-05-22  Bruno Haible  <bruno@clisp.org>
49711         usleep: Move AC_LIBOBJ invocations to module description.
49712         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49713         here...
49714         * modules/usleep (configure.ac): ... to here.
49716 2011-05-22  Bruno Haible  <bruno@clisp.org>
49718         unlockpt: Move AC_LIBOBJ invocations to module description.
49719         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49720         gl_PREREQ_UNLOCKPT invocations from here...
49721         * modules/unlockpt (configure.ac): ... to here.
49723 2011-05-22  Bruno Haible  <bruno@clisp.org>
49725         unlink: Respect rules for use of AC_LIBOBJ.
49726         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49727         * modules/unlink (configure.ac): ... to here.
49729 2011-05-22  Bruno Haible  <bruno@clisp.org>
49731         uname: Move AC_LIBOBJ invocations to module description.
49732         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49734         here...
49735         * modules/uname (configure.ac): ... to here.
49737 2011-05-22  Bruno Haible  <bruno@clisp.org>
49739         ttyname_r: Move AC_LIBOBJ invocations to module description.
49740         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49741         gl_PREREQ_TTYNAME_R invocations from here...
49742         * modules/ttyname_r (configure.ac): ... to here.
49744 2011-05-22  Bruno Haible  <bruno@clisp.org>
49746         tsearch: Move AC_LIBOBJ invocations to module description.
49747         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49748         invocations from here...
49749         * modules/tsearch (configure.ac): ... to here.
49751 2011-05-22  Bruno Haible  <bruno@clisp.org>
49753         towctrans: Move AC_LIBOBJ invocations to module description.
49754         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49755         AC_LIBOBJ invocation from here...
49756         * modules/towctrans (configure.ac): ... to here.
49758 2011-05-22  Bruno Haible  <bruno@clisp.org>
49760         tmpfile: Move AC_LIBOBJ invocations to module description.
49761         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49762         invocations from here...
49763         * modules/tmpfile (configure.ac): ... to here.
49765 2011-05-22  Bruno Haible  <bruno@clisp.org>
49767         times: Move AC_LIBOBJ invocations to module description.
49768         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49769         * modules/times (configure.ac): ... to here.
49771 2011-05-22  Bruno Haible  <bruno@clisp.org>
49773         time_r: Move AC_LIBOBJ invocations to module description.
49774         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49775         invocations from here...
49776         * modules/time_r (configure.ac): ... to here.
49778 2011-05-22  Bruno Haible  <bruno@clisp.org>
49780         timegm: Move AC_LIBOBJ invocations to module description.
49781         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49782         invocations from here...
49783         * modules/timegm (configure.ac): ... to here.
49785 2011-05-22  Bruno Haible  <bruno@clisp.org>
49787         tcgetsid: Move AC_LIBOBJ invocations to module description.
49788         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49789         and gl_PREREQ_TCGETSID invocations from here...
49790         * modules/tcgetsid (configure.ac): ... to here.
49791         (Depends-on): Update conditions.
49793 2011-05-22  Bruno Haible  <bruno@clisp.org>
49795         symlinkat: Move AC_LIBOBJ invocations to module description.
49796         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49797         here...
49798         * modules/symlinkat (configure.ac): ... to here.
49800 2011-05-22  Bruno Haible  <bruno@clisp.org>
49802         symlink: Move AC_LIBOBJ invocations to module description.
49803         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49804         here...
49805         * modules/symlink (configure.ac): ... to here.
49807 2011-05-22  Bruno Haible  <bruno@clisp.org>
49809         strverscmp: Move AC_LIBOBJ invocations to module description.
49810         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49812         from here...
49813         * modules/strverscmp (configure.ac): ... to here.
49815 2011-05-22  Bruno Haible  <bruno@clisp.org>
49817         strtok_r: Move AC_LIBOBJ invocations to module description.
49818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49819         and gl_PREREQ_STRTOK_R invocations from here...
49820         * modules/strtok_r (configure.ac): ... to here.
49821         (Depends-on): Update conditions.
49823 2011-05-22  Bruno Haible  <bruno@clisp.org>
49825         strtoumax: Move AC_LIBOBJ invocations to module description.
49826         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49828         from here...
49829         * modules/strtoumax (configure.ac): ... to here.
49831 2011-05-22  Bruno Haible  <bruno@clisp.org>
49833         strtoimax: Move AC_LIBOBJ invocations to module description.
49834         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49836         from here...
49837         * modules/strtoimax (configure.ac): ... to here.
49839 2011-05-22  Bruno Haible  <bruno@clisp.org>
49841         strtoull: Move AC_LIBOBJ invocations to module description.
49842         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49844         from here...
49845         * modules/strtoull (configure.ac): ... to here.
49847 2011-05-22  Bruno Haible  <bruno@clisp.org>
49849         strtoll: Move AC_LIBOBJ invocations to module description.
49850         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49852         here...
49853         * modules/strtoll (configure.ac): ... to here.
49855 2011-05-22  Bruno Haible  <bruno@clisp.org>
49857         strtoul: Move AC_LIBOBJ invocations to module description.
49858         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49859         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49860         * modules/strtoul (configure.ac): ... to here.
49862 2011-05-22  Bruno Haible  <bruno@clisp.org>
49864         strtol: Move AC_LIBOBJ invocations to module description.
49865         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49866         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49867         * modules/strtol (configure.ac): ... to here.
49869 2011-05-22  Bruno Haible  <bruno@clisp.org>
49871         strtod: Move AC_LIBOBJ invocations to module description.
49872         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49873         invocations from here...
49874         * modules/strtod (configure.ac): ... to here.
49876 2011-05-22  Bruno Haible  <bruno@clisp.org>
49878         strstr*: Move AC_LIBOBJ invocations to module description.
49879         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49880         invocations from here...
49881         * modules/strstr-simple (configure.ac): ... to here.
49882         * modules/strstr (configure.ac): ... and here.
49884 2011-05-22  Bruno Haible  <bruno@clisp.org>
49886         strsignal: Move AC_LIBOBJ invocations to module description.
49887         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49888         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49889         * modules/strsignal (configure.ac): ... to here.
49890         (Depends-on): Update conditions.
49892 2011-05-22  Bruno Haible  <bruno@clisp.org>
49894         strsep: Move AC_LIBOBJ invocations to module description.
49895         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49897         here...
49898         * modules/strsep (configure.ac): ... to here.
49900 2011-05-22  Bruno Haible  <bruno@clisp.org>
49902         strptime: Move AC_LIBOBJ invocations to module description.
49903         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49904         gl_PREREQ_STRPTIME invocations from here...
49905         * modules/strptime (configure.ac): ... to here.
49907 2011-05-22  Bruno Haible  <bruno@clisp.org>
49909         strpbrk: Move AC_LIBOBJ invocations to module description.
49910         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49912         here...
49913         * modules/strpbrk (configure.ac): ... to here.
49915 2011-05-22  Bruno Haible  <bruno@clisp.org>
49917         strnlen: Move AC_LIBOBJ invocations to module description.
49918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49919         invocations from here...
49920         * modules/strnlen (configure.ac): ... to here.
49922 2011-05-22  Bruno Haible  <bruno@clisp.org>
49924         strndup: Move AC_LIBOBJ invocations to module description.
49925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49926         invocations from here...
49927         * modules/strndup (configure.ac): ... to here.
49928         (Depends-on): Update conditions.
49930 2011-05-22  Bruno Haible  <bruno@clisp.org>
49932         strncat: Move AC_LIBOBJ invocations to module description.
49933         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49934         invocations from here...
49935         * modules/strncat (configure.ac): ... to here.
49937 2011-05-22  Bruno Haible  <bruno@clisp.org>
49939         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49940         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49941         invocations from here...
49942         * modules/strdup (configure.ac): ... to here.
49943         * modules/strdup-posix (configure.ac): ... and here.
49945 2011-05-22  Bruno Haible  <bruno@clisp.org>
49947         strcspn: Move AC_LIBOBJ invocations to module description.
49948         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49950         here...
49951         * modules/strcspn (configure.ac): ... to here.
49953 2011-05-22  Bruno Haible  <bruno@clisp.org>
49955         strchrnul: Move AC_LIBOBJ invocations to module description.
49956         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49957         gl_PREREQ_STRCHRNUL invocations from here...
49958         * modules/strchrnul (configure.ac): ... to here.
49960 2011-05-22  Bruno Haible  <bruno@clisp.org>
49962         strcasestr*: Move AC_LIBOBJ invocations to module description.
49963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49964         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49965         * modules/strcasestr-simple (configure.ac): ... to here.
49966         * modules/strcasestr (configure.ac): ... and here.
49968 2011-05-22  Bruno Haible  <bruno@clisp.org>
49970         strcase: Move AC_LIBOBJ invocations to module description.
49971         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49972         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49973         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49974         gl_PREREQ_STRNCASECMP invocations from here...
49975         * modules/strcase (configure.ac): ... to here.
49977 2011-05-22  Bruno Haible  <bruno@clisp.org>
49979         stpncpy: Move AC_LIBOBJ invocations to module description.
49980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49981         here...
49982         * modules/stpncpy (configure.ac): ... to here.
49984 2011-05-22  Bruno Haible  <bruno@clisp.org>
49986         stpcpy: Move AC_LIBOBJ invocations to module description.
49987         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49989         here...
49990         * modules/stpcpy (configure.ac): ... to here.
49992 2011-05-21  Bruno Haible  <bruno@clisp.org>
49994         stat: Move AC_LIBOBJ invocations to module description.
49995         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49996         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49997         here...
49998         * modules/stat (configure.ac): ... to here.
50000 2011-05-21  Bruno Haible  <bruno@clisp.org>
50002         sleep: Move AC_LIBOBJ invocations to module description.
50003         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
50004         * modules/sleep (configure.ac): ... to here.
50006 2011-05-21  Bruno Haible  <bruno@clisp.org>
50008         signbit: Move AC_LIBOBJ invocations to module description.
50009         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
50010         * modules/signbit (configure.ac): ... to here.
50012 2011-05-21  Bruno Haible  <bruno@clisp.org>
50014         sigprocmask: Move AC_LIBOBJ invocations to module description.
50015         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
50016         gl_PREREQ_SIGPROMASK invocations from here...
50017         * modules/sigprocmask (configure.ac): ... to here.
50019 2011-05-21  Bruno Haible  <bruno@clisp.org>
50021         sigaction: Move AC_LIBOBJ invocations to module description.
50022         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
50023         gl_PREREQ_SIGACTION invocations from here...
50024         * modules/sigaction (configure.ac): ... to here.
50026 2011-05-21  Bruno Haible  <bruno@clisp.org>
50028         sig2str: Move AC_LIBOBJ invocations to module description.
50029         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
50030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
50031         here...
50032         * modules/sig2str (configure.ac): ... to here.
50034 2011-05-21  Bruno Haible  <bruno@clisp.org>
50036         setlocale: Move AC_LIBOBJ invocations to module description.
50037         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
50038         gl_PREREQ_SETLOCALE invocations from here...
50039         * modules/setlocale (configure.ac): ... to here.
50041 2011-05-21  Bruno Haible  <bruno@clisp.org>
50043         unsetenv: Move AC_LIBOBJ invocations to module description.
50044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
50045         and gl_PREREQ_UNSETENV invocations from here...
50046         * modules/unsetenv (configure.ac): ... to here.
50047         (Depends-on): Update.
50049 2011-05-21  Bruno Haible  <bruno@clisp.org>
50051         setenv: Move AC_LIBOBJ invocations to module description.
50052         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
50053         here...
50054         * modules/setenv (configure.ac): ... to here.
50056 2011-05-21  Bruno Haible  <bruno@clisp.org>
50058         selinux-h: Move AC_LIBOBJ invocations to module description.
50059         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
50060         AC_LIBOBJ invocation from here...
50061         * modules/selinux-h (configure.ac): ... to here.
50063 2011-05-21  Bruno Haible  <bruno@clisp.org>
50065         select: Respect rules for use of AC_LIBOBJ.
50066         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
50067         here...
50068         * modules/select (configure.ac): ... to here.
50070 2011-05-21  Bruno Haible  <bruno@clisp.org>
50072         scandir: Move AC_LIBOBJ invocations to module description.
50073         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
50074         invocations from here...
50075         * modules/scandir (configure.ac): ... to here.
50077 2011-05-21  Bruno Haible  <bruno@clisp.org>
50079         rpmatch: Move AC_LIBOBJ invocations to module description.
50080         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
50081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
50082         here...
50083         * modules/rpmatch (configure.ac): ... to here.
50085 2011-05-21  Bruno Haible  <bruno@clisp.org>
50087         rmdir: Respect rules for use of AC_LIBOBJ.
50088         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
50089         * modules/rmdir (configure.ac): ... to here.
50091 2011-05-21  Bruno Haible  <bruno@clisp.org>
50093         renameat: Move AC_LIBOBJ invocations to module description.
50094         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
50095         here...
50096         * modules/renameat (configure.ac): ... to here.
50098 2011-05-21  Bruno Haible  <bruno@clisp.org>
50100         rename: Respect rules for use of AC_LIBOBJ.
50101         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
50102         here...
50103         * modules/rename (configure.ac): ... to here.
50105 2011-05-21  Bruno Haible  <bruno@clisp.org>
50107         remove: Move AC_LIBOBJ invocations to module description.
50108         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
50109         here...
50110         * modules/remove (configure.ac): ... to here.
50112 2011-05-21  Bruno Haible  <bruno@clisp.org>
50114         relocatable-lib: Move AC_LIBOBJ invocations to module description.
50115         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
50116         macro.
50117         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
50118         * modules/relocatable-lib (configure.ac): ... to here.
50119         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50120         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
50122 2011-05-21  Bruno Haible  <bruno@clisp.org>
50124         relocatable-prog: Move AC_LIBOBJ invocations to module description.
50125         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
50126         here...
50127         * modules/relocatable-prog (configure.ac): ... to here.
50129 2011-05-21  Bruno Haible  <bruno@clisp.org>
50131         regex: Move AC_LIBOBJ invocations to module description.
50132         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
50133         invocations from here...
50134         * modules/regex (configure.ac): ... to here.
50136 2011-05-21  Bruno Haible  <bruno@clisp.org>
50138         realloc-*: Move AC_LIBOBJ invocations to module description.
50139         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
50140         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
50141         AC_LIBOBJ invocations from here...
50142         * modules/realloc-gnu (configure.ac): ... to here.
50143         * modules/realloc-posix (configure.ac): ... and here.
50145 2011-05-21  Bruno Haible  <bruno@clisp.org>
50147         readutmp: Move AC_LIBOBJ invocations to module description.
50148         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
50149         * modules/readutmp (configure.ac): ... to here.
50151 2011-05-21  Bruno Haible  <bruno@clisp.org>
50153         readlinkat: Move AC_LIBOBJ invocations to module description.
50154         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
50155         here...
50156         * modules/readlinkat (configure.ac): ... to here.
50158 2011-05-21  Bruno Haible  <bruno@clisp.org>
50160         readlink: Move AC_LIBOBJ invocations to module description.
50161         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
50162         gl_PREREQ_READLINK invocations from here...
50163         * modules/readlink (configure.ac): ... to here.
50165 2011-05-21  Bruno Haible  <bruno@clisp.org>
50167         readline: Move AC_LIBOBJ invocations to module description.
50168         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
50169         gl_PREREQ_READLINE invocations from here...
50170         * modules/readline (configure.ac): ... to here.
50172 2011-05-21  Bruno Haible  <bruno@clisp.org>
50174         read: Move AC_LIBOBJ invocations to module description.
50175         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
50176         * modules/read (configure.ac): ... to here.
50178 2011-05-21  Bruno Haible  <bruno@clisp.org>
50180         rawmemchr: Move AC_LIBOBJ invocations to module description.
50181         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
50182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
50183         from here...
50184         * modules/rawmemchr (configure.ac): ... to here.
50186 2011-05-21  Bruno Haible  <bruno@clisp.org>
50188         random_r: Move AC_LIBOBJ invocations to module description.
50189         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
50190         gl_PREREQ_RANDOM_R invocations from here...
50191         * modules/random_r (configure.ac): ... to here.
50193 2011-05-21  Bruno Haible  <bruno@clisp.org>
50195         pwrite: Move AC_LIBOBJ invocations to module description.
50196         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
50197         * modules/pwrite (configure.ac): ... to here.
50199 2011-05-21  Bruno Haible  <bruno@clisp.org>
50201         putenv: Move AC_LIBOBJ invocations to module description.
50202         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
50203         * modules/putenv (configure.ac): ... to here.
50205 2011-05-21  Bruno Haible  <bruno@clisp.org>
50207         login_tty: Move AC_LIBOBJ invocations to module description.
50208         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
50209         * modules/login_tty (configure.ac): ... to here.
50211 2011-05-21  Bruno Haible  <bruno@clisp.org>
50213         openpty: Move AC_LIBOBJ invocations to module description.
50214         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
50215         * modules/openpty (configure.ac): ... to here.
50217 2011-05-21  Bruno Haible  <bruno@clisp.org>
50219         forkpty: Move AC_LIBOBJ invocations to module description.
50220         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
50221         * modules/forkpty (configure.ac): ... to here.
50223 2011-05-21  Bruno Haible  <bruno@clisp.org>
50225         ptsname: Move AC_LIBOBJ invocations to module description.
50226         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
50227         invocations from here...
50228         * modules/ptsname (configure.ac): ... to here.
50230 2011-05-21  Bruno Haible  <bruno@clisp.org>
50232         pread: Move AC_LIBOBJ invocations to module description.
50233         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
50234         * modules/pread (configure.ac): ... to here.
50236 2011-05-21  Bruno Haible  <bruno@clisp.org>
50238         posix_spawn*: Move AC_LIBOBJ invocations to module description.
50239         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
50240         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
50241         * modules/posix_spawn (configure.ac): ... to here.
50242         * modules/posix_spawnp (configure.ac): ... and here.
50244 2011-05-21  Bruno Haible  <bruno@clisp.org>
50246         popen: Move AC_LIBOBJ invocations to module description.
50247         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
50248         invocations from here...
50249         * modules/popen (configure.ac): ... to here.
50251 2011-05-21  Bruno Haible  <bruno@clisp.org>
50253         poll: Move AC_LIBOBJ invocations to module description.
50254         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
50255         invocations from here...
50256         * modules/poll (configure.ac): ... to here.
50258 2011-05-21  Bruno Haible  <bruno@clisp.org>
50260         pipe-posix: Move AC_LIBOBJ invocations to module description.
50261         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
50262         * modules/pipe-posix (configure.ac): ... to here.
50264 2011-05-21  Bruno Haible  <bruno@clisp.org>
50266         openat: Respect rules for use of AC_LIBOBJ.
50267         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
50268         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50269         * modules/openat (configure.ac): ... to here.
50271 2011-05-21  Bruno Haible  <bruno@clisp.org>
50273         obstack-printf*: Move AC_LIBOBJ invocations to module description.
50274         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
50275         invocation from here...
50276         * modules/obstack-printf (configure.ac): ... to here.
50277         * modules/obstack-printf-posix (configure.ac): ... and here.
50279 2011-05-21  Bruno Haible  <bruno@clisp.org>
50281         nl_langinfo: Move AC_LIBOBJ invocations to module description.
50282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
50283         from here...
50284         * modules/nl_langinfo (configure.ac): ... to here.
50286 2011-05-21  Bruno Haible  <bruno@clisp.org>
50288         nanosleep: Move AC_LIBOBJ invocations to module description.
50289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
50290         gl_PREREQ_NANOSLEEP invocations from here...
50291         * modules/nanosleep (configure.ac): ... to here.
50293 2011-05-21  Bruno Haible  <bruno@clisp.org>
50295         mountlist: Move AC_LIBOBJ invocations to module description.
50296         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
50297         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
50298         * modules/mountlist (configure.ac): ... to here.
50300 2011-05-21  Bruno Haible  <bruno@clisp.org>
50302         mktime: Respect rules for use of AC_LIBOBJ.
50303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
50304         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
50305         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
50306         (gl_FUNC_MKTIME_INTERNAL): ... and here...
50307         * modules/mktime (configure.ac): ... to here.
50308         * modules/mktime-internal (configure.ac): ... and here.
50309         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
50311 2011-05-21  Bruno Haible  <bruno@clisp.org>
50313         mkstemps: Move AC_LIBOBJ invocations to module description.
50314         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
50315         here...
50316         * modules/mkstemps (configure.ac): ... to here.
50318 2011-05-21  Bruno Haible  <bruno@clisp.org>
50320         mkstemp: Move AC_LIBOBJ invocations to module description.
50321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
50322         gl_PREREQ_MKSTEMP invocations from here...
50323         * modules/mkstemp (configure.ac): ... to here.
50325 2011-05-21  Bruno Haible  <bruno@clisp.org>
50327         mkostemps: Move AC_LIBOBJ invocations to module description.
50328         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
50329         here...
50330         * modules/mkostemps (configure.ac): ... to here.
50332 2011-05-21  Bruno Haible  <bruno@clisp.org>
50334         mkostemp: Move AC_LIBOBJ invocations to module description.
50335         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
50336         gl_PREREQ_MKOSTEMP invocations from here...
50337         * modules/mkostemp (configure.ac): ... to here.
50339 2011-05-21  Bruno Haible  <bruno@clisp.org>
50341         mknod: Move AC_LIBOBJ invocations to module description.
50342         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
50343         * modules/mknod (configure.ac): ... to here.
50345 2011-05-21  Bruno Haible  <bruno@clisp.org>
50347         mkfifoat: Move AC_LIBOBJ invocations to module description.
50348         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
50349         here...
50350         * modules/mkfifoat (configure.ac): ... to here.
50352 2011-05-21  Bruno Haible  <bruno@clisp.org>
50354         mkfifo: Respect rules for use of AC_LIBOBJ.
50355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
50356         here...
50357         * modules/mkfifo (configure.ac): ... to here.
50359 2011-05-21  Bruno Haible  <bruno@clisp.org>
50361         mkdtemp: Move AC_LIBOBJ invocations to module description.
50362         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
50363         invocations from here...
50364         * modules/mkdtemp (configure.ac): ... to here.
50366 2011-05-21  Bruno Haible  <bruno@clisp.org>
50368         mkdir: Move AC_LIBOBJ invocations to module description.
50369         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
50370         * modules/mkdir (configure.ac): ... to here.
50372 2011-05-21  Bruno Haible  <bruno@clisp.org>
50374         memset: Move AC_LIBOBJ invocations to module description.
50375         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
50376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
50377         here...
50378         * modules/memset (configure.ac): ... to here.
50380 2011-05-21  Bruno Haible  <bruno@clisp.org>
50382         memrchr: Move AC_LIBOBJ invocations to module description.
50383         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
50384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
50385         here...
50386         * modules/memrchr (configure.ac): ... to here.
50388 2011-05-21  Bruno Haible  <bruno@clisp.org>
50390         mempcpy: Move AC_LIBOBJ invocations to module description.
50391         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
50392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
50393         here...
50394         * modules/mempcpy (configure.ac): ... to here.
50396 2011-05-21  Bruno Haible  <bruno@clisp.org>
50398         memmove: Move AC_LIBOBJ invocations to module description.
50399         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
50400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
50401         here...
50402         * modules/memmove (configure.ac): ... to here.
50404 2011-05-21  Bruno Haible  <bruno@clisp.org>
50406         memmem*: Move AC_LIBOBJ invocations to module description.
50407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
50408         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
50409         here...
50410         (gl_FUNC_MEMMEM): ... and here...
50411         * modules/memmem-simple (configure.ac): ... to here.
50412         * modules/memmem (configure.ac): ... and here.
50414 2011-05-21  Bruno Haible  <bruno@clisp.org>
50416         memcpy: Move AC_LIBOBJ invocations to module description.
50417         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
50418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
50419         here...
50420         * modules/memcpy (configure.ac): ... to here.
50422 2011-05-21  Bruno Haible  <bruno@clisp.org>
50424         memcmp: Simplify autoconf macro.
50425         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
50426         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
50427         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
50429 2011-05-21  Bruno Haible  <bruno@clisp.org>
50431         memcmp: Move AC_LIBOBJ invocations to module description.
50432         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
50433         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
50434         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
50435         * modules/memcmp (configure.ac): ... to here.
50436         (Depends-on): Update conditions.
50438 2011-05-21  Bruno Haible  <bruno@clisp.org>
50440         memchr: Respect rules for use of AC_LIBOBJ.
50441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
50442         invocations from here...
50443         * modules/memchr (configure.ac): ... to here.
50445 2011-05-21  Bruno Haible  <bruno@clisp.org>
50447         mbtowc: Move AC_LIBOBJ invocations to module description.
50448         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
50449         invocations from here...
50450         * modules/mbtowc (configure.ac): ... to here.
50452 2011-05-21  Bruno Haible  <bruno@clisp.org>
50454         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
50455         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
50456         gl_PREREQ_MBSRTOWCS invocations from here...
50457         * modules/mbsrtowcs (configure.ac): ... to here.
50459 2011-05-21  Bruno Haible  <bruno@clisp.org>
50461         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
50462         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
50463         gl_PREREQ_MBSNRTOWCS invocations from here...
50464         * modules/mbsnrtowcs (configure.ac): ... to here.
50466 2011-05-21  Bruno Haible  <bruno@clisp.org>
50468         mbsinit: Move AC_LIBOBJ invocations to module description.
50469         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
50470         invocations from here...
50471         * modules/mbsinit (configure.ac): ... to here.
50473 2011-05-21  Bruno Haible  <bruno@clisp.org>
50475         mbrlen: Move AC_LIBOBJ invocations to module description.
50476         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
50477         invocations from here...
50478         * modules/mbrlen (configure.ac): ... to here.
50480 2011-05-21  Bruno Haible  <bruno@clisp.org>
50482         mbrtowc: Respect rules for use of AC_LIBOBJ.
50483         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
50484         invocations from here...
50485         * modules/mbrtowc (configure.ac): ... to here.
50487 2011-05-21  Bruno Haible  <bruno@clisp.org>
50489         malloc-*: Move AC_LIBOBJ invocations to module description.
50490         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
50491         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
50492         AC_LIBOBJ invocations from here...
50493         * modules/malloc-gnu (configure.ac): ... to here.
50494         * modules/malloc-posix (configure.ac): ... and here.
50496 2011-05-21  Bruno Haible  <bruno@clisp.org>
50498         lstat, openat: Respect rules for use of AC_LIBOBJ.
50499         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
50500         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
50501         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
50502         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
50503         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
50504         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
50505         here.
50506         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
50508 2011-05-21  Bruno Haible  <bruno@clisp.org>
50510         lseek: Move AC_LIBOBJ invocations to module description.
50511         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
50512         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50513         * modules/lseek (configure.ac): ... to here.
50515 2011-05-21  Bruno Haible  <bruno@clisp.org>
50517         linkat: Move AC_LIBOBJ invocations to module description.
50518         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
50519         here...
50520         * modules/linkat (configure.ac): ... to here.
50522 2011-05-21  Bruno Haible  <bruno@clisp.org>
50524         link: Respect rules for use of AC_LIBOBJ.
50525         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
50526         * modules/link (configure.ac): ... to here.
50528 2011-05-21  Bruno Haible  <bruno@clisp.org>
50530         lchown: Move AC_LIBOBJ invocations to module description.
50531         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50532         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50533         * modules/lchown (configure.ac): ... to here.
50535 2011-05-21  Bruno Haible  <bruno@clisp.org>
50537         iswctype: Move AC_LIBOBJ invocations to module description.
50538         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
50539         here...
50540         * modules/iswctype (configure.ac): ... to here.
50542 2011-05-21  Bruno Haible  <bruno@clisp.org>
50544         iswblank: Move AC_LIBOBJ invocations to module description.
50545         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
50546         here...
50547         * modules/iswblank (configure.ac): ... to here.
50549 2011-05-21  Bruno Haible  <bruno@clisp.org>
50551         atanl: Move AC_LIBOBJ invocations to module description.
50552         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
50553         * modules/atanl (configure.ac): ... to here.
50555 2011-05-21  Bruno Haible  <bruno@clisp.org>
50557         acosl: Move AC_LIBOBJ invocations to module description.
50558         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
50559         * modules/acosl (configure.ac): ... to here.
50561 2011-05-21  Bruno Haible  <bruno@clisp.org>
50563         asinl: Respect rules for use of AC_LIBOBJ.
50564         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
50565         * modules/asinl (configure.ac): ... to here.
50567 2011-05-21  Bruno Haible  <bruno@clisp.org>
50569         tanl: Move AC_LIBOBJ invocations to module description.
50570         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
50571         * modules/tanl (configure.ac): ... to here.
50573 2011-05-21  Bruno Haible  <bruno@clisp.org>
50575         cosl: Move AC_LIBOBJ invocations to module description.
50576         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
50577         * modules/cosl (configure.ac): ... to here.
50579 2011-05-21  Bruno Haible  <bruno@clisp.org>
50581         sinl: Move AC_LIBOBJ invocations to module description.
50582         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
50583         * modules/sinl (configure.ac): ... to here.
50585 2011-05-21  Bruno Haible  <bruno@clisp.org>
50587         logl: Move AC_LIBOBJ invocations to module description.
50588         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50589         * modules/logl (configure.ac): ... to here.
50591 2011-05-21  Bruno Haible  <bruno@clisp.org>
50593         expl: Move AC_LIBOBJ invocations to module description.
50594         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50595         * modules/expl (configure.ac): ... to here.
50597 2011-05-21  Bruno Haible  <bruno@clisp.org>
50599         roundl: Move AC_LIBOBJ invocations to module description.
50600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50601         * modules/roundl (configure.ac): ... to here.
50603 2011-05-21  Bruno Haible  <bruno@clisp.org>
50605         round: Move AC_LIBOBJ invocations to module description.
50606         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50607         * modules/round (configure.ac): ... to here.
50609 2011-05-21  Bruno Haible  <bruno@clisp.org>
50611         roundf: Move AC_LIBOBJ invocations to module description.
50612         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50613         * modules/roundf (configure.ac): ... to here.
50615 2011-05-21  Bruno Haible  <bruno@clisp.org>
50617         truncl: Move AC_LIBOBJ invocations to module description.
50618         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50619         * modules/truncl (configure.ac): ... to here.
50621 2011-05-21  Bruno Haible  <bruno@clisp.org>
50623         trunc: Move AC_LIBOBJ invocations to module description.
50624         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50625         * modules/trunc (configure.ac): ... to here.
50627 2011-05-21  Bruno Haible  <bruno@clisp.org>
50629         truncf: Move AC_LIBOBJ invocations to module description.
50630         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50631         * modules/truncf (configure.ac): ... to here.
50633 2011-05-21  Bruno Haible  <bruno@clisp.org>
50635         ceill: Move AC_LIBOBJ invocations to module description.
50636         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50637         * modules/ceill (configure.ac): ... to here.
50639 2011-05-21  Bruno Haible  <bruno@clisp.org>
50641         ceil: Move AC_LIBOBJ invocations to module description.
50642         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50643         * modules/ceil (configure.ac): ... to here.
50645 2011-05-21  Bruno Haible  <bruno@clisp.org>
50647         ceilf: Move AC_LIBOBJ invocations to module description.
50648         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50649         * modules/ceilf (configure.ac): ... to here.
50651 2011-05-21  Bruno Haible  <bruno@clisp.org>
50653         floorl: Respect rules for use of AC_LIBOBJ.
50654         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50655         * modules/floorl (configure.ac): ... to here.
50657 2011-05-21  Bruno Haible  <bruno@clisp.org>
50659         floor: Respect rules for use of AC_LIBOBJ.
50660         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50661         * modules/floor (configure.ac): ... to here.
50663 2011-05-21  Bruno Haible  <bruno@clisp.org>
50665         floorf: Move AC_LIBOBJ invocations to module description.
50666         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50667         * modules/floorf (configure.ac): ... to here.
50669 2011-05-20  Bruno Haible  <bruno@clisp.org>
50671         sqrtl: Respect rules for use of AC_LIBOBJ.
50672         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50673         * modules/sqrtl (configure.ac): ... to here.
50675 2011-05-20  Bruno Haible  <bruno@clisp.org>
50677         ldexpl: Respect rules for use of AC_LIBOBJ.
50678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50679         * modules/ldexpl (configure.ac): ... to here.
50681 2011-05-20  Bruno Haible  <bruno@clisp.org>
50683         frexpl*: Respect rules for use of AC_LIBOBJ.
50684         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50685         invocation from here...
50686         * modules/frexpl (configure.ac): ... to here.
50687         * modules/frexpl-nolibm (configure.ac): ... and here.
50689 2011-05-20  Bruno Haible  <bruno@clisp.org>
50691         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50692         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50693         invocation from here...
50694         * modules/frexp (configure.ac): ... to here.
50695         * modules/frexp-nolibm (configure.ac): ... and here.
50697 2011-05-20  Bruno Haible  <bruno@clisp.org>
50699         isnan: Respect rules for use of AC_LIBOBJ.
50700         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50701         invocations here.
50702         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50703         REPLACE_ISNAN.
50704         * modules/isnand (configure.ac): Likewise.
50705         * modules/isnanl (configure.ac): Likewise.
50707 2011-05-20  Bruno Haible  <bruno@clisp.org>
50709         isnanl*: Respect rules for use of AC_LIBOBJ.
50710         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50711         invocation from here...
50712         * modules/isnanl (configure.ac): ... to here.
50713         * modules/isnanl-nolibm (configure.ac): ... and here.
50715 2011-05-20  Bruno Haible  <bruno@clisp.org>
50717         isnand*: Move AC_LIBOBJ invocations to module description.
50718         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50719         invocation from here...
50720         * modules/isnand (configure.ac): ... to here.
50721         * modules/isnand-nolibm (configure.ac): ... and here.
50723 2011-05-20  Bruno Haible  <bruno@clisp.org>
50725         isnanf*: Move AC_LIBOBJ invocations to module description.
50726         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50727         invocation from here...
50728         * modules/isnanf (configure.ac): ... to here.
50729         * modules/isnanf-nolibm (configure.ac): ... and here.
50731 2011-05-20  Bruno Haible  <bruno@clisp.org>
50733         isnan*: Separate the AC_LIBOBJ invocations.
50734         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50735         AC_LIBOBJ invocation.
50736         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50737         here.
50738         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50739         AC_LIBOBJ invocation.
50740         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50741         here.
50742         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50743         AC_LIBOBJ invocation.
50744         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50745         here.
50746         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50748 2011-05-08  Bruno Haible  <bruno@clisp.org>
50750         isinf: Move AC_LIBOBJ invocations to module description.
50751         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50752         * modules/isinf (configure.ac): ... to here.
50754 2011-05-08  Bruno Haible  <bruno@clisp.org>
50756         isfinite: Move AC_LIBOBJ invocations to module description.
50757         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50758         * modules/isfinite (configure.ac): ... to here.
50760 2011-05-08  Bruno Haible  <bruno@clisp.org>
50762         isblank: Move AC_LIBOBJ invocations to module description.
50763         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50764         here...
50765         * modules/isblank (configure.ac): ... to here.
50767 2011-05-08  Bruno Haible  <bruno@clisp.org>
50769         isapipe: Move AC_LIBOBJ invocations to module description.
50770         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50771         gl_PREREQ_ISAPIPE invocations from here...
50772         * modules/isapipe (configure.ac): ... to here.
50773         (Depends-on): Update condition.
50775 2011-05-08  Bruno Haible  <bruno@clisp.org>
50777         ioctl: Move AC_LIBOBJ invocations to module description.
50778         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50779         invocations from here...
50780         * modules/ioctl (configure.ac): ... to here.
50781         (Depends-on): Update condition.
50783 2011-05-08  Bruno Haible  <bruno@clisp.org>
50785         imaxdiv: Move AC_LIBOBJ invocations to module description.
50786         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50787         invocations from here...
50788         * modules/imaxdiv (configure.ac): ... to here.
50790 2011-05-08  Bruno Haible  <bruno@clisp.org>
50792         imaxabs: Move AC_LIBOBJ invocations to module description.
50793         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50794         invocations from here...
50795         * modules/imaxabs (configure.ac): ... to here.
50797 2011-05-08  Bruno Haible  <bruno@clisp.org>
50799         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50801         AC_LIBOBJ invocations from here...
50802         * modules/getaddrinfo (configure.ac): ... to here.
50803         (Depends-on): Add conditions.
50805 2011-05-08  Bruno Haible  <bruno@clisp.org>
50807         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50808         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50809         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50810         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50811         (gl_PREREQ_INET_PTON): ... from here.
50812         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50813         gl_PREREQ_INET_PTON here.
50814         (Depends-on): Update condition.
50816 2011-05-08  Bruno Haible  <bruno@clisp.org>
50818         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50819         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50820         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50821         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50822         (gl_PREREQ_INET_NTOP): ... from here.
50823         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50824         gl_PREREQ_INET_NTOP here.
50825         (Depends-on): Update condition.
50827 2011-05-08  Bruno Haible  <bruno@clisp.org>
50829         iconv_open: Move AC_LIBOBJ invocations to module description.
50830         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50831         AC_LIBOBJ invocations from here...
50832         * modules/iconv_open (configure.ac): ... to here.
50834 2011-05-08  Bruno Haible  <bruno@clisp.org>
50836         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50837         If module 'iconv_open' is among the main modules and module
50838         'iconv_open-utf' is among the tests dependencies, then
50839         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50840         return the special iconv_t values. Therefore iconv() and iconv_close()
50841         must support these special iconv_t values, already in lib, not only in
50842         tests.
50843         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50845         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50846         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50847         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50848         (Depends-on): Add the dependencies of iconv_open-utf.
50849         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50850         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50851         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50853 2011-05-08  Bruno Haible  <bruno@clisp.org>
50855         group-member: Move AC_LIBOBJ invocations to module description.
50856         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50857         gl_PREREQ_GROUP_MEMBER invocations from here...
50858         * modules/group-member (configure.ac): ... to here.
50860 2011-05-08  Bruno Haible  <bruno@clisp.org>
50862         grantpt: Move AC_LIBOBJ invocations to module description.
50863         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50864         invocations from here...
50865         * modules/grantpt (configure.ac): ... to here.
50867 2011-05-08  Bruno Haible  <bruno@clisp.org>
50869         glob: Move AC_LIBOBJ invocations to module description.
50870         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50871         from here...
50872         * modules/glob (configure.ac): ... to here.
50874 2011-05-08  Bruno Haible  <bruno@clisp.org>
50876         getusershell: Move AC_LIBOBJ invocations to module description.
50877         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50878         Move AC_LIBOBJ invocation from here...
50879         * modules/getusershell (configure.ac): ... to here.
50880         (Depends-on): Update condition.
50882 2011-05-08  Bruno Haible  <bruno@clisp.org>
50884         gettimeofday: Move AC_LIBOBJ invocations to module description.
50885         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50886         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50887         gl_PREREQ_GETTIMEOFDAY invocations from here...
50888         * modules/gettimeofday (configure.ac): ... to here.
50890 2011-05-08  Bruno Haible  <bruno@clisp.org>
50892         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50893         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50894         just gl_FUNC_TZSET.
50895         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50896         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50897         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50898         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50900 2011-05-08  Bruno Haible  <bruno@clisp.org>
50902         getsubopt: Move AC_LIBOBJ invocations to module description.
50903         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50904         gl_PREREQ_GETSUBOPT invocations from here...
50905         * modules/getsubopt (configure.ac): ... to here.
50907 2011-05-08  Bruno Haible  <bruno@clisp.org>
50909         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50910         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50911         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50912         * modules/getpass-gnu (configure.ac): ... to here.
50914 2011-05-08  Bruno Haible  <bruno@clisp.org>
50916         getpass: Move AC_LIBOBJ invocations to module description.
50917         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50918         gl_PREREQ_GETPASS invocations from here...
50919         * modules/getpass (configure.ac): ... to here.
50921 2011-05-08  Bruno Haible  <bruno@clisp.org>
50923         getpagesize: Move AC_LIBOBJ invocations to module description.
50924         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50925         from here...
50926         * modules/getpagesize (configure.ac): ... to here.
50928 2011-05-08  Bruno Haible  <bruno@clisp.org>
50930         getopt: Move AC_LIBOBJ invocations to module description.
50931         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50932         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50933         invocations from here...
50934         * modules/getopt-gnu (configure.ac): ... to here.
50935         * modules/getopt-posix (configure.ac): ... and here.
50936         (Depends-on): Update condition.
50938 2011-05-08  Bruno Haible  <bruno@clisp.org>
50940         getopt, argp: Respect rules for use of AC_LIBOBJ.
50941         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50942         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50943         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50944         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50946 2011-05-08  Bruno Haible  <bruno@clisp.org>
50948         getlogin_r: Move AC_LIBOBJ invocations to module description.
50949         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50950         gl_PREREQ_GETLOGIN_R invocations from here...
50951         * modules/getlogin_r (configure.ac): ... to here.
50953 2011-05-08  Bruno Haible  <bruno@clisp.org>
50955         getlogin: Move AC_LIBOBJ invocations to module description.
50956         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50957         here...
50958         * modules/getlogin (configure.ac): ... to here.
50960 2011-05-08  Bruno Haible  <bruno@clisp.org>
50962         getloadavg: Move AC_LIBOBJ invocations to module description.
50963         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50964         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50965         * modules/getloadavg (configure.ac): ... to here.
50967 2011-05-08  Bruno Haible  <bruno@clisp.org>
50969         gethrxtime: Move AC_LIBOBJ invocations to module description.
50970         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50971         LIB_GETHRXTIME from here...
50972         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50973         invocations from here...
50974         * modules/gethrxtime (configure.ac): ... to here.
50976 2011-05-08  Bruno Haible  <bruno@clisp.org>
50978         gethostname: Move AC_LIBOBJ invocations to module description.
50979         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50980         gl_PREREQ_GETHOSTNAME invocations from here...
50981         * modules/gethostname (configure.ac): ... to here.
50983 2011-05-08  Bruno Haible  <bruno@clisp.org>
50985         getgroups: Move AC_LIBOBJ invocations to module description.
50986         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50987         here...
50988         * modules/getgroups (configure.ac): ... to here.
50990 2011-05-08  Bruno Haible  <bruno@clisp.org>
50992         getdtablesize: Move AC_LIBOBJ invocations to module description.
50993         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50994         invocation from here...
50995         * modules/getdtablesize (configure.ac): ... to here.
50997 2011-05-08  Bruno Haible  <bruno@clisp.org>
50999         getdomainname: Move AC_LIBOBJ invocations to module description.
51000         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
51001         gl_PREREQ_GETDOMAINNAME invocations from here...
51002         * modules/getdomainname (configure.ac): ... to here.
51004 2011-05-08  Bruno Haible  <bruno@clisp.org>
51006         getline: Move AC_LIBOBJ invocations to module description.
51007         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
51008         invocations from here...
51009         * modules/getline (configure.ac): ... to here.
51011 2011-05-08  Bruno Haible  <bruno@clisp.org>
51013         getline: Simplify.
51014         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
51015         It's already handled through the module dependency.
51017 2011-05-08  Bruno Haible  <bruno@clisp.org>
51019         getdelim: Move AC_LIBOBJ invocations to module description.
51020         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
51021         and gl_PREREQ_GETDELIM invocations from here...
51022         * modules/getdelim (configure.ac): ... to here.
51023         (Depends-on): Fix condition.
51025 2011-05-08  Bruno Haible  <bruno@clisp.org>
51027         getcwd: Move AC_LIBOBJ invocations to module description.
51028         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
51029         invocations from here...
51030         * modules/getcwd (configure.ac): ... to here.
51032 2011-05-08  Bruno Haible  <bruno@clisp.org>
51034         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
51035         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
51036         here...
51037         * modules/getcwd-lgpl (configure.ac): ... to here.
51039 2011-05-07  Bruno Haible  <bruno@clisp.org>
51041         crypto/gc: Move AC_LIBOBJ invocations to module description.
51042         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
51043         * modules/crypto/gc (configure.ac): ... to here.
51045 2011-05-07  Bruno Haible  <bruno@clisp.org>
51047         fwriting: Move AC_LIBOBJ invocations to module description.
51048         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
51049         here...
51050         * modules/fwriting (configure.ac): ... to here.
51052 2011-05-07  Bruno Haible  <bruno@clisp.org>
51054         fwritable: Move AC_LIBOBJ invocations to module description.
51055         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
51056         here...
51057         * modules/fwritable (configure.ac): ... to here.
51059 2011-05-07  Bruno Haible  <bruno@clisp.org>
51061         futimens: Move AC_LIBOBJ invocations to module description.
51062         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
51063         here...
51064         * modules/futimens (configure.ac): ... to here.
51066 2011-05-07  Bruno Haible  <bruno@clisp.org>
51068         ftruncate: Move AC_LIBOBJ invocations to module description.
51069         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
51070         gl_PREREQ_FTRUNCATE invocations from here...
51071         * modules/ftruncate (configure.ac): ... to here.
51073 2011-05-07  Bruno Haible  <bruno@clisp.org>
51075         fsync: Move AC_LIBOBJ invocations to module description.
51076         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
51077         invocations from here...
51078         * modules/fsync (configure.ac): ... to here.
51080 2011-05-07  Bruno Haible  <bruno@clisp.org>
51082         fsusage: Move AC_LIBOBJ invocations to module description.
51083         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
51084         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
51085         * modules/fsusage (configure.ac): ... to here.
51087 2011-05-07  Bruno Haible  <bruno@clisp.org>
51089         freopen: Move AC_LIBOBJ invocations to module description.
51090         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
51091         invocations from here...
51092         * modules/freopen (configure.ac): ... to here.
51094 2011-05-07  Bruno Haible  <bruno@clisp.org>
51096         free: Move AC_LIBOBJ invocations to module description.
51097         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
51098         invocations from here...
51099         * modules/free (configure.ac): ... to here.
51101 2011-05-07  Bruno Haible  <bruno@clisp.org>
51103         freadable: Move AC_LIBOBJ invocations to module description.
51104         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
51105         here...
51106         * modules/freadable (configure.ac): ... to here.
51108 2011-05-07  Bruno Haible  <bruno@clisp.org>
51110         fpurge: Move AC_LIBOBJ invocations to module description.
51111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
51112         invocations from here...
51113         * modules/fpurge (configure.ac): ... to here.
51115 2011-05-07  Bruno Haible  <bruno@clisp.org>
51117         fpending: Move AC_LIBOBJ invocations to module description.
51118         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
51119         gl_FUNC_FPENDING.
51120         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
51121         invocations from here...
51122         * modules/fpending (configure.ac): ... to here.
51124 2011-05-07  Bruno Haible  <bruno@clisp.org>
51126         fopen: Move AC_LIBOBJ invocations to module description.
51127         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
51128         invocations from here...
51129         * modules/fopen (configure.ac): ... to here.
51131 2011-05-07  Bruno Haible  <bruno@clisp.org>
51133         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
51134         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
51135         gl_FUNC_FNMATCH_POSIX.
51136         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
51137         invocations from here...
51138         * modules/fnmatch (configure.ac): ... to here.
51139         * modules/fnmatch-gnu (configure.ac): ... and here.
51141 2011-05-07  Bruno Haible  <bruno@clisp.org>
51143         flock: Move AC_LIBOBJ invocations to module description.
51144         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
51145         invocations from here...
51146         * modules/flock (configure.ac): ... to here.
51148 2011-05-07  Bruno Haible  <bruno@clisp.org>
51150         fileblocks: Move AC_LIBOBJ invocations to module description.
51151         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
51152         gl_PREREQ_FILEBLOCKS invocations from here...
51153         * modules/fileblocks (configure.ac): ... to here.
51155 2011-05-06  Bruno Haible  <bruno@clisp.org>
51157         fflush: Move AC_LIBOBJ invocations to module description.
51158         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
51159         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
51160         invocations from here...
51161         * modules/fflush (configure.ac): ... to here.
51163 2011-05-06  Bruno Haible  <bruno@clisp.org>
51165         fdopendir: Move AC_LIBOBJ invocations to module description.
51166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
51167         here...
51168         * modules/fdopendir (configure.ac): ... to here.
51169         (Depends-on): Improve conditions.
51171 2011-05-06  Bruno Haible  <bruno@clisp.org>
51173         _Exit: Move AC_LIBOBJ invocations to module description.
51174         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
51175         invocations from here...
51176         * modules/_Exit (configure.ac): ... to here.
51178 2011-05-21  Bruno Haible  <bruno@clisp.org>
51180         euidaccess: Respect rules for use of AC_LIBOBJ.
51181         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
51182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
51183         from here...
51184         * modules/euidaccess (configure.ac): ... to here.
51186 2011-05-06  Bruno Haible  <bruno@clisp.org>
51188         error: Move AC_LIBOBJ invocations to module description.
51189         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
51190         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
51191         invocations from here...
51192         * modules/error (configure.ac): ... to here.
51194 2011-05-06  Bruno Haible  <bruno@clisp.org>
51196         duplocale: Move AC_LIBOBJ invocations to module description.
51197         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
51198         gl_PREREQ_DUPLOCALE invocations from here...
51199         * modules/duplocale (configure.ac): ... to here.
51201 2011-05-05  Bruno Haible  <bruno@clisp.org>
51203         dirfd: Move AC_LIBOBJ invocations to module description.
51204         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
51205         gl_FUNC_DIRFD.
51206         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
51207         here...
51208         * modules/dirfd (configure.ac): ... to here.
51209         (Depends-on): Fix condition.
51211 2011-05-05  Bruno Haible  <bruno@clisp.org>
51213         chown: Respect rules for use of AC_LIBOBJ.
51214         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
51215         * modules/chown (configure.ac): ... to here.
51217 2011-05-05  Bruno Haible  <bruno@clisp.org>
51219         chdir-long: Move AC_LIBOBJ invocations to module description.
51220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
51221         gl_PREREQ_CHDIR_LONG invocations from here...
51222         * modules/chdir-long (configure.ac): ... to here.
51224 2011-05-05  Bruno Haible  <bruno@clisp.org>
51226         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
51227         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
51228         from here...
51229         * modules/canonicalize-lgpl (configure.ac): ... to here.
51231 2011-05-05  Bruno Haible  <bruno@clisp.org>
51233         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
51234         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
51235         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
51236         REPLACE_CALLOC.
51237         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
51238         * modules/calloc-gnu (configure.ac): Likewise.
51240 2011-05-05  Bruno Haible  <bruno@clisp.org>
51242         btowc: Move AC_LIBOBJ invocations to module description.
51243         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
51244         invocations from here...
51245         * modules/btowc (configure.ac): ... to here.
51247 2011-05-21  Bruno Haible  <bruno@clisp.org>
51249         atexit: Move AC_LIBOBJ invocations to module description.
51250         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
51251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
51252         here...
51253         * modules/atexit (configure.ac): ... to here.
51255 2011-05-05  Bruno Haible  <bruno@clisp.org>
51257         atoll: Move AC_LIBOBJ invocations to module description.
51258         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
51259         invocations from here...
51260         * modules/atoll (configure.ac): ... to here.
51262 2011-05-05  Bruno Haible  <bruno@clisp.org>
51264         argz: Move AC_LIBOBJ invocations to module description.
51265         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
51266         * modules/argz (configure.ac): ... to here.
51268 2011-05-05  Bruno Haible  <bruno@clisp.org>
51270         alphasort: Move AC_LIBOBJ invocations to module description.
51271         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
51272         gl_PREREQ_ALPHASORT invocations from here...
51273         * modules/alphasort (configure.ac): ... to here.
51275 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51277         verify: new macro verify_expr; verify_true deprecated
51278         * NEWS: Mention this.
51279         * doc/verify.texi (Compile-time Assertions): Document this.
51280         * lib/verify.h (verify_true): Deprecate.
51281         (verify_expr): New macro.
51282         * tests/test-verify.c (function): Test verify_expr.
51284 2011-06-14  Jim Meyering  <meyering@redhat.com>
51286         init.sh: give more portable redirection-related advice in a comment
51287         * tests/init.sh (stderr_fileno_): Update the advice in comments.
51288         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
51289         for lots of discussion.  Stefano Lattarini suggested the solution
51290         of putting "9>&2" after the command.  Reported by Bruno Haible.
51292 2011-06-13  Bruno Haible  <bruno@clisp.org>
51294         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
51295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
51296         'none'.
51298 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
51300         ftoastr: use strtof only if HAVE_STRTOF
51301         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
51302         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
51303         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
51304         * modules/ftoastr (configure.ac): Check for strtof.
51306 2011-06-13  Bruno Haible  <bruno@clisp.org>
51308         gnulib-tool: Addendum to 2011-06-08 commit.
51309         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
51310         and --witness-c-macro have been given, augment AM_CPPFLAGS.
51312 2011-06-13  Bruno Haible  <bruno@clisp.org>
51314         fseeko: Provide a non-inline replacement of fseek().
51315         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
51316         * modules/fseeko (Depends-on): Add fseek.
51317         * modules/fseek (License): Change to LGPLv2+.
51319 2011-06-13  Bruno Haible  <bruno@clisp.org>
51321         ftello: Provide a non-inline replacement of ftell().
51322         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
51323         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
51324         not have ftello() (such as on mingw).
51325         * modules/ftello (Depends-on): Add ftell.
51326         * modules/ftell (License): Change to LGPLv2+.
51328 2011-05-07  Bruno Haible  <bruno@clisp.org>
51330         ftell: Move AC_LIBOBJ invocations to module description.
51331         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
51332         * modules/ftell (configure.ac): ... to here.
51334 2011-05-07  Bruno Haible  <bruno@clisp.org>
51336         ftello: Respect rules for use of AC_LIBOBJ.
51337         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
51338         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
51339         here...
51340         * modules/ftello (configure.ac): ... to here.
51342 2011-05-07  Bruno Haible  <bruno@clisp.org>
51344         fseeko: Simplify.
51345         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
51346         (gl_FUNC_FSEEKO): Inline it here.
51348 2011-05-07  Bruno Haible  <bruno@clisp.org>
51350         fseek: Move AC_LIBOBJ invocations to module description.
51351         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
51352         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51353         * modules/fseek (configure.ac): ... to here.
51355 2011-05-07  Bruno Haible  <bruno@clisp.org>
51357         fseek: Respect rules for use of AC_LIBOBJ.
51358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
51359         here...
51360         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
51362 2011-05-07  Bruno Haible  <bruno@clisp.org>
51364         fseeko: Respect rules for use of AC_LIBOBJ.
51365         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
51366         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
51367         here...
51368         * modules/fseeko (configure.ac): ... to here.
51370 2011-06-13  Bruno Haible  <bruno@clisp.org>
51372         gnulib-tool: Allow comments in the 'Depends-on' section.
51373         * doc/gnulib.texi (Module description): Mention comment syntax in the
51374         Depends-on section.
51375         * gnulib-tool (func_get_dependencies): Filter out comment lines.
51377 2011-06-13  Bruno Haible  <bruno@clisp.org>
51379         file-set.h: guard __attibute__ use, now that it's not always defined
51380         * lib/file-set.h (record_file): Use __attribute__ only with compiler
51381         versions that support it.  This fixes a coreutils build failure with
51382         the vendor cc on HP-UX 11.31.
51384 2011-06-12  Bruno Haible  <bruno@clisp.org>
51386         acl: Add support for HP-UX >= 11.11 JFS ACLs.
51387         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
51388         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
51389         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
51390         (acl, aclsort): New declarations.
51391         (aclv_nontrivial): New declaration.
51392         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
51393         (file_has_acl): Read also the second kind of HP-UX ACLs.
51394         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
51395         kind of HP-UX ACLs if the first kind fails.
51396         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
51397         second kind of HP-UX ACLs.
51398         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
51399         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
51400         agree.
51401         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51402         hpuxjfs.
51403         Handle hpuxjfs.
51404         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51405         hpuxjfs.
51406         Handle hpuxjfs.
51407         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51408         (func_test_same_acls): Use both lsacl and getacl.
51409         Handle hpuxjfs.
51410         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51411         (func_test_same_acls): Use both lsacl and getacl.
51412         Handle hpuxjfs.
51414 2011-06-12  Bruno Haible  <bruno@clisp.org>
51416         acl: Complete the 2010-08-10 fix.
51417         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
51418         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
51419         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
51420         explicitly.
51421         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
51422         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
51424 2011-06-12  Bruno Haible  <bruno@clisp.org>
51426         spawn-pipe tests: Comments.
51427         * tests/test-spawn-pipe-child.c (main): Update comment.
51428         Reported by James Youngman <jay@gnu.org>.
51430 2011-06-11  James Youngman  <jay@gnu.org>
51432         New module 'stat-size'.
51433         * modules/stat-size: New module.  Provides macros for accessing
51434         file size information in instances of struct stat.  Depends on the
51435         fileblocks module because it calls st_blocks.
51436         * lib/stat-size.h: New file, adapted from coreutils' system.h.
51437         * doc/gnulib.texi: Include stat-size.texi.
51438         * doc/stat-size.texi: Documentation for this module.
51439         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
51440         * m4/fileblocks.m4: Mention that stat-size depends on the call to
51441         AC_STRUCT_ST_BLOCKS.
51443 2011-06-09  Bruno Haible  <bruno@clisp.org>
51445         thread: Support pthreads-win32.
51446         * lib/glthread/thread.h (gl_thread_self): Define differently on
51447         pthreads-win32.
51448         (gl_null_thread): New declaration.
51449         (gl_thread_self_pointer): New macro.
51450         * lib/glthread/thread.c (gl_null_thread): New constant.
51451         * tests/test-lock.c: Use gl_thread_self_pointer instead of
51452         gl_thread_self.
51453         * tests/test-tls.c: Likewise.
51454         Suggested by Paul Eggert. Reported by Eric Blake.
51456 2011-06-09  Bruno Haible  <bruno@clisp.org>
51458         thread: Fix confusion between NULL and 0.
51459         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
51460         Reported by Paul Eggert.
51462 2011-06-09  Bruno Haible  <bruno@clisp.org>
51464         spawn-pipe tests: Avoid test failure on HP-UX 11.
51465         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
51466         is closed.
51468 2011-06-09  Bruno Haible  <bruno@clisp.org>
51470         acl tests: Fix compilation error on HP-UX 11.
51471         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
51473 2011-06-09  Bruno Haible  <bruno@clisp.org>
51475         rmdir: Avoid test failure on HP-UX 10.20.
51476         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
51477         EEXIST.
51479 2011-06-08  Eric Blake  <eblake@redhat.com>
51481         perror: fix test on mingw
51482         * modules/perror-tests (Depends-on): Add dup2.
51484         strerror_r-posix: fix on MacOS
51485         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
51486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
51487         logic bug.
51488         * lib/strerror_r.c (strerror_r): Fix the bug.
51489         * lib/strerror.c (strerror): Likewise.
51490         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51491         problem.
51492         * doc/posix-functions/strerror.texi (strerror): Likewise.
51493         * doc/posix-functions/perror.texi (perror): Likewise.
51494         * tests/test-strerror.c (main): Enhance test.
51495         * tests/test-strerror_r.c (main): Likewise.
51497 2011-06-08  Bruno Haible  <bruno@clisp.org>
51499         gnulib-tool: Better isolation between different gnulib-tool invocations.
51500         * gnulib-tool: New option --witness-c-macro.
51501         (witness_c_macro): New variable.
51502         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
51503         AM_CPPFLAGS define it as a C macro.
51504         (func_emit_tests_Makefile_am): Likewise.
51505         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51506         read it from there.
51507         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
51508         m4_define, not AC_DEFUN.
51509         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
51510         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
51511         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51512         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
51513         s|...|...|, to substitute the values of the GNULIB_* module indicator
51514         variables.
51515         * modules/dirent (Makefile.am): Likewise.
51516         * modules/fcntl-h (Makefile.am): Likewise.
51517         * modules/iconv-h (Makefile.am): Likewise.
51518         * modules/langinfo (Makefile.am): Likewise.
51519         * modules/locale (Makefile.am): Likewise.
51520         * modules/math (Makefile.am): Likewise.
51521         * modules/netdb (Makefile.am): Likewise.
51522         * modules/poll-h (Makefile.am): Likewise.
51523         * modules/pty (Makefile.am): Likewise.
51524         * modules/search (Makefile.am): Likewise.
51525         * modules/signal (Makefile.am): Likewise.
51526         * modules/spawn (Makefile.am): Likewise.
51527         * modules/stdio (Makefile.am): Likewise.
51528         * modules/stdlib (Makefile.am): Likewise.
51529         * modules/string (Makefile.am): Likewise.
51530         * modules/sys_ioctl (Makefile.am): Likewise.
51531         * modules/sys_select (Makefile.am): Likewise.
51532         * modules/sys_socket (Makefile.am): Likewise.
51533         * modules/sys_stat (Makefile.am): Likewise.
51534         * modules/sys_times (Makefile.am): Likewise.
51535         * modules/sys_utsname (Makefile.am): Likewise.
51536         * modules/sys_wait (Makefile.am): Likewise.
51537         * modules/termios (Makefile.am): Likewise.
51538         * modules/time (Makefile.am): Likewise.
51539         * modules/unistd (Makefile.am): Likewise.
51540         * modules/wchar (Makefile.am): Likewise.
51542 2011-06-08  Eric Blake  <eblake@redhat.com>
51544         strerror: simplify replacement
51545         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
51546         * modules/strerror (configure.ac): No prereqs needed here...
51547         * modules/strerror-override (configure.ac): ...but this needs it.
51548         (Files): Add file for needed prereq macro.
51550 2011-06-08  Bruno Haible  <bruno@clisp.org>
51552         strerror_r-posix: Tweaks.
51553         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
51554         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
51555         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
51556         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
51557         (gl_FUNC_STRERROR_R): ... to here.
51558         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
51560 2011-06-07  Eric Blake  <eblake@redhat.com>
51562         perror: document fixed bugs
51563         * doc/posix-functions/perror.texi (perror): Document recent
51564         patches.
51566 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
51568         stat-time: get_stat_birthtime failure is better-defined
51569         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
51570         return a timestamp whose tv_sec and tv_nsec values are both -1.
51571         Previously, the spec said only that the tv_nsec value was negative.
51572         This upward-compatible change simplifies GNU tar a bit.
51574 2011-06-07  Eric Blake  <eblake@redhat.com>
51576         strerror_r-posix: work around cygwin 1.7.9
51577         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
51578         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
51579         bug without replacing strerror_r.
51580         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
51581         strerror_r is buggy, but without requiring strerror_r compilation.
51582         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
51584         test-perror: relax test to ignore cygwin bug
51585         * tests/test-perror2.c (main): Relax test on requiring detection
51586         of stream errors, and use unbuffered stream.
51587         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51588         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51589         * doc/posix-functions/fputc.texi (fputc): Likewise.
51590         * doc/posix-functions/fputs.texi (fputs): Likewise.
51591         * doc/posix-functions/fputws.texi (fputws): Likewise.
51592         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51593         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51594         * doc/posix-functions/getopt.texi (getopt): Likewise.
51595         * doc/posix-functions/perror.texi (perror): Likewise.
51596         * doc/posix-functions/printf.texi (printf): Likewise.
51597         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51598         * doc/posix-functions/psignal.texi (psignal): Likewise.
51599         * doc/posix-functions/putc.texi (putc): Likewise.
51600         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51601         Likewise.
51602         * doc/posix-functions/putchar.texi (putchar): Likewise.
51603         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51604         Likewise.
51605         * doc/posix-functions/puts.texi (puts): Likewise.
51606         * doc/posix-functions/putwc.texi (putwc): Likewise.
51607         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51608         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51609         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51610         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51611         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51612         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51613         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51614         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51616 2011-05-22  Bruno Haible  <bruno@clisp.org>
51618         strerror: Move AC_LIBOBJ invocations to module description.
51619         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51620         gl_PREREQ_STRERROR invocations from here...
51621         * modules/strerror (configure.ac): ... to here.
51623 2011-05-21  Bruno Haible  <bruno@clisp.org>
51625         perror: Use common idiom.
51626         * modules/perror (configure.ac): Reorder statements.
51628 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51630         tests: fix usage message in 'mktempd_'
51631         * tests/init.sh (mktempd_): In the usage message, use literal
51632         'mktempd_', not '$ME' (which is even undefined), as the name of
51633         the subroutine.
51635 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51637         tests init: new function 'fatal_', for hard errors
51638         Before this patch, the only way offered by tests/init.sh to
51639         properly signal a hard error was the `framework_failure_'
51640         function.  But the error message issued by that function,
51641         as its name would suggest, refers to a set-up failure in the
51642         testsuite, while hard errors can obviously also be due to
51643         other reasons.  The best way to fix this inconsistency is to
51644         introduce a new function with a more general error message.
51645         * tests/init.sh (fatal_): New function.
51647 2011-06-06  Eric Blake  <eblake@redhat.com>
51649         canonicalize-lgpl: use common idiom
51650         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51651         over newer POSIX -Rf.
51652         Reported by Bruno Haible.
51654         canonicalize-lgpl: work around AIX realpath bug
51655         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51656         * doc/posix-functions/realpath.texi (realpath): Document it.
51657         Reported by Bruno Haible.
51659         strerror: work around FreeBSD bug
51660         * lib/strerror.c (strerror): Special case 0.
51661         Reported by Bruno Haible.
51663         strerror-override: avoid bloating errno module
51664         * modules/errno (Files, configure.ac): Move replacement strings...
51665         * modules/strerror-override: ...to new module.
51666         * modules/strerror (Depends-on): Add strerror-override.
51667         * modules/strerror_r-posix (Depends-on): Likewise.
51668         * MODULES.html.sh: Document new module.
51669         Reported by Bruno Haible.
51671 2011-06-06  Bruno Haible  <bruno@clisp.org>
51673         spawn-pipe tests: Rename program.
51674         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51675         * tests/test-spawn-pipe-child.c: Update comment.
51676         * tests/test-spawn-pipe.sh: Update.
51677         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51679         spawn-pipe tests: Link the child program only against libc.
51680         * tests/test-spawn-pipe-child.c: New file, extracted from
51681         tests/test-spawn-pipe.c.
51682         (main): Expect only one argument.
51683         (is_open): New function, copied from tests/test-pipe.c.
51684         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51685         (child_main): Remove function.
51686         (test_pipe): Pass only one argument to the child program.
51687         (main): Remove child process code. Expect the child program's name as
51688         first argument.
51689         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51690         argument.
51691         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51692         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51693         test-spawn-pipe-child against no libraries.
51695 2011-06-06  Bruno Haible  <bruno@clisp.org>
51697         careadlinkat: Avoid mismatch between ssize_t and int.
51698         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51699         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51701 2011-06-06  Jim Meyering  <meyering@redhat.com>
51703         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51704         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51705         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51707 2011-06-05  Bruno Haible  <bruno@clisp.org>
51709         ansi-c++-opt: Interoperability with libtool.
51710         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51711         set the variable to "no", not to ":".
51712         * NEWS: Mention the change.
51714 2011-06-05  Bruno Haible  <bruno@clisp.org>
51716         acl: Fix test failure on AIX 7.
51717         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51718         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51720 2011-06-05  Bruno Haible  <bruno@clisp.org>
51722         pipe-filter-ii: Fix test failure on AIX and IRIX.
51723         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51724         with EAGAIN, retry with a smaller buffer size.
51726 2011-06-05  Bruno Haible  <bruno@clisp.org>
51728         localename: Fix link dependencies.
51729         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51730         * modules/localename-tests (Makefile.am): Link test-localename with
51731         $(LIBTHREAD).
51733 2011-06-05  Bruno Haible  <bruno@clisp.org>
51735         error: Avoid gcc warning.
51736         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51738 2011-06-05  Bruno Haible  <bruno@clisp.org>
51740         unsetenv: Avoid gcc warning.
51741         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51743 2011-06-05  Bruno Haible  <bruno@clisp.org>
51745         setenv: Avoid gcc warning.
51746         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51748 2011-06-05  Bruno Haible  <bruno@clisp.org>
51750         sys_select: Ensure memset is declared also on AIX 7.
51751         * lib/sys_select.in.h: Include <string.h> also on AIX.
51752         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51753         self-contained also on AIX 7.1.
51755 2011-06-04  Jim Meyering  <meyering@redhat.com>
51757         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51758         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51759         function name, "error".
51760         (_gl_translatable_diag_func_re): New configurable variable.
51762 2011-06-04  Bruno Haible  <bruno@clisp.org>
51764         getopt: Avoid gcc warning.
51765         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51767 2011-06-04  Bruno Haible  <bruno@clisp.org>
51769         strerror_r: Fix comments.
51770         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51771         commit.
51773 2011-06-04  Bruno Haible  <bruno@clisp.org>
51775         perror: Fix compilation error.
51776         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51777         Undefine fprintf, not sprintf.
51778         * modules/perror (Depends-on): Remove intprops, verify.
51780 2011-06-04  Bruno Haible  <bruno@clisp.org>
51782         setlocale: Enable replacement on Cygwin 1.5.
51783         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51784         Cygwin 1.5.x.
51785         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51786         LC_CTYPE category also exists on Cygwin 1.5.x.
51788 2011-06-04  Bruno Haible  <bruno@clisp.org>
51790         strerror-override: Don't disable symbol renamings.
51791         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51792         * lib/strerror-override.c: Include config.h.
51793         (strerror_override): Don't undefine.
51795 2011-06-03  Bruno Haible  <bruno@clisp.org>
51797         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51798         * lib/localename.h: Update copyright header.
51799         * lib/localename.c: Likewise.
51800         * lib/relocatable.h: Likewise.
51801         * lib/relocatable.c: Likewise.
51803 2011-06-02  Bruno Haible  <bruno@clisp.org>
51805         doc: Fix a module name.
51806         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51808 2011-06-02  Bruno Haible  <bruno@clisp.org>
51810         pipe2: Remove dependency on 'nonblocking' module.
51811         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51812         O_NONBLOCK is defined by gnulib.
51813         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51814         is zero.
51815         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51816         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51817         defined by gnulib.
51818         (get_nonblocking_flag): New function.
51819         (main): Test O_NONBLOCK flag only if it is nonzero.
51820         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51822 2011-06-03  Jim Meyering  <meyering@redhat.com>
51824         maint: three new prohibit-header-without-use rules
51825         Prohibit use of cloexec.h, posixver.h, same.h without use.
51826         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51827         (sc_prohibit_posixver_without_use): Likewise.
51828         (sc_prohibit_same_without_use): Likewise.
51830 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51832         allocator: 'die' routine is now given requested size
51833         * lib/allocator.h (struct allocator.die): New size arg.
51834         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51835         If the actual problem is an ssize_t limitation, not a size_t or
51836         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51838 2011-06-01  Eric Blake  <eblake@redhat.com>
51840         strerror: drop strerror_r dependency
51841         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51842         * lib/strerror-override.c (strerror_override): ...to new file.
51843         * lib/strerror-override.h: Add prototype.
51844         * lib/strerror-impl.h: Delete.
51845         * lib/strerror.c (strerror): New implementation.
51846         * modules/errno (Files): Add new files.
51847         (configure.ac): Compile new file as appropriate.
51848         * modules/strerror (Files): Drop unused file.
51849         (Depends-on): Drop strerror_r-posix.
51850         * MODULES.html.sh: Document strerror_r-posix.
51851         Requested by Sam Steingold.
51853         perror: call strerror_r directly
51854         * modules/perror (Files): Drop strerror-impl.h.
51855         * lib/perror.c (perror): Use our own stack buffer, rather than
51856         calling a wrapper that uses static storage.
51857         * doc/posix-functions/perror.texi (perror): Document a limitation
51858         of our replacement.
51860         strerror_r: fix includes for FreeBSD
51861         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51862         since we use abort on some platforms.
51863         Reported by Matthias Bolte.
51865 2011-05-31  Bruno Haible  <bruno@clisp.org>
51867         Fix link errors in tests: openat-die uses gettext-h.
51868         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51869         against $(LIBINTL).
51870         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51871         against $(LIBINTL).
51872         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51873         $(LIBINTL).
51874         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51875         against $(LIBINTL).
51876         * modules/linkat-tests (Makefile.am): Link test-linkat against
51877         $(LIBINTL).
51878         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51879         $(LIBINTL).
51880         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51881         against $(LIBINTL).
51882         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51883         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51884         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51885         $(LIBINTL).
51886         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51887         $(LIBINTL).
51888         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51889         $(LIBINTL).
51890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51892 2011-05-31  Bruno Haible  <bruno@clisp.org>
51894         Fix link errors in tests: wait-process uses gettext-h.
51895         * modules/nonblocking-pipe-tests (Makefile.am): Set
51896         test_nonblocking_pipe_main_LDADD.
51897         * modules/nonblocking-socket-tests (Makefile.am): Link
51898         test-nonblocking-socket-main against $(LIBINTL).
51899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51901 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51903         assert-h: work around 'verify' incompatibility
51904         * lib/verify.h: Use @...@ directives, not ifdef.
51905         * modules/assert-h (assert.h): Implement the directives.
51906         (assert.h): Substitute the symbol-prefix more consistently.
51908 2011-05-29  Jim Meyering  <meyering@redhat.com>
51910         trim: remove three superfluous assignments
51911         * lib/trim.c (trim2): Remove three superfluous assignments
51912         and correct brace positioning.
51914 2011-05-29  Bruno Haible  <bruno@clisp.org>
51916         wctype-h: Avoid namespace pollution on Solaris 2.6.
51917         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51918         identifiers.
51919         * doc/posix-headers/wctype.texi: Mention the problem.
51920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51922 2011-05-28  Jim Meyering  <meyering@redhat.com>
51924         parse-datetime.y: accommodate -Wstrict-overflow
51925         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51926         placate -Wstrict-overflow.
51928         trim: avoid a warning from -O2 -Wstrict-overflow
51929         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51931 2011-05-29  Bruno Haible  <bruno@clisp.org>
51933         gnulib-tool: Fix bug in yesterday's commit.
51934         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51935         twice.
51937 2011-05-29  Bruno Haible  <bruno@clisp.org>
51939         Allow multiple gnulib generated include files to be combined.
51940         * gnulib-tool (func_compute_include_guard_prefix): New function.
51941         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51942         ${gl_include_guard_prefix} references.
51943         (func_import, func_create_testdir): Invoke
51944         func_compute_include_guard_prefix.
51945         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51946         * lib/ctype.in.h: Likewise.
51947         * lib/dirent.in.h: Likewise.
51948         * lib/errno.in.h: Likewise.
51949         * lib/fcntl.in.h: Likewise.
51950         * lib/float.in.h: Likewise.
51951         * lib/getopt.in.h: Likewise.
51952         * lib/iconv.in.h: Likewise.
51953         * lib/langinfo.in.h: Likewise.
51954         * lib/locale.in.h: Likewise.
51955         * lib/math.in.h: Likewise.
51956         * lib/netdb.in.h: Likewise.
51957         * lib/netinet_in.in.h: Likewise.
51958         * lib/poll.in.h: Likewise.
51959         * lib/pthread.in.h: Likewise.
51960         * lib/pty.in.h: Likewise.
51961         * lib/sched.in.h: Likewise.
51962         * lib/se-selinux.in.h: Likewise.
51963         * lib/search.in.h: Likewise.
51964         * lib/signal.in.h: Likewise.
51965         * lib/spawn.in.h: Likewise.
51966         * lib/stdarg.in.h: Likewise.
51967         * lib/stddef.in.h: Likewise.
51968         * lib/stdint.in.h: Likewise.
51969         * lib/stdio.in.h: Likewise.
51970         * lib/stdlib.in.h: Likewise.
51971         * lib/string.in.h: Likewise.
51972         * lib/strings.in.h: Likewise.
51973         * lib/sys_file.in.h: Likewise.
51974         * lib/sys_ioctl.in.h: Likewise.
51975         * lib/sys_select.in.h: Likewise.
51976         * lib/sys_socket.in.h: Likewise.
51977         * lib/sys_stat.in.h: Likewise.
51978         * lib/sys_time.in.h: Likewise.
51979         * lib/sys_times.in.h: Likewise.
51980         * lib/sys_uio.in.h: Likewise.
51981         * lib/sys_utsname.in.h: Likewise.
51982         * lib/sys_wait.in.h: Likewise.
51983         * lib/sysexits.in.h: Likewise.
51984         * lib/termios.in.h: Likewise.
51985         * lib/time.in.h: Likewise.
51986         * lib/unistd.in.h: Likewise.
51987         * lib/wchar.in.h: Likewise.
51988         * lib/wctype.in.h: Likewise.
51989         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51990         * modules/ctype (Makefile.am): Likewise.
51991         * modules/dirent (Makefile.am): Likewise.
51992         * modules/errno (Makefile.am): Likewise.
51993         * modules/fcntl-h (Makefile.am): Likewise.
51994         * modules/float (Makefile.am): Likewise.
51995         * modules/getopt-posix (Makefile.am): Likewise.
51996         * modules/iconv-h (Makefile.am): Likewise.
51997         * modules/langinfo (Makefile.am): Likewise.
51998         * modules/locale (Makefile.am): Likewise.
51999         * modules/math (Makefile.am): Likewise.
52000         * modules/netdb (Makefile.am): Likewise.
52001         * modules/netinet_in (Makefile.am): Likewise.
52002         * modules/poll-h (Makefile.am): Likewise.
52003         * modules/pthread (Makefile.am): Likewise.
52004         * modules/pty (Makefile.am): Likewise.
52005         * modules/sched (Makefile.am): Likewise.
52006         * modules/search (Makefile.am): Likewise.
52007         * modules/selinux-h (Makefile.am): Likewise.
52008         * modules/signal (Makefile.am): Likewise.
52009         * modules/spawn (Makefile.am): Likewise.
52010         * modules/stdarg (Makefile.am): Likewise.
52011         * modules/stddef (Makefile.am): Likewise.
52012         * modules/stdint (Makefile.am): Likewise.
52013         * modules/stdio (Makefile.am): Likewise.
52014         * modules/stdlib (Makefile.am): Likewise.
52015         * modules/string (Makefile.am): Likewise.
52016         * modules/strings (Makefile.am): Likewise.
52017         * modules/sys_file (Makefile.am): Likewise.
52018         * modules/sys_ioctl (Makefile.am): Likewise.
52019         * modules/sys_select (Makefile.am): Likewise.
52020         * modules/sys_socket (Makefile.am): Likewise.
52021         * modules/sys_stat (Makefile.am): Likewise.
52022         * modules/sys_time (Makefile.am): Likewise.
52023         * modules/sys_times (Makefile.am): Likewise.
52024         * modules/sys_uio (Makefile.am): Likewise.
52025         * modules/sys_utsname (Makefile.am): Likewise.
52026         * modules/sys_wait (Makefile.am): Likewise.
52027         * modules/sysexits (Makefile.am): Likewise.
52028         * modules/termios (Makefile.am): Likewise.
52029         * modules/time (Makefile.am): Likewise.
52030         * modules/unistd (Makefile.am): Likewise.
52031         * modules/wchar (Makefile.am): Likewise.
52032         * modules/wctype-h (Makefile.am): Likewise.
52033         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
52035 2011-05-29  Bruno Haible  <bruno@clisp.org>
52037         assert-h: Allow multiple gnulib generated replacements to coexist.
52038         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
52040 2011-05-29  Bruno Haible  <bruno@clisp.org>
52042         argp: Allow coexistence with strerror_r-posix module.
52043         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
52044         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
52045         by gnulib's <string.h> replacement), assume it has the POSIX signature,
52046         not the glibc signature.
52048 2011-05-28  Bruno Haible  <bruno@clisp.org>
52050         gnulib-tool: Alternative structure of testdirs, similar to --import.
52051         * gnulib-tool: New option --single-configure.
52052         (func_usage): Document it.
52053         (single_configure): New variable.
52054         (func_modules_transitive_closure_separately,
52055         func_modules_transitive_closure_separately,
52056         func_determine_use_libtests, func_modules_add_dummy_separately,
52057         func_modules_to_filelist_separately): New functions, extracted from
52058         func_import.
52059         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
52060         (func_import): Use the new functions.
52061         (func_create_testdir): Set final_modules. Handle $single_configure =
52062         true case.
52064 2011-05-28  Bruno Haible  <bruno@clisp.org>
52066         getloadavg: Remove an unreliable safety check.
52067         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
52068         getloadavg.c is in place.
52069         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
52070         Reported by Sam Steingold <sds@gnu.org>.
52072 2011-05-28  Bruno Haible  <bruno@clisp.org>
52074         doc: Cleanup yet another file produced by texinfo.tex.
52075         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
52077 2011-05-28  Bruno Haible  <bruno@clisp.org>
52079         Finish the conditional dependencies mechanism.
52080         * gnulib-tool: New option --no-conditional-dependencies.
52081         (func_usage): Document it. Don't mark --conditional-dependencies as
52082         experimental.
52083         (cond_dependencies): The possible values can now be true, false, empty.
52084         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
52085         (func_import): Store setting in gnulib-cache.m4 and read it from there.
52086         * doc/gnulib-tool.texi (Conditional dependencies): New section.
52088 2011-05-28  Bruno Haible  <bruno@clisp.org>
52090         doc: Use a recent texinfo.tex.
52091         * doc/Makefile (tex_opts): New variable.
52092         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
52094 2011-05-28  Jim Meyering  <meyering@redhat.com>
52096         intprops.h: adjust comment to match code change
52097         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
52098         only once, it *may* have side effects.  Also fix an unrelated typo.
52099         (_GL_INT_SIGNED): Likewise.
52101 2011-05-26  Simon Josefsson  <simon@josefsson.org>
52103         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
52105 2011-05-26  Bruno Haible  <bruno@clisp.org>
52107         mbsrchr: Avoid collision with system function on Interix.
52108         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
52109         Reported by Markus Duft <mduft@gentoo.org>.
52111 2011-05-15  James Youngman  <jay@gnu.org>
52113         getopt: for ambiguous options, enumerate the possibilities.
52114         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
52115         the ambiguous options when an ambiguous prefix is given. This was
52116         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
52117         glibc change was
52118         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
52120 2011-05-25  Eric Blake  <eblake@redhat.com>
52122         getcwd: work around mingw bug
52123         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
52124         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52125         Reported by Matthias Bolte.
52127 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
52129         test-intprops: disable -Wtype-limits diagnostics
52130         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
52131         diagnostics.  Otherwise, the integer overflow macros generate many
52132         diagnostics.  Reported by Jim Meyering in
52133         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52135         intprops: shorten, to pacify gcc -Woverlength-strings
52136         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
52137         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
52138         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
52139         likely to run afoul of C compiler limits for string constant lengths.
52140         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52142 2011-05-24  Eric Blake  <eblake@redhat.com>
52144         docs: document recently fixed glibc printf bug
52145         * doc/posix-functions/fprintf.texi (fprintf): Document it.
52146         * doc/posix-functions/printf.texi (printf): Likewise.
52147         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52148         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52150         closein-tests: convert to init.sh
52151         * modules/closein-tests (Files): Add init.sh
52152         * tests/test-closein.sh Use it.
52154         yesno-tests: convert to init.sh
52155         * modules/yesno-tests (Files): Add init.sh.
52156         * tests/test-yesno.sh: Use it.
52158         atexit-tests: ensure reliable exit status
52159         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
52160         Reported by Bruno Haible.
52162 2011-05-24  Bruno Haible  <bruno@clisp.org>
52164         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
52165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
52166         gl_PREREQ_STRERROR_R invocations from here...
52167         * modules/strerror_r-posix (configure.ac): ... to here.
52169 2011-05-24  Eric Blake  <eblake@redhat.com>
52171         strerror_r: fix missing header
52172         * lib/strerror_r.c: Avoid compiler warning about snprintf.
52174         strerror_r: fix AIX test failures
52175         * lib/strerror_r.c (strerror_r): Convert silent truncation to
52176         ERANGE failure.
52178         strerror_r: fix Solaris test failures
52179         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
52180         failures.
52181         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52183         strerror_r: enforce POSIX recommendations
52184         * lib/strerror_r.c (safe_copy): New helper method.
52185         (strerror_r): Guarantee a non-empty string.
52186         * tests/test-strerror_r.c (main): Enhance tests to incorporate
52187         recent POSIX rulings and to match our strerror guarantees.
52188         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52190 2011-05-24  Jim Meyering  <meyering@redhat.com>
52192         test-perror2.c: avoid warning about unused variable
52193         * tests/test-perror2.c (main): Remove declaration of unused "fp".
52195 2011-05-24  Eric Blake  <eblake@redhat.com>
52197         perror: avoid spurious test failure on HP-UX
52198         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
52200         tests: fix logic bug in init.sh
52201         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
52202         shell.
52204 2011-05-24  Jim Meyering  <meyering@redhat.com>
52206         utimensat: do not reference an out-of-scope buffer
52207         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
52208         declared in an inner scope, yet "times" would be dereferenced outside
52209         the scope in which "ts" was valid.
52210         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
52211         of ts[2] "out/up", so that the use of aliased "times" (via
52212         "times = ts;") does not end up referencing an out-of-scope "ts"
52214         opendir-safer.c: don't clobber errno; don't close negative FD
52215         * lib/opendir-safer.c (opendir_safer):
52216         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
52217         file descriptor, and more importantly, don't clobber the
52218         offending errno value with EINVAL.  Before, upon failure
52219         of dup_safer, we would pass the negative file descriptor to
52220         fdopendir, which would clobber errno.
52222 2011-05-23  Bruno Haible  <bruno@clisp.org>
52224         idcache: Fix module description.
52225         * modules/idcache (Include): Set to "idcache.h".
52227 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
52229         gnulib-tool: fix portability problem with MacOS sed
52230         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
52231         before the "}".  Problem reported by Leo in
52232         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
52233         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
52234         sed_extract_condition1, sed_extract_condition2.
52236 2011-05-23  Bruno Haible  <bruno@clisp.org>
52238         hash: Simplify autoconf macro.
52239         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
52241 2011-05-23  Bruno Haible  <bruno@clisp.org>
52243         getugroups: Fix module description.
52244         * modules/getugroups (Include): Set to "getugroups.h".
52246 2011-05-23  Bruno Haible  <bruno@clisp.org>
52248         linkat: Simplify autoconf macro.
52249         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
52251 2011-05-23  Bruno Haible  <bruno@clisp.org>
52252             Eric Blake  <eblake@redhat.com>
52254         linkat, renameat: Update dependencies.
52255         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
52256         * modules/linkat (Depends-on): Likewise. Remove also readlink,
52257         symlinkat.
52259 2011-05-23  Jim Meyering  <meyering@redhat.com>
52261         maint.mk: more tight_scope improvements
52262         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
52263         (_gl_TS_headers): Define only in if-0'd block.
52264         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
52265         sometimes we must *not* use it.  Adjust uses accordingly.
52266         (sc_tight_scope): Use much simpler grep-based test to determine
52267         whether we skip this rule.
52269         maint.mk: generalize/improve the tight-scope rule
52270         * top/maint.mk: Emit a warning when the test is skipped.
52271         (_gl_TS_dir): Add $(srcdir)/ prefix.
52272         (_gl_TS_function_match): Simplify, rather than trying
52273         to enumerate common types.  Otherwise, it would fail to match an
52274         "extern unsigned char const *" declaration in idutils.
52275         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
52276         a way to support use of that type of macro.
52277         (_gl_TS_var_match): Simplify regexp.
52278         (_gl_TS_obj_files): New configurable variable.
52279         (_gl_TS_headers): Likewise.
52281 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52283         verify: fix bug when gnulib <assert.h> is also included
52284         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
52285         is defined, not if _GL_STATIC_ASSERT_H is not defined.
52286         Perhaps there's a better way, but this fixes the immediate problem.
52287         Problem reported by Bruno Haible in
52288         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
52290 2011-05-22  Bruno Haible  <bruno@clisp.org>
52292         xgetcwd: Simplify autoconf macro.
52293         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
52295 2011-05-22  Bruno Haible  <bruno@clisp.org>
52297         New module 'mktime-internal'.
52298         * modules/mktime-internal: New file.
52299         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
52300         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
52301         mktime_internal as a C macro if libc has __mktime_internal.
52302         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
52303         conditions.
52304         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
52306 2011-05-22  Bruno Haible  <bruno@clisp.org>
52308         timegm: Correct mktime replacement statements.
52309         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
52310         defining mktime as a C macro. This completes a 2009-07-28 commit.
52312 2011-05-22  Bruno Haible  <bruno@clisp.org>
52314         timegm: Simplify autoconf macro.
52315         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
52317 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
52319         clock-time: change to LGPLv2+.
52320         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
52321         BSD-like but we have no mark for that; this is good enough for now.
52323 2011-05-21  Bruno Haible  <bruno@clisp.org>
52325         strerror_r: Fix comments.
52326         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
52328 2011-05-21  Bruno Haible  <bruno@clisp.org>
52330         relocatable-prog-wrapper: Fix possible link error.
52331         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
52332         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
52333         (gl_FUNC_SETENV): ... to here.
52334         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
52335         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
52337 2011-05-21  Bruno Haible  <bruno@clisp.org>
52339         relocatable-prog-wrapper: Assume strerror() exists.
52340         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
52341         m4/strerror.m4.
52342         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
52343         * lib/relocwrapper.c: Remove mention of strerror module.
52344         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
52345         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
52346         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
52347         C macro.
52349 2011-05-21  Bruno Haible  <bruno@clisp.org>
52351         select: Simplify replacement idiom.
52352         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
52353         Win32 platforms.
52354         * lib/sys_select.in.h (select): Simplify accordingly.
52355         * modules/select (Depends-on): Likewise.
52357 2011-05-21  Bruno Haible  <bruno@clisp.org>
52359         mkdir-p: Simplify autoconf macro.
52360         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
52361         gl_FUNC_LCHOWN.
52363 2011-05-21  Eric Blake  <eblake@redhat.com>
52365         strerror_r: avoid clobbering strerror on cygwin
52366         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
52367         fall back instead to sys_errlist.
52368         * modules/strerror (configure.ac): Add witness.
52369         * tests/test-strerror_r.c (main): Enhance test.
52370         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52371         * tests/test-perror2.c (main): Free memory before exit.
52373 2011-05-21  Bruno Haible  <bruno@clisp.org>
52375         mkdtemp: Use gnulib naming conventions.
52376         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
52377         * modules/mkdtemp (configure.ac): Update.
52379 2011-05-20  Eric Blake  <eblake@redhat.com>
52381         strerror_r: avoid corrupting errno on Solaris
52382         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
52383         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52385         strerror_r: avoid compiler warning
52386         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
52388         strerror_r: simplify AIX code
52389         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
52391         test-perror: avoid spurious failure on FreeBSD
52392         * modules/perror-tests (Depends-on): Add strerror, now that
52393         strerror_r no longer pulls it in.
52395 2011-05-20  Bruno Haible  <bruno@clisp.org>
52397         strerror_r-posix: Remove unused dependencies.
52398         * modules/strerror_r-posix (Depends-on): Remove strerror.
52399         Reported by Eric Blake.
52401 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52403         intprops: remove assumption about A|B representation
52404         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
52405         is a valid integer if both A and B are.  Although this is true for
52406         all known practical hosts, the C standard doesn't guarantee it,
52407         and the code need not assume it.  Also, this change may work around
52408         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
52409         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
52411 2011-05-20  Eric Blake  <eblake@redhat.com>
52413         perror: work around FreeBSD bug
52414         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
52415         is broken.  Move AC_LIBOBJ...
52416         * modules/perror (configure.ac): Here.
52417         * doc/posix-functions/perror.texi (perror): Document this.
52418         * tests/test-perror2.c (main): Enhance test.
52420         test-perror: check for strerror interactions
52421         * tests/macros.h (STREQ): Add macro.
52422         * modules/perror-tests (Files): Add second test.
52423         * tests/test-perror2.c (main): New file.
52424         * doc/posix-functions/perror.texi (perror): Document glibc bug.
52426         test-perror: rewrite to use init script
52427         * modules/perror-tests (Files): Add init.sh.
52428         * tests/test-perror.sh: Use temporary directory.
52430 2011-05-20  Jim Meyering  <meyering@redhat.com>
52432         maint: replace misused "a" with "an"
52433         * doc/intprops.texi: "a integer"
52434         * doc/regex.texi: "a explanation"
52435         * lib/alignof.h: "a object"
52436         * lib/argmatch.h: "a explanation"
52437         * lib/argp-help.c: "a option" and "a OPTION_DOC"
52438         * lib/stdint.in.h: "a integer"
52439         * lib/userspec.c: "a owner"
52440         * doc/gnulib.texi: Fix "a idea", and reword.
52442 2011-05-19  Jim Meyering  <meyering@redhat.com>
52444         maint: correct misuse of "a" and "an"
52445         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
52446         * lib/argp-help.c: "an docum...": s/an/a/
52447         * lib/argp-parse.c: "An vector": s/An/A/
52448         * lib/execute.c: "an native": s/an/a/
52449         * lib/spawn-pipe.c: Likewise.
52450         * lib/gc.h: "an Gc_rc": s/an/a/
52451         * lib/unigbrk.in.h: "an grapheme": s/an/a/
52452         * lib/fts.c: "an stat.st_dev": s/an/a/
52454 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52456         intprops-tests: work around HP-UX 11.23 cc bug with constants
52457         * tests/test-intprops.c (VERIFY): New macro.
52458         (main): Use it, instead of verify, to work around the compiler bug; see
52459         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52461         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
52462         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
52463         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
52464         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
52465         (_GL_REMAINDER_OVERFLOW): Use it.
52467         intprops-tests: revert unsigned part of previous change
52468         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
52469         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
52470         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
52471         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
52473 2011-05-19  Bruno Haible  <bruno@clisp.org>
52475         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
52476         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
52477         strerror_r() returned without filling the buffer.
52478         Reported by Eric Blake.
52480 2011-05-19  Eric Blake  <eblake@redhat.com>
52482         strerror_r: guarantee unchanged errno
52483         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
52484         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
52485         failure.
52486         * tests/test-strerror_r.c (main): Enhance test.
52488 2011-05-19  Bruno Haible  <bruno@clisp.org>
52490         strerror_r: Reorder #if blocks.
52491         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
52492         for consistency with the previous commit.
52494 2011-05-19  Bruno Haible  <bruno@clisp.org>
52496         perror: Avoid clobbering the strerror buffer when possible.
52497         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
52498         * lib/strerror.c: Include it.
52499         * modules/strerror (Files): Add lib/strerror-impl.h.
52500         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
52501         (my_strerror): New function, defined through lib/strerror-impl.h.
52502         (perror): Use it instead of strerror.
52503         * modules/perror (Files): Add lib/strerror-impl.h.
52504         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
52506 2011-05-19  Eric Blake  <eblake@redhat.com>
52508         strerror_r: fix on newer cygwin
52509         * lib/strerror_r.c (strerror_r): Cygwin now has
52510         __xpg_strerror_r, use it.
52512 2011-05-19  Bruno Haible  <bruno@clisp.org>
52514         strerror_r: Avoid clobbering the strerror buffer when possible.
52515         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
52516         (sys_nerr, sys_errlist): New declarations.
52517         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
52518         HP-UX, native Win32, IRIX, and 32-bit Solaris.
52519         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
52521 2011-05-19  Bruno Haible  <bruno@clisp.org>
52523         strerror_r: Fix test failure on mingw.
52524         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
52525         EXTEND_STRERROR_R.
52526         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
52527         macros from errno.in.h instead.
52529 2011-05-19  Eric Blake  <eblake@redhat.com>
52531         strerror: relax test for Solaris
52532         * tests/test-strerror.c (main): Permit Solaris behavior.
52533         * tests/test-strerror_r.c (main): Likewise.
52535         strerror: enforce POSIX ruling on strerror(0)
52536         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
52537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52538         * lib/strerror_r.c (rpl_strerror_r): Work around it.
52539         * doc/posix-functions/strerror.texi (strerror): Document it.
52540         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
52541         * tests/test-strerror.c (main): Strengthen test.
52542         * tests/test-strerror_r.c (main): Likewise.
52544 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52546         intprop-tests: port to older and more-pedantic compilers
52547         * modules/intprops-tests (Files): Add tests/macros.h.
52548         * tests/test-intprops.c: Include macros.h.
52549         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
52550         it's no longer documented to expand to an integer constant expression.
52551         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
52552         argument is floating point, as it's no longer documented to expand
52553         to an integer constant expression in that case.
52554         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
52555         compiler bugs reported by Bruno Haible.  See
52556         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52557         (U0, U1): New constants, to work around the same bugs.  Also,
52558         in tests, use e.g., "(unsigned int) 39" rather than "39u".
52560         intprops: work around C compiler bugs
52561         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
52562         bug in Sun C 5.11 2010/08/13 and other compilers; see
52563         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52565         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
52566         * doc/intprops.texi (Integer Type Determination): Fix
52567         documentation for TYPE_IS_INTEGER: it returns an constant
52568         expression, not an integer constant expression.  Fix doc for
52569         TYPE_SIGNED: it returns an integer constant expression only if its
52570         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
52571         hardly worth documented that way....)
52573 2011-05-18  Bruno Haible  <bruno@clisp.org>
52575         strerror_r: Avoid clobbering the strerror buffer when possible.
52576         * lib/strerror_r.c (strerror_r): Merge the three implementations.
52577         Handle gnulib defined errno values here. When strerror() returns NULL
52578         or an empty string, return EINVAL.
52579         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
52580         gnulib defined errno values here.
52581         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
52583 2011-05-18  Eric Blake  <eblake@redhat.com>
52585         fnmatch: avoid compiler warning
52586         * lib/fnmatch_loop.c (FCT): Use correct type.
52587         Reported by Matthias Bolte.
52589 2011-05-13  Jim Meyering  <meyering@redhat.com>
52591         maint.mk: three new prohibit_<HDR>_without_use rules
52592         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52593         (sc_prohibit_stdio-safer_without_use): Likewise.
52594         (sc_prohibit_xfreopen_without_use): Likewise.
52596 2011-05-17  Jim Meyering  <meyering@redhat.com>
52598         announce-gen: fail if the NEWS delta is empty
52599         If there's nothing noteworthy in NEWS, then either you forgot
52600         or you shouldn't be releasing.
52601         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52603 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52605         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52606         reserved symbols starting with double underscore from the check.
52608 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52610         intprops: add doc
52611         * doc/intprops.texi: New file, documenting intprops.
52612         * doc/gnulib.texi (Particular Modules): Include it.
52614         verify: add doc to gnulib manual and fix example
52615         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52616         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52617         (Compile-time Assertions): Fix example so it can't overflow.
52619 2011-05-17  Jim Meyering  <meyering@redhat.com>
52621         warnings.m4: don't usurp save_CPPFLAGS variable name
52622         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52624         doc: fix typo
52625         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52627 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52628             Bruno Haible  <bruno@clisp.org>
52630         doc: Tweak recent change.
52631         * README (Portability guidelines): Tweak new text.
52632         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52633         Interix 6.1.
52635 2011-05-16  Eric Blake  <eblake@redhat.com>
52637         inttypes: avoid autoconf warning
52638         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52639         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52641 2011-05-16  Sam Steingold  <sds@gnu.org>
52642         and Eric Blake  <eblake@redhat.com>
52644         vc-list-files: accept multiple directory operands
52645         * build-aux/vc-list-files: Iterate over all remaining operands.
52647 2011-05-16  Bruno Haible  <bruno@clisp.org>
52649         Fix confusion regarding deprecated modules.
52650         * modules/calloc (Status, Notice): Mark module as deprecated, not
52651         obsolete.
52652         * modules/fnmatch-posix (Status, Notice): Likewise.
52653         * modules/getdate (Status, Notice): Likewise.
52654         * modules/getopt (Status, Notice): Likewise.
52655         * modules/malloc (Status, Notice): Likewise.
52656         * modules/pipe (Status, Notice): Likewise.
52657         * modules/realloc (Status, Notice): Likewise.
52658         * modules/rename-dest-slash (Status, Notice): Likewise.
52659         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52660         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52661         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52662         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52663         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52665 2011-05-16  Bruno Haible  <bruno@clisp.org>
52667         doc: List the target platforms.
52668         * doc/gnulib-intro.texi (Target Platforms): New section.
52669         * doc/gnulib.texi (Introduction): Update menu.
52670         * README (Portability guidelines): Refer to the new section. Update
52671         statement about oldest supported environment. Remove rationale why
52672         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52673         unportable C89 function.
52674         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52675         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52677 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52679         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52681 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52683         intprops-tests: new module
52684         * modules/intprops-tests, tests/test-intprops.c: New files.
52686         intprops: add safe, portable integer overflow checking
52687         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52688         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52689         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52690         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52691         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52692         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52693         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52694         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52695         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52696         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52697         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52699 2011-05-12  James Youngman  <jay@gnu.org>
52701         Add a test for glibc's Bugzilla bug #12378.
52702         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52703         doesn't allow the literal matching of a lone "[" (which is
52704         required by POSIX).
52705         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52707 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52709         Sync glibc change fixing Bugzilla bug #12378.
52710         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52711         beginning and fall back to matching as normal character if the
52712         string ends before the matching ']' is found.  This is what POSIX
52713         requires.
52715 2011-05-13  Eric Blake  <eblake@redhat.com>
52717         getcwd-lgpl: relax test for FreeBSD
52718         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52719         issue.
52720         * tests/test-getcwd-lgpl.c (main): Relax test.
52721         Reported by Matthias Bolte.
52723 2011-05-11  Eric Blake  <eblake@redhat.com>
52725         test-fflush: silence compiler warning
52726         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52728 2011-05-11  Bruno Haible  <bruno@clisp.org>
52730         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52731         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52732         * modules/canonicalize (Depends-on): Add 'nocrash'.
52733         * modules/canonicalize-lgpl (Depends-on): Likewise.
52734         * doc/posix-functions/realpath.texi: Update platforms list.
52735         Reported by Ryan Schmidt <ryandesign@macports.org>.
52737 2011-05-11  Bruno Haible  <bruno@clisp.org>
52739         group-member: Declare function in <unistd.h>.
52740         * lib/unistd.in.h (group_member): New declaration.
52741         * lib/group-member.h: Remove file.
52742         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52743         * tests/test-unistd-c++.cc: Check signature of group_member.
52744         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52745         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52746         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52747         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52748         HAVE_GROUP_MEMBER.
52749         * modules/group-member (Files): Remove lib/group-member.h.
52750         (Depends-on): Add unistd. Specify conditions.
52751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52752         (Include): Change to <unistd.h>.
52753         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52754         HAVE_GROUP_MEMBER.
52755         * NEWS: Mention the change.
52756         * lib/euidaccess.c: Don't include group-member.h.
52758 2011-05-11  Bruno Haible  <bruno@clisp.org>
52760         group-member: Document module.
52761         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52762         module.
52764 2011-05-11  Bruno Haible  <bruno@clisp.org>
52766         fclose: Fix mistake earlier today.
52767         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52769 2011-05-11  Eric Blake  <eblake@redhat.com>
52771         fclose: preserve fflush errors
52772         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52773         Reported by Jim Meyering.
52775         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52776         * build-aux/bootstrap (check_versions): When no specific version
52777         is required, merely check that the app produces an exit status
52778         that indicates its existence.
52780         maint.mk: drop redundant check
52781         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52782         the same but better.
52784 2011-05-11  Bruno Haible  <bruno@clisp.org>
52786         fclose: Fix possible link error.
52787         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52788         unregister_shadow_fd. Improve comments.
52789         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52790         Eric Blake.
52792 2011-05-11  Jim Meyering  <meyering@redhat.com>
52794         maint.mk: improve "can not" detection and generalize rule name
52795         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52796         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52797         Use the same technique as in sc_prohibit_doubled_word, so that
52798         we recognize "can not" also when the words are separated by a newline.
52799         Suggested by Eric Blake.
52800         (perl_filename_lineno_text_): Define.  Factored out of...
52801         (prohibit_doubled_word_): ...here.  Use the new definition.
52802         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52803         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52804         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52806 2011-05-10  Eric Blake  <eblake@redhat.com>
52808         fclose: avoid double close race when possible
52809         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52810         all but WINDOWS_SOCKETS.
52812 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52814         openat: correct new comment
52815         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52817 2011-05-10  Jim Meyering  <meyering@redhat.com>
52819         openat: add comments
52820         * lib/openat-proc.c (openat_proc_name): Add comments,
52821         mostly from Eric Blake.
52823 2011-05-09  Eric Blake  <eblake@redhat.com>
52825         openat: reduce syscalls in first probe of /proc
52826         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52827         be a directory.  Simplify the probe for .. bugs.
52828         * modules/openat (Depends-on): Drop same-inode.
52829         Reported by Bastien ROUCARIES.
52831 2011-05-09  Jim Meyering  <meyering@redhat.com>
52833         maint.mk: change semantics/name of tight_scope variables
52834         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52835         Rename variables to align with semantics that make them more useful.
52837         maint.mk: tweak new rule's name not to impinge
52838         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52839         (sc_tight_scope): Use new rule name rather than $@-0.
52841         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52842         * top/maint.mk (sc_tight_scope): New rule.
52843         (sc_tight_scope-0): New rule, ifdef'd out.
52844         (_gl_TS_dir): Default.
52845         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52846         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52848 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52850         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52851         Haible <bruno@clisp.org>.
52853 2011-05-08  Bruno Haible  <bruno@clisp.org>
52855         Comments.
52856         * m4/isnanf.m4: Add comment.
52857         * m4/isnanl.m4: Likewise.
52859 2011-05-08  Bruno Haible  <bruno@clisp.org>
52861         glob: Remove obsolete macro.
52862         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52864 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52866         intprops: Sun C 5.11 supports __typeof__
52867         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52868         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52869         which is new.
52870         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52872         intprops: switch to usual gnulib indenting and naming
52873         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52874         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52876         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52878 2011-05-08  Jim Meyering  <meyering@redhat.com>
52880         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52881         * top/maint.mk (release-prep): Use make's --no-print-directory
52882         option when generating the announcement.  This eliminates the
52883         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52884         generated announcement template.
52886 2011-05-08  Bruno Haible  <bruno@clisp.org>
52888         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52889         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52890         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52892 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52894         ignore-value, verify: Omit include files from lib_SOURCES.
52895         * modules/ignore-value, modules/verify (Makefile.am):
52896         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52897         that leads Automake to duplicate use of am__objects_... variables
52898         in Makefile.in.  See
52899         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52901 2011-05-07  Bruno Haible  <bruno@clisp.org>
52903         fclose: Simplify autoconf macro.
52904         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52905         defined.
52907 2011-05-07  Bruno Haible  <bruno@clisp.org>
52909         canonicalize-lgpl: Fix autoconf macro ordering bug.
52910         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52911         gl_STDLIB_H_DEFAULTS.
52913 2011-05-06  Eric Blake  <eblake@redhat.com>
52915         maintainer-makefile: make sc_po_check easier to tune
52916         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52917         to probe for strings, such as an alternate location for gnulib.
52919         fclose: guarantee behavior on seekable stdin
52920         * modules/fclose (Depends-on): Add fflush.
52921         * doc/posix-functions/fclose.texi (fclose): Document this.
52922         * tests/test-fclose.c (main): Make test for this unconditional.
52924 2011-05-06  Bruno Haible  <bruno@clisp.org>
52926         fflush, fpurge: Relicense under LGPLv2+.
52927         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52928         * modules/fpurge (License): Likewise.
52929         With permission from Eric Blake and Jim Meyering.
52930         Suggested by Eric Blake.
52932 2011-05-06  Karl Berry  <karl@gnu.org>
52934         * MODULES.html.sh (func_all_modules): remove exit.
52936 2011-05-06  Jim Meyering  <meyering@redhat.com>
52938         maint.mk: use info-gnu@ as the default only for a stable release
52939         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52940         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52941         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52944 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52946         assert-h: new module, which supports C1X-style static_assert
52947         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52948         * lib/verify.h: Revamp so that this can be copied into assert.h,
52949         while retaining the ability to use it standalone as before.
52950         Rename private identifiers so as not to encroach on the
52951         standard C namespace, since this is now used by assert.h.
52952         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52953         the old verify_true.
52954         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52955         the old verify_true.  Use _GL_VERIFY_TYPE.
52956         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52957         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52958         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52959         defined when this file is copied into the replacement assert.h.
52960         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52961         and _Static_assert is not built in.
52962         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52963         defined, and use the new macros mentioned above.
52964         * doc/posix-headers/assert.texi: Document this.
52966 2011-05-05  Bruno Haible  <bruno@clisp.org>
52968         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52969         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52970         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52971         gl_REPLACE_FCLOSE here.
52972         * modules/fflush (Depends-on): Remove fclose.
52973         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52974         combination with module 'fclose'.
52976 2011-05-05  Bruno Haible  <bruno@clisp.org>
52978         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52979         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52980         gl_FUNC_FFLUSH.
52981         (gl_FUNC_FFLUSH): Use it.
52982         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52983         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52984         gl_REPLACE_FSEEKO here.
52986 2011-05-05  Bruno Haible  <bruno@clisp.org>
52988         tzset: Relicense under LGPL.
52989         * modules/tzset (License): Change to LGPL.
52990         No agreement needed; it's a no-op.
52992         strtoimax, strtoumax: Relicense under LGPL.
52993         * modules/strtoimax (License): Change to LGPL.
52994         * modules/strtoumax (License): Likewise.
52995         With permission from Jim Meyering, Paul Eggert:
52996         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52997         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52999         getgroups: Relicense under LGPL.
53000         * modules/getgroups (License): Change to LGPL.
53001         With permission from Jim Meyering, Paul Eggert, Eric Blake:
53002         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
53003         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
53004         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53006         nanosleep: Relicense under LGPL.
53007         * modules/nanosleep (License): Change to LGPL.
53008         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
53009         Haible:
53010         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
53011         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
53012         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53013         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
53015         futimens: Relicense under LGPL.
53016         * modules/futimens (License): Change to LGPL.
53017         With permission from Eric Blake:
53018         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53020         fflush: Relicense under LGPL.
53021         * modules/fflush (License): Change to LGPL.
53022         With permission from Eric Blake, Bruno Haible, Jim Meyering:
53023         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53024         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
53025         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
53027         tmpfile: Relicense under LGPL.
53028         * modules/tmpfile (License): Change to LGPL.
53029         With permission from Ben Pfaff:
53030         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
53032         isfinite: Relicense under LGPL.
53033         * modules/isfinite (License): Change to LGPL.
53034         With permission from Ben Pfaff, Bruno Haible:
53035         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
53036         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
53038         acosl..tanl: Relicense under LGPL.
53039         * modules/acosl (License): Change to LGPL.
53040         * modules/asinl (License): Likewise.
53041         * modules/atanl (License): Likewise.
53042         * modules/cosl (License): Likewise.
53043         * modules/expl (License): Likewise.
53044         * modules/logl (License): Likewise.
53045         * modules/sinl (License): Likewise.
53046         * modules/sqrtl (License): Likewise.
53047         * modules/tanl (License): Likewise.
53048         Source code originally from glibc and Paolo Bonzini. Agreements:
53049         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
53050         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
53052 2011-05-05  Bruno Haible  <bruno@clisp.org>
53054         signal: Define sighandler_t.
53055         * lib/signal.in.h (sighandler_t): New type.
53056         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
53057         whether sighandler_t is defined.
53058         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
53059         * modules/signal (Depends-on): Add extensions.
53060         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
53061         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
53062         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
53064 2011-05-05  Eric Blake  <eblake@redhat.com>
53066         maint: remove useless REPLACE_*_H macros
53067         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
53068         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
53069         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
53070         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
53071         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
53072         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
53073         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
53074         * m4/btowc.m4: Update callers.
53075         * m4/dirfd.m4: Likewise.
53076         * m4/duplocale.m4: Likewise.
53077         * m4/fchdir.m4: Likewise.
53078         * m4/fdopendir.m4: Likewise.
53079         * m4/inet_ntop.m4: Likewise.
53080         * m4/inet_pton.m4: Likewise.
53081         * m4/ioctl.m4: Likewise.
53082         * m4/mbrlen.m4: Likewise.
53083         * m4/mbrtowc.m4: Likewise.
53084         * m4/mbsinit.m4: Likewise.
53085         * m4/mbsnrtowcs.m4: Likewise.
53086         * m4/mbsrtowcs.m4: Likewise.
53087         * m4/poll.m4: Likewise.
53088         * m4/setlocale.m4: Likewise.
53089         * m4/wcrtomb.m4: Likewise.
53090         * m4/wcsnrtombs.m4: Likewise.
53091         * m4/wcsrtombs.m4: Likewise.
53092         * m4/wctob.m4: Likewise.
53093         * m4/wcwidth.m4: Likewise.
53094         * modules/posix_spawn: Likewise.
53095         * modules/posix_spawn_file_actions_addclose: Likewise.
53096         * modules/posix_spawn_file_actions_adddup2: Likewise.
53097         * modules/posix_spawn_file_actions_addopen: Likewise.
53098         * modules/posix_spawn_file_actions_destroy: Likewise.
53099         * modules/posix_spawn_file_actions_init: Likewise.
53100         * modules/posix_spawnattr_destroy: Likewise.
53101         * modules/posix_spawnattr_getflags: Likewise.
53102         * modules/posix_spawnattr_getpgroup: Likewise.
53103         * modules/posix_spawnattr_getschedparam: Likewise.
53104         * modules/posix_spawnattr_getschedpolicy: Likewise.
53105         * modules/posix_spawnattr_getsigdefault: Likewise.
53106         * modules/posix_spawnattr_getsigmask: Likewise.
53107         * modules/posix_spawnattr_init: Likewise.
53108         * modules/posix_spawnattr_setflags: Likewise.
53109         * modules/posix_spawnattr_setpgroup: Likewise.
53110         * modules/posix_spawnattr_setschedparam: Likewise.
53111         * modules/posix_spawnattr_setschedpolicy: Likewise.
53112         * modules/posix_spawnattr_setsigdefault: Likewise.
53113         * modules/posix_spawnattr_setsigmask: Likewise.
53114         * modules/posix_spawnp: Likewise.
53116 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
53118         Add option to do-release-commit-and-tag to specify branch.
53119         * build-aux/do-release-commit-and-tag: Add --branch.
53121 2011-05-03  Bruno Haible  <bruno@clisp.org>
53123         Avoid unnecessary compilation units, through conditional dependencies.
53124         * modules/accept (Depends-on): Add conditions to the dependencies.
53125         * modules/acosl (Depends-on): Likewise.
53126         * modules/argz (Depends-on): Likewise.
53127         * modules/asinl (Depends-on): Likewise.
53128         * modules/atanl (Depends-on): Likewise.
53129         * modules/atoll (Depends-on): Likewise.
53130         * modules/bind (Depends-on): Likewise.
53131         * modules/btowc (Depends-on): Likewise.
53132         * modules/canonicalize-lgpl (Depends-on): Likewise.
53133         * modules/ceil (Depends-on): Likewise.
53134         * modules/ceilf (Depends-on): Likewise.
53135         * modules/ceill (Depends-on): Likewise.
53136         * modules/chdir-long (Depends-on): Likewise.
53137         * modules/chown (Depends-on): Likewise.
53138         * modules/close (Depends-on): Likewise.
53139         * modules/connect (Depends-on): Likewise.
53140         * modules/cosl (Depends-on): Likewise.
53141         * modules/dirfd (Depends-on): Likewise.
53142         * modules/dprintf (Depends-on): Likewise.
53143         * modules/dprintf-posix (Depends-on): Likewise.
53144         * modules/error (Depends-on): Likewise.
53145         * modules/euidaccess (Depends-on): Likewise.
53146         * modules/expl (Depends-on): Likewise.
53147         * modules/faccessat (Depends-on): Likewise.
53148         * modules/fchdir (Depends-on): Likewise.
53149         * modules/fclose (Depends-on): Likewise.
53150         * modules/fcntl (Depends-on): Likewise.
53151         * modules/fdopendir (Depends-on): Likewise.
53152         * modules/fflush (Depends-on): Likewise.
53153         * modules/floor (Depends-on): Likewise.
53154         * modules/floorf (Depends-on): Likewise.
53155         * modules/floorl (Depends-on): Likewise.
53156         * modules/fnmatch (Depends-on): Likewise.
53157         * modules/fopen (Depends-on): Likewise.
53158         * modules/fprintf-posix (Depends-on): Likewise.
53159         * modules/frexp (Depends-on): Likewise.
53160         * modules/frexp-nolibm (Depends-on): Likewise.
53161         * modules/frexpl (Depends-on): Likewise.
53162         * modules/frexpl-nolibm (Depends-on): Likewise.
53163         * modules/fseek (Depends-on): Likewise.
53164         * modules/fsusage (Depends-on): Likewise.
53165         * modules/ftell (Depends-on): Likewise.
53166         * modules/ftello (Depends-on): Likewise.
53167         * modules/futimens (Depends-on): Likewise.
53168         * modules/getcwd (Depends-on): Likewise.
53169         * modules/getcwd-lgpl (Depends-on): Likewise.
53170         * modules/getdelim (Depends-on): Likewise.
53171         * modules/getdomainname (Depends-on): Likewise.
53172         * modules/getgroups (Depends-on): Likewise.
53173         * modules/gethostname (Depends-on): Likewise.
53174         * modules/getline (Depends-on): Likewise.
53175         * modules/getlogin_r (Depends-on): Likewise.
53176         * modules/getopt-posix (Depends-on): Likewise.
53177         * modules/getpeername (Depends-on): Likewise.
53178         * modules/getsockname (Depends-on): Likewise.
53179         * modules/getsockopt (Depends-on): Likewise.
53180         * modules/getsubopt (Depends-on): Likewise.
53181         * modules/getusershell (Depends-on): Likewise.
53182         * modules/glob (Depends-on): Likewise.
53183         * modules/grantpt (Depends-on): Likewise.
53184         * modules/iconv_open (Depends-on): Likewise.
53185         * modules/iconv_open-utf (Depends-on): Likewise.
53186         * modules/inet_ntop (Depends-on): Likewise.
53187         * modules/inet_pton (Depends-on): Likewise.
53188         * modules/ioctl (Depends-on): Likewise.
53189         * modules/isapipe (Depends-on): Likewise.
53190         * modules/isfinite (Depends-on): Likewise.
53191         * modules/isinf (Depends-on): Likewise.
53192         * modules/lchown (Depends-on): Likewise.
53193         * modules/ldexpl (Depends-on): Likewise.
53194         * modules/link (Depends-on): Likewise.
53195         * modules/linkat (Depends-on): Likewise.
53196         * modules/listen (Depends-on): Likewise.
53197         * modules/logl (Depends-on): Likewise.
53198         * modules/lstat (Depends-on): Likewise.
53199         * modules/mbrlen (Depends-on): Likewise.
53200         * modules/mbrtowc (Depends-on): Likewise.
53201         * modules/mbsinit (Depends-on): Likewise.
53202         * modules/mbsnrtowcs (Depends-on): Likewise.
53203         * modules/mbsrtowcs (Depends-on): Likewise.
53204         * modules/mbtowc (Depends-on): Likewise.
53205         * modules/memcmp (Depends-on): Likewise.
53206         * modules/mkdir (Depends-on): Likewise.
53207         * modules/mkdtemp (Depends-on): Likewise.
53208         * modules/mkfifo (Depends-on): Likewise.
53209         * modules/mkfifoat (Depends-on): Likewise.
53210         * modules/mknod (Depends-on): Likewise.
53211         * modules/mkostemp (Depends-on): Likewise.
53212         * modules/mkostemps (Depends-on): Likewise.
53213         * modules/mkstemp (Depends-on): Likewise.
53214         * modules/mkstemps (Depends-on): Likewise.
53215         * modules/mktime (Depends-on): Likewise.
53216         * modules/nanosleep (Depends-on): Likewise.
53217         * modules/open (Depends-on): Likewise.
53218         * modules/openat (Depends-on): Likewise.
53219         * modules/perror (Depends-on): Likewise.
53220         * modules/poll (Depends-on): Likewise.
53221         * modules/popen (Depends-on): Likewise.
53222         * modules/posix_spawn (Depends-on): Likewise.
53223         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
53224         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53225         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53226         * modules/posix_spawnp (Depends-on): Likewise.
53227         * modules/pread (Depends-on): Likewise.
53228         * modules/printf-posix (Depends-on): Likewise.
53229         * modules/ptsname (Depends-on): Likewise.
53230         * modules/putenv (Depends-on): Likewise.
53231         * modules/pwrite (Depends-on): Likewise.
53232         * modules/readline (Depends-on): Likewise.
53233         * modules/readlink (Depends-on): Likewise.
53234         * modules/readlinkat (Depends-on): Likewise.
53235         * modules/recv (Depends-on): Likewise.
53236         * modules/recvfrom (Depends-on): Likewise.
53237         * modules/regex (Depends-on): Likewise.
53238         * modules/remove (Depends-on): Likewise.
53239         * modules/rename (Depends-on): Likewise.
53240         * modules/renameat (Depends-on): Likewise.
53241         * modules/rmdir (Depends-on): Likewise.
53242         * modules/round (Depends-on): Likewise.
53243         * modules/roundf (Depends-on): Likewise.
53244         * modules/roundl (Depends-on): Likewise.
53245         * modules/rpmatch (Depends-on): Likewise.
53246         * modules/select (Depends-on): Likewise.
53247         * modules/send (Depends-on): Likewise.
53248         * modules/sendto (Depends-on): Likewise.
53249         * modules/setenv (Depends-on): Likewise.
53250         * modules/setlocale (Depends-on): Likewise.
53251         * modules/setsockopt (Depends-on): Likewise.
53252         * modules/shutdown (Depends-on): Likewise.
53253         * modules/sigaction (Depends-on): Likewise.
53254         * modules/signbit (Depends-on): Likewise.
53255         * modules/sigprocmask (Depends-on): Likewise.
53256         * modules/sinl (Depends-on): Likewise.
53257         * modules/sleep (Depends-on): Likewise.
53258         * modules/snprintf (Depends-on): Likewise.
53259         * modules/snprintf-posix (Depends-on): Likewise.
53260         * modules/socket (Depends-on): Likewise.
53261         * modules/sprintf-posix (Depends-on): Likewise.
53262         * modules/sqrtl (Depends-on): Likewise.
53263         * modules/stat (Depends-on): Likewise.
53264         * modules/strchrnul (Depends-on): Likewise.
53265         * modules/strdup-posix (Depends-on): Likewise.
53266         * modules/strerror (Depends-on): Likewise.
53267         * modules/strerror_r-posix (Depends-on): Likewise.
53268         * modules/strndup (Depends-on): Likewise.
53269         * modules/strnlen (Depends-on): Likewise.
53270         * modules/strptime (Depends-on): Likewise.
53271         * modules/strsep (Depends-on): Likewise.
53272         * modules/strsignal (Depends-on): Likewise.
53273         * modules/strstr-simple (Depends-on): Likewise.
53274         * modules/strtod (Depends-on): Likewise.
53275         * modules/strtoimax (Depends-on): Likewise.
53276         * modules/strtok_r (Depends-on): Likewise.
53277         * modules/strtoumax (Depends-on): Likewise.
53278         * modules/symlink (Depends-on): Likewise.
53279         * modules/symlinkat (Depends-on): Likewise.
53280         * modules/tanl (Depends-on): Likewise.
53281         * modules/tcgetsid (Depends-on): Likewise.
53282         * modules/tmpfile (Depends-on): Likewise.
53283         * modules/trunc (Depends-on): Likewise.
53284         * modules/truncf (Depends-on): Likewise.
53285         * modules/truncl (Depends-on): Likewise.
53286         * modules/uname (Depends-on): Likewise.
53287         * modules/unlink (Depends-on): Likewise.
53288         * modules/unlockpt (Depends-on): Likewise.
53289         * modules/unsetenv (Depends-on): Likewise.
53290         * modules/usleep (Depends-on): Likewise.
53291         * modules/utimensat (Depends-on): Likewise.
53292         * modules/vasprintf (Depends-on): Likewise.
53293         * modules/vdprintf (Depends-on): Likewise.
53294         * modules/vdprintf-posix (Depends-on): Likewise.
53295         * modules/vfprintf-posix (Depends-on): Likewise.
53296         * modules/vprintf-posix (Depends-on): Likewise.
53297         * modules/vsnprintf (Depends-on): Likewise.
53298         * modules/vsnprintf-posix (Depends-on): Likewise.
53299         * modules/vsprintf-posix (Depends-on): Likewise.
53300         * modules/wcrtomb (Depends-on): Likewise.
53301         * modules/wcscasecmp (Depends-on): Likewise.
53302         * modules/wcscspn (Depends-on): Likewise.
53303         * modules/wcsdup (Depends-on): Likewise.
53304         * modules/wcsncasecmp (Depends-on): Likewise.
53305         * modules/wcsnrtombs (Depends-on): Likewise.
53306         * modules/wcspbrk (Depends-on): Likewise.
53307         * modules/wcsrtombs (Depends-on): Likewise.
53308         * modules/wcsspn (Depends-on): Likewise.
53309         * modules/wcsstr (Depends-on): Likewise.
53310         * modules/wcstok (Depends-on): Likewise.
53311         * modules/wcswidth (Depends-on): Likewise.
53312         * modules/wctob (Depends-on): Likewise.
53313         * modules/wctomb (Depends-on): Likewise.
53314         * modules/wctype (Depends-on): Likewise.
53315         * modules/wcwidth (Depends-on): Likewise.
53316         * modules/write (Depends-on): Likewise.
53318 2011-05-03  Bruno Haible  <bruno@clisp.org>
53320         Support for conditional dependencies.
53321         * doc/gnulib.texi (Module description): Document the syntax of
53322         conditional dependencies.
53323         * gnulib-tool: New option --conditional-dependencies.
53324         (func_usage): Document it.
53325         (cond_dependencies): New variable.
53326         (func_get_automake_snippet_conditional,
53327         func_get_automake_snippet_unconditional): New functions, extracted from
53328         func_get_automake_snippet.
53329         (func_get_automake_snippet): Use them.
53330         (sed_first_32_chars): New variable.
53331         (func_module_shellfunc_name): New function.
53332         (func_module_shellvar_name): New function.
53333         (func_module_conditional_name): New function.
53334         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
53335         func_cond_module_condition): New functions.
53336         (func_modules_transitive_closure): Add support for conditional
53337         dependencies.
53338         (func_emit_lib_Makefile_am): For a conditional module, enclose the
53339         conditional automake snippet in an automake conditional.
53340         (func_emit_autoconf_snippets): Emit shell functions that contain the
53341         code for conditional modules.
53342         (func_import, func_create_testdir): Update specification.
53344 2011-05-03  Eric Blake  <eblake@redhat.com>
53346         test-getaddrinfo: report error information
53347         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
53349 2011-05-03  Jim Meyering  <meyering@redhat.com>
53351         bootstrap: avoid build failure when $GZIP is set
53352         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
53353         program name.  If defined at all, it is supposed to list gzip options.
53354         Reported by Alan Curry in http://debbugs.gnu.org/8609
53356 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
53358         readme-release: new module with release instructions
53359         * modules/readme-release: New module.
53360         * top/README-release: New file, from coreutils, grep, diffutils.
53361         * MODULES.html.sh (Support for maintaining and releasing): Add it.
53363 2011-05-02  Eric Blake  <eblake@redhat.com>
53365         fflush: also replace fclose when fixing fflush
53366         * modules/fflush (Depends-on): Add fclose.
53367         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
53368         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
53369         memstreams with no backing fd.
53370         * doc/posix-functions/fclose.texi (fclose): Document the use of
53371         fflush module to fix the bug.
53372         * tests/test-fclose.c (main): Relax test when fclose is used in
53373         isolation.
53375         fclose: add some tests
53376         * modules/fclose-tests: New test module.
53377         * tests/test-fclose.c: New file.
53378         * doc/posix-functions/fclose.texi (fclose): Document the bug.
53380         fclose: reduced dependencies
53381         * modules/fclose (Depends-on): Switch from fflush/fseeko to
53382         simpler lseek.
53383         * lib/fclose.c (rpl_fclose): Likewise.
53384         Reported by Simon Josefsson.
53386         exit: drop remaining clients
53387         * modules/argmatch (Depends-on): Replace exit with stdlib.
53388         * modules/copy-file (Depends-on): Likewise.
53389         * modules/execute (Depends-on): Likewise.
53390         * modules/exitfail (Depends-on): Likewise.
53391         * modules/obstack (Depends-on): Likewise.
53392         * modules/pagealign_alloc (Depends-on): Likewise.
53393         * modules/pipe-filter-gi (Depends-on): Likewise.
53394         * modules/pipe-filter-ii (Depends-on): Likewise.
53395         * modules/savewd (Depends-on): Likewise.
53396         * modules/spawn-pipe (Depends-on): Likewise.
53397         * modules/wait-process (Depends-on): Likewise.
53398         * modules/xsetenv (Depends-on): Likewise.
53399         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
53400         * modules/git-merge-changelog (Depends-on): Likewise.
53401         * modules/long-options (Depends-on): Likewise.
53402         * modules/pt_chown (Depends-on): Likewise.
53403         * modules/sysexits (Depends-on): Likewise.
53405         freading: relax license from LGPLv3+ to LGPLv2+
53406         * modules/freading (License): Relax LGPL version.
53408 2011-05-02  Bruno Haible  <bruno@clisp.org>
53410         fchdir: Remove unused dependencies.
53411         * modules/fchdir (Depends-on): Remove include_next.
53413 2011-05-02  Bruno Haible  <bruno@clisp.org>
53415         gnulib-tool: Refactor.
53416         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
53417         from func_emit_autoconf_snippets.
53418         (func_emit_autoconf_snippets): Use it.
53420 2011-05-02  Simon Josefsson  <simon@josefsson.org>
53422         * NEWS: Document removal of 'exit'.
53423         * modules/exit: Remove file.
53425 2011-05-01  Bruno Haible  <bruno@clisp.org>
53427         Update DEPENDENCIES.
53428         * DEPENDENCIES (gettext): Recommend the newest release.
53429         Reported by Simon Josefsson.
53431 2011-05-01  Bruno Haible  <bruno@clisp.org>
53433         gnulib-tool: Reduce code duplication.
53434         * gnulib-tool (func_emit_autoconf_snippets): New function.
53435         (func_import, func_create_testdir): Use it.
53437 2011-04-30  Eric Blake  <eblake@redhat.com>
53439         fclose: don't fail on non-seekable input stream
53440         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
53441         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
53442         since fflush is allowed to fail in that case.
53444 2011-04-30  Bruno Haible  <bruno@clisp.org>
53446         dup3: cleanup
53447         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
53449 2011-04-30  Bruno Haible  <bruno@clisp.org>
53451         netdb: Make it work in C++ mode.
53452         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
53453         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
53454         module.
53455         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
53456         gl_MODULE_INDICATOR_FOR_TESTS.
53457         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
53458         * modules/netdb-c++-tests: New file.
53459         * tests/test-netdb-c++.cc: New file.
53461 2011-04-30  Bruno Haible  <bruno@clisp.org>
53463         New modules 'vfscanf', 'vscanf'.
53464         * modules/vfscanf: New file.
53465         * modules/vscanf: New file.
53466         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
53467         here.
53468         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
53469         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
53471 2011-04-30  Bruno Haible  <bruno@clisp.org>
53473         passfd: Add comments.
53474         * lib/passfd.c: Add comments about platforms.
53476 2011-04-30  Bruno Haible  <bruno@clisp.org>
53478         sys_uio: Make <sys/uio.h> self-contained.
53479         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
53480         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
53482 2011-04-30  Bruno Haible  <bruno@clisp.org>
53484         sys_socket: Ensure 'struct iovec' definition.
53485         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
53486         <sys/socket.h>.
53487         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
53489 2011-04-30  Bruno Haible  <bruno@clisp.org>
53491         sys_uio: Protect definition of 'struct iovec'.
53492         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
53493         it as a C struct.
53495 2011-04-30  Bruno Haible  <bruno@clisp.org>
53497         manywarnings: fix indentation
53498         * m4/manywarnings.m4: Indent by 2 spaces consistently.
53500 2011-04-30  Pádraig Brady  <P@draigBrady.com>
53502         manywarnings: add -Wno-missing-field-initializers if needed.
53503         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
53504         option if it's needed to allow initialization with { 0, }
53506 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
53508         announce-gen: cosmetic improvement
53509         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
53511 2011-04-29  Jim Meyering  <meyering@redhat.com>
53513         vc-list-files: indent with spaces, not TABs
53514         * build-aux/vc-list-files: Convert leading TABs to spaces,
53515         to match the style of most other files in gnulib.
53517         announce-gen: indent with spaces, not TABs
53518         * build-aux/announce-gen: Convert all TABs to spaces, to match
53519         the style of most other files in gnulib.
53521 2011-04-29  Eric Blake  <eblake@redhat.com>
53523         quotearg: avoid uninitialized variable use
53524         * lib/quotearg.c (quoting_options_from_style): Initialize
53525         remaining fields, and ensure that custom styles are only used via
53526         quoting_options rather than quoting_style.
53528 2011-04-29  Jim Meyering  <meyering@redhat.com>
53530         maint.mk: remove unused VC-tag variable
53531         * top/maint.mk (VC-tag): Remove unused variable.
53533 2011-04-29  Bruno Haible  <bruno@clisp.org>
53535         netdb: fix gai_strerror replacements
53536         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
53537         * modules/netdb: Substitute it.
53539 2011-04-29  Jim Meyering  <meyering@redhat.com>
53541         test-getcwd.c: avoid new set-but-not-used warning
53542         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
53543         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
53544         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
53545         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
53547         test-hash.c: avoid a new shadowing warning
53548         * tests/test-hash.c (main): Don't shadow "dup".
53550 2011-04-28  Eric Blake  <eblake@redhat.com>
53552         getaddrinfo: fix gai_strerror signature
53553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
53554         and work around mingw with UNICODE defined.
53555         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
53556         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
53557         * modules/netdb (Makefile.am): Substitute it.
53558         * lib/netdb.in.h (gai_strerror): Declare replacement.
53559         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
53560         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
53561         the fix.
53563         getsockopt: avoid compiler warning
53564         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
53565         Reported by Matthias Bolte.
53567         tests: drop unused link dependency
53568         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
53569         * modules/dirent-safer-tests (Makefile.am): Likewise.
53570         * modules/fdopendir-tests (Makefile.am): Likewise.
53571         * modules/mkfifoat-tests (Makefile.am): Likewise.
53572         * modules/openat-safer-tests (Makefile.am): Likewise.
53573         * modules/openat-tests (Makefile.am): Likewise.
53574         * modules/readlinkat-tests (Makefile.am): Likewise.
53575         * modules/symlinkat-tests (Makefile.am): Likewise.
53576         * modules/linkat-tests (Makefile.am): Likewise.
53577         (Depends-on): Switch to filenamecat-lgpl.
53578         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
53579         LIBINTL.
53580         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
53581         * tests/test-linkat.c (main): Don't require xalloc.
53583         hash, mgetgroups: drop xalloc dependency
53584         * lib/hash.c (includes): Adjust includes.
53585         * lib/mgetgroups.c (includes): Likewise.
53586         (xgetgroups): Move...
53587         * lib/xgetgroups.c: ...to new file.
53588         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53589         * modules/xgetgroups: New file, split from...
53590         * modules/mgetgroups: ...here.
53591         (Depends-on): Add xalloc-oversized.
53592         * modules/hash (Depends-on): Likewise.
53593         * modules/hash-tests (Depends-on): Drop xalloc.
53594         (test_hash_LDADD): Drop unused library.
53595         * tests/test-hash.c (main): Break xalloc dependency.
53596         (includes): Drop unused include.
53598         xalloc-oversized: new module
53599         * modules/xalloc-oversized: New module.
53600         * modules/xalloc (Depends-on): Add it.
53601         * lib/xalloc.h (xalloc_oversized): Move...
53602         * lib/xalloc-oversized.h: ...into new file.
53604         utimecmp: drop dependency on xmalloc
53605         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53606         due to memory pressure.
53607         * modules/utimecmp (Depends-on): Drop xalloc.
53609 2011-04-27  Eric Blake  <eblake@redhat.com>
53611         getcwd: fix mingw bugs
53612         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53613         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53614         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53616 2011-04-27  Bruno Haible  <bruno@clisp.org>
53618         mkstemps: Ensure declaration on MacOS X 10.5.
53619         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53620         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53621         MacOS X.
53623 2011-04-27  Bruno Haible  <bruno@clisp.org>
53625         mkstemp: More documentation.
53626         * doc/posix-functions/mkstemp.texi: Document header file problem on
53627         MacOS X.
53629 2011-04-27  Bruno Haible  <bruno@clisp.org>
53631         mkstemp: Tweak configure message when cross-compiling.
53632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53633         result as a guess.
53635 2011-04-27  Bruno Haible  <bruno@clisp.org>
53637         clean-temp: Clarify what it does.
53638         * lib/clean-temp.h: Add more comments.
53639         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53640         module.
53641         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53642         * doc/glibc-functions/mkstemps.texi: Likewise.
53643         * doc/glibc-functions/mkostemps.texi: Likewise.
53645 2011-04-27  Eric Blake  <eblake@redhat.com>
53647         fchdir: avoid extra chdir and fix test
53648         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53649         getcwd-lgpl.
53650         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53651         have to be canonical.
53652         (canonicalize_file_name): Drop unused macro.
53653         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53655         filenamecat-lgpl: fix licence
53656         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53657         when it was first created.
53659         linkat, renameat: add missing dependency
53660         * modules/linkat (Depends-on): Require getcwd-lgpl.
53661         * modules/renameat (Depends-on): Likewise.
53663         tests: reduce dependencies
53664         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53665         * tests/test-renameat.c (main): Likewise.
53666         * modules/linkat-tests (Depends-on): Relax dependency.
53667         * modules/renameat-tests (Depends-on): Likewise.
53668         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53669         dependency explicit.
53671         save-cwd: reduce default dependency
53672         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53673         * lib/save-cwd.c: Update comments.
53674         * NEWS: Document the semantic change.
53676         getcwd: enhance tests
53677         * tests/test-getcwd-lgpl.c: New file, taken from...
53678         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53679         repeat long path stress tests from m4 probe.
53680         * modules/getcwd-lgpl-tests: New module.
53681         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53682         * m4/getcwd-abort-bug.m4: Update comment.
53683         * m4/getcwd-path-max.m4: Likewise.
53685         getcwd-lgpl: new module
53686         * modules/getcwd-lgpl: New module.
53687         * lib/getcwd-lgpl.c: New file.
53688         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53689         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53690         * modules/getcwd (configure.ac): Set C witness.
53691         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53693         getcwd: tweak comments
53694         * m4/getcwd-abort-bug.m4: Fix comments.
53695         * m4/getcwd-path-max.m4: Likewise.
53696         * m4/getcwd.m4: Likewise.
53698 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53699         and Eric Blake  <eblake@redhat.com>
53701         mkstemp: replace if system version uses wrong permissions
53702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53703         read/write mode bits set in file created by mkstemp.
53704         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53706 2011-04-27  Eric Blake  <eblake@redhat.com>
53708         passfd: avoid compiler warning
53709         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53710         Reported by Laine Stump.
53712 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53714         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53715         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53717 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53718         and Eric Blake  <eblake@redhat.com>
53720         mkstemp: mention clean-temp module
53721         * lib/mkstemp.c: Add comment.
53722         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53724 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53726         inttypes: also provide default values for 32-bit tests
53727         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53728         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53730 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53732         strtoumax: remove dependency on strtoimax
53733         This is like the strtoull change of yesterday.
53734         * modules/strtoumax (Files): Add lib/strtoimax.c.
53735         (Depends-on): Remove strtoimax and add verify.
53737         inttypes-incomplete: new module
53738         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53739         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53740         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53741         of gl_INTTYPES_H.
53742         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53743         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53744         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53745         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53746         * modules/strtoumax, modules/xstrtol (Depends-on):
53747         Depend on inttypes-incomplete, not inttypes.
53748         * modules/inttypes-incomplete: New module, containing the contents
53749         of the old modules/inttypes module, except that the Files: section
53750         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53751         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53752         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53753         (Depends-on): Depend only on inttypes-incomplete.
53754         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53756         inttypes: omit now-redundant strtoimax and strtoumax work
53757         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53758         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53760         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53761         This supports apps that need pointers to strtoimax and strtoumax,
53762         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53763         nonexistent functions.  See
53764         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53765         et seq.
53766         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53767         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53768         a macro.
53769         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53771 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53773         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53775 2011-04-25  Bruno Haible  <bruno@clisp.org>
53777         strtol, strtoul: Mark modules as obsolete.
53778         * modules/strtol (Status, Notice): New sections.
53779         * modules/strtoul (Status, Notice): New sections.
53781 2011-04-25  Bruno Haible  <bruno@clisp.org>
53783         strtod: Remove check for strtod, unless supporting old platforms.
53784         * modules/strtod-obsolete: New file.
53785         * m4/strtod-obsolete.m4: New file.
53786         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53787         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53788         * modules/strtod (Depends-on): Add strtod-obsolete.
53789         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53791 2011-04-25  Bruno Haible  <bruno@clisp.org>
53793         strcase: Make module obsolete.
53794         * modules/strcase (Status, Notice): New sections.
53796 2011-04-25  Bruno Haible  <bruno@clisp.org>
53798         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53799         * modules/dup2-obsolete: New file.
53800         * m4/dup2-obsolete.m4: New file.
53801         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53802         gl_FUNC_DUP2_OBSOLETE is not also defined.
53803         * modules/dup2 (Depends-on): Add dup2-obsolete.
53804         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53806 2011-04-25  Bruno Haible  <bruno@clisp.org>
53808         strnlen: Avoid memchr related link error on old obsolete platforms.
53809         * modules/memchr-obsolete: New file.
53810         * m4/memchr-obsolete.m4: New file.
53811         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53812         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53813         * modules/memchr (Depends-on): Add memchr-obsolete.
53814         * modules/strnlen (Depends-on): Likewise.
53815         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53817 2011-04-25  Jim Meyering  <meyering@redhat.com>
53819         maint.mk: makefile_at_at_check extend and clean up
53820         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53821         in addition to */Makefile.am.
53822         Exempt legitimate uses of @VAR@ notation, e.g.,
53823         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53824         Remove obsolete coreutils-specific comment.
53825         Prompted by discussion here:
53826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53828 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53830         strtoul: remove dependency on strtol
53831         This is so that 'configure' need not check for strtol merely because
53832         the application needs strtoul.
53833         * modules/strtoul (Files): Add lib/strtol.c.
53834         (Depends-on): Remove strtol.
53836         strtoull: remove dependency on strtoul
53837         This is like the strtoll change.
53838         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53839         (Depends-on): Remove strtoul.
53841         strtoll: remove dependency on strtol
53842         This is so that 'configure' need not check for strtol merely because
53843         the application needs strtoll.
53844         * modules/strtoll (Files): Add lib/strtol.c.
53845         (Depends-on): Remove strtol.
53847 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53849         inttypes: Move some configure check to module 'imaxdiv'.
53850         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53851         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53852         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53854 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53856         inttypes: Move some configure check to module 'imaxabs'.
53857         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53858         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53859         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53861 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53863         inttypes: Remove configure tests that are not needed since 2009-12-31.
53864         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53865         gl_cv_header_working_inttypes_h.
53867 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53869         * modules/strnlen (Depends-on): Remove memchr.
53870         The strnlen implementation doesn't need the memchr module's fixes; see
53871         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53873         strtol: remove dependency on wchar
53874         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53875         * modules/strtol (Depends-on): Remove wchar.
53877 2011-04-21  Eric Blake  <eblake@redhat.com>
53879         passfd: fix test regression on Linux
53880         * modules/passfd-tests (configure.ac): Correct socketpair check.
53882         passfd: speed up configure and drop unused code
53883         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53884         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53885         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53886         Instead of probing at configure for unix_scm_rights_bsd44_way,
53887         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53888         check to a struct member probe.
53889         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53890         (sendfd, recvfd): Update preprocessor checks.
53891         * modules/passfd (Files): Reflect rename, and drop unused file.
53892         (Depends-on): Drop unused dependency.
53894         passfd: allow compilation on mingw
53895         * modules/sys_socket (Depends-on): Add sys_uio.
53896         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53897         iovec and a minimal struct msghdr.
53898         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53899         * tests/test-sys_socket.c (main): Enhance test.
53900         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53901         guaranteed to provide what we need.
53902         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53903         * modules/passfd-tests (Depends-on): Add sys_wait.
53904         * tests/test-passfd.c (main): Skip test on mingw, for now.
53905         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53906         partial 'struct msghdr' implementation.
53908         sys_uio: new module
53909         * modules/sys_uio: New module.
53910         * modules/sys_uio-tests: Likewise.
53911         * lib/sys_uio.in.h: New file.
53912         * m4/sys_uio_h.m4: Likewise.
53913         * tests/test-sys_uio.c: Likewise.
53914         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53915         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53917 2011-04-20  Jim Meyering  <meyering@redhat.com>
53919         useless-if-before-free: avoid false-positive
53920         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53921         disjunct so that it too requires a terminating ";".  Without that,
53922         this script would identify as useless one statement from gcc that
53923         was not:
53924           if (aligned_ptr)
53925             free (((void **) aligned_ptr) [-1]);
53927 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53929         doc: update users.txt.
53930         * users.txt: Add barcode.
53932 2011-04-19  Bruno Haible  <bruno@clisp.org>
53934         ioctl: Remove link dependency on native Windows.
53935         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53936         (gl_close_fn, gl_ioctl_fn): New types.
53937         (struct fd_hook): Renamed from struct close_hook. Change type of
53938         private_close_fn field. Add private_ioctl_fn field.
53939         (close_hook_fn): Add parameter for primary close method.
53940         (execute_close_hooks, execute_all_close_hooks): Likewise.
53941         (ioctl_hook_fn): New type.
53942         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53943         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53944         argument.
53945         (unregister_fd_hook): Renamed from unregister_close_hook.
53946         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53947         Don't include <unistd.h>.
53948         (close): Remove undef.
53949         (anchor): Update.
53950         (execute_close_hooks): Add argument for primary close method.
53951         (execute_all_close_hooks): Likewise.
53952         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53953         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53954         argument. Allow each argument to be NULL.
53955         (unregister_fd_hook): Renamed from unregister_close_hook.
53956         * lib/close.c (rpl_close): Pass 'close' function pointer to
53957         execute_all_close_hooks.
53958         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53959         (primary_ioctl): New function.
53960         (ioctl): Don't call ioctlsocket here. Instead, call
53961         execute_all_ioctl_hooks.
53962         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53963         close method.
53964         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53965         (fd_sockets_hook): Renamed from close_sockets_hook.
53966         (gl_sockets_startup, gl_sockets_cleanup): Update.
53967         * modules/fd-hook: Renamed from modules/close-hook. Update.
53968         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53969         * modules/sockets (Depends-on): Likewise.
53970         * modules/ioctl (Depends-on): Add fd-hook.
53971         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53972         GNULIB_SOCKET.
53974 2011-04-19  Bruno Haible  <bruno@clisp.org>
53976         Move the support of O_NONBLOCK in open() to the 'open' module.
53977         * modules/nonblocking (Depends-on): Remove 'open'.
53978         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53979         gl_cv_have_open_O_NONBLOCK.
53980         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53981         O_NONBLOCK support.
53982         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53984 2011-04-17  Bruno Haible  <bruno@clisp.org>
53986         pipe2: Simplify code.
53987         * lib/pipe2.c (pipe2): Reduce code duplication.
53989 2011-04-17  Bruno Haible  <bruno@clisp.org>
53991         nonblocking: Add comment.
53992         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53994 2011-04-17  Bruno Haible  <bruno@clisp.org>
53996         nonblocking: Add tests for sockets.
53997         * tests/test-nonblocking-socket.sh: New file.
53998         * tests/test-nonblocking-socket-main.c: New file.
53999         * tests/test-nonblocking-socket-child.c: New file.
54000         * tests/test-nonblocking-socket.h: New file.
54001         * tests/socket-server.h: New file.
54002         * tests/socket-client.h: New file.
54003         * modules/nonblocking-socket-tests: New file.
54004         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
54006 2011-04-17  Bruno Haible  <bruno@clisp.org>
54008         nonblocking: Add tests for pipes.
54009         * tests/test-nonblocking-pipe.sh: New file.
54010         * tests/test-nonblocking-pipe-main.c: New file.
54011         * tests/test-nonblocking-pipe-child.c: New file.
54012         * tests/test-nonblocking-pipe.h: New file.
54013         * tests/test-nonblocking-writer.h: New file.
54014         * tests/test-nonblocking-reader.h: New file.
54015         * tests/test-nonblocking-misc.h: New file.
54016         * modules/nonblocking-pipe-tests: New file.
54017         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
54019 2011-04-16  Bruno Haible  <bruno@clisp.org>
54021         gettext: Clarify the needed programmer actions.
54022         * modules/gettext (Notice): New field.
54023         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54025 2011-04-16  Bruno Haible  <bruno@clisp.org>
54027         strchrnul: Tweak last commit.
54028         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
54029         bug.
54030         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
54031         as in _GL_FUNCDECL_SYS.
54032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
54033         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
54035 2011-04-15  Eric Blake  <eblake@redhat.com>
54037         strchrnul: work around cygwin bug
54038         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
54039         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
54040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
54041         * modules/string (Makefile.am): Substitute it.
54042         * lib/string.in.h (strchrnul): Use it.
54044 2011-04-15  Bruno Haible  <bruno@clisp.org>
54046         Don't require lib/stdio-write.c when only module 'stdio' is used.
54047         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
54048         invocation.
54049         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
54051 2011-04-14  Bruno Haible  <bruno@clisp.org>
54053         Support non-blocking pipe I/O in read() on native Windows.
54054         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
54055         (read): New declaration.
54056         * lib/read.c: New file.
54057         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
54058         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
54059         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
54060         vscanf): New declarations.
54061         * lib/stdio-read.c: New file.
54062         * m4/read.m4: New file.
54063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
54064         REPLACE_READ.
54065         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
54066         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54067         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
54068         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
54069         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
54070         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54071         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
54072         * modules/read: New file.
54073         * modules/nonblocking (Files): Add lib/stdio-read.c.
54074         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
54075         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
54076         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54077         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
54078         * modules/pread (Depends-on): Add read.
54079         * modules/safe-read (Depends-on): Likewise.
54080         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
54081         gets, scanf, vfscanf, vscanf): Verify signatures.
54082         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
54083         problem with non-blocking pipes.
54084         * doc/posix-functions/fgetc.texi: Likewise.
54085         * doc/posix-functions/fgets.texi: Likewise.
54086         * doc/posix-functions/fread.texi: Likewise.
54087         * doc/posix-functions/fscanf.texi: Likewise.
54088         * doc/posix-functions/getc.texi: Likewise.
54089         * doc/posix-functions/getchar.texi: Likewise.
54090         * doc/posix-functions/gets.texi: Likewise.
54091         * doc/posix-functions/scanf.texi: Likewise.
54092         * doc/posix-functions/vfscanf.texi: Likewise.
54093         * doc/posix-functions/vscanf.texi: Likewise.
54095 2011-04-14  Bruno Haible  <bruno@clisp.org>
54097         Support non-blocking pipe I/O in write() on native Windows.
54098         * lib/write.c (rpl_write): Split a write request that failed merely
54099         because the byte count was larger than the pipe buffer's size.
54100         * doc/posix-functions/write.texi: Mention the problem with large byte
54101         counts.
54103 2011-04-14  Bruno Haible  <bruno@clisp.org>
54105         wchar: Ensure that wchar_t gets defined on uClibc.
54106         * lib/wchar.in.h: On uClibc, include <stddef.h>.
54107         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
54109 2011-04-13  Bruno Haible  <bruno@clisp.org>
54111         safe-write, full-read: Avoid unnecessary compilation units.
54112         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
54113         (Depends-on): Remove safe-read. Add ssize_t.
54114         * modules/full-read (Files): Add lib/full-write.c.
54115         (Depends-on): Add full-write.
54117 2011-04-13  Bruno Haible  <bruno@clisp.org>
54119         Support non-blocking pipe I/O and SIGPIPE in pwrite().
54120         * modules/pwrite (Depends-on): Add 'write'.
54122 2011-04-13  Bruno Haible  <bruno@clisp.org>
54124         Support non-blocking pipe I/O in write() on native Windows.
54125         * lib/unistd.in.h (write): Enable replacement also if
54126         GNULIB_UNISTD_H_NONBLOCKING is 1.
54127         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
54128         (rpl_write): When failing to write on a non-blocking pipe, change
54129         errno from ENOSPC to EAGAIN.
54130         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
54131         putchar, puts, vfprintf, vprintf): Enable replacement also if
54132         GNULIB_STDIO_H_NONBLOCKING is 1.
54133         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
54134         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
54135         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
54136         CALL_WITH_SIGPIPE_EMULATION.
54137         (CALL_WITH_SIGPIPE_EMULATION): Use them.
54138         * m4/nonblocking.m4: New file.
54139         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
54140         for non-blocking I/O support.
54141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54142         GNULIB_UNISTD_H_NONBLOCKING.
54143         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
54144         required for non-blocking I/O support.
54145         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
54146         * modules/nonblocking (Files): Add m4/nonblocking.m4,
54147         lib/stdio-write.c, m4/asm-underscore.m4.
54148         (Depends-on): Add stdio, unistd.
54149         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
54150         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
54151         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
54152         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
54153         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
54154         problem with non-blocking pipes.
54155         * doc/posix-functions/fputc.texi: Likewise.
54156         * doc/posix-functions/fputs.texi: Likewise.
54157         * doc/posix-functions/fwrite.texi: Likewise.
54158         * doc/posix-functions/printf.texi: Likewise.
54159         * doc/posix-functions/putc.texi: Likewise.
54160         * doc/posix-functions/putchar.texi: Likewise.
54161         * doc/posix-functions/puts.texi: Likewise.
54162         * doc/posix-functions/vfprintf.texi: Likewise.
54163         * doc/posix-functions/vprintf.texi: Likewise.
54164         * doc/posix-functions/write.texi: Likewise.
54166 2011-04-10  Jim Meyering  <meyering@redhat.com>
54168         maint.mk: prohibit doubled words
54169         Detect them also when they're separated by a newline.
54170         There are 3 ways to customize it:
54171           - disable the test on a per file basis, as usual with rules using
54172             $(VC_LIST_EXCEPT)
54173           - replace the default doubled-word-selecting regexp (affects all files)
54174           - ignore a particular file-vs-doubled-word match
54175         I nearly used that last one to ignore the "is is" match in
54176         coreutils' NEWS file, since the text was "ls -is is ..."
54177         To do that, I would have added this line to cfg.mk:
54178           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
54179         but it would have ignored any "is is" match in NEWS.
54180         Low probability, but still...
54181         Instead, I changed the text, slightly:
54182           -  ls -is is now consistent with ls -lis in ignoring values returned
54183           +  "ls -is" is now consistent with ls -lis in ignoring values returned
54184         * top/maint.mk (prohibit_double_word_RE_): Provide default.
54185         (prohibit_doubled_word_): Define.
54186         (sc_prohibit_doubled_word): New rule.
54187         (sc_prohibit_the_the): Remove.  Subsumed by the above.
54189 2011-04-10  Jim Meyering  <meyering@redhat.com>
54191         maint: fix doubled-word typo in comment
54192         * m4/gethostname.m4: s/is is/it is/
54193         * m4/getdomainname.m4: Likewise.
54195 2011-04-10  Jim Meyering  <meyering@redhat.com>
54197         maint: remove doubled word: s/it it/it/
54198         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
54200 2011-04-10  Jim Meyering  <meyering@redhat.com>
54202         maint.mk: remove useless semicolon and backslash
54203         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
54204         semicolon and backslash.
54206 2011-04-10  Bruno Haible  <bruno@clisp.org>
54208         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
54209         * modules/stdint-tests (Depends-on): Add wchar.
54211 2011-04-10  Jim Meyering  <meyering@redhat.com>
54213         maint: remove doubled words in comments, e.g., s/a a/a/
54214         * lib/strptime.c (day_of_the_week): s/the the/the/
54215         * tests/test-chown.h (test_chown): s/a a/a/
54217         test-chown.h: correct a cast
54218         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
54219         when the destination is a stat.st_gid.
54221 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
54223         getaddrinfo: Fix test for sa_len member.
54224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
54225         include <sys/types.h> before <sys/socket.h>.
54227 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54229         maint: change "can not" to "cannot"
54230         * doc/posix-functions/iconv.texi (iconv): This one crossed line
54231         boundaries.
54233 2011-04-09  Jim Meyering  <meyering@redhat.com>
54235         maint: change "a a" to "a"
54236         * tests/test-lchown.h (test_lchown): s/a a/a/
54238         maint.mk: prohibit \<the the\>
54239         * top/maint.mk (sc_prohibit_the_the): New rule.
54241         maint: fix "the the" in comment
54242         * lib/count-one-bits.h: s/the the/the/
54244         maint: change "can not" to "cannot"
54245         But do not change the occurrences in maintain.texi or in
54246         build-aux/po/Makefile.in.in, which I presume comes from gettext.
54247         * doc/gnulib-tool.texi: s/can not/cannot/
54248         * doc/posix-functions/accept.texi (accept): Likewise.
54249         * doc/posix-functions/socket.texi (socket): Likewise.
54250         * lib/mbrtowc.c: Likewise.
54252         maint.mk: prohibit use of "can not"
54253         * top/maint.mk (sc_prohibit_can_not): New rule.
54254         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
54256 2011-04-09  Bruno Haible  <bruno@clisp.org>
54258         careadlinkat: Guard against misuse of careadlinkatcwd.
54259         * lib/careadlinkat.c: Include <stdlib.h>.
54260         (careadlinkatcwd): Check that the fd argument is as expected.
54262 2011-04-09  Bruno Haible  <bruno@clisp.org>
54264         careadlinkat: Use common coding style.
54265         * lib/careadlinkat.c: Move gnulib includes after system includes.
54267 2011-04-09  Bruno Haible  <bruno@clisp.org>
54269         careadlinkat: Clarify specification.
54270         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
54271         (careadlinkatcwd): Add comment.
54272         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
54274 2011-04-09  Bruno Haible  <bruno@clisp.org>
54276         areadlinkat: Avoid link error on many platforms.
54277         * modules/areadlinkat (Depends-on): Add areadlink.
54279 2011-04-09  Bruno Haible  <bruno@clisp.org>
54281         allocator, careadlinkat: Fix double-inclusion guard.
54282         * lib/allocator.h: Fix double-inclusion guard.
54283         * lib/careadlinkat.h: Likewise.
54285 2011-04-09  Bruno Haible  <bruno@clisp.org>
54287         relocatable-prog-wrapper: Update after module 'areadlink' changed.
54288         * lib/relocwrapper.c: Update dependencies hierarchy.
54289         * build-aux/install-reloc: Update list of files to be compiled.
54290         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
54291         lib/allocator.[hc].
54293 2011-04-08  Eric Blake  <eblake@redhat.com>
54295         strftime: silence gnulib-tool warning
54296         * modules/strftime-tests (Depends-on): Drop automatic dependency.
54298 2011-04-08  Bruno Haible  <bruno@clisp.org>
54300         verify: Fix syntax error with GCC 4.6 in C++ mode.
54301         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
54302         (HAVE_STATIC_ASSERT): New macro.
54303         (verify_true, verify): Use 'static_assert' if it is supported and
54304         '_Static_assert' is not supported.
54306 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
54308         allocator: New module.
54309         * modules/allocator, lib/allocator.c: New files.
54310         * lib/allocator.h (stdlib_allocator): New decl.
54311         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
54312         Remove.  Do not include <stdlib.h>.
54313         (careadlinkat): Use stdlib_allocator instead of rolling our own.
54314         * modules/careadlinkat (Files): Remove lib/allocator.h.
54315         (Depends-on): Add allocator.
54317         stdlib: let modules use system malloc, realloc
54318         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
54319         if !_GL_USE_STDLIB_ALLOC.
54320         (malloc, realloc): Limit this change to a smaller scope.
54322         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
54323         (malloc, realloc): Don't #undef; no longer needed.
54324         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54325         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54326         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54327         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54328         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54329         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54330         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54331         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54333         careadlinkat: rename members to avoid problem
54334         * lib/allocator.h (struct allocator): Rename members from
54335         malloc/realloc to allocate/reallocate, to avoid problems if malloc
54336         and realloc are #define'd.  Reported by Eric Blake in
54337         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
54338         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
54340 2011-04-08  Eric Blake  <eblake@redhat.com>
54342         nonblocking: reduce dependency
54343         * tests/test-nonblocking.c: Only test sockets when in use.
54344         * modules/nonblocking-tests (Depends-on): Drop socket.
54345         (Makefile.am): Link even if sockets are not present.
54346         * modules/pipe2-tests (Makefile.am): Likewise.
54347         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
54349         pipe2: fix O_NONBLOCK support on mingw
54350         * modules/pipe2 (Depends-on): Add nonblocking.
54351         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
54352         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
54353         * tests/test-nonblocking.c (main): Likewise.
54354         * modules/pipe2-tests (Makefile.am): Avoid link failure.
54356         fcntl-h: fix O_ACCMODE on cygwin
54357         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
54358         * lib/fcntl.in.h (O_ACCMODE): Fix it.
54360         pipe-filter: drop O_NONBLOCK workarounds
54361         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
54362         * modules/pipe-filter-ii (Depends-on): Likewise.
54363         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
54365         nonblocking: provide O_NONBLOCK for mingw
54366         * modules/nonblocking (Depends-on): Add open.
54367         (configure.ac): Set new witness macro.
54368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
54369         * modules/fcntl-h (Makefile.am): Substitute it.
54370         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
54371         nonblocking module is in use.
54372         * lib/nonblocking.c: Adjust portability test.
54373         * lib/open.c (open): Don't let native open see gnulib flag.
54374         * tests/test-fcntl-h.c (main): Enhance test.
54375         * tests/test-open.h (test_open): Likewise.
54376         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
54378         careadlinkat: fix compilation error on mingw
54379         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
54380         within struct allocator.
54382 2011-04-06  Eric Blake  <eblake@redhat.com>
54384         binary-io: relicense under LGPLv2+
54385         * modules/binary-io (License): Relax to LGPLv2+.
54386         Requested for libvirt, and required by pipe2.
54388 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
54390         verify: use _Static_assert if available
54391         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
54392         (verify_true, verify): Use it if available.  This generates better
54393         diagnostics with GCC 4.6.0 and later.
54395 2011-04-05  Bruno Haible  <bruno@clisp.org>
54397         Remove leftover generated .h files after config.status changed.
54399         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
54400         GL_GENERATE_ALLOCA_H.
54401         * modules/alloca-opt (Makefile.am): Remove alloca.h if
54402         GL_GENERATE_ALLOCA_H evaluates to false.
54404         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
54405         GL_GENERATE_ARGZ_H.
54406         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
54407         evaluates to false.
54409         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
54410         GL_GENERATE_BYTESWAP_H.
54411         * modules/byteswap (Makefile.am): Remove byteswap.h if
54412         GL_GENERATE_BYTESWAP_H evaluates to false.
54414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
54415         GL_GENERATE_ERRNO_H.
54416         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
54417         evaluates to false.
54419         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
54420         GL_GENERATE_FLOAT_H.
54421         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
54422         evaluates to false.
54424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
54425         GL_GENERATE_FNMATCH_H.
54426         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
54427         GL_GENERATE_FNMATCH_H evaluates to false.
54429         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
54430         GL_GENERATE_GLOB_H.
54431         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
54432         evaluates to false.
54434         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
54435         automake conditional GL_GENERATE_ICONV_H.
54436         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
54437         evaluates to false.
54439         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
54440         GL_GENERATE_NETINET_IN_H.
54441         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
54442         GL_GENERATE_NETINET_IN_H evaluates to false.
54444         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
54445         conditional GL_GENERATE_PTHREAD_H.
54446         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
54447         * modules/pthread (Makefile.am): Remove pthread.h if
54448         GL_GENERATE_PTHREAD_H evaluates to false.
54450         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
54451         GL_GENERATE_SCHED_H.
54452         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
54453         evaluates to false.
54455         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
54456         conditional GL_GENERATE_SELINUX_CONTEXT_H.
54457         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
54458         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
54460         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
54461         GL_GENERATE_STDARG_H.
54462         * modules/stdarg (Makefile.am): Remove stdarg.h if
54463         GL_GENERATE_STDARG_H evaluates to false.
54465         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
54466         GL_GENERATE_STDBOOL_H.
54467         * modules/stdbool (Makefile.am): Remove stdbool.h if
54468         GL_GENERATE_STDBOOL_H evaluates to false.
54470         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
54471         conditional GL_GENERATE_STDDEF_H.
54472         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
54473         * modules/stddef (Makefile.am): Remove stddef.h if
54474         GL_GENERATE_STDDEF_H evaluates to false.
54476         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
54477         GL_GENERATE_STDINT_H.
54478         * modules/stdint (Makefile.am): Remove stdint.h if
54479         GL_GENERATE_STDINT_H evaluates to false.
54481         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
54482         GL_GENERATE_SYSEXITS_H.
54483         * modules/sysexits (Makefile.am): Remove sysexits.h if
54484         GL_GENERATE_SYSEXITS_H evaluates to false.
54486         Reported by Karl Berry and Ralf Wildenhues.
54488 2011-04-05  Bruno Haible  <bruno@clisp.org>
54490         Ensure to rebuild generated .h files when config.status has changed.
54491         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
54492         config.status.
54493         * modules/ctype (Makefile.am): Likewise.
54494         * modules/dirent (Makefile.am): Likewise.
54495         * modules/errno (Makefile.am): Likewise.
54496         * modules/fcntl-h (Makefile.am): Likewise.
54497         * modules/float (Makefile.am): Likewise.
54498         * modules/getopt-posix (Makefile.am): Likewise.
54499         * modules/glob (Makefile.am): Likewise.
54500         * modules/iconv-h (Makefile.am): Likewise.
54501         * modules/inttypes (Makefile.am): Likewise.
54502         * modules/langinfo (Makefile.am): Likewise.
54503         * modules/locale (Makefile.am): Likewise.
54504         * modules/math (Makefile.am): Likewise.
54505         * modules/netdb (Makefile.am): Likewise.
54506         * modules/netinet_in (Makefile.am): Likewise.
54507         * modules/poll-h (Makefile.am): Likewise.
54508         * modules/pthread (Makefile.am): Likewise.
54509         * modules/pty (Makefile.am): Likewise.
54510         * modules/sched (Makefile.am): Likewise.
54511         * modules/search (Makefile.am): Likewise.
54512         * modules/selinux-h (Makefile.am): Likewise.
54513         * modules/signal (Makefile.am): Likewise.
54514         * modules/spawn (Makefile.am): Likewise.
54515         * modules/stdarg (Makefile.am): Likewise.
54516         * modules/stdbool (Makefile.am): Likewise.
54517         * modules/stddef (Makefile.am): Likewise.
54518         * modules/stdint (Makefile.am): Likewise.
54519         * modules/stdio (Makefile.am): Likewise.
54520         * modules/stdlib (Makefile.am): Likewise.
54521         * modules/string (Makefile.am): Likewise.
54522         * modules/strings (Makefile.am): Likewise.
54523         * modules/sys_file (Makefile.am): Likewise.
54524         * modules/sys_ioctl (Makefile.am): Likewise.
54525         * modules/sys_select (Makefile.am): Likewise.
54526         * modules/sys_socket (Makefile.am): Likewise.
54527         * modules/sys_stat (Makefile.am): Likewise.
54528         * modules/sys_time (Makefile.am): Likewise.
54529         * modules/sys_times (Makefile.am): Likewise.
54530         * modules/sys_utsname (Makefile.am): Likewise.
54531         * modules/sys_wait (Makefile.am): Likewise.
54532         * modules/sysexits (Makefile.am): Likewise.
54533         * modules/termios (Makefile.am): Likewise.
54534         * modules/time (Makefile.am): Likewise.
54535         * modules/unistd (Makefile.am): Likewise.
54536         * modules/wchar (Makefile.am): Likewise.
54537         * modules/wctype-h (Makefile.am): Likewise.
54538         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
54540 2011-04-05  Bruno Haible  <bruno@clisp.org>
54542         pipe2: Relicense under LGPLv2+.
54543         * modules/pipe2 (License): Change to LGPLv2+.
54544         Requested by Eric Blake, for libvirt.
54546 2011-04-05  Bruce Korb  <bkorb@gnu.org>
54548         bootstrap: compute gnulib_extra_files after updating build_aux
54549         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
54550         change build_aux or also supply gnulib_extra_files.  Handle correctly.
54552 2011-04-05  Eric Blake  <eblake@redhat.com>
54554         bootstrap: preserve git whitelist item sorting
54555         * build-aux/bootstrap (sort_patterns): New function.
54556         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
54558 2011-04-05  Simon Josefsson  <simon@josefsson.org>
54560         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
54561         sc_space_tab check.
54563 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
54565         areadlink, areadlinkat: rewrite in terms of careadlinkat
54566         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
54567         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
54568         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
54569         (malloc, realloc): Remove #undefs.
54570         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
54571         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
54572         readlink, ssize_t, stdint, unistd.
54573         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
54574         areadlink, stdint.
54576         careadlinkat: new module
54577         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
54578         * modules/careadlinkat: New files, written by me with
54579         a review and feedback from Ben Pfaff in
54580         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
54582 2011-04-01  Bruno Haible  <bruno@clisp.org>
54584         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
54585         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
54586         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54587         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54588         Reported by Bruce Korb <bruce.korb@gmail.com>.
54590 2011-04-01  Bruno Haible  <bruno@clisp.org>
54592         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54593         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54594         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54595         * modules/wcpcpy (Depends-on): Add extensions.
54596         * modules/wcpncpy (Depends-on): Likewise.
54597         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54598         systems.
54599         * doc/posix-functions/wcpncpy.texi: Likewise.
54600         * doc/posix-functions/wcwidth.texi: Likewise.
54602 2011-03-31  Eric Blake  <eblake@redhat.com>
54604         nonblocking: fix mingw test failures
54605         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54606         non-blocking flag on regular file.
54607         (get_nonblocking_flag): Set errno on invalid fd.
54608         * tests/test-nonblocking.c (main): Avoid test failure on
54609         directories if fchdir is not active.
54610         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54612 2011-03-31  Bruno Haible  <bruno@clisp.org>
54614         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54615         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54616         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54617         Reported by Simon Josefsson <simon@josefsson.org>.
54619 2011-03-31  Bruno Haible  <bruno@clisp.org>
54620         and Eric Blake  <eblake@redhat.com>
54622         nonblocking: new module
54623         * modules/nonblocking: New module.
54624         * modules/nonblocking-tests: Likewise.
54625         * lib/nonblocking.h: New file.
54626         * lib/nonblocking.c: Likewise.
54627         * tests/test-nonblocking.c: New test.
54628         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54630 2011-03-30  Bruno Haible  <bruno@clisp.org>
54632         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54633         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54634         instead of 'printf' format for GCC >= 4.4.
54635         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54636         (fprintf, printf, vfprintf, vprintf): Declare with
54637         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54638         the system's vfprintf() function.
54639         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54641 2011-03-30  Eric Blake  <eblake@redhat.com>
54643         passfd: fix scoping bug
54644         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54645         before sendmsg/recvmsg.
54647         passfd: standardize coding conventions
54648         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54649         can be learned at compile time.
54650         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54651         ifdefs.
54652         (sendfd, recvfd): Follow gnulib code conventions.
54654         passfd: fix incorrect sendmsg arguments
54655         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54656         incorrect msg_controllen value.
54657         * modules/passfd-tests (Depends-on): Check for alarm.
54658         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54659         Reported by Bastien ROUCARIES.
54661 2011-03-30  Bruno Haible  <bruno@clisp.org>
54663         c-strcasestr: Relicense under LGPLv2+.
54664         * modules/c-strcasestr (License): Change to LGPLv2+.
54665         Requested by Eric Blake, for libvirt.
54667 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54669         * users.txt: Add libidn2.  Fix libtasn1 link.
54671 2011-03-30  Jim Meyering  <meyering@redhat.com>
54673         tests: readlink* ("",... fails with EINVAL on newer kernels
54674         readlink and readlinkat have typically failed with ENOENT for
54675         the invalid, empty file name,  "".  However, with the advent
54676         of linux-2.6.39, they fail with EINVAL.
54677         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54678         when operating on the empty file name.
54679         * tests/test-readlink.h (test_readlink): Likewise.
54681 2011-03-29  Bruno Haible  <bruno@clisp.org>
54683         Relicense some modules under LGPLv2+, for libidn2.
54684         * modules/array-mergesort (License): Change to LGPLv2+.
54685         * modules/c-strcaseeq (License): Likewise.
54686         * modules/striconveh (License): Likewise.
54687         * modules/striconveha (License): Likewise.
54688         * modules/uniconv/base (License): Likewise.
54689         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54690         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54691         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54692         * modules/unictype/base (License): Likewise.
54693         * modules/unictype/bidiclass-of (License): Likewise.
54694         * modules/unictype/category-M (License): Likewise.
54695         * modules/unictype/category-none (License): Likewise.
54696         * modules/unictype/category-of (License): Likewise.
54697         * modules/unictype/category-test (License): Likewise.
54698         * modules/unictype/category-test-withtable (License): Likewise.
54699         * modules/unictype/combining-class (License): Likewise.
54700         * modules/unictype/joiningtype-of (License): Likewise.
54701         * modules/unictype/scripts (License): Likewise.
54702         * modules/uninorm/base (License): Likewise.
54703         * modules/uninorm/canonical-decomposition (License): Likewise.
54704         * modules/uninorm/composition (License): Likewise.
54705         * modules/uninorm/decompose-internal (License): Likewise.
54706         * modules/uninorm/decomposition-table (License): Likewise.
54707         * modules/uninorm/nfc (License): Likewise.
54708         * modules/uninorm/nfd (License): Likewise.
54709         * modules/uninorm/u32-normalize (License): Likewise.
54710         * modules/unistr/base (License): Likewise.
54711         * modules/unistr/u32-cpy (License): Likewise.
54712         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54713         * modules/unistr/u32-to-u8 (License): Likewise.
54714         * modules/unistr/u32-uctomb (License): Likewise.
54715         * modules/unistr/u8-check (License): Likewise.
54716         * modules/unistr/u8-mblen (License): Likewise.
54717         * modules/unistr/u8-mbtouc (License): Likewise.
54718         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54719         * modules/unistr/u8-mbtoucr (License): Likewise.
54720         * modules/unistr/u8-prev (License): Likewise.
54721         * modules/unistr/u8-strlen (License): Likewise.
54722         * modules/unistr/u8-to-u32 (License): Likewise.
54723         * modules/unistr/u8-uctomb (License): Likewise.
54724         * modules/unitypes (License): Likewise.
54725         Requested by Simon Josefsson.
54727 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54729         lib-symbol-visibility: Add a notice.
54730         * modules/lib-symbol-visibility (Notice): New field.
54732 2011-03-29  Bruno Haible  <bruno@clisp.org>
54734         getaddrinfo: Doc fix.
54735         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54736         section "fixed in Gnulib".
54738 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54740         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54741         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54743 2011-03-26  Bruno Haible  <bruno@clisp.org>
54745         unictype/property-byname: Reduce the number of load-time relocations.
54746         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54747         (UC_PROPERTY_INDEX_*): New enumeration values.
54748         (uc_property_byname): Convert an index from the lookup table to an
54749         uc_property_t.
54750         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54751         values.
54753 2011-03-26  Bruno Haible  <bruno@clisp.org>
54755         unictype/property-byname: Allow omitted word separators and aliases.
54756         * lib/unictype/pr_byname.gperf: Add property names without word
54757         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54758         for 'space'.
54760 2011-03-26  Bruno Haible  <bruno@clisp.org>
54762         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54763         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54764         also hyphens to space.
54765         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54766         without spaces.
54767         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54769 2011-03-26  Bruno Haible  <bruno@clisp.org>
54771         unictype/joiningtype-byname: Recognize long names as well.
54772         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54773         a long name.
54774         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54775         unictype/joiningtype_byname.h.
54776         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54777         * lib/unictype/joiningtype_byname.gperf: New file.
54778         * modules/unictype/joiningtype-byname (Files): Add
54779         lib/unictype/joiningtype_byname.gperf.
54780         (Depends-on): Add gperf.
54781         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54782         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54783         long names.
54785         Tests for module 'unictype/joiningtype-longname'.
54786         * modules/unictype/joiningtype-longname-tests: New file.
54787         * tests/unictype/test-joiningtype_longname.c: New file.
54789         New module 'unictype/joiningtype-longname'.
54790         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54791         * lib/unictype/joiningtype_longname.c: New file.
54792         * modules/unictype/joiningtype-longname: New file.
54793         * modules/unictype/joiningtype-all (Depends-on): Add
54794         unictype/joiningtype-longname.
54796 2011-03-26  Bruno Haible  <bruno@clisp.org>
54798         unictype/bidiclass-byname: Recognize long names as well.
54799         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54800         name.
54801         * lib/unictype/bidi_byname.c: Include <string.h>,
54802         unictype/bidi_byname.h.
54803         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54804         * lib/unictype/bidi_byname.gperf: New file.
54805         * modules/unictype/bidiclass-byname (Files): Add
54806         lib/unictype/bidi_byname.gperf.
54807         (Depends-on): Add gperf.
54808         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54809         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54810         long names.
54812         Tests for module 'unictype/bidiclass-longname'.
54813         * modules/unictype/bidiclass-longname-tests: New file.
54814         * tests/unictype/test-bidi_longname.c: New file.
54816         New module 'unictype/bidiclass-longname'.
54817         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54818         * lib/unictype/bidi_longname.c: New file.
54819         * modules/unictype/bidiclass-longname: New file.
54820         * modules/unictype/bidiclass-all (Depends-on): Add
54821         unictype/bidiclass-longname.
54823 2011-03-26  Bruno Haible  <bruno@clisp.org>
54825         unictype/bidi*: Rename modules.
54826         * modules/unictype/bidiclass-all: Renamed from
54827         modules/unictype/bidicategory-all.
54828         * modules/unictype/bidiclass-name: Renamed from
54829         modules/unictype/bidiclass-name.
54830         (Description): Update.
54831         * modules/unictype/bidiclass-name-tests: Renamed from
54832         modules/unictype/bidicategory-name-tests.
54833         * modules/unictype/bidiclass-byname: Renamed from
54834         modules/unictype/bidicategory-byname.
54835         (Description): Update.
54836         * modules/unictype/bidiclass-byname-tests: Renamed from
54837         modules/unictype/bidicategory-byname-tests.
54838         * modules/unictype/bidiclass-of: Renamed from
54839         modules/unictype/bidicategory-of.
54840         (Description): Update.
54841         * modules/unictype/bidiclass-of-tests: Renamed from
54842         modules/unictype/bidicategory-of-tests.
54843         * modules/unictype/bidiclass-test: Renamed from
54844         modules/unictype/bidicategory-test.
54845         (Description): Update.
54846         * modules/unictype/bidiclass-test-tests: Renamed from
54847         modules/unictype/bidicategory-test-tests.
54848         * modules/unictype/bidicategory-all: New file, a simple redirection.
54849         * modules/unictype/bidicategory-name: Likewise.
54850         * modules/unictype/bidicategory-byname: Likewise.
54851         * modules/unictype/bidicategory-of: Likewise.
54852         * modules/unictype/bidicategory-test: Likewise.
54853         * modules/unictype/property-bidi-* (Dependencies): Update.
54854         * lib/unictype/bidi_*.c: Update comment.
54856 2011-03-26  Bruno Haible  <bruno@clisp.org>
54858         unictype/bidi*: Rename functions, part 2.
54859         * modules/unictype/bidicategory-name (configure.ac): Update required
54860         libunistring version.
54861         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54863 2011-03-25  Bruno Haible  <bruno@clisp.org>
54865         New module 'unictype/combining-class-all'.
54866         * modules/unictype/combining-class-all: New file.
54868         Tests for module 'unictype/combining-class-byname'.
54869         * modules/unictype/combining-class-byname-tests: New file.
54870         * tests/unictype/test-combiningclass_byname.c: New file.
54872         New module 'unictype/combining-class-byname'.
54873         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54874         * lib/unictype/combiningclass_byname.c: New file.
54875         * lib/unictype/combiningclass_byname.gperf: New file.
54876         * modules/unictype/combining-class-byname: New file.
54878         Tests for module 'unictype/combining-class-longname'.
54879         * modules/unictype/combining-class-longname-tests: New file.
54880         * tests/unictype/test-combiningclass_longname.c: New file.
54882         New module 'unictype/combining-class-longname'.
54883         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54884         * lib/unictype/combiningclass_longname.c: New file.
54885         * modules/unictype/combining-class-longname: New file.
54887         Tests for module 'unictype/combining-class-name'.
54888         * modules/unictype/combining-class-name-tests: New file.
54889         * tests/unictype/test-combiningclass_name.c: New file.
54891         New module 'unictype/combining-class-name'.
54892         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54893         * lib/unictype/combiningclass_name.c: New file.
54894         * modules/unictype/combining-class-name: New file.
54896 2011-03-25  Bruno Haible  <bruno@clisp.org>
54898         unictype/combining-class: Rename source files.
54899         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54900         of unictype/combining.h.
54901         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54902         Update.
54903         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54904         * modules/unictype/combining-class (Description): Fix.
54905         (Files, Makefile.am): Update.
54906         * tests/unictype/test-combiningclass.c: Renamed from
54907         tests/unictype/test-combining.c.
54908         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54910 2011-03-25  Bruno Haible  <bruno@clisp.org>
54912         unictype: Update list of canonical combining classes.
54913         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54915 2011-03-25  Bruno Haible  <bruno@clisp.org>
54917         unictype/category-byname: Recognize long names as well.
54918         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54919         a long name.
54920         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54921         unictype/categ_byname.h.
54922         (UC_CATEGORY_INDEX_*): New enumeration values.
54923         (uc_general_category_byname): Use uc_general_category_lookup and
54924         convert from index to value.
54925         * lib/unictype/categ_byname.gperf: New file.
54926         * modules/unictype/category-byname (Files): Add
54927         lib/unictype/categ_byname.gperf.
54928         (Depends-on): Add gperf.
54929         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54930         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54931         long names.
54933         Tests for module 'unictype/category-longname'.
54934         * modules/unictype/category-longname-tests: New file.
54935         * tests/unictype/test-categ_longname.c: New file.
54937         New module 'unictype/category-longname'.
54938         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54939         * lib/unictype/categ_longname.c: New file.
54940         * modules/unictype/category-longname: New file.
54941         * modules/unictype/category-all (Depends-on): Add it.
54943 2011-03-25  Bruno Haible  <bruno@clisp.org>
54945         Tests for module 'unictype/category-LC'.
54946         * modules/unictype/category-LC-tests: New file.
54947         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54949         New module 'unictype/category-LC'.
54950         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54951         (UC_CATEGORY_LC): New declaration.
54952         (UC_CASED_LETTER): New macro.
54953         * lib/gen-uni-tables.c (is_category_LC): New function.
54954         (output_categories): Also handle category LC.
54955         (UC_CATEGORY_MASK_LC): New enumeration value.
54956         (general_category_byname): Also handle category LC.
54957         * lib/unictype/categ_LC.c: New file.
54958         * lib/unictype/categ_LC.h: New file, automatically generated.
54959         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54960         category LC.
54961         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54962         * modules/unictype/category-LC: New file.
54963         * modules/unictype/category-byname (Depends-on): Add
54964         unictype/category-LC.
54965         * modules/unictype/category-all (Depends-on): Likewise.
54967 2011-03-25  Eric Blake  <eblake@redhat.com>
54969         xmalloc: revert yesterday's regression
54970         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54971         realloc's underlying behavior (allowing allocation of zero-size
54972         objects, especially if malloc-gnu is also in use).
54974 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54976         maint.mk: add missing version to VC-tag
54977         * top/maint.mk: git tag was missing actual tag name; add it.
54979         valgrind: do leak checking, and exit with code 1 on error (not 0)
54980         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54981         to VALGRIND.
54983 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54985         posix-modules: say what it does.
54986         * posix-modules: Add a line to the --help output saying what it does.
54988 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54990         xmalloc: Do not leak if underlying realloc is C99 compatible.
54991         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54992         This avoids a leak on C99-based systems.  See
54993         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54995 2011-03-24  Eric Blake  <eblake@redhat.com>
54997         realloc: document portability problem
54998         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54999         passing 0 size to realloc.
55001 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
55003         doc: update users.txt
55004         * users.txt: Add cvsps, tmpwatch
55006 2011-03-23  Matt Rice  <ratmice@gmail.com>
55008         doc: update users.txt
55009         * users.txt: Add gdb.
55011 2011-03-23  Jim Meyering  <meyering@redhat.com>
55013         doc: update users.txt
55014         Looking through matches up to the following URL (there are still
55015         several more pages), I found several projects that use gnulib:
55016         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
55017         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
55018         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
55020 2011-03-22  Bruno Haible  <bruno@clisp.org>
55022         unictype/bidi*: Rename functions.
55023         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
55024         uc_bidi_class, uc_is_bidi_class): New declarations.
55025         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
55026         uc_bidi_category_byname.
55027         (uc_bidi_category_byname): New function.
55028         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
55029         u_bidi_category_name.
55030         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
55031         (uc_bidi_category_name): New function.
55032         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
55033         uc_bidi_category.
55034         (uc_bidi_category): New function.
55035         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
55036         uc_is_bidi_category. Invoke uc_bidi_class.
55037         (uc_is_bidi_category): New function.
55038         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
55039         instead of uc_bidi_category_byname.
55040         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
55041         instead of uc_bidi_category_name.
55042         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
55043         uc_bidi_category.
55044         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
55045         instead of uc_is_bidi_category.
55047 2011-03-21  Bruno Haible  <bruno@clisp.org>
55049         New module 'unictype/joininggroup-all'.
55050         * modules/unictype/joininggroup-all: New file.
55052         Tests for module 'unictype/joininggroup-of'.
55053         * modules/unictype/joininggroup-of-tests: New file.
55054         * tests/unictype/test-joininggroup_of.c: New file.
55055         * tests/unictype/test-joininggroup_of.h: New file, automatically
55056         generated by gen-uni-tables.
55058         New module 'unictype/joininggroup-of'.
55059         * modules/unictype/joininggroup-of: New file.
55060         * lib/unictype/joininggroup_of.c: New file.
55061         * lib/unictype/joininggroup_of.h: New file, automatically generated by
55062         gen-uni-tables.
55064         Tests for module 'unictype/joininggroup-byname'.
55065         * modules/unictype/joininggroup-byname-tests: New file.
55066         * tests/unictype/test-joininggroup_byname.c: New file.
55068         New module 'unictype/joininggroup-byname'.
55069         * modules/unictype/joininggroup-byname: New file.
55070         * lib/unictype/joininggroup_byname.c: New file.
55071         * lib/unictype/joininggroup_byname.gperf: New file.
55073         Tests for module 'unictype/joininggroup-name'.
55074         * modules/unictype/joininggroup-name-tests: New file.
55075         * tests/unictype/test-joininggroup_name.c: New file.
55077         New module 'unictype/joininggroup-name'.
55078         * modules/unictype/joininggroup-name: New file.
55079         * lib/unictype/joininggroup_name.c: New file.
55080         * lib/unictype/joininggroup_name.h: New file.
55082         New module 'unictype/joiningtype-all'.
55083         * modules/unictype/joiningtype-all: New file.
55085         Tests for module 'unictype/joiningtype-of'.
55086         * modules/unictype/joiningtype-of-tests: New file.
55087         * tests/unictype/test-joiningtype_of.c: New file.
55088         * tests/unictype/test-joiningtype_of.h: New file, automatically
55089         generated by gen-uni-tables.
55091         New module 'unictype/joiningtype-of'.
55092         * modules/unictype/joiningtype-of: New file.
55093         * lib/unictype/joiningtype_of.c: New file.
55094         * lib/unictype/joiningtype_of.h: New file, automatically generated by
55095         gen-uni-tables.
55097         Tests for module 'unictype/joiningtype-byname'.
55098         * modules/unictype/joiningtype-byname-tests: New file.
55099         * tests/unictype/test-joiningtype_byname.c: New file.
55101         New module 'unictype/joiningtype-byname'.
55102         * modules/unictype/joiningtype-byname: New file.
55103         * lib/unictype/joiningtype_byname.c: New file.
55105         Tests for module 'unictype/joiningtype-name'.
55106         * modules/unictype/joiningtype-name-tests: New file.
55107         * tests/unictype/test-joiningtype_name.c: New file.
55109         New module 'unictype/joiningtype-name'.
55110         * modules/unictype/joiningtype-name: New file.
55111         * lib/unictype/joiningtype_name.c: New file.
55113         unictype: Add support for Arabic shaping properties.
55114         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
55115         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
55116         declarations.
55117         (UC_JOINING_GROUP_*): New enumeration values.
55118         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
55119         declarations.
55120         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
55121         (unicode_joining_type): New variable.
55122         (UC_JOINING_GROUP_*): New enumeration values.
55123         (unicode_joining_group): New variable.
55124         (fill_arabicshaping, joining_type_as_c_identifier,
55125         output_joining_type_test, output_joining_type,
55126         joining_group_as_c_identifier, output_joining_group_test,
55127         output_joining_group): New functions.
55128         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
55129         fill_arabicshaping and output_joining_type_test, output_joining_type,
55130         output_joining_group_test, output_joining_group.
55131         Reported by Simon Josefsson.
55133 2011-03-21  Jim Meyering  <meyering@redhat.com>
55135         strftime: fix a bug in yesterday's change
55136         * lib/strftime.c (add): Accommodate width's initial value of -1.
55137         Otherwise, nstrftime would copy uninitialized data into
55138         the result buffer.
55140 2011-03-21  Jim Meyering  <meyering@redhat.com>
55142         tests: add strftime-tests module
55143         * tests/test-strftime.c: New file.
55144         * modules/strftime-tests: New module.
55146 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55148         strftime: don't assume a byte count fits in 'int'
55149         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
55150         found this problem by static analysis, using gcc -Wstrict-overflow
55151         (GCC 4.5.2, x86-64).  This reported an optimization that depended
55152         on an integer overflow having undefined behavior, but it turns out
55153         that the argument is a size, which might not fit in 'int' anyway,
55155 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55157         stdio: don't require ignore_value around fwrite
55159         This patch works around libc bug 11959
55160         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
55161         Without this patch, applications must often write
55162         ignore_value (fwrite (...)) even though the ignore_value is
55163         not helpful here.  It's common to write many objects, using
55164         fwrite/printf/etc., and then use ferror to detect output error.
55166         I considered making this patch optional, but decided against it,
55167         because libc is obviously being inconsistent here: there is no
55168         reason libc should insist that user code must inspect fwrite
55169         return's value without also insisting that it inspect printf's,
55170         putchar's, etc.  If user code wants to have a strict style where
55171         all these functions' values are checked (so that ferror need not
55172         be checked), we could add support for that style in a new gnulib
55173         module, but in the meantime it's better to be consistent and to
55174         support common usage.
55176         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
55177         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
55178         that we are compiling in checking mode, and if not C++, and
55179         if not already wrapping fwrite for some other reason.
55180         (fwrite): #define to rpl_fwrite if the latter is defined.
55182 2011-03-20  Bruno Haible  <bruno@clisp.org>
55184         verror: Fix compilation error introduced on 2011-02-13.
55185         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
55186         instead of __attribute__.
55187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55189 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55190             Bruno Haible  <bruno@clisp.org>
55192         socklen: do not depend on sys_socket
55193         While trying to modify Emacs to use gnulib's socklen module,
55194         I discovered a circular dependency: socklen depends on sys_socket
55195         and vice versa.  Emacs can use socklen, but it does not need
55196         sys_socket because it has its own substitute for sys/socket.h.
55197         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
55198         gl_TYPE_SOCKLEN_T.
55199         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
55200         gl_PREREQ_SYS_H_SOCKET.
55201         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
55202         gl_PREREQ_SYS_H_SOCKET.
55203         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
55204         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
55205         * modules/socklen (Depends-on): Do not depend on sys_socket.
55206         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
55208 2011-03-20  Jim Meyering  <meyering@redhat.com>
55210         maint.mk: sort file names *after* new transformation
55211         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
55212         prefix would have led to an unwarranted failure in GNU parted.
55213         Sort after that transformation.
55215 2011-03-19  Jim Meyering  <meyering@redhat.com>
55217         maint.mk: fix po-file syntax-check rule
55218         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
55219         Patch by Bruno Haible.
55221 2011-03-19  Bruno Haible  <bruno@clisp.org>
55223         socklen: Update comment.
55224         * m4/socklen.m4: Update comment about platforms.
55226 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55227             Bruno Haible  <bruno@clisp.org>
55229         inet_ntop, inet_pton: Simplify.
55230         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
55231         documented to provide socklen_t and we already depend on sys_socket.
55232         * modules/inet_pton (Depends-on): Likewise.
55233         * lib/arpa_inet.in.h: Adjust comment.
55235 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55236             Bruno Haible  <bruno@clisp.org>
55238         netdb: Simplify.
55239         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
55240         documented to provide socklen_t and we already depend on sys_socket.
55241         * lib/netdb.in.h: Adjust comment.
55243 2011-03-19  Bruno Haible  <bruno@clisp.org>
55245         sys_socket, netdb: Document problem with socklen_t.
55246         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
55247         platforms.
55248         * doc/posix-headers/netdb.texi: Likewise.
55250 2011-03-18  Eric Blake  <eblake@redhat.com>
55252         maint.mk: let po check work in VPATH build
55253         * top/maint.mk (po_file): Allow cfg.mk override.
55254         (sc_po_check): Allow VPATH use.
55255         Reported by Jiri Denemark.
55257 2011-03-16  Jim Meyering  <meyering@redhat.com>
55259         maint.mk: allow fine-grained syntax-check exclusion via Make variables
55260         Before, you would have had to create one .x-sc_ file per rule in order
55261         to exempt offending files.  Now, you may instead use a Make variable --
55262         usually defined in cfg.mk -- whose name identifies the affected rule.
55263         * top/maint.mk (_sc_excl): Define.
55264         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
55265         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
55267 2011-03-13  Bruno Haible  <bruno@clisp.org>
55269         ignore-value tests: Avoid warnings.
55270         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
55271         empty for gcc < 3.4.
55273 2011-03-13  Bruno Haible  <bruno@clisp.org>
55275         passfd: Fix link error on Solaris.
55276         * modules/passfd (Description): Correct.
55277         (Depends-on): Add socketlib.
55278         (Link): New section.
55279         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
55281 2011-03-13  Bruno Haible  <bruno@clisp.org>
55283         passfd: Fix link error on AIX 5.2.
55284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
55286 2011-03-13  Bruno Haible  <bruno@clisp.org>
55288         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
55289         * lib/sys_socket.in.h: Include <stddef.h>.
55290         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
55291         CMSG_FIRSTHDR. Remove unused variable.
55293 2011-03-13  Bruno Haible  <bruno@clisp.org>
55295         passfd: Fix compilation error on OpenBSD.
55296         * lib/passfd.c: Include <sys/uio.h>.
55298 2011-03-13  Bruno Haible  <bruno@clisp.org>
55300         passfd test: Fix warnings.
55301         * tests/test-passfd.c: Include <sys/wait.h>.
55302         (main): Fix typo.
55304 2011-03-13  Bruno Haible  <bruno@clisp.org>
55306         passfd module, part 4, tweaks.
55307         * tests/test-passfd.c: Reorder includes.
55308         (main): Fix perror and printf calls.
55310 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55312         passfd module, part 4.
55313         * modules/passfd-tests: New file.
55314         * tests/test-passfd.c: New file.
55316 2011-03-13  Jim Meyering  <meyering@redhat.com>
55318         Makefile: rely on GNU make; derive syntax-check rule names
55319         Rather than requiring that each sc_ rule be listed as a dependent
55320         of "check", use features of GNU make to derive the list.
55321         * Makefile (syntax-check-rules): Define.
55322         (check): Depend on the new variable, not the hard-coded list.
55324 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
55325             Bruno Haible  <bruno@clisp.org>
55327         passfd module, part 3.
55328         * lib/passfd.h (recvfd): Add a flags argument.
55329         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
55330         (recvfd): Add a flags argument.
55331         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
55332         exists.
55333         * modules/passfd (Depends-on): Add cloexec.
55334         Suggested by Eric Blake.
55336 2011-03-13  Bruno Haible  <bruno@clisp.org>
55338         passfd module, part 2, tweaks.
55339         * modules/passfd (Files): Reorder.
55340         (Depends-on): Remove errno.
55341         (Include): Remove <sys/socket.h>, <sys/un.h>.
55342         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
55343         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
55344         specification header. Include <sys/socket.h> always. Don't include
55345         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
55346         (sendfd): Clarify that it sets errno when it fails.
55347         (recvfd): Fix specification.
55349 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55351         passfd module, part 2.
55352         * modules/passfd: New file.
55353         * lib/passfd.h: New file.
55354         * lib/passfd.c: New file.
55356 2011-03-12  Bruno Haible  <bruno@clisp.org>
55358         wcswidth, mbswidth: Avoid integer overflow.
55359         * lib/wcswidth.c: Include <limits.h>.
55360         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
55361         * lib/mbswidth.c: Include <limits.h>.
55362         (mbsnwidth): Avoid 'int' overflow.
55363         Reported by Jim Meyering.
55365 2011-03-12  Bruno Haible  <bruno@clisp.org>
55367         futimens, utimensat: Avoid endless recursion on Solaris 10.
55368         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
55369         Solaris.
55370         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
55371         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
55373 2011-03-11  Jim Meyering  <meyering@redhat.com>
55375         maint.mk: relax a regexp to accommodate other formatting styles
55376         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
55377         between "ngettext" and the following "(".
55379 2011-03-11  Pádraig Brady  <P@draigBrady.com>
55381         maint.mk: suppress a false positive warning
55382         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
55383         diagnostics are marked with ngettext.
55385 2011-03-10  Eric Blake  <eblake@redhat.com>
55387         wchar: add explicit dependencies, for Tru64
55388         * modules/mbmemcasecoll (Depends-on): Add wchar.
55389         * modules/mbtowc (Depends-on): Likewise.
55390         * modules/vasnprintf (Depends-on): Likewise.
55391         * modules/unistdio/u-printf-args (Depends-on): Likewise.
55392         * modules/wctomb (Depends-on): Likewise.
55393         Reported by Peter O'Gorman.
55395 2011-03-08  Bruno Haible  <bruno@clisp.org>
55397         passfd module, part 1, tweaks.
55398         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
55399         Improve indentation. Improve AC_MSG_CHECKING messages.
55400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
55401         gl_SOCKET_FAMILIES.
55403 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55405         passfd module, part 1.
55406         * m4/afunix.m4: New file.
55407         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
55408         sockets.
55410 2011-03-08  Bruno Haible  <bruno@clisp.org>
55412         regex-quote: New API.
55413         * lib/regex-quote.h: Include <stdbool.h>.
55414         (struct regex_quote_spec): New type.
55415         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55416         New declarations.
55417         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55418         'const struct regex_quote_spec *' argument.
55419         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
55420         (pcre_special): New constant.
55421         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55422         New functions.
55423         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55424         'const struct regex_quote_spec *' argument.
55425         * modules/regex-quote (Depends-on): Add stdbool.
55426         * tests/test-regex-quote.c (check): Update for new API. Add test for
55427         anchored results.
55428         * NEWS: Mention the API change.
55429         Reported by Reuben Thomas and Eric Blake.
55431 2011-03-06  Bruno Haible  <bruno@clisp.org>
55433         regex-quote: Fix creation of POSIX extended regular expressions.
55434         * lib/regex-quote.c (ere_special): Add grouping and alternation
55435         operators.
55437 2011-03-05  Bruno Haible  <bruno@clisp.org>
55439         doc: Improve doc regarding autopoint vs. gnulib.
55440         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
55441         disable autopoint while running autoreconf.
55442         Suggested by Ralf Wildenhues.
55444 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55446         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
55447         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
55449 2011-03-03  Bruce Korb  <bkorb@gnu.org>
55451         parse-duration: remove xalloc.h dependency
55452         * lib/parse-duration.c (parse_period): handle NULL return from
55453         strdup instead of calling xstrdup().
55454         * modules/parse-duration: remove "xalloc" dependency
55456 2011-03-03  Matthew Booth  <mbooth@redhat.com>
55458         bootstrap: honor m4_base when running aclocal
55459         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
55461 2011-03-02  Jim Meyering  <meyering@redhat.com>
55463         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
55464         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
55465         on request from Matt Booth.
55467 2011-03-01  Eric Blake  <eblake@redhat.com>
55469         test-link: work on Hurd
55470         * tests/test-link.h (test_link): Hurd rejects linking directories
55471         with EISDIR instead of the POSIX-mandated EPERM.
55473 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
55475         stdio: simplify by moving files to printf-posix, sigpipe
55476         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
55477         since this symbol is needed only if printf is replaced.
55478         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
55479         Require gl_ASM_SYMBOL_PREFIX.
55480         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
55481         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
55482         (Depends-on): Add 'raise'.
55483         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
55484         * modules/stdio (Files): Remove lib/stdio-write.c,
55485         m4/asm-underscore.m4.
55486         (Depends-on): Remove 'raise'.
55488         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
55489         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
55490         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
55491         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
55493 2011-02-28  Bruno Haible  <bruno@clisp.org>
55495         localcharset: Assume ANSI C behaviour of free().
55496         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
55497         calling free().
55498         Suggested by Simon Josefsson <simon@josefsson.org>.
55500 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
55501             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
55502             Bruno Haible  <bruno@clisp.org>  (tiny change)
55504         On Cygwin, use /proc file system instead of win32 API.
55505         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
55506         Win32 file names.
55507         (DllMain): Simplify by removing Cygwin specific code.
55508         (find_shared_library_fullname): Use Linux specific implementation also
55509         for Cygwin.
55510         (get_shared_library_fullname): Update accordingly.
55511         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
55512         Win32 file names.
55513         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
55514         Cygwin specific code.
55516 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
55517             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
55519         Fix OpenMP flag detection for various Fortran compilers.
55520         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
55521         OpenMP-conditional compilation construct, to force compile
55522         failure with missing OpenMP flag.
55523         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
55525 2011-02-25  Eric Blake  <eblake@redhat.com>
55527         strstr: expand test coverage
55528         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
55529         compilation.
55530         * tests/test-memmem.c (main): Duplicate tests.
55531         * tests/test-strcasestr.c (main): Likewise.
55532         * tests/test-c-strcasestr.c (main): Likewise.
55534 2011-02-25  Jim Meyering  <meyering@redhat.com>
55536         maint.mk: detect missing-NL-at-EOF, too
55537         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
55538         it also detects when a file lacks a newline at EOF.
55539         (require_exactly_one_NL_at_EOF_): Renamed from
55540         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
55541         since people may well have .x-sc_... file names tied to the
55542         existing name.  Suggested by Eric Blake.
55544 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55546         dirname: move m4/dos.m4 functionality into lib/dosname.h
55548         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
55549         extracts symbols from it, puts them into config.h; but it's much
55550         easier to use the symbols directly.  filename.h already does this,
55551         but it disagrees with dos.m4 in some respects.  This patch
55552         introduces a different include file dosname.h that packages up
55553         dos.m4, and then later we can work on merging filename.h and
55554         dosname.h.  Applications that need only the easy-to-configure
55555         symbols should consider including dosname.h rather than dirname.h.
55556         * NEWS: Mention incompatible changes.
55557         * m4/dos.m4: Remove.
55558         * lib/dosname.h, modules/dosname: New files.
55559         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
55560         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
55561         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
55562         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
55563         Include dosname.h, not dirname.h.
55564         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
55565         Include dosname.h, for definitions of symbols like ISSLASH
55566         that used to be in config.h.
55567         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
55568         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
55569         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55570         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55571         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
55572         * modules/rmdir (Files): Likewise.
55573         * modules/stat (Files): Likewise.
55574         * modules/unlink (Files): Likewise.
55575         * modules/dirname-lgpl (Depends-on): Add dosname.
55576         * modules/lstat (Depends-on): Likewise.
55577         * modules/openat (Depends-on): Likewise.
55578         * modules/rmdir (Depends-on): Likewise.
55579         * modules/savewd (Depends-on): Likewise.
55580         * modules/stat (Depends-on): Likewise.
55581         * modules/unlink (Depends-on): Likewise.
55582         * modules/openat (Depends-on): Remove dirname-lgpl.
55583         * modules/savewd (Depends-on): Likewise.
55584         * tests/test-dirname.c: Do not use removed symbols like
55585         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
55586         the remaining symbols, e.g., ISSLASH ('\\').
55588 2011-02-25  Eric Blake  <eblake@redhat.com>
55590         strstr: revert patches that introduced bug and pessimization
55591         * lib/str-two-way.h: Add another reference.
55592         (two_way_short_needle, two_way_long_needle): Revert changes from
55593         2011-02-24; they pessimize search speed.
55594         (critical_factorization): Partially revert changes from
55595         2010-06-22; they violate the requirement that the left half of the
55596         needle be smaller than the period of the needle.
55598 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55600         filenamecat: remove unnecessary dependency on dirname-lgpl
55601         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55602         is no direct dependency, just an indirect one via filenamecat-lgpl.
55604         remove: remove unnecessary use of m4/dos.m4
55605         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55606         * modules/remove (FILES): Remove m4/dos.m4.
55608         * lib/openat-proc.c: Don't include dirname.h; not needed.
55610         backupfile: remove unnecessary use of m4/dos.m4
55611         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55612         of its symbols are used by the backupfile code.  backupfile.c does
55613         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55614         for the rare case of programs that want all their backup file
55615         names to live within 8+3 limits, and dos.m4 doesn't address that.
55616         * modules/backupfile (Files): Remove m4/dos.m4.
55618 2011-02-24  Jim Meyering  <meyering@redhat.com>
55620         strstr: fix a bug whereby strstr would mistakenly return NULL
55621         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55622         in period calculation.
55623         (two_way_long_needle): Likewise.
55624         The original problem was reported by Mike Stump in
55625         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55626         Ralf Wildenhues provided the short needle and haystack.
55627         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55628         Add a more involved test to trigger the bug in two_way_long_needle.
55630 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55632         gnulib-tool: remove use of bold display in help screen
55633         * gnulib-tool (func_usage): Do not use bold display anymore in the
55634         help screen.  That was just meant to be a temporary emphasis for a
55635         backward-incompatible change.
55637 2011-02-23  Bruno Haible  <bruno@clisp.org>
55639         Fix misindentation of preprocessor directives.
55640         * lib/argp-namefrob.h: Reindent preprocessor directives.
55641         * lib/getopt_int.h (struct _getopt_data): Likewise.
55642         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55643         * lib/vasnprintf.c (decode_long_double): Likewise.
55644         * tests/test-argmatch.c: Insert blank lines, for clarity.
55645         * tests/test-exclude.c: Likewise.
55647 2011-02-22  Bruno Haible  <bruno@clisp.org>
55649         ioctl: Fix for MacOS X in 64-bit mode.
55650         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55651         value.
55652         Suggested by Eric Blake.
55653         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55655 2011-02-22  Jim Meyering  <meyering@redhat.com>
55657         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55658         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55659         in lib/.
55661 2011-02-22  Eric Blake  <eblake@redhat.com>
55663         maint: avoid any CDPATH issue
55664         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55666         maint: adjust cpp indentation for my modules, as well
55667         * Makefile (sc_cpp_indent_check): Add my name.
55668         * lib/fbufmode.c: Filter through cppi.
55669         * lib/fpurge.c: Likewise.
55670         * lib/freadable.c: Likewise.
55671         * lib/freading.c: Likewise.
55672         * lib/fwritable.c: Likewise.
55673         * lib/fwriting.c: Likewise.
55674         * lib/sigaction.c: Likewise.
55676 2011-02-22  Jim Meyering  <meyering@redhat.com>
55678         maint: adjust cpp indentation to reflect nesting depth
55679         I.e., in a block of code that begins with an unnested "#if",
55680         put one space between the "#" in column 1 and following token.
55681         For example,
55682         -#include <sys/vfs.h>
55683         +# include <sys/vfs.h>
55684         Do this only in .c files that are part of a module I maintain.
55685         * lib/linkat.c: Filter through cppi.
55686         * lib/nanosleep.c: Likewise.
55687         * lib/openat.c: Likewise.
55688         * lib/openat-die.c: Likewise.
55689         * lib/dup3.c: Likewise.
55690         * lib/fchownat.c: Likewise.
55691         * lib/flock.c: Likewise.
55692         * lib/fsync.c: Likewise.
55693         * lib/fts.c: Likewise.
55694         * lib/getpass.c: Likewise.
55695         * lib/gettimeofday.c: Likewise.
55696         * lib/userspec.c: Likewise.
55697         * Makefile (sc_cpp_indent_check): New rule, to check this.
55699 2011-02-22  Bruno Haible  <bruno@clisp.org>
55701         New module 'wctomb'.
55702         * lib/stdlib.in.h (wctomb): New declaration.
55703         * lib/wctomb.c: New file.
55704         * lib/wctomb-impl.h: New file.
55705         * m4/wctomb.m4: New file.
55706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55707         REPLACE_WCTOMB.
55708         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55709         REPLACE_WCTOMB.
55710         * modules/wctomb: New file.
55711         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55712         * doc/posix-functions/wctomb.texi: Mention the new module.
55713         * modules/wctob (Depends-on): Add wctomb.
55715 2011-02-22  Bruno Haible  <bruno@clisp.org>
55717         New module 'mbtowc'.
55718         * lib/stdlib.in.h (mbtowc): New declaration.
55719         * lib/mbtowc.c: New file.
55720         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55721         * m4/mbtowc.m4: New file.
55722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55723         REPLACE_MBTOWC.
55724         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55725         REPLACE_MBTOWC.
55726         * modules/mbtowc: New file.
55727         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55728         * doc/posix-functions/mbtowc.texi: Mention the new module.
55729         * modules/btowc (Depends-on): Add mbtowc.
55731 2011-02-22  Bruno Haible  <bruno@clisp.org>
55733         wcrtomb: Add more tests for native Windows platforms.
55734         * tests/test-wcrtomb-w32-1.sh: New file.
55735         * tests/test-wcrtomb-w32-2.sh: New file.
55736         * tests/test-wcrtomb-w32-3.sh: New file.
55737         * tests/test-wcrtomb-w32-4.sh: New file.
55738         * tests/test-wcrtomb-w32-5.sh: New file.
55739         * tests/test-wcrtomb-w32.c: New file.
55740         * modules/wcrtomb-tests (Files): Add them.
55741         (Makefile.am): Arrange to run these tests.
55742         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55743         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55745 2011-02-20  Bruno Haible  <bruno@clisp.org>
55747         wcrtomb: Enhance test.
55748         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55750 2011-02-20  Bruno Haible  <bruno@clisp.org>
55752         mbrtowc: Tiny optimization.
55753         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55755 2011-02-20  Jim Meyering  <meyering@redhat.com>
55757         test-exclude.c: remove unmatched #endif
55758         * tests/test-exclude.c: Remove stray #endif, left over from
55759         the change of a week ago.
55761 2011-02-19  Jim Meyering  <meyering@redhat.com>
55763         git-version-gen: skip "-dirty" check when appropriate
55764         * build-aux/git-version-gen: Don't run any git commands when the
55765         version string comes from .tarball-version.  Prior to this, we
55766         would run git update-index --refresh even from a just-unpacked
55767         tarball directory, and that could affect a .git/ directory in a
55768         parent of the build directory.  Reported by Mike Frysinger.
55770 2011-02-19  Bruno Haible  <bruno@clisp.org>
55772         unictype/property-byname: Reduce the size of the 'data' segment.
55773         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55775 2011-02-19  Bruno Haible  <bruno@clisp.org>
55777         unictype/scripts: Reduce the size of the 'data' segment.
55778         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55779         '%pic'.
55780         * lib/unictype/scripts_byname.gperf: Regenerated.
55782 2011-02-19  Bruno Haible  <bruno@clisp.org>
55784         stdint: Update documentation.
55785         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55787 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55789         stdint: omit redundant check for wchar.h
55790         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55791         always tests whether wchar.h exists, so remove the now-redundant test.
55793 2011-02-18  Bruno Haible  <bruno@clisp.org>
55795         stdint: Cut dependency to module 'wchar'.
55796         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55797         include the necessary prerequisites.
55798         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55799         * modules/stdint (Depends-on): Remove wchar.
55800         (Makefile.am): Substitute HAVE_WCHAR_H.
55801         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55803 2011-02-18  Eric Blake  <eblake@redhat.com>
55805         longlong: skip, rather than fail, on cross-compilation
55806         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55807         when cross-compiling; regression from 2011-02-16.
55809 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55811         * NEWS: Mention 2011-02-08 change to stdlib.
55813 2011-02-17  Bruno Haible  <bruno@clisp.org>
55815         getloadavg: Add comments about platforms.
55816         * m4/getloadavg.m4: Add comment.
55817         * lib/getloadavg.c: Likewise.
55819 2011-02-17  Bruno Haible  <bruno@clisp.org>
55821         getloadavg: Fix link error on Solaris 2.6.
55822         * modules/getloadavg (Link): New section.
55823         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55824         linking test-getloadavg.
55825         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55826         getloadavg.
55828 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55830         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55831         It was 'int', but this doesn't match the IRIX 6.5 manual.
55832         Suggested by Bruno Haible in
55833         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55835 2011-02-17  Bruno Haible  <bruno@clisp.org>
55837         havelib: Fix comments.
55838         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55839         change.
55841 2011-02-17  Bruno Haible  <bruno@clisp.org>
55843         havelib: Update config.rpath.
55844         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55846 2011-02-17  Bruno Haible  <bruno@clisp.org>
55848         getloadavg test: Add some plausibility checks.
55849         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55850         is improbable.
55852 2011-02-16  Eric Blake  <eblake@redhat.com>
55854         maintainer-makefile: make syntax-check a no-op from tarballs
55855         * top/maint.mk (no-vc-detected): New rule.
55856         (local-checks-available): Use it to avoid hanging if someone tries
55857         'make syntax-check' from a tarball.  Also append to any non-syntax
55858         checks already defined in cfg.mk.
55860 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55862         longlong: tune, particularly for common case of c99
55864         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55865         or running anything if c99, or if unsigned long long int does not
55866         work.  In either case, we know the answer without further tests.
55867         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55868         it at most once, and use its results for both long long int and
55869         unsigned long long int.  This is more likely to be efficient in
55870         the common case where the program wants to check for both long
55871         long int and unsigned long long int.
55872         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55873         since the answer is already known.
55875 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55877         getloadavg: set errno
55878         * lib/getloadavg.c: Set errno when returning -1.  If no other
55879         error number looks appropriate, set it to ENOSYS if the getloadavg
55880         looks like it can't possibly ever work, ENOTSUP otherwise.
55881         Suggested by Bruno Haible in
55882         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55884         getloadavg: trim unused parts and speed up 'configure'
55885         * NEWS: Document this.
55886         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55887         always compiled if getloadavg is absent.
55888         Move test code to ...
55889         * tests/test-getloadavg.c: New file, containing previous
55890         contents of test from lib/getloadavg.c.  It also contains
55891         suggestions by Bruno Haible in
55892         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55893         * modules/getloadavg-tests: New file.
55894         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55895         Do tests in the same order as they're needed for getloadavg.c.
55896         Omit setgid-related tests that generate symbols KMEM_GROUP,
55897         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55898         Do only the tests that are needed to see whether the system has
55899         getloadavg, moving the other tests into ...
55900         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55901         NLIST_NAME_UNION; nobody should be using it.  Do not define
55902         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55903         relevant, as the user of this module shouldn't care how getloadavg
55904         is implemented.
55906         getloadavg: omit unused var
55907         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55909 2011-02-15  Jim Meyering  <meyering@redhat.com>
55911         doc: update users.txt
55912         * users.txt: Update iwhd's URL.
55914 2011-02-13  Bruno Haible  <bruno@clisp.org>
55916         Consistent macro naming for macros that use GCC __attribute__.
55917         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55918         _ATTRIBUTE_NONNULL_.
55919         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55920         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55921         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55922         ATTRIBUTE_DEPRECATED.
55923         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55924         ATTRIBUTE_NORETURN.
55925         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55926         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55927         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55928         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55929         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55930         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55931         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55932         ATTRIBUTE_SENTINEL.
55933         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55934         ATTRIBUTE_RETURN_CHECK.
55935         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55936         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55937         ATTRIBUTE_NORETURN.
55938         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55939         Reported by Paul Eggert.
55941 2011-02-13  Bruno Haible  <bruno@clisp.org>
55943         Don't interfere with a program's definition of __attribute__.
55944         * lib/argp.h (__attribute__): Remove definition.
55945         (_GL_ATTRIBUTE_FORMAT): New macro.
55946         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55947         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55948         (_GL_ATTRIBUTE_FORMAT): New macro.
55949         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55950         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55951         GCC 3 or newer.
55952         * lib/error.h (__attribute__): Remove definition.
55953         (_GL_ATTRIBUTE_FORMAT): New macro.
55954         (error, error_at_line): Use it.
55955         * lib/hash.h (__attribute__): Remove definition.
55956         (ATTRIBUTE_WUR): Update definition. Define always.
55957         * lib/openat.h (__attribute__): Remove definition.
55958         (ATTRIBUTE_NORETURN): Update definition. Define always.
55959         * lib/sigpipe-die.h (__attribute__): Remove definition.
55960         (ATTRIBUTE_NORETURN): Update definition. Define always.
55961         * lib/vasnprintf.h (__attribute__): Remove definition.
55962         (_GL_ATTRIBUTE_FORMAT): New macro.
55963         (asnprintf, vasnprintf): Use it.
55964         * lib/xalloc.h (__attribute__): Remove definition.
55965         (ATTRIBUTE_NORETURN): Update definition. Define always.
55966         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55967         * lib/xmemdup0.h (__attribute__): Remove definition.
55968         (ATTRIBUTE_NORETURN): Update definition. Define always.
55969         * lib/xprintf.h (__attribute__): Remove definition.
55970         (_GL_ATTRIBUTE_FORMAT): New macro.
55971         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55972         * lib/xstrtol.h (__attribute__): Remove definition.
55973         (ATTRIBUTE_NORETURN): Update definition. Define always.
55974         * lib/xvasprintf.h (__attribute__): Remove definition.
55975         (_GL_ATTRIBUTE_FORMAT): New macro.
55976         (xasprintf, xvasprintf): Use it.
55977         * tests/test-argmatch.c (__attribute__): Remove definition.
55978         (ATTRIBUTE_NORETURN): Update definition. Define always.
55979         * tests/test-exclude.c (__attribute__): Remove definition.
55980         (ATTRIBUTE_NORETURN): Update definition. Define always.
55981         Reported by Paul Eggert.
55983 2011-02-13  Bruno Haible  <bruno@clisp.org>
55985         mbrtowc: Add more tests for native Windows platforms.
55986         * tests/test-mbrtowc-w32-1.sh: New file.
55987         * tests/test-mbrtowc-w32-2.sh: New file.
55988         * tests/test-mbrtowc-w32-3.sh: New file.
55989         * tests/test-mbrtowc-w32-4.sh: New file.
55990         * tests/test-mbrtowc-w32-5.sh: New file.
55991         * tests/test-mbrtowc-w32.c: New file.
55992         * modules/mbrtowc-tests (Files): Add them.
55993         (Makefile.am): Arrange to run these tests.
55994         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55995         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55997 2011-02-13  Bruno Haible  <bruno@clisp.org>
55999         mbrtowc: Work around native Windows bug.
56000         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
56001         guess when no suitable locale for testing was found.
56002         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
56004 2011-02-13  Bruno Haible  <bruno@clisp.org>
56006         mbsinit: Work around mingw bug.
56007         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
56008         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
56009         Windows.
56010         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
56012 2011-02-13  Bruno Haible  <bruno@clisp.org>
56014         mbsinit: Don't crash for a NULL argument.
56015         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
56016         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
56018 2011-02-13  Bruno Haible  <bruno@clisp.org>
56020         Don't interfere with a program's definition of __attribute__.
56021         * lib/stdio.in.h (__attribute__): Remove definition.
56022         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
56023         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
56024         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
56025         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
56026         * lib/string.in.h (__attribute__): Remove definition.
56027         Reported by Paul Eggert.
56029 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56031         stdlib: don't get in the way of non-GCC __attribute__
56032         See thread starting at
56033         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
56034         Revert previous stdlib change, installing the following instead:
56035         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
56036         to get in the way of a non-GCC compiler that supports __attribute__.
56037         (_GL_ATTRIBUTE_RETURN): New macro.
56038         (_Exit): Use it instead of __attribute__.
56040 2011-02-12  Bruno Haible  <bruno@clisp.org>
56042         quotearg test: Avoid test failure on mingw.
56043         * tests/test-quotearg.sh: Convert the locale identifier from native
56044         Windows syntax to Unix syntax.
56046 2011-02-12  Bruno Haible  <bruno@clisp.org>
56048         setlocale: Prefer gnulib's override over libintl's override.
56049         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
56050         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
56051         GNULIB_defined_setlocale is set.
56053 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56055         stdlib: support non-GCC __attribute__
56057         Fix a serious and tricky problem encountered when attempting to
56058         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
56059         5.5, but it crashed due to memory corruption on Solaris 10 with
56060         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
56061         bits that are otherwise zero.  This tagging is optional inside
56062         Emacs but is preferred and is used when __attribute__ ((__aligned
56063         (8))) works, as it does with both recent-enough GCC and with Sun C
56064         5.11.  However, Sun C 5.11 is not GCC and does not #define
56065         __GNUC__ and __GNUC_MINOR__.
56067         When I added the getloadavg module to Emacs, it brought in
56068         stdlib.in.h, which contained this fragment:
56070            #ifndef __attribute__
56071            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
56072            #  define __attribute__(Spec)   /* empty */
56073            # endif
56074            #endif
56076         When files that include <stdlib.h> were compiled with Sun C 5.11,
56077         the above code disabled __attribute__ ((__aligned (8))), which
56078         caused variables to not be properly aligned, which eventually led
56079         to the pointer corruption mentioned above.  (This was a bit hard
56080         to diagnose, unfortunately.)
56082         Several "#define __attribute__(X) /* empty */" code snippets need
56083         to be eradicated from Gnulib to work with non-GCC compilers that
56084         support __attribute__.  The Autoconf way to do this is to test for
56085         each kind of attribute that we want support for, and selectively
56086         enable that in source code.
56088         Fix this problem just for stdlib.h, by adding a test for the
56089         __noreturn__ attribute, and change stdlib.in.h to use that test
56090         when needed.  This technique can be easily generalized to the
56091         other *.in.h files and attributes, and a similar technique can be
56092         used for *.h and *.c files.  This patch is enough to solve the
56093         problem for Emacs + getloadavg, and I thought I'd publish it for
56094         feedback before undertaking further, similar fixes in other
56095         modules.
56097         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
56098         because it's not needed for stdlib.h.  It merely substitutes the
56099         value directly into stdlib.h.  We may well need to #define it, or
56100         similar symbols, for other modules, but it's nice to also have an
56101         option to not #define it for applications like Emacs that do not
56102         need it.
56104         * lib/stdlib.in.h (__attribute__): Do not #define.
56105         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
56106         be defined only if the _Exit module is also used.
56107         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
56108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
56109         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
56110         platforms.
56111         * modules/_Exit (Files): Add m4/attribute.m4.
56112         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
56113         * m4/attribute.m4: New file.
56115 2011-02-12  Bruno Haible  <bruno@clisp.org>
56117         wcsrtombs: Work around bug on native Windows.
56118         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
56119         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
56120         instead of len.
56121         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
56123 2011-02-12  Bruno Haible  <bruno@clisp.org>
56125         mbsrtowcs: Work around bug on native Windows.
56126         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
56127         against mingw bug.
56128         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
56130 2011-02-12  Bruno Haible  <bruno@clisp.org>
56132         Avoid setlocale bugs in tests.
56133         * modules/btowc (Dependencies): Add setlocale.
56134         * modules/c-strcase (Dependencies): Likewise.
56135         * modules/mbmemcasecmp (Dependencies): Likewise.
56136         * modules/mbmemcasecoll (Dependencies): Likewise.
56137         * modules/mbrtowc (Dependencies): Likewise.
56138         * modules/mbscasecmp (Dependencies): Likewise.
56139         * modules/mbscasestr (Dependencies): Likewise.
56140         * modules/mbschr (Dependencies): Likewise.
56141         * modules/mbscspn (Dependencies): Likewise.
56142         * modules/mbsinit (Dependencies): Likewise.
56143         * modules/mbsncasecmp (Dependencies): Likewise.
56144         * modules/mbsnrtowcs (Dependencies): Likewise.
56145         * modules/mbspbrk (Dependencies): Likewise.
56146         * modules/mbspcasecmp (Dependencies): Likewise.
56147         * modules/mbsrchr (Dependencies): Likewise.
56148         * modules/mbsrtowcs (Dependencies): Likewise.
56149         * modules/mbsspn (Dependencies): Likewise.
56150         * modules/mbsstr (Dependencies): Likewise.
56151         * modules/nl_langinfo (Dependencies): Likewise.
56152         * modules/quotearg (Dependencies): Likewise.
56153         * modules/unicase/locale-language (Dependencies): Likewise.
56154         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
56155         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
56156         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
56157         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
56158         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
56159         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
56160         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
56161         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
56162         * modules/vasnprintf-posix (Dependencies): Likewise.
56163         * modules/wcrtomb (Dependencies): Likewise.
56164         * modules/wcsnrtombs (Dependencies): Likewise.
56165         * modules/wcsrtombs (Dependencies): Likewise.
56167 2011-02-12  Bruno Haible  <bruno@clisp.org>
56169         setlocale: Workaround native Windows bug.
56170         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
56171         succeeds but sets LC_CTYPE to "C", report a failure.
56172         * tests/test-setlocale2.sh: New file.
56173         * tests/test-setlocale2.c: New file.
56174         * modules/setlocale-tests (Files): Add the new files.
56175         (Makefile.am): Enable test-setlocale2.sh test.
56176         * doc/posix-functions/setlocale.texi: Mention workaround.
56178 2011-02-11  Bruno Haible  <bruno@clisp.org>
56180         Tests for module 'setlocale'.
56181         * modules/setlocale-tests: New file.
56182         * tests/test-setlocale1.sh: New file.
56183         * tests/test-setlocale1.c: New file.
56185         New module 'setlocale'.
56186         * lib/locale.in.h (setlocale): New declaration.
56187         * lib/setlocale.c: New file, based on
56188         gettext/gettext-runtime/intl/setlocale.c.
56189         * m4/setlocale.m4: New file.
56190         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
56191         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
56192         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
56193         REPLACE_SETLOCALE.
56194         * modules/setlocale: New file.
56195         * tests/test-locale-c++.cc: Test the declaration of setlocale.
56196         * doc/posix-functions/setlocale.texi: Mention the new module.
56198 2011-02-11  Bruno Haible  <bruno@clisp.org>
56200         Prepare for locale dependent tests on mingw.
56201         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
56202         because it has the wrong locale encoding.
56203         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
56204         French_France.1252 instead of "fr".
56205         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
56206         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
56207         because it has the wrong locale encoding.
56208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
56209         native Windows, try Turkish_Turkey.65001.
56210         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
56211         Chinese_China.54936.
56213         Prepare for locale dependent tests on mingw.
56214         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
56215         differently.
56216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
56217         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
56218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56221 2011-02-11  Eric Blake  <eblake@redhat.com>
56223         strptime: avoid compiler warnings
56224         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
56225         compiler warnings about dead code.
56226         Reported by Daniel P. Berrange.
56228 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
56230         doc: update users.txt
56231         * users.txt: Add rcs.
56233 2011-02-10  John W. Eaton  <jwe@gnu.org>
56235         doc: update users.txt
56236         * users.txt: Add octave.
56238 2011-02-10  Jim Meyering  <meyering@redhat.com>
56240         doc: update users.txt
56241         * users.txt: Add iwhd.
56243 2011-02-09  Bruno Haible  <bruno@clisp.org>
56245         gnulib-tool: Make copyright notice adjustment more robust.
56246         * gnulib-tool (func_import): In sed_transform_main_lib_file,
56247         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
56248         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
56249         License".
56250         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
56252 2011-02-06  Bruno Haible  <bruno@clisp.org>
56254         New module 'towctrans'.
56255         * modules/towctrans: New file.
56256         * lib/wctype.in.h (towctrans): New declaration.
56257         * lib/towctrans.c: New file.
56258         * lib/towctrans-impl.h: New file.
56259         * m4/towctrans.m4: New file.
56260         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
56261         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
56262         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
56263         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
56264         * doc/posix-functions/towctrans.texi: Mention the new module.
56266 2011-02-06  Bruno Haible  <bruno@clisp.org>
56268         New module 'wctrans'.
56269         * modules/wctrans: New file.
56270         * lib/wctype.in.h (wctrans): New declaration.
56271         * lib/wctrans.c: New file.
56272         * lib/wctrans-impl.h: New file.
56273         * m4/wctrans.m4: New file.
56274         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
56275         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
56276         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
56277         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
56278         * doc/posix-functions/wctrans.texi: Mention the new module.
56280 2011-02-06  Bruno Haible  <bruno@clisp.org>
56282         New module 'iswctype'.
56283         * modules/iswctype: New file.
56284         * lib/wctype.in.h (iswctype): New declaration.
56285         * lib/iswctype.c: New file.
56286         * lib/iswctype-impl.h: New file.
56287         * m4/iswctype.m4: New file.
56288         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
56289         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
56290         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
56291         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
56292         * doc/posix-functions/iswctype.texi: Mention the new module and the
56293         HP-UX 11.00 problem.
56295 2011-02-06  Bruno Haible  <bruno@clisp.org>
56297         New module 'wctype'.
56298         * modules/wctype: Change to represent the wctype() substitute.
56299         * lib/wctype.in.h (wctype): New declaration.
56300         * lib/wctype.c: New file.
56301         * lib/wctype-impl.h: New file.
56302         * m4/wctype.m4: New file.
56303         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
56304         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
56305         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
56306         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
56307         * doc/posix-functions/wctype.texi: Mention the new module and the
56308         HP-UX 11.00 problem.
56310 2011-02-06  Bruno Haible  <bruno@clisp.org>
56312         wctype-h: Ensure wctype_t and wctrans_t are defined.
56313         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
56314         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56315         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56316         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
56317         HAVE_WCTRANS_T.
56318         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
56320 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
56322         flock: fix license typo
56324         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
56325         omitted.
56327 2011-02-08  Bruno Haible  <bruno@clisp.org>
56329         Split large sed scripts, for HP-UX sed.
56330         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
56331         to avoid HP-UX limit of 99 commands, in the near future.
56332         * modules/stdlib (Makefile.am): Likewise.
56333         * modules/unistd (Makefile.am): Likewise.
56334         * modules/wchar (Makefile.am): Likewise.
56335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56336         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
56337         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
56339 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56340             Bruno Haible  <bruno@clisp.org>
56342         stdlib: improve random_r modularization
56343         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
56344         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
56345         you also need the random_r module to get this material right.
56346         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
56347         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
56348         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
56350 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56352         stdlib: don't depend on stdint
56353         * lib/stdlib.in.h: Don't include <stdint.h> merely because
56354         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
56355         be independent of whether stdint.h is needed.
56356         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
56357         here, instead of ...
56358         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
56359         struct random_data should be using the random_r module, not just
56360         the stdlib module (which wouldn't make sense: what package needs
56361         just struct random_data without also needing random_r?).
56362         * modules/stdlib (Depends-on): Remove stdint.
56364         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
56365         See the thread rooted at
56366         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
56367         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
56368         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
56369         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
56370         __VMS)); previously it was always included (via fcntl--.h).
56371         (getloadavg): Do not use c_strtod.  Instead, approximate it by
56372         hand; this is good enough for load averages.  Also, do not use
56373         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
56374         flags directly if available and don't bother otherwise.  (Packages
56375         that need the extra reliability should use the modules that define
56376         these flags on older platforms that lack them.)
56377         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
56378         fcntl-safer.
56380 2011-02-08  Jim Meyering  <meyering@redhat.com>
56382         di-set.h, ino-map.h: add multiple-inclusion guard
56383         Technically, the guard is required only for ino-map.h, due to its
56384         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
56385         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
56386         * lib/ino-map.h: Likewise.
56388 2011-02-06  Bruno Haible  <bruno@clisp.org>
56390         iswblank: Ensure declaration on glibc systems.
56391         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
56392         * modules/iswblank (Dependencies): Add 'extensions'.
56393         * doc/posix-functions/iswblank.texi: Document the glibc problem.
56395 2011-02-06  Bruno Haible  <bruno@clisp.org>
56397         New module 'iswblank'.
56398         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
56399         * modules/iswblank: New file.
56400         * modules/wctype-h (Files): Remove lib/iswblank.c.
56401         (Makefile.am): Substitute GNULIB_ISWBLANK.
56402         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
56403         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
56404         (gl_WCTYPE_H_DEFAULTS): New macro.
56405         (gl_WCTYPE_H): Require it. Remove iswblank related code.
56406         * modules/iswblank-tests: New file.
56407         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
56408         * tests/test-wctype-h.c (main): Remove iswblank tests.
56409         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
56410         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
56411         of 'wctype-h'.
56412         * NEWS: Mention the change.
56413         * modules/mbchar (Depends-on): Add iswblank.
56415 2011-02-08  Bruno Haible  <bruno@clisp.org>
56417         di-set tests: Refactor.
56418         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
56419         unnecessary includes.
56420         (ASSERT): Remove macro.
56421         (main): Make C90 compliant by avoiding variable declaration after
56422         statement.
56423         * modules/di-set-tests (Files): Add tests/macros.h.
56425 2011-02-08  Bruno Haible  <bruno@clisp.org>
56427         ino-map tests: Refactor.
56428         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
56429         unnecessary includes.
56430         (ASSERT): Remove macro.
56431         (main): Make C90 compliant by avoiding variable declaration after
56432         statement.
56433         * modules/ino-map-tests (Files): Add tests/macros.h.
56435 2011-02-08  Jim Meyering  <meyering@redhat.com>
56437         di-set: add "const" to a cast
56438         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
56439         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
56441 2011-02-06  Bruno Haible  <bruno@clisp.org>
56443         Rename module 'wctype' to 'wctype-h'.
56444         * modules/wctype-h: Renamed from modules/wctype.
56445         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
56446         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
56447         (Files, Depends-on, Makefile.am): Update.
56448         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
56449         (Files, Makefile.am): Update.
56450         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
56451         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
56452         * doc/posix-headers/wctype.texi: Update.
56453         * doc/posix-functions/iswalnum.texi: Update.
56454         * doc/posix-functions/iswalpha.texi: Update.
56455         * doc/posix-functions/iswblank.texi: Update.
56456         * doc/posix-functions/iswcntrl.texi: Update.
56457         * doc/posix-functions/iswdigit.texi: Update.
56458         * doc/posix-functions/iswgraph.texi: Update.
56459         * doc/posix-functions/iswlower.texi: Update.
56460         * doc/posix-functions/iswprint.texi: Update.
56461         * doc/posix-functions/iswpunct.texi: Update.
56462         * doc/posix-functions/iswspace.texi: Update.
56463         * doc/posix-functions/iswupper.texi: Update.
56464         * doc/posix-functions/iswxdigit.texi: Update.
56465         * doc/posix-functions/towlower.texi: Update.
56466         * doc/posix-functions/towupper.texi: Update.
56467         * NEWS: Mention the change.
56468         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
56469         * modules/mbchar (Dependencies): Likewise.
56470         * modules/mbswidth (Dependencies): Likewise.
56471         * modules/quotearg (Dependencies): Likewise.
56472         * modules/regex (Dependencies): Likewise.
56473         * modules/wcscasecmp (Dependencies): Likewise.
56474         * modules/wcsncasecmp (Dependencies): Likewise.
56475         * modules/wcwidth (Dependencies): Likewise.
56477 2011-02-06  Bruno Haible  <bruno@clisp.org>
56479         New module 'wcswidth'.
56480         * modules/wcswidth: New file.
56481         * lib/wchar.in.h (wcswidth): New declaration.
56482         * lib/wcswidth.c: New file.
56483         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
56484         * m4/wcswidth.m4: New file.
56485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
56486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
56487         REPLACE_WCSWIDTH.
56488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
56489         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
56490         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
56491         * doc/posix-functions/wcswidth.texi: Mention the new module.
56493 2011-02-06  Bruno Haible  <bruno@clisp.org>
56495         New module 'wcstok'.
56496         * modules/wcstok: New file.
56497         * lib/wchar.in.h (wcstok): New declaration.
56498         * lib/wcstok.c: New file.
56499         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
56500         * m4/wcstok.m4: New file.
56501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
56502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
56503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
56504         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
56505         * doc/posix-functions/wcstok.texi: Mention the new module.
56507 2011-02-06  Bruno Haible  <bruno@clisp.org>
56509         New module 'wcsstr'.
56510         * modules/wcsstr: New file.
56511         * lib/wchar.in.h (wcsstr): New declaration.
56512         * lib/wcsstr.c: New file.
56513         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
56514         * m4/wcsstr.m4: New file.
56515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
56516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
56517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
56518         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
56519         * doc/posix-functions/wcsstr.texi: Mention the new module.
56521 2011-02-06  Bruno Haible  <bruno@clisp.org>
56523         New module 'wcspbrk'.
56524         * modules/wcspbrk: New file.
56525         * lib/wchar.in.h (wcspbrk): New declaration.
56526         * lib/wcspbrk.c: New file.
56527         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
56528         * m4/wcspbrk.m4: New file.
56529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
56530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
56531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
56532         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
56533         * doc/posix-functions/wcspbrk.texi: Mention the new module.
56535 2011-02-06  Bruno Haible  <bruno@clisp.org>
56537         New module 'wcsspn'.
56538         * modules/wcsspn: New file.
56539         * lib/wchar.in.h (wcsspn): New declaration.
56540         * lib/wcsspn.c: New file.
56541         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
56542         * m4/wcsspn.m4: New file.
56543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
56544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
56545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
56546         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
56547         * doc/posix-functions/wcsspn.texi: Mention the new module.
56549 2011-02-06  Bruno Haible  <bruno@clisp.org>
56551         New module 'wcscspn'.
56552         * modules/wcscspn: New file.
56553         * lib/wchar.in.h (wcscspn): New declaration.
56554         * lib/wcscspn.c: New file.
56555         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
56556         * m4/wcscspn.m4: New file.
56557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
56558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
56559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
56560         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
56561         * doc/posix-functions/wcscspn.texi: Mention the new module.
56563 2011-02-06  Bruno Haible  <bruno@clisp.org>
56565         New module 'wcsrchr'.
56566         * modules/wcsrchr: New file.
56567         * lib/wchar.in.h (wcsrchr): New declaration.
56568         * lib/wcsrchr.c: New file.
56569         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
56570         * m4/wcsrchr.m4: New file.
56571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
56572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
56573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
56574         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
56575         * doc/posix-functions/wcsrchr.texi: Mention the new module.
56577 2011-02-06  Bruno Haible  <bruno@clisp.org>
56579         New module 'wcschr'.
56580         * modules/wcschr: New file.
56581         * lib/wchar.in.h (wcschr): New declaration.
56582         * lib/wcschr.c: New file.
56583         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
56584         * m4/wcschr.m4: New file.
56585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
56586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56588         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56589         * doc/posix-functions/wcschr.texi: Mention the new module.
56591 2011-02-06  Bruno Haible  <bruno@clisp.org>
56593         New module 'wcsdup'.
56594         * modules/wcsdup: New file.
56595         * lib/wchar.in.h (wcsdup): New declaration.
56596         * lib/wcsdup.c: New file.
56597         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56598         * m4/wcsdup.m4: New file.
56599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56602         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56603         * doc/posix-functions/wcsdup.texi: Mention the new module.
56605 2011-02-06  Bruno Haible  <bruno@clisp.org>
56607         New module 'wcsxfrm'.
56608         * modules/wcsxfrm: New file.
56609         * lib/wchar.in.h (wcsxfrm): New declaration.
56610         * lib/wcsxfrm.c: New file.
56611         * lib/wcsxfrm-impl.h: New file.
56612         * m4/wcsxfrm.m4: New file.
56613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56616         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56617         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56619 2011-02-06  Bruno Haible  <bruno@clisp.org>
56621         New module 'wcscoll'.
56622         * modules/wcscoll: New file.
56623         * lib/wchar.in.h (wcscoll): New declaration.
56624         * lib/wcscoll.c: New file.
56625         * lib/wcscoll-impl.h: New file.
56626         * m4/wcscoll.m4: New file.
56627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56630         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56631         * doc/posix-functions/wcscoll.texi: Mention the new module.
56633 2011-02-06  Bruno Haible  <bruno@clisp.org>
56635         New module 'wcsncasecmp'.
56636         * modules/wcsncasecmp: New file.
56637         * lib/wchar.in.h (wcsncasecmp): New declaration.
56638         * lib/wcsncasecmp.c: New file.
56639         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56640         * m4/wcsncasecmp.m4: New file.
56641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56644         HAVE_WCSNCASECMP.
56645         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56646         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56648 2011-02-06  Bruno Haible  <bruno@clisp.org>
56650         New module 'wcscasecmp'.
56651         * modules/wcscasecmp: New file.
56652         * lib/wchar.in.h (wcscasecmp): New declaration.
56653         * lib/wcscasecmp.c: New file.
56654         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56655         * m4/wcscasecmp.m4: New file.
56656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56659         HAVE_WCSCASECMP.
56660         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56661         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56663 2011-02-05  Bruno Haible  <bruno@clisp.org>
56665         New module 'wcsncmp'.
56666         * modules/wcsncmp: New file.
56667         * lib/wchar.in.h (wcsncmp): New declaration.
56668         * lib/wcsncmp.c: New file.
56669         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56670         * m4/wcsncmp.m4: New file.
56671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56674         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56675         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56677 2011-02-05  Bruno Haible  <bruno@clisp.org>
56679         New module 'wcscmp'.
56680         * modules/wcscmp: New file.
56681         * lib/wchar.in.h (wcscmp): New declaration.
56682         * lib/wcscmp.c: New file.
56683         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56684         * m4/wcscmp.m4: New file.
56685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56688         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56689         * doc/posix-functions/wcscmp.texi: Mention the new module.
56691 2011-02-05  Bruno Haible  <bruno@clisp.org>
56693         New module 'wcsncat'.
56694         * modules/wcsncat: New file.
56695         * lib/wchar.in.h (wcsncat): New declaration.
56696         * lib/wcsncat.c: New file.
56697         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56698         * m4/wcsncat.m4: New file.
56699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56702         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56703         * doc/posix-functions/wcsncat.texi: Mention the new module.
56705 2011-02-05  Bruno Haible  <bruno@clisp.org>
56707         New module 'wcscat'.
56708         * modules/wcscat: New file.
56709         * lib/wchar.in.h (wcscat): New declaration.
56710         * lib/wcscat.c: New file.
56711         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56712         * m4/wcscat.m4: New file.
56713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56716         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56717         * doc/posix-functions/wcscat.texi: Mention the new module.
56719 2011-02-05  Bruno Haible  <bruno@clisp.org>
56721         New module 'wcpncpy'.
56722         * modules/wcpncpy: New file.
56723         * lib/wchar.in.h (wcpncpy): New declaration.
56724         * lib/wcpncpy.c: New file.
56725         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56726         * m4/wcpncpy.m4: New file.
56727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56729         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56730         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56731         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56733 2011-02-05  Bruno Haible  <bruno@clisp.org>
56735         New module 'wcsncpy'.
56736         * modules/wcsncpy: New file.
56737         * lib/wchar.in.h (wcsncpy): New declaration.
56738         * lib/wcsncpy.c: New file.
56739         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56740         * m4/wcsncpy.m4: New file.
56741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56744         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56745         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56747 2011-02-05  Bruno Haible  <bruno@clisp.org>
56749         New module 'wcpcpy'.
56750         * modules/wcpcpy: New file.
56751         * lib/wchar.in.h (wcpcpy): New declaration.
56752         * lib/wcpcpy.c: New file.
56753         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56754         * m4/wcpcpy.m4: New file.
56755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56757         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56758         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56759         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56761 2011-02-05  Bruno Haible  <bruno@clisp.org>
56763         New module 'wcscpy'.
56764         * modules/wcscpy: New file.
56765         * lib/wchar.in.h (wcscpy): New declaration.
56766         * lib/wcscpy.c: New file.
56767         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56768         * m4/wcscpy.m4: New file.
56769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56772         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56773         * doc/posix-functions/wcscpy.texi: Mention the new module.
56775 2011-02-05  Bruno Haible  <bruno@clisp.org>
56777         New module 'wcsnlen'.
56778         * modules/wcsnlen: New file.
56779         * lib/wchar.in.h (wcsnlen): New declaration.
56780         * lib/wcsnlen.c: New file.
56781         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56782         * m4/wcsnlen.m4: New file.
56783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56786         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56787         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56789 2011-02-05  Bruno Haible  <bruno@clisp.org>
56791         New module 'wcslen'.
56792         * modules/wcslen: New file.
56793         * lib/wchar.in.h (wcslen): New declaration.
56794         * lib/wcslen.c: New file.
56795         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56796         * m4/wcslen.m4: New file.
56797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56800         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56801         * doc/posix-functions/wcslen.texi: Mention the new module.
56803 2011-02-05  Bruno Haible  <bruno@clisp.org>
56805         New module 'wmemset'.
56806         * modules/wmemset: New file.
56807         * lib/wchar.in.h (wmemset): New declaration.
56808         * lib/wmemset.c: New file.
56809         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56810         * m4/wmemset.m4: New file.
56811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56813         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56814         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56815         * doc/posix-functions/wmemset.texi: Mention the new module.
56817 2011-02-05  Bruno Haible  <bruno@clisp.org>
56819         New module 'wmemmove'.
56820         * modules/wmemmove: New file.
56821         * lib/wchar.in.h (wmemmove): New declaration.
56822         * lib/wmemmove.c: New file.
56823         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56824         * m4/wmemmove.m4: New file.
56825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56827         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56828         HAVE_WMEMMOVE.
56829         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56830         * doc/posix-functions/wmemmove.texi: Mention the new module.
56832 2011-02-05  Bruno Haible  <bruno@clisp.org>
56834         New module 'wmemcpy'.
56835         * modules/wmemcpy: New file.
56836         * lib/wchar.in.h (wmemcpy): New declaration.
56837         * lib/wmemcpy.c: New file.
56838         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56839         * m4/wmemcpy.m4: New file.
56840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56842         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56843         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56844         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56846 2011-02-05  Bruno Haible  <bruno@clisp.org>
56848         New module 'wmemcmp'.
56849         * modules/wmemcmp: New file.
56850         * lib/wchar.in.h (wmemcmp): New declaration.
56851         * lib/wmemcmp.c: New file.
56852         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56853         * m4/wmemcmp.m4: New file.
56854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56856         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56857         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56858         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56860 2011-02-07  Jim Meyering  <meyering@redhat.com>
56862         di-set, ino-map: new modules, from coreutils
56863         * lib/di-set.c: New file.
56864         * lib/di-set.h: Likewise.
56865         * lib/ino-map.c: Likewise.
56866         * lib/ino-map.h: Likewise.
56867         * modules/di-set: Likewise.
56868         * modules/di-set-tests: Likewise.
56869         * modules/ino-map: Likewise.
56870         * modules/ino-map-tests: Likewise.
56871         * tests/test-di-set.c: Likewise.
56872         * tests/test-ino-map.c: Likewise.
56874 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56876         getloadavg: merge minor changes from Emacs
56878         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56879         (getloadavg): Use memset, not bzero.
56881         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56882         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56883         clash (bug#86).
56885 2010-11-14  Bruno Haible  <bruno@clisp.org>
56887         Allow multiple gnulib generated replacements to coexist.
56888         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56889         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56890         * lib/langinfo.in.h (nl_item): Likewise.
56891         * lib/math.in.h (_NaN, NAN): Likewise.
56892         * lib/netdb.in.h (struct addrinfo): Likewise.
56893         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56894         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56895         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56896         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56897         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56898         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56899         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56900         pthread_mutexattr_init, pthread_mutexattr_settype,
56901         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56902         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56903         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56904         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56905         * lib/sched.in.h (struct sched_param): Likewise.
56906         * lib/se-selinux.in.h (security_class_t, security_context_t,
56907         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56908         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56909         lsetfilecon, fsetfilecon, security_check_context,
56910         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56911         Likewise.
56912         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56913         Likewise.
56914         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56915         _gl_function_taking_int_returning_void_t, union sigval,
56916         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56917         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56918         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56919         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56920         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56921         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56922         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56923         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56924         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56925         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56926         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56927         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56928         socklen_t, rpl_fd_isset): Likewise.
56929         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56930         * lib/sys_time.in.h (struct timeval): Likewise.
56931         * lib/sys_times.in.h (struct tms): Likewise.
56932         * lib/sys_utsname.in.h (struct utsname):
56933         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56934         * lib/unistd.in.h (getpagesize): Likewise.
56935         * lib/wchar.in.h (mbstate_t): Likewise.
56936         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56937         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56938         towlower, towupper): Likewise.
56939         Reported by Sam Steingold <sds@gnu.org>.
56941 2011-02-05  Eric Blake  <eblake@redhat.com>
56943         unsetenv: work around Haiku issues
56944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56945         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56947 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56949         libposix: avoid calling error() within libposix
56950         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56951         is defined.
56953 2011-02-05  Eric Blake  <eblake@redhat.com>
56955         strerror_r-posix: port to cygwin
56956         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56957         implementation.
56958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56959         * tests/test-strerror_r.c (main): Fix test.
56960         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56961         issue.
56963 2011-02-05  Bruno Haible  <bruno@clisp.org>
56965         New module 'wmemchr'.
56966         * modules/wmemchr: New file.
56967         * lib/wchar.in.h (wmemchr): New declaration.
56968         * lib/wmemchr.c: New file.
56969         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56970         * m4/wmemchr.m4: New file.
56971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56973         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56974         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56975         * doc/posix-functions/wmemchr.texi: Mention the new module.
56977 2011-02-04  Eric Blake  <eblake@redhat.com>
56979         fdopendir: detect FreeBSD bug
56980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56981         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56983 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56985         stdbool: do not define HAVE_STDBOOL_H
56986         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56987         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56988         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56989         imported from the latest Autoconf git.  It was motivated by Emacs,
56990         which uses gnulib but does not need HAVE_STDBOOL_H.
56992 2011-02-04  Bruno Haible  <bruno@clisp.org>
56994         wcsnrtombs: Prepare for new module wwcsnrtombs.
56995         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56996         * lib/wcsnrtombs.c: Include it.
56997         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56999         wcsrtombs: Prepare for new module wwcsrtombs.
57000         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
57001         * lib/wcsrtombs.c: Include it.
57002         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
57004         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
57005         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
57006         * lib/mbsnrtowcs.c: Include it.
57007         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
57009         mbsrtowcs: Prepare for new module mbsrtowwcs.
57010         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
57011         * lib/mbsrtowcs.c: Include it.
57012         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
57014 2011-02-04  Bruno Haible  <bruno@clisp.org>
57016         vasnprintf: Reduce use of malloc for small format strings.
57017         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
57018         (arguments): Add room for the first 7 arguments.
57019         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
57020         (char_directives, u8_directives, u16_directives, u32_directives): Add
57021         room for the first 7 directives.
57022         * lib/printf-parse.c: Include <string.h>.
57023         (PRINTF_PARSE): Change memory handling code so that it uses the first
57024         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
57025         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
57026         Reported by Pádraig Brady <P@draigbrady.com>.
57028 2011-01-31  Eric Blake  <eblake@redhat.com>
57030         dup2: work around Haiku bug
57031         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
57032         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
57033         * doc/posix-functions/dup2.texi (dup2): Document the bug.
57034         * tests/test-dup2.c (main): Enhance test.
57036 2011-01-31  Simon Josefsson  <simon@josefsson.org>
57038         doc: off_t is not available in eglibc 2.11.2 stdio.h.
57039         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
57040         declared by eglibc 2.11.2.
57041         * lib/stdio.in.h: Likewise.
57043 2011-01-31  Eric Blake  <eblake@redhat.com>
57045         ignore-value: add missing test dependency
57046         * tests/test-ignore-value.c: Revert previous change; stdio.h
57047         provides off_t.
57048         * modules/ignore-value-tests (Depends-on): Add missing dependency.
57050 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
57052         mktime: clarify long_int width checking
57053         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
57054         the top level, to make it clearer that the assumption about
57055         long_int width is being checked.  See
57056         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
57058 2011-01-30  Simon Josefsson  <simon@josefsson.org>
57060         ignore-value: Fix self-test.
57061         * tests/test-ignore-value.c: Include sys/types.h for off_t.
57063 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57065         TYPE_MAXIMUM: avoid theoretically undefined behavior
57066         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
57067         negative number, which the C Standard says has undefined behavior.
57068         In practice this is not a problem, but might as well do it by the book.
57069         Reported by Rich Felker and Eric Blake; see
57070         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
57071         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
57072         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57074         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
57075         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57076         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
57078         mktime: #undef mktime before #defining it
57079         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
57081         mktime: systematically normalize tm_isdst comparisons
57082         * lib/mktime.c (isdst_differ): New function.
57083         (__mktime_internal): Use it systematically for all isdst comparisons.
57084         This completes the fix for libc BZ #6723, and removes the need for
57085         normalizing tm_isdst.  See
57086         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
57087         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
57089         mktime: fix some integer overflow issues and sidestep the rest
57091         This was prompted by a bug report by Benjamin Lindner for MinGW
57092         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
57093         His bug is due to signed integer overflow (0 - INT_MIN), and I
57094         I scanned through mktime.c looking for other integer overflow
57095         problems, fixing all the bugs I found.
57097         Although the C Standard says the resulting code is still not safe
57098         in the presence of integer overflow, in practice it should be good
57099         enough for all real-world two's-complement implementations, except
57100         for debugging environments that deliberately trap on integer
57101         overflow (e.g., gcc -ftrapv).
57103         * lib/mktime.c (WRAPV): New macro.
57104         (SHR): Also check that long_int and time_t shift right in the
57105         usual way, before using the fast-but-unportable method.
57106         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
57107         used.  The code already assumed two's complement, so there's
57108         no need to test for alternatives.  All uses removed.
57109         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
57110         the C standard.  Problem reported by Rich Felker in
57111         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
57112         (twos_complement_arithmetic): Also check long_int and time_t.
57113         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
57114         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
57115         (__mktime_internal): Avoid integer overflow with unary subtraction
57116         in two instances where -1 - X is an adequate replacement for -X,
57117         since the calculations are approximate.
57119 2011-01-29  Eric Blake  <eblake@redhat.com>
57121         mktime: avoid infinite loop
57122         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
57123         type; behavior is still undefined but portable to all known targets.
57124         Reported by Rich Felker.
57126 2011-01-29  Simon Josefsson  <simon@josefsson.org>
57128         rename, unlink, same-inode: Relicense.
57129         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
57130         * modules/unlink (License): Likewise.
57131         * modules/same-inode (License): Likewise.
57133 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57135         mktime: avoid problems on NetBSD 5 / i386
57136         * lib/mktime.c (long_int): New type.  This works around a problem
57137         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
57138         but time_t is 64 bits, and where I expect the existing code is
57139         wrong in some cases.
57140         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
57141         (ydhms_diff): Bring back the compile-time check for wide-enough
57142         year and yday.
57144         mktime: fix misspelling in comment
57145         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
57146         This merges all recent glibc changes of importance.
57148 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57150         move-if-change: cope with concurrent mv of identical file.
57151         * build-aux/move-if-change (CMPPROG): Accept environment
57152         variable as an override for `cmp'.
57153         (usage): Document CMPPROG.
57154         Adjust comparison to drop stdout.  Cope with failure of mv if
57155         the target file exists and is identical to the source, for
57156         parallel builds.
57157         Report from H.J. Lu against binutils in PR binutils/12283.
57159 2011-01-28  Bruce Korb  <bkorb@gnu.org>
57161         * users.txt: Mention sharutils.
57163 2011-01-28  Simon Josefsson  <simon@josefsson.org>
57165         * users.txt: Mention OATH Toolkit.
57167 2011-01-27  Bruno Haible  <bruno@clisp.org>
57169         Prepare for supporting FreeBSD 10.
57170         * build-aux/config.libpath: Remove handling of freebsd1*.
57172 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
57174         Prepare for supporting FreeBSD 10.
57175         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
57176         match FreeBSD 10.0.
57178 2011-01-27  Bruno Haible  <bruno@clisp.org>
57180         vma-iter, get-rusage-as: Add OpenBSD support.
57181         * modules/vma-iter (configure.ac): Test for mquery.
57182         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
57183         * lib/vma-iter.c: Include <sys/mman.h>.
57184         (vma_iterate): Add an implementation based on mquery().
57185         * lib/resource-ext.h (get_rusage_as): Update comments.
57186         * lib/get-rusage-as.c: Likewise.
57187         * lib/get-rusage-data.c: Likewise.
57189 2011-01-26  Karl Berry  <karl@gnu.org>
57191         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
57192         variables to make it easier to override the makeinfo program used.
57194 2011-01-26  Eric Blake  <eblake@redhat.com>
57196         fcntl: work around Haiku F_DUPFD bugs
57197         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
57198         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
57199         cloexec bit on duplication.
57200         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
57202 2011-01-26  Bruno Haible  <bruno@clisp.org>
57204         Enable memory leak tests on AIX.
57205         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
57206         * tests/test-fprintf-posix3.c (main): Likewise.
57208 2011-01-26  Bruno Haible  <bruno@clisp.org>
57210         Tests for module 'get-rusage-data'.
57211         * modules/get-rusage-data-tests: New file.
57212         * tests/test-get-rusage-data.c: New file.
57214         New module 'get-rusage-data'.
57215         * lib/resource-ext.h (get_rusage_data): New declaration.
57216         * lib/get-rusage-data.c: New file.
57217         * modules/get-rusage-data: New file.
57219 2011-01-25  Bruno Haible  <bruno@clisp.org>
57221         get-rusage-as: Allow for easier testing.
57222         * lib/resource-ext.h (get_rusage_as): Add comment.
57223         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
57224         (main): New function for interactive testing.
57226 2011-01-25  Bruno Haible  <bruno@clisp.org>
57228         vma-iter: Treat Haiku like BeOS.
57229         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
57230         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
57232 2011-01-25  Eric Blake  <eblake@redhat.com>
57234         c-stack: fix regression on cygwin when libsigsegv is present
57235         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
57237 2011-01-24  Bruno Haible  <bruno@clisp.org>
57239         vma-iter: Avoid empty intervals.
57240         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
57241         on an empty interval.
57243 2011-01-24  Jim Meyering  <meyering@redhat.com>
57245         u64: remove unnecessary #include
57246         * lib/u64.h: Don't include <stddef.h>.  It was not used.
57248 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57250         Allow the user to avoid the HAVE_RAW_DECL_* macros.
57251         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
57253 2011-01-23  Bruno Haible  <bruno@clisp.org>
57255         New module 'vma-iter'.
57256         * lib/vma-iter.h: New file.
57257         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
57258         * modules/vma-iter: New file.
57259         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
57260         for get_rusage_as_via_iterator.
57261         (vma_iterate_callback): New function.
57262         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
57263         * modules/get-rusage-as (Depends-on): Add vma-iter.
57265 2011-01-23  Bruno Haible  <bruno@clisp.org>
57267         uninorm: Tweak includes.
57268         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
57269         Reported by Jim Meyering.
57271 2011-01-23  Bruno Haible  <bruno@clisp.org>
57273         get-rusage-as: Improve on NetBSD.
57274         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
57275         /proc, like on FreeBSD.
57277 2011-01-23  Jim Meyering  <meyering@redhat.com>
57279         xreadlink.h: remove unnecessary #include
57280         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
57282         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
57283         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
57285 2011-01-23  Bruno Haible  <bruno@clisp.org>
57287         get-rusage-as: Fix bug.
57288         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
57289         original limit when aborting the first loop.
57291 2011-01-23  Bruno Haible  <bruno@clisp.org>
57293         wctype: Ensure valid C syntax.
57294         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
57295         unconditionally, instead of gl_NEXT_HEADERS conditionally.
57297 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57299         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
57300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
57301         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
57302         as they are needed only for configure's test case.
57303         This removes two unnecessary symbols from config.h.
57305         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
57306         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
57307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
57308         AC_CHECK_HEADERS_ONCE on a header that we also invoke
57309         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
57310         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
57311         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
57312         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
57313         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57314         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57315         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
57316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57319         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
57320         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57321         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57322         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57324 2011-01-21  Eric Blake  <eblake@redhat.com>
57326         maintainer-makefile: work with older git for submodule check
57327         * top/maint.mk (public-submodule-commit): Rewrite to avoid
57328         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
57329         Reported by Matthias Bolte.
57331         bootstrap: minor portability fixes
57332         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
57333         (usage): Omit leading capital and trailing . on help phrases, per
57334         GNU Coding Standards.
57335         (check_versions, top level): Prefix messages with script name.
57337 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
57339         bootstrap: support --no-git option
57340         * build-aux/bootstrap: Add --no-git option, to be used when
57341         --gnulib-srcdir points to the exact desired checkout.
57343 2011-01-21  Eric Blake  <eblake@redhat.com>
57345         strerror_r-posix: work with glibc 2.13
57346         * lib/strerror_r.c (strerror_r): Fix return type.
57348 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57349             Bruno Haible  <bruno@clisp.org>
57351         uN_strstr: New unit tests.
57352         * modules/unistr/u8-strstr-tests: New file.
57353         * modules/unistr/u16-strstr-tests: New file.
57354         * modules/unistr/u32-strstr-tests: New file.
57355         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
57356         * tests/unistr/test-u8-strstr.c: New file.
57357         * tests/unistr/test-u16-strstr.c: New file.
57358         * tests/unistr/test-u32-strstr.c: New file.
57360 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57361             Bruno Haible  <bruno@clisp.org>
57363         Make uN_strstr functions O(n) worst-case.
57364         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
57365         16-bit and 32-bit unit cases, use the unibyte algorithm from
57366         lib/mbsstr.c.
57367         * lib/unistr/u8-strstr.c: Include <string.h>.
57368         (UNIT_IS_UINT8_T): New macro.
57369         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
57370         (U_STRLEN, U_STRNLEN): New macros.
57371         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
57372         (U_STRLEN, U_STRNLEN): New macros.
57373         * modules/unistr/u8-strstr (Depends-on): Add strstr.
57374         (configure.ac): Update required libunistring version.
57375         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
57376         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
57377         malloca.
57378         (configure.ac): Update required libunistring version.
57379         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
57380         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
57381         malloca.
57382         (configure.ac): Update required libunistring version.
57384 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57385             Bruno Haible  <bruno@clisp.org>
57387         Prepare for faster uN_strstr functions.
57388         * lib/str-kmp.h: Support definable UNITs.
57389         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
57390         needle_len argument.
57391         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
57392         * lib/mbscasestr.c (mbscasestr): Likewise.
57394 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57396         malloca-tests: make faster by unsetting MALLOC_PERTURB_
57397         * tests/test-malloca.c (main): Unset the environment variable
57398         to greatly speed up the test.
57399         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
57400         * modules/malloca-tests: Depend on unsetenv.
57402 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57404         ignore-value: remove stdint dependency
57405         * lib/ignore-value.h: Remove <stdint.h>
57406         * modules/ignore-value: Remove stdint dependency.
57408 2011-01-21  Jim Meyering  <meyering@redhat.com>
57410         maint.mk: adjust variable name to be consistent with other gl_ vars
57411         * top/maint.mk (gl_public_submodule_commit): Rename the variable
57412         to be lower case.
57414 2011-01-20  Jim Meyering  <meyering@redhat.com>
57416         maint.mk: make "check" depend on public-submodule-commit by default
57417         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
57419 2011-01-20  Bruno Haible  <bruno@clisp.org>
57421         mbfile, mbiter: Complete change from 2008-12-21.
57422         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
57423         * m4/mbiter.m4 (gl_MBITER): Likewise.
57425 2011-01-20  Jim Meyering  <meyering@redhat.com>
57427         init.sh: insert space between each function name and "()"
57428         * tests/init.sh: Make it a little easier to see that a function's
57429         name is "warn_", and not "warn" when looking at the first part of
57430         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
57432 2011-01-20  Jim Meyering  <meyering@redhat.com>
57434         mountlist: clean up code formatting
57435         * lib/mountlist.c (read_file_system_list): Split a long line,
57436         correct bracing style, use NULL in place of "(struct statfs *)0",
57437         don't parenthesize return value, add spaces around "=" and after
57438         ";-in-for-stmt".
57440 2011-01-14  Markus Duft  <mduft@gentoo.org>
57442         mountlist: add support for Interix
57443         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
57444         Apply statvfs to all entries of /dev/fs.
57445         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
57446         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
57448 2011-01-20  Jim Meyering  <meyering@redhat.com>
57450         maint.mk: improve the public-submodule-commit rule
57451         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
57452         to suppress printing of its commands... unless V=1.
57453         Add git submodule's --quiet option to suppress printing of e.g.,
57454         "Entering gnulib" output.
57455         "cd" into $(srcdir) before running git submodule.
57457 2011-01-20  Bruno Haible  <bruno@clisp.org>
57459         include_next: Fix bug introduced on 2011-01-18.
57460         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
57461         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
57462         ac_cv_header_... variable if the second argument is not 'check'.
57463         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
57464         gl_NEXT_HEADERS_INTERNAL.
57466 2011-01-20  Bruno Haible  <bruno@clisp.org>
57468         Allow the user to avoid the GNULIB_TEST_* macros.
57469         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
57470         Suggested by Paul Eggert.
57472 2011-01-14  Jim Meyering  <meyering@redhat.com>
57474         bootstrap: avoid failure when there is no .gitmodules file
57475         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
57476         has been assigned to, even when its value is the empty string.
57477         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
57478         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
57479         Reported by John W. Eaton <jwe@gnu.org>.
57481 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57483         assume <ctype.h>, ..., <time.h> exist
57484         For years gnulib has been assuming the existence of the headers
57485         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
57486         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
57487         them, since they don't appear to be needed.
57488         * README (Portability guidelines): Document this.
57489         * lib/flock.c: Assume <fcntl.h> exists.
57490         * lib/regex_internal.h: Assume <locale.h> exists.
57491         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
57492         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
57493         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
57494         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
57495         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
57496         * m4/regex.m4 (gl_REGEX): Likewise.
57497         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
57498         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
57499         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
57500         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
57501         * tests/test-argp.c: Likewise.
57502         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
57504         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
57505         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
57506         AA_APPLE_UNIVERSAL_BUILD.  See
57507         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
57508         * NEWS: Document this.
57510 2011-01-19  Eric Blake  <eblake@redhat.com>
57512         c-stack: assume stack overflow if SA_SIGINFO unsupported
57513         * lib/c-stack.c (SIGACTION_WORKS): Rename...
57514         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
57515         sigaction will work.
57516         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
57517         behavior match Linux.
57518         * tests/test-c-stack.c (main): Prefer NULL for pointers.
57520         stdbool-tests: accommodate Haiku
57521         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57523         binary-io: fix O_TEXT on Haiku
57524         * modules/binary-io (Depends-on): Add fcntl-h.
57525         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
57526         than blindly undefining O_TEXT.
57527         Reported by Scott McCreary.
57529 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57531         include_next: do not check for standard headers like stddef.h
57533         I found this problem when modifying Emacs to use gnulib.
57534         I noticed that it added HAVE_STDDEF_H to config.h, even though
57535         gnulib always assumes <stddef.h> exists as per README and this
57536         symbol is unnecessary.
57537         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
57538         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
57539         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
57540         faster for headers like stddef.h that are known to exist.
57541         (gl_CHECK_NEXT_HEADERS): Use it.
57542         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
57543         rather than gl_CHECK_NEXT_HEADERS.
57544         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
57545         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
57547 2011-01-18  Eric Blake  <eblake@redhat.com>
57549         ansi-c++-opt: skip C++ dependency style if C++ is unused
57550         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
57551         tests when we know C++ compilation is not desired.
57552         Reported by Scott McCreary.
57554 2011-01-18  Bruno Haible  <bruno@clisp.org>
57556         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
57557         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
57558         (main): Perform test also when getrlimit and setrlimit don't exist or
57559         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
57560         limiting the address space size using setrlimit, compare the address
57561         space size before and after the test.
57562         * tests/test-dprintf-posix2.c: Likewise.
57563         * tests/test-fprintf-posix3.sh: Update skip messages.
57564         * tests/test-dprintf-posix2.sh: Likewise.
57565         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
57566         * modules/dprintf-posix-tests (Depends-on): Likewise.
57567         Reported by Bruce Korb <bkorb@gnu.org> and
57568         Gary V. Vaughan <gary@gnu.org>.
57570 2011-01-18  Bruno Haible  <bruno@clisp.org>
57572         get-rusage-as: Improvement for Cygwin.
57573         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57574         areas that are merely reserved.
57576 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57578         strftime: remove dependencies on multibyte modules
57580         strftime depended on mbrlen, mbsinit, and wchar, but these modules
57581         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
57582         only if __osf__ is defined, and I suspect OSF doesn't need these
57583         other modules.  If my guess is wrong, we'll need to come up with a
57584         variant of strftime that doesn't need the multibyte modules.
57586         I discovered this problem when attempting modify Emacs to use the
57587         strftime module.  With the previous gnulib, this caused Emacs to
57588         need 31 new files, ranging from lib/config.charset to
57589         m4/wint_t.m4.  This was overkill and I expect would be offputting
57590         to the Emacs maintainers.  After this change, only 6 new files are
57591         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57592         stdbool.m4, and tm_gmtoff.m4.
57594         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57595         Suggested by Bruno Haible in
57596         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57597         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57598         and do not check for wchar.h.
57599         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57600         (Depends-on): Remove mbrlen, mbsinit, wchar.
57602 2011-01-18  Bruno Haible  <bruno@clisp.org>
57604         Tests for module 'get-rusage-as'.
57605         * modules/get-rusage-as-tests: New file.
57606         * tests/test-get-rusage-as.c: New file.
57608         New module 'get-rusage-as'.
57609         * modules/get-rusage-as: New file.
57610         * lib/resource-ext.h: New file.
57611         * lib/get-rusage-as.c: New file.
57613 2011-01-17  Eric Blake  <eblake@redhat.com>
57615         sigaction: relax license from LGPLv3+ to LGPLv2+
57616         * modules/sigaction (License): Relax to LGPLv2+.
57618 2011-01-14  Bruno Haible  <bruno@clisp.org>
57620         filemode: Make function declarations usable in C++ mode.
57621         * lib/filemode.h: Enclose function declarations in extern "C" block.
57622         Reported by John W. Eaton <jwe@gnu.org>.
57624 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57626         save-cwd: no longer include "xgetcwd.h"
57627         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57628         This avoids a compilation failure in projects that use save-cwd
57629         without also using the xgetcwd module.
57631 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57633         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57634         This is so that a program like Emacs, which needs only dtoastr,
57635         does not have to bother with distributing and compiling ftoastr
57636         and ldtoastr.
57637         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57638         * modules/dtoastr, modules/ldtoastr: New files.
57639         * modules/ftoastr: Now works just for 'float'.
57640         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57641         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57642         dtoastr.c, ldtoastr.c.
57644 2011-01-11  Jim Meyering  <meyering@redhat.com>
57646         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57647         There is no need to work around the lack of the fchdir function,
57648         since gnulib can now provide a replacement when required.
57649         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57650         * modules/save-cwd (Depends-on): Add fchdir.
57652 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57654         openat, save-cwd: avoid xmalloc
57656         This removes a direct (but undocumented) dependency of openat on
57657         xalloc, along with an indirect dependency via save-cwd.  It also
57658         removes a dependency of save-cwd on xgetcwd, and thereby
57659         indirectly on xalloc.  This change causes the openat substitute
57660         to fall back on save_cwd when memory is tight, and for save_cwd to
57661         fail instead of dying when memory is tight, but that's good enough.
57662         Problem and initial idea for fix reported by Bastien Roucaries in
57663         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57665         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57666         xalloc.h (for xmalloc).
57667         (openat_proc_name): Use malloc, not xmalloc.
57668         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57669         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57671         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57672         This avoids heap allocation for file names whose lengths are in
57673         the range 512..1023, with the upper bound increasing to at most
57674         4031 depending on the platform's PATH_MAX.  (We do not want
57675         pathmax.h here as it might supply a non-constant PATH_MAX.)
57676         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57677         Perhaps they should be moved to malloca.h?
57678         (OPENAT_BUFFER_SIZE): Use them.
57680 2011-01-10  Bruno Haible  <bruno@clisp.org>
57682         doc: Update users.txt.
57683         * users.txt: Add recutils.
57685 2011-01-09  Karl Berry  <karl@gnu.org>
57687         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57689         * doc/configmake.texi: New file.
57690         * doc/gnulib.texi: Include it.
57691         * modules/configmake: Move documentation from here.
57693 2011-01-09  Bruno Haible  <bruno@clisp.org>
57695         Update to Unicode 6.0.0.
57696         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57697         (get_lbp): Update for Unicode 6.0.0.
57698         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57699         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57700         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57701         U+11001, U+11038..U+11046. Remove U+06DE.
57702         (uc_width): Fix bounds of planes.
57703         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57704         lib/uniwidth/width.c.
57705         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57706         trailing whitespace removed.
57707         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57708         without comments, but with the original copyright notice.
57709         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57710         * lib/unicase/ignorable.h: Likewise.
57711         * lib/unicase/tocasefold.h: Likewise.
57712         * lib/unicase/tolower.h: Likewise.
57713         * lib/unicase/totitle.h: Likewise.
57714         * lib/unicase/toupper.h: Likewise.
57715         * lib/unictype/bidi_of.h: Likewise.
57716         * lib/unictype/blocks.h: Likewise.
57717         * lib/unictype/categ_C.h: Likewise.
57718         * lib/unictype/categ_Cn.h: Likewise.
57719         * lib/unictype/categ_L.h: Likewise.
57720         * lib/unictype/categ_Ll.h: Likewise.
57721         * lib/unictype/categ_Lm.h: Likewise.
57722         * lib/unictype/categ_Lo.h: Likewise.
57723         * lib/unictype/categ_Lu.h: Likewise.
57724         * lib/unictype/categ_M.h: Likewise.
57725         * lib/unictype/categ_Mc.h: Likewise.
57726         * lib/unictype/categ_Me.h: Likewise.
57727         * lib/unictype/categ_Mn.h: Likewise.
57728         * lib/unictype/categ_N.h: Likewise.
57729         * lib/unictype/categ_Nd.h: Likewise.
57730         * lib/unictype/categ_No.h: Likewise.
57731         * lib/unictype/categ_P.h: Likewise.
57732         * lib/unictype/categ_Po.h: Likewise.
57733         * lib/unictype/categ_S.h: Likewise.
57734         * lib/unictype/categ_Sc.h: Likewise.
57735         * lib/unictype/categ_Sk.h: Likewise.
57736         * lib/unictype/categ_Sm.h: Likewise.
57737         * lib/unictype/categ_So.h: Likewise.
57738         * lib/unictype/categ_of.h: Likewise.
57739         * lib/unictype/combining.h: Likewise.
57740         * lib/unictype/ctype_alnum.h: Likewise.
57741         * lib/unictype/ctype_alpha.h: Likewise.
57742         * lib/unictype/ctype_graph.h: Likewise.
57743         * lib/unictype/ctype_lower.h: Likewise.
57744         * lib/unictype/ctype_print.h: Likewise.
57745         * lib/unictype/ctype_punct.h: Likewise.
57746         * lib/unictype/ctype_upper.h: Likewise.
57747         * lib/unictype/decdigit.h: Likewise.
57748         * lib/unictype/digit.h: Likewise.
57749         * lib/unictype/numeric.h: Likewise.
57750         * lib/unictype/pr_alphabetic.h: Likewise.
57751         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57752         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57753         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57754         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57755         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57756         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57757         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57758         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57759         * lib/unictype/pr_case_ignorable.h: Likewise.
57760         * lib/unictype/pr_cased.h: Likewise.
57761         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57762         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57763         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57764         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57765         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57766         * lib/unictype/pr_combining.h: Likewise.
57767         * lib/unictype/pr_composite.h: Likewise.
57768         * lib/unictype/pr_currency_symbol.h: Likewise.
57769         * lib/unictype/pr_decimal_digit.h: Likewise.
57770         * lib/unictype/pr_deprecated.h: Likewise.
57771         * lib/unictype/pr_format_control.h: Likewise.
57772         * lib/unictype/pr_grapheme_base.h: Likewise.
57773         * lib/unictype/pr_grapheme_extend.h: Likewise.
57774         * lib/unictype/pr_grapheme_link.h: Likewise.
57775         * lib/unictype/pr_id_continue.h: Likewise.
57776         * lib/unictype/pr_id_start.h: Likewise.
57777         * lib/unictype/pr_ideographic.h: Likewise.
57778         * lib/unictype/pr_lowercase.h: Likewise.
57779         * lib/unictype/pr_math.h: Likewise.
57780         * lib/unictype/pr_numeric.h: Likewise.
57781         * lib/unictype/pr_other_alphabetic.h: Likewise.
57782         * lib/unictype/pr_other_id_continue.h: Likewise.
57783         * lib/unictype/pr_other_math.h: Likewise.
57784         * lib/unictype/pr_punctuation.h: Likewise.
57785         * lib/unictype/pr_sentence_terminal.h: Likewise.
57786         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57787         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57788         * lib/unictype/pr_unified_ideograph.h: Likewise.
57789         * lib/unictype/pr_uppercase.h: Likewise.
57790         * lib/unictype/pr_xid_continue.h: Likewise.
57791         * lib/unictype/pr_xid_start.h: Likewise.
57792         * lib/unictype/scripts.h: Likewise.
57793         * lib/unictype/scripts_byname.gperf: Likewise.
57794         * lib/unictype/sy_java_ident.h: Likewise.
57795         * lib/unigbrk/gbrkprop.h: Likewise.
57796         * lib/unilbrk/lbrkprop1.h: Likewise.
57797         * lib/unilbrk/lbrkprop2.h: Likewise.
57798         * lib/uninorm/decomposition-table2.h: Likewise.
57799         * lib/uniwbrk/wbrkprop.h: Likewise.
57800         * tests/unicase/test-cased.c: Likewise.
57801         * tests/unicase/test-ignorable.c: Likewise.
57802         * tests/unicase/test-uc_tolower.c: Likewise.
57803         * tests/unicase/test-uc_totitle.c: Likewise.
57804         * tests/unicase/test-uc_toupper.c: Likewise.
57805         * tests/unictype/test-categ_C.c: Likewise.
57806         * tests/unictype/test-categ_Cn.c: Likewise.
57807         * tests/unictype/test-categ_L.c: Likewise.
57808         * tests/unictype/test-categ_Ll.c: Likewise.
57809         * tests/unictype/test-categ_Lm.c: Likewise.
57810         * tests/unictype/test-categ_Lo.c: Likewise.
57811         * tests/unictype/test-categ_Lu.c: Likewise.
57812         * tests/unictype/test-categ_M.c: Likewise.
57813         * tests/unictype/test-categ_Mc.c: Likewise.
57814         * tests/unictype/test-categ_Me.c: Likewise.
57815         * tests/unictype/test-categ_Mn.c: Likewise.
57816         * tests/unictype/test-categ_N.c: Likewise.
57817         * tests/unictype/test-categ_Nd.c: Likewise.
57818         * tests/unictype/test-categ_No.c: Likewise.
57819         * tests/unictype/test-categ_P.c: Likewise.
57820         * tests/unictype/test-categ_Po.c: Likewise.
57821         * tests/unictype/test-categ_S.c: Likewise.
57822         * tests/unictype/test-categ_Sc.c: Likewise.
57823         * tests/unictype/test-categ_Sk.c: Likewise.
57824         * tests/unictype/test-categ_Sm.c: Likewise.
57825         * tests/unictype/test-categ_So.c: Likewise.
57826         * tests/unictype/test-ctype_alnum.c: Likewise.
57827         * tests/unictype/test-ctype_alpha.c: Likewise.
57828         * tests/unictype/test-ctype_graph.c: Likewise.
57829         * tests/unictype/test-ctype_lower.c: Likewise.
57830         * tests/unictype/test-ctype_print.c: Likewise.
57831         * tests/unictype/test-ctype_punct.c: Likewise.
57832         * tests/unictype/test-ctype_upper.c: Likewise.
57833         * tests/unictype/test-decdigit.h: Likewise.
57834         * tests/unictype/test-digit.h: Likewise.
57835         * tests/unictype/test-numeric.h: Likewise.
57836         * tests/unictype/test-pr_alphabetic.c: Likewise.
57837         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57838         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57839         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57840         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57841         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57842         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57843         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57844         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57845         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57846         * tests/unictype/test-pr_cased.c: Likewise.
57847         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57848         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57849         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57850         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57851         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57852         * tests/unictype/test-pr_combining.c: Likewise.
57853         * tests/unictype/test-pr_composite.c: Likewise.
57854         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57855         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57856         * tests/unictype/test-pr_deprecated.c: Likewise.
57857         * tests/unictype/test-pr_format_control.c: Likewise.
57858         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57859         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57860         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57861         * tests/unictype/test-pr_id_continue.c: Likewise.
57862         * tests/unictype/test-pr_id_start.c: Likewise.
57863         * tests/unictype/test-pr_ideographic.c: Likewise.
57864         * tests/unictype/test-pr_lowercase.c: Likewise.
57865         * tests/unictype/test-pr_math.c: Likewise.
57866         * tests/unictype/test-pr_numeric.c: Likewise.
57867         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57868         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57869         * tests/unictype/test-pr_other_math.c: Likewise.
57870         * tests/unictype/test-pr_punctuation.c: Likewise.
57871         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57872         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57873         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57874         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57875         * tests/unictype/test-pr_uppercase.c: Likewise.
57876         * tests/unictype/test-pr_xid_continue.c: Likewise.
57877         * tests/unictype/test-pr_xid_start.c: Likewise.
57878         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57879         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57880         changes.
57881         * lib/unictype/categ_Cc.h: Likewise.
57882         * lib/unictype/categ_Cf.h: Likewise.
57883         * lib/unictype/categ_Co.h: Likewise.
57884         * lib/unictype/categ_Cs.h: Likewise.
57885         * lib/unictype/categ_Lt.h: Likewise.
57886         * lib/unictype/categ_Nl.h: Likewise.
57887         * lib/unictype/categ_Pc.h: Likewise.
57888         * lib/unictype/categ_Pd.h: Likewise.
57889         * lib/unictype/categ_Pe.h: Likewise.
57890         * lib/unictype/categ_Pf.h: Likewise.
57891         * lib/unictype/categ_Pi.h: Likewise.
57892         * lib/unictype/categ_Ps.h: Likewise.
57893         * lib/unictype/categ_Z.h: Likewise.
57894         * lib/unictype/categ_Zl.h: Likewise.
57895         * lib/unictype/categ_Zp.h: Likewise.
57896         * lib/unictype/categ_Zs.h: Likewise.
57897         * lib/unictype/ctype_blank.h: Likewise.
57898         * lib/unictype/ctype_cntrl.h: Likewise.
57899         * lib/unictype/ctype_digit.h: Likewise.
57900         * lib/unictype/ctype_space.h: Likewise.
57901         * lib/unictype/ctype_xdigit.h: Likewise.
57902         * lib/unictype/mirror.h: Likewise.
57903         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57904         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57905         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57906         * lib/unictype/pr_bidi_control.h: Likewise.
57907         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57908         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57909         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57910         * lib/unictype/pr_bidi_pdf.h: Likewise.
57911         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57912         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57913         * lib/unictype/pr_dash.h: Likewise.
57914         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57915         * lib/unictype/pr_diacritic.h: Likewise.
57916         * lib/unictype/pr_extender.h: Likewise.
57917         * lib/unictype/pr_hex_digit.h: Likewise.
57918         * lib/unictype/pr_hyphen.h: Likewise.
57919         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57920         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57921         * lib/unictype/pr_ignorable_control.h: Likewise.
57922         * lib/unictype/pr_iso_control.h: Likewise.
57923         * lib/unictype/pr_join_control.h: Likewise.
57924         * lib/unictype/pr_left_of_pair.h: Likewise.
57925         * lib/unictype/pr_line_separator.h: Likewise.
57926         * lib/unictype/pr_logical_order_exception.h: Likewise.
57927         * lib/unictype/pr_non_break.h: Likewise.
57928         * lib/unictype/pr_not_a_character.h: Likewise.
57929         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57930         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57931         * lib/unictype/pr_other_id_start.h: Likewise.
57932         * lib/unictype/pr_other_lowercase.h: Likewise.
57933         * lib/unictype/pr_other_uppercase.h: Likewise.
57934         * lib/unictype/pr_paired_punctuation.h: Likewise.
57935         * lib/unictype/pr_paragraph_separator.h: Likewise.
57936         * lib/unictype/pr_pattern_syntax.h: Likewise.
57937         * lib/unictype/pr_pattern_white_space.h: Likewise.
57938         * lib/unictype/pr_private_use.h: Likewise.
57939         * lib/unictype/pr_quotation_mark.h: Likewise.
57940         * lib/unictype/pr_radical.h: Likewise.
57941         * lib/unictype/pr_soft_dotted.h: Likewise.
57942         * lib/unictype/pr_space.h: Likewise.
57943         * lib/unictype/pr_titlecase.h: Likewise.
57944         * lib/unictype/pr_variation_selector.h: Likewise.
57945         * lib/unictype/pr_white_space.h: Likewise.
57946         * lib/unictype/pr_zero_width.h: Likewise.
57947         * lib/unictype/sy_c_ident.h: Likewise.
57948         * lib/unictype/sy_c_whitespace.h: Likewise.
57949         * lib/unictype/sy_java_whitespace.h: Likewise.
57950         * lib/uninorm/composition-table.gperf: Likewise.
57951         * lib/uninorm/decomposition-table1.h: Likewise.
57952         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57953         LB8.
57954         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57955         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57956         * modules/unictype/*: Bump version number of expected libunistring
57957         version.
57959 2011-01-09  Bruno Haible  <bruno@clisp.org>
57961         Update to Unicode 5.2.0.
57962         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57963         trailing whitespace removed.
57965 2011-01-09  Bruno Haible  <bruno@clisp.org>
57967         New Unicode character properties, from Unicode 5.2.0.
57968         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57969         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57970         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57971         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57972         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57973         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57974         uc_is_property_cased, uc_is_property_case_ignorable,
57975         uc_is_property_changes_when_lowercased,
57976         uc_is_property_changes_when_uppercased,
57977         uc_is_property_changes_when_titlecased,
57978         uc_is_property_changes_when_casefolded,
57979         uc_is_property_changes_when_casemapped): New declarations.
57980         * lib/unictype/pr_byname.gperf: Add the new properties.
57981         * modules/unictype/property-byname (Depends-on): Depend on the new
57982         properties modules.
57983         * modules/unictype/property-all (Depends-on): Likewise.
57984         * MODULES.html.sh (Unicode string functions): Add
57985         unictype/property-case-ignorable, unictype/property-cased,
57986         unictype/property-changes-when-casefolded,
57987         unictype/property-changes-when-casemapped,
57988         unictype/property-changes-when-lowercased,
57989         unictype/property-changes-when-titlecased,
57990         unictype/property-changes-when-uppercased.
57992         New module 'unictype/property-changes-when-casemapped'.
57993         * modules/unictype/property-changes-when-casemapped: New file.
57994         * lib/unictype/pr_changes_when_casemapped.c: New file.
57995         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57996         generated by gen-uni-tables.
57997         * modules/unictype/property-changes-when-casemapped-tests: New file.
57998         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57999         automatically generated by gen-uni-tables.
58001         New module 'unictype/property-changes-when-casefolded'.
58002         * modules/unictype/property-changes-when-casefolded: New file.
58003         * lib/unictype/pr_changes_when_casefolded.c: New file.
58004         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
58005         generated by gen-uni-tables.
58006         * modules/unictype/property-changes-when-casefolded-tests: New file.
58007         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
58008         automatically generated by gen-uni-tables.
58010         New module 'unictype/property-changes-when-titlecased'.
58011         * modules/unictype/property-changes-when-titlecased: New file.
58012         * lib/unictype/pr_changes_when_titlecased.c: New file.
58013         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
58014         generated by gen-uni-tables.
58015         * modules/unictype/property-changes-when-titlecased-tests: New file.
58016         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
58017         automatically generated by gen-uni-tables.
58019         New module 'unictype/property-changes-when-uppercased'.
58020         * modules/unictype/property-changes-when-uppercased: New file.
58021         * lib/unictype/pr_changes_when_uppercased.c: New file.
58022         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
58023         generated by gen-uni-tables.
58024         * modules/unictype/property-changes-when-uppercased-tests: New file.
58025         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
58026         automatically generated by gen-uni-tables.
58028         New module 'unictype/property-changes-when-lowercased'.
58029         * modules/unictype/property-changes-when-lowercased: New file.
58030         * lib/unictype/pr_changes_when_lowercased.c: New file.
58031         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
58032         generated by gen-uni-tables.
58033         * modules/unictype/property-changes-when-lowercased-tests: New file.
58034         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
58035         automatically generated by gen-uni-tables.
58037         New module 'unictype/property-case-ignorable'.
58038         * modules/unictype/property-case-ignorable: New file.
58039         * lib/unictype/pr_case_ignorable.c: New file.
58040         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
58041         by gen-uni-tables.
58042         * modules/unictype/property-case-ignorable-tests: New file.
58043         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
58044         generated by gen-uni-tables.
58046         New module 'unictype/property-cased'.
58047         * modules/unictype/property-cased: New file.
58048         * lib/unictype/pr_cased.c: New file.
58049         * lib/unictype/pr_cased.h: New file, automatically generated by
58050         gen-uni-tables.
58051         * modules/unictype/property-cased-tests: New file.
58052         * tests/unictype/test-pr_cased.c: New file, automatically generated by
58053         gen-uni-tables.
58055 2011-01-09  Bruno Haible  <bruno@clisp.org>
58057         Update to Unicode 5.2.0.
58058         * lib/gen-uni-tables.c (output_predicate, output_category,
58059         output_combclass, output_bidi_category, output_decimal_digit_test,
58060         output_decimal_digit, output_digit_test, output_digit,
58061         output_numeric_test, output_numeric, output_mirror, output_scripts,
58062         output_scripts_byname, output_blocks, output_ident_category): Fix
58063         comment header.
58064         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
58065         get_wbp.
58066         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
58067         items.
58068         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
58069         Changes_When_Lowercased, Changes_When_Uppercased,
58070         Changes_When_Titlecased, Changes_When_Casefolded,
58071         Changes_When_Casemapped.
58072         (is_property_alphabetic, is_property_default_ignorable_code_point):
58073         Update for Unicode 5.2.0.
58074         (is_property_cased, is_property_case_ignorable,
58075         is_property_changes_when_lowercased,
58076         is_property_changes_when_uppercased,
58077         is_property_changes_when_titlecased,
58078         is_property_changes_when_casefolded,
58079         is_property_changes_when_casemapped): New functions.
58080         (output_properties): Output also the properties cased, case_ignorable,
58081         changes_when_lowercased, changes_when_uppercased,
58082         changes_when_titlecased, changes_when_casefolded,
58083         changes_when_casemapped.
58084         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
58085         Unicode TR#11 revision 17 -> 19.
58086         (LBP_CP): New enumeration value.
58087         (LBP_*): Adjust values accordingly.
58088         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
58089         TR#14 revision 22 -> 24.
58090         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
58091         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
58092         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
58093         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
58094         is_WBP_MIDLETTER.
58095         (output_composition_tables): Allow for 24 bits instead of 16 bits in
58096         the code1 and code2 of each composition rule.
58097         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
58098         * lib/unicase/ignorable.h: Likewise.
58099         * lib/unicase/tocasefold.h: Likewise.
58100         * lib/unicase/tolower.h: Likewise.
58101         * lib/unicase/totitle.h: Likewise.
58102         * lib/unicase/toupper.h: Likewise.
58103         * lib/unictype/bidi_of.h: Likewise.
58104         * lib/unictype/blocks.h: Likewise.
58105         * lib/unictype/categ_C.h: Likewise.
58106         * lib/unictype/categ_Cf.h: Likewise.
58107         * lib/unictype/categ_Cn.h: Likewise.
58108         * lib/unictype/categ_L.h: Likewise.
58109         * lib/unictype/categ_Ll.h: Likewise.
58110         * lib/unictype/categ_Lm.h: Likewise.
58111         * lib/unictype/categ_Lo.h: Likewise.
58112         * lib/unictype/categ_Lu.h: Likewise.
58113         * lib/unictype/categ_M.h: Likewise.
58114         * lib/unictype/categ_Mc.h: Likewise.
58115         * lib/unictype/categ_Mn.h: Likewise.
58116         * lib/unictype/categ_N.h: Likewise.
58117         * lib/unictype/categ_Nd.h: Likewise.
58118         * lib/unictype/categ_Nl.h: Likewise.
58119         * lib/unictype/categ_No.h: Likewise.
58120         * lib/unictype/categ_P.h: Likewise.
58121         * lib/unictype/categ_Pd.h: Likewise.
58122         * lib/unictype/categ_Po.h: Likewise.
58123         * lib/unictype/categ_S.h: Likewise.
58124         * lib/unictype/categ_Sc.h: Likewise.
58125         * lib/unictype/categ_So.h: Likewise.
58126         * lib/unictype/categ_of.h: Likewise.
58127         * lib/unictype/combining.h: Likewise.
58128         * lib/unictype/ctype_alnum.h: Likewise.
58129         * lib/unictype/ctype_alpha.h: Likewise.
58130         * lib/unictype/ctype_graph.h: Likewise.
58131         * lib/unictype/ctype_lower.h: Likewise.
58132         * lib/unictype/ctype_print.h: Likewise.
58133         * lib/unictype/ctype_punct.h: Likewise.
58134         * lib/unictype/ctype_upper.h: Likewise.
58135         * lib/unictype/decdigit.h: Likewise.
58136         * lib/unictype/digit.h: Likewise.
58137         * lib/unictype/numeric.h: Likewise.
58138         * lib/unictype/pr_alphabetic.h: Likewise.
58139         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58140         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58141         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58142         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58143         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58144         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58145         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58146         * lib/unictype/pr_combining.h: Likewise.
58147         * lib/unictype/pr_composite.h: Likewise.
58148         * lib/unictype/pr_currency_symbol.h: Likewise.
58149         * lib/unictype/pr_dash.h: Likewise.
58150         * lib/unictype/pr_decimal_digit.h: Likewise.
58151         * lib/unictype/pr_deprecated.h: Likewise.
58152         * lib/unictype/pr_diacritic.h: Likewise.
58153         * lib/unictype/pr_extender.h: Likewise.
58154         * lib/unictype/pr_grapheme_base.h: Likewise.
58155         * lib/unictype/pr_grapheme_extend.h: Likewise.
58156         * lib/unictype/pr_grapheme_link.h: Likewise.
58157         * lib/unictype/pr_id_continue.h: Likewise.
58158         * lib/unictype/pr_id_start.h: Likewise.
58159         * lib/unictype/pr_ideographic.h: Likewise.
58160         * lib/unictype/pr_ignorable_control.h: Likewise.
58161         * lib/unictype/pr_logical_order_exception.h: Likewise.
58162         * lib/unictype/pr_lowercase.h: Likewise.
58163         * lib/unictype/pr_numeric.h: Likewise.
58164         * lib/unictype/pr_other_alphabetic.h: Likewise.
58165         * lib/unictype/pr_punctuation.h: Likewise.
58166         * lib/unictype/pr_sentence_terminal.h: Likewise.
58167         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58168         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58169         * lib/unictype/pr_unified_ideograph.h: Likewise.
58170         * lib/unictype/pr_uppercase.h: Likewise.
58171         * lib/unictype/pr_xid_continue.h: Likewise.
58172         * lib/unictype/pr_xid_start.h: Likewise.
58173         * lib/unictype/pr_zero_width.h: Likewise.
58174         * lib/unictype/scripts.h: Likewise.
58175         * lib/unictype/scripts_byname.gperf: Likewise.
58176         * lib/unictype/sy_java_ident.h: Likewise.
58177         * lib/unigbrk/gbrkprop.h: Likewise.
58178         * lib/unilbrk/lbrkprop1.h: Likewise.
58179         * lib/unilbrk/lbrkprop2.h: Likewise.
58180         * lib/unilbrk/lbrktables.h: Likewise.
58181         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
58182         LBP_CP. Implement rule LB30.
58183         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
58184         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
58185         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
58186         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
58187         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
58188         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
58189         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
58190         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
58191         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
58192         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
58193         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
58194         bits instead of 16 bits in the code1 and code2 of each composition
58195         rule.
58196         (uc_composition): Update for Unicode 5.2.0.
58197         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
58198         * lib/uninorm/decomposition-table2.h: Likewise.
58199         * lib/uniwbrk/wbrkprop.h: Likewise.
58200         * tests/unicase/test-cased.c: Likewise.
58201         * tests/unicase/test-ignorable.c: Likewise.
58202         * tests/unicase/test-uc_tolower.c: Likewise.
58203         * tests/unicase/test-uc_totitle.c: Likewise.
58204         * tests/unicase/test-uc_toupper.c: Likewise.
58205         * tests/unictype/test-categ_C.c: Likewise.
58206         * tests/unictype/test-categ_Cf.c: Likewise.
58207         * tests/unictype/test-categ_Cn.c: Likewise.
58208         * tests/unictype/test-categ_L.c: Likewise.
58209         * tests/unictype/test-categ_Ll.c: Likewise.
58210         * tests/unictype/test-categ_Lm.c: Likewise.
58211         * tests/unictype/test-categ_Lo.c: Likewise.
58212         * tests/unictype/test-categ_Lu.c: Likewise.
58213         * tests/unictype/test-categ_M.c: Likewise.
58214         * tests/unictype/test-categ_Mc.c: Likewise.
58215         * tests/unictype/test-categ_Mn.c: Likewise.
58216         * tests/unictype/test-categ_N.c: Likewise.
58217         * tests/unictype/test-categ_Nd.c: Likewise.
58218         * tests/unictype/test-categ_Nl.c: Likewise.
58219         * tests/unictype/test-categ_No.c: Likewise.
58220         * tests/unictype/test-categ_P.c: Likewise.
58221         * tests/unictype/test-categ_Pd.c: Likewise.
58222         * tests/unictype/test-categ_Po.c: Likewise.
58223         * tests/unictype/test-categ_S.c: Likewise.
58224         * tests/unictype/test-categ_Sc.c: Likewise.
58225         * tests/unictype/test-categ_So.c: Likewise.
58226         * tests/unictype/test-ctype_alnum.c: Likewise.
58227         * tests/unictype/test-ctype_alpha.c: Likewise.
58228         * tests/unictype/test-ctype_graph.c: Likewise.
58229         * tests/unictype/test-ctype_lower.c: Likewise.
58230         * tests/unictype/test-ctype_print.c: Likewise.
58231         * tests/unictype/test-ctype_punct.c: Likewise.
58232         * tests/unictype/test-ctype_upper.c: Likewise.
58233         * tests/unictype/test-decdigit.h: Likewise.
58234         * tests/unictype/test-digit.h: Likewise.
58235         * tests/unictype/test-numeric.h: Likewise.
58236         * tests/unictype/test-pr_alphabetic.c: Likewise.
58237         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58238         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58239         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58240         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58241         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58242         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58243         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58244         * tests/unictype/test-pr_combining.c: Likewise.
58245         * tests/unictype/test-pr_composite.c: Likewise.
58246         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58247         * tests/unictype/test-pr_dash.c: Likewise.
58248         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58249         * tests/unictype/test-pr_deprecated.c: Likewise.
58250         * tests/unictype/test-pr_diacritic.c: Likewise.
58251         * tests/unictype/test-pr_extender.c: Likewise.
58252         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58253         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58254         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58255         * tests/unictype/test-pr_id_continue.c: Likewise.
58256         * tests/unictype/test-pr_id_start.c: Likewise.
58257         * tests/unictype/test-pr_ideographic.c: Likewise.
58258         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58259         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58260         * tests/unictype/test-pr_lowercase.c: Likewise.
58261         * tests/unictype/test-pr_numeric.c: Likewise.
58262         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58263         * tests/unictype/test-pr_punctuation.c: Likewise.
58264         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58265         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58266         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58267         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58268         * tests/unictype/test-pr_uppercase.c: Likewise.
58269         * tests/unictype/test-pr_xid_continue.c: Likewise.
58270         * tests/unictype/test-pr_xid_start.c: Likewise.
58271         * tests/unictype/test-pr_zero_width.c: Likewise.
58272         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
58273         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
58274         changed behaviour: line breaking is now disallowed between a letter
58275         or '=' and '('.
58276         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58277         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58278         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58279         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
58280         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58281         lib/uniwidth/width.c.
58282         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
58283         without comments, but with the original copyright notice.
58284         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
58285         changes.
58286         * lib/unictype/categ_Cc.h: Likewise.
58287         * lib/unictype/categ_Co.h: Likewise.
58288         * lib/unictype/categ_Cs.h: Likewise.
58289         * lib/unictype/categ_Lt.h: Likewise.
58290         * lib/unictype/categ_Me.h: Likewise.
58291         * lib/unictype/categ_Pc.h: Likewise.
58292         * lib/unictype/categ_Pe.h: Likewise.
58293         * lib/unictype/categ_Pf.h: Likewise.
58294         * lib/unictype/categ_Pi.h: Likewise.
58295         * lib/unictype/categ_Ps.h: Likewise.
58296         * lib/unictype/categ_Sk.h: Likewise.
58297         * lib/unictype/categ_Sm.h: Likewise.
58298         * lib/unictype/categ_Z.h: Likewise.
58299         * lib/unictype/categ_Zl.h: Likewise.
58300         * lib/unictype/categ_Zp.h: Likewise.
58301         * lib/unictype/categ_Zs.h: Likewise.
58302         * lib/unictype/ctype_blank.h: Likewise.
58303         * lib/unictype/ctype_cntrl.h: Likewise.
58304         * lib/unictype/ctype_digit.h: Likewise.
58305         * lib/unictype/ctype_space.h: Likewise.
58306         * lib/unictype/ctype_xdigit.h: Likewise.
58307         * lib/unictype/mirror.h: Likewise.
58308         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58309         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58310         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58311         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58312         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58313         * lib/unictype/pr_bidi_control.h: Likewise.
58314         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58315         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58316         * lib/unictype/pr_bidi_pdf.h: Likewise.
58317         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58318         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58319         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58320         * lib/unictype/pr_format_control.h: Likewise.
58321         * lib/unictype/pr_hex_digit.h: Likewise.
58322         * lib/unictype/pr_hyphen.h: Likewise.
58323         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58324         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58325         * lib/unictype/pr_iso_control.h: Likewise.
58326         * lib/unictype/pr_join_control.h: Likewise.
58327         * lib/unictype/pr_left_of_pair.h: Likewise.
58328         * lib/unictype/pr_line_separator.h: Likewise.
58329         * lib/unictype/pr_math.h: Likewise.
58330         * lib/unictype/pr_non_break.h: Likewise.
58331         * lib/unictype/pr_not_a_character.h: Likewise.
58332         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58333         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58334         * lib/unictype/pr_other_id_continue.h: Likewise.
58335         * lib/unictype/pr_other_id_start.h: Likewise.
58336         * lib/unictype/pr_other_lowercase.h: Likewise.
58337         * lib/unictype/pr_other_math.h: Likewise.
58338         * lib/unictype/pr_other_uppercase.h: Likewise.
58339         * lib/unictype/pr_paired_punctuation.h: Likewise.
58340         * lib/unictype/pr_paragraph_separator.h: Likewise.
58341         * lib/unictype/pr_pattern_syntax.h: Likewise.
58342         * lib/unictype/pr_pattern_white_space.h: Likewise.
58343         * lib/unictype/pr_private_use.h: Likewise.
58344         * lib/unictype/pr_quotation_mark.h: Likewise.
58345         * lib/unictype/pr_radical.h: Likewise.
58346         * lib/unictype/pr_soft_dotted.h: Likewise.
58347         * lib/unictype/pr_space.h: Likewise.
58348         * lib/unictype/pr_titlecase.h: Likewise.
58349         * lib/unictype/pr_variation_selector.h: Likewise.
58350         * lib/unictype/pr_white_space.h: Likewise.
58351         * lib/unictype/sy_c_ident.h: Likewise.
58352         * lib/unictype/sy_c_whitespace.h: Likewise.
58353         * lib/unictype/sy_java_whitespace.h: Likewise.
58354         * modules/uni*/*: Bump version number of expected libunistring version.
58355         Reported by Simon Josefsson.
58357 2011-01-09  Karl Heuer  <kwzh@gnu.org>
58359         useless-if-before-free: fix typo in --help and make the internal,
58360         automatic version date update process work once again.
58361         --help output contained a NUL character instead of the
58362         backslash-zero that was intended.  Also, the "must lie within
58363         the first 8 lines" line is on line 9, and hence not getting
58364         automatically updated.
58365         * build-aux/useless-if-before-free: Fix the former by adding a
58366         backslash, and the latter by condensing the three lines of what-it-does
58367         to a single line, leaving one line of slack for the future.
58369 2011-01-09  Bruno Haible  <bruno@clisp.org>
58371         uniwidth/width: Fix width of U+1D173..U+1D17A.
58372         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
58373         symbolic_width, output_width_property_test): New functions.
58374         (main): Invoke output_nonspacing_property, output_width_property_test.
58375         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
58376         U+1D173..U+1D17A.
58377         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
58378         1.
58379         * modules/uniwidth/*: Bump version number of expected libunistring
58380         version.
58381         * modules/unilbrk/*: Likewise.
58383 2011-01-08  Bruno Haible  <bruno@clisp.org>
58385         uninorm tests: Preserve copyright of Unicode data file.
58386         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
58387         Mention modifications.
58389 2011-01-08  Bruno Haible  <bruno@clisp.org>
58391         gen-uni-tables: Prepare for Unicode 5.2.0.
58392         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
58393         (debug_output_lbp, output_lbp): Update.
58395 2011-01-08  Bruno Haible  <bruno@clisp.org>
58397         unilbrk: Clarify gen-uni-tables.c code.
58398         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
58399         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
58400         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
58402 2011-01-07  Bruno Haible  <bruno@clisp.org>
58404         strtod: Restore errno when successfully parsing Infinity or NaN.
58405         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
58406         restore the original errno.
58408 2011-01-07  Bruno Haible  <bruno@clisp.org>
58410         remove test: Avoid failure on HP-UX 11.
58411         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
58413 2011-01-07  Bruno Haible  <bruno@clisp.org>
58415         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
58416         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
58417         error code.
58419 2011-01-07  Pádraig Brady  <P@draigBrady.com>
58421         ignore-value: fixup comments, and add Eric Blake
58422         as an author since he rewrote the macros.
58423         * lib/ignore-value.h (ignore_value):  State that
58424         we now support aggregates.  Also specify exactly
58425         when the GCC warn_unused_result feature was added.
58427 2011-01-06  Eric Blake  <eblake@redhat.com>
58429         ignore-value: support aggregate types
58430         * lib/ignore-value.h (ignore_value): Provide separate gcc
58431         definition.
58432         * modules/ignore-value-tests: New test module.
58433         * tests/test-ignore-value.c: New test.
58435         maint.mk: improve sc_prohibit_strcmp regex
58436         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
58437         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
58438         definition of STRNEQ.
58440         signal: work around Haiku issue with SIGBUS
58441         * lib/siglist.h: Add comment.
58442         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
58443         strsignal's favoring of SIGSEGV.
58444         * tests/test-signal.c (main): Avoid test failure.
58445         * doc/posix-headers/signal.texi (signal.h): Document the issue.
58446         Reported by Scott McCreary.
58448         maint.mk: add pre-release check to ensure submodule commits are public
58449         * top/maint.mk (public-submodule-commit): New rule.
58450         (submodule-checks): New variable.
58451         (alpha beta stable): Depend on the variable.
58453 2011-01-05  Pádraig Brady  <P@draigBrady.com>
58454         and Jim Meyering  <meyering@redhat.com>
58456         ignore-value: make ignore_value more generic; deprecate ignore_ptr
58457         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
58458         (ATTRIBUTE_DEPRECATED): Define.
58459         (_ignore_case): New function.
58460         (ignore_value): New macro, to replace the old function.
58461         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
58462         * modules/ignore-value (Depends-on): Add stdint.
58464 2011-01-04  Eric Blake  <eblake@redhat.com>
58466         doc: regenerate INSTALL
58467         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
58468         @firstparagraphindent support, now that autoconf dropped it.
58469         (INSTALL_PRELUDE): Reinstate old macro.
58470         * doc/install.texi: Resync from autoconf.
58471         * doc/INSTALL: Reflect recent autoconf update.
58472         * doc/INSTALL.ISO: Likewise.
58473         * doc/INSTALL.UTF-8: Likewise.
58474         Reported by Karl Berry.
58476 2011-01-04  Bruce Korb  <address@hidden>
58478         git-version-gen: avoid a sub-shell
58479         * build-aux/git-version-gen: Redirect stderr in `...` via
58480         "exec 2>...", rather than via an added sub-shell.
58482 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
58484         git-version-gen: use (...) rather than sh -c '...'
58485         * build-aux/git-version-gen: Rather than hard-coding a shell's name
58486         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
58488 2011-01-03  Jim Meyering  <meyering@redhat.com>
58490         git-version-gen: convert leading TABs to spaces
58491         * build-aux/git-version-gen: Expand leading TABs.
58493         git-version-gen: handle failed "git rev-list"
58494         * build-aux/git-version-gen: Rather than leaking a "fatal" error
58495         from git and proceeding as if it had succeeded but printed no SHA1
58496         checksums, suppress the diagnostic and handle the failure.
58497         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
58499         git-version-gen: include command name in one more diagnostic
58500         * build-aux/git-version-gen: When the required .tarball-version file
58501         was missing or unreadable, you might see the diagnostic from "cat",
58502         but no trace of the name of the invoking script.  Now, you still see
58503         the diagnostic from cat, but also get one from "git-version-gen: ".
58504         Inspired by a patch from Bruce Korb.
58506         update-copyright: adjust test to match changed code
58507         * tests/test-update-copyright.sh: Change test's expected output
58508         to match new actual output.
58510 2011-01-02  Bruno Haible  <bruno@clisp.org>
58512         getlogin_r: Avoid test failure on HP-UX 11.
58513         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
58514         ERANGE when the second argument is zero.
58515         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
58516         portability problem.
58518 2011-01-02  Bruce Korb  <bkorb@gnu.org>
58520         * build-aux/update-copyright: doc Simon's changes
58522 2011-01-02  Simon Josefsson  <simon@josefsson.org>
58524         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
58525         environment variable.
58527 2011-01-02  Bruno Haible  <bruno@clisp.org>
58529         unigbrk: Avoid gcc warnings.
58530         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
58531         unused variable.
58532         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
58533         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
58534         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
58535         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
58536         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
58537         Change type of first argument to 'const char *'.
58538         (main): Remove unused variable.
58539         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
58540         type of first argument to 'const char *'.
58541         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
58542         Likewise.
58543         (main): Change type of variable 's'.
58544         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
58545         to 'int'.
58547 2011-01-02  Bruno Haible  <bruno@clisp.org>
58549         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
58550         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
58551         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
58552         bug.
58553         * lib/pwrite.c: Undo 2010-12-31 patch.
58554         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
58556 2011-01-02  Bruno Haible  <bruno@clisp.org>
58558         pread: Fix test whether it works.
58559         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
58561 2011-01-02  Bruno Haible  <bruno@clisp.org>
58563         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
58564         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
58565         ends in "6". Don't require a specific month name. Try also the locale
58566         names found on HP-UX 11 and Solaris 7.
58568 2011-01-02  Bruno Haible  <bruno@clisp.org>
58570         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
58571         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
58572         C linkage.
58573         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
58575 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58577         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
58578         for consistency, since the "cluster" term is not used elsewhere.
58579         * lib/unigbrk.in.h: Update name.
58580         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
58581         * lib/unigbrk/u16-grapheme-next.c: Update name.
58582         * lib/unigbrk/u16-grapheme-prev.c: Update name.
58583         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
58584         * lib/unigbrk/u32-grapheme-next.c: Update name.
58585         * lib/unigbrk/u32-grapheme-prev.c: Update name.
58586         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58587         * lib/unigbrk/u8-grapheme-next.c: Update name.
58588         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58589         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58590         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58591         Suggested by Bruno Haible.
58593 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58595         Remove module 'u8-grapheme-len' as too redundant with
58596         'u8-grapheme-next'.
58597         * modules/unigbrk/u8-grapheme-len: Delete file.
58598         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58599         * lib/unigbrk.in.h: Remove prototype for deleted function.
58600         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58601         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58603         Remove module 'u16-grapheme-len' as too redundant with
58604         'u16-grapheme-next'.
58605         * modules/unigbrk/u16-grapheme-len: Delete file.
58606         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58607         * lib/unigbrk.in.h: Remove prototype for deleted function.
58608         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58609         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58611         Remove module 'u32-grapheme-len' as too redundant with
58612         'u32-grapheme-next'.
58613         * modules/unigbrk/u32-grapheme-len: Delete file.
58614         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58615         * lib/unigbrk.in.h: Remove prototype for deleted function.
58616         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58617         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58619         Suggested by Bruno Haible.
58621 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58623         * unigbrk.in.h: Fix typo: "ben" => "been".
58624         Reported by Bruno Haible.
58626 2011-01-01  Jim Meyering  <meyering@redhat.com>
58628         maint: update almost all copyright ranges to include 2011
58629         Run the new "make update-copyright" rule.
58631 2011-01-01  Jim Meyering  <meyering@redhat.com>
58633         maint: update-copyright: exempt doc/INSTALL*
58634         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58635         since they are generated.  Suggested by Bruno Haible.
58637 2011-01-01  Jim Meyering  <meyering@redhat.com>
58639         maint: refine the update-copyright rule
58640         * Makefile (update-copyright): Also exclude any file that includes
58641         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58642         code that merely generates the comment.
58644 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58646         New module 'u8-grapheme-len'.
58647         * modules/unigbrk/u8-grapheme-len: New file.
58648         * modules/unigbrk/u8-grapheme-len-tests: New file.
58649         * lib/unigbrk.in.h: Add prototype for new function.
58650         * lib/unigbrk/u8-grapheme-len.c: New file.
58651         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58653         New module 'u16-grapheme-len'.
58654         * modules/unigbrk/u16-grapheme-len: New file.
58655         * modules/unigbrk/u16-grapheme-len-tests: New file.
58656         * lib/unigbrk.in.h: Add prototype for new function.
58657         * lib/unigbrk/u16-grapheme-len.c: New file.
58658         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58660         New module 'u32-grapheme-len'.
58661         * modules/unigbrk/u32-grapheme-len: New file.
58662         * modules/unigbrk/u32-grapheme-len-tests: New file.
58663         * lib/unigbrk.in.h: Add prototype for new function.
58664         * lib/unigbrk/u32-grapheme-len.c: New file.
58665         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58667         New module 'u8-grapheme-next'.
58668         * modules/unigbrk/u8-grapheme-next: New file.
58669         * modules/unigbrk/u8-grapheme-next-tests: New file.
58670         * lib/unigbrk.in.h: Add prototype for new function.
58671         * lib/unigbrk/u8-grapheme-next.c: New file.
58672         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58674         New module 'u16-grapheme-next'.
58675         * modules/unigbrk/u16-grapheme-next: New file.
58676         * modules/unigbrk/u16-grapheme-next-tests: New file.
58677         * lib/unigbrk.in.h: Add prototype for new function.
58678         * lib/unigbrk/u16-grapheme-next.c: New file.
58679         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58681         New module 'u32-grapheme-next'.
58682         * modules/unigbrk/u32-grapheme-next: New file.
58683         * modules/unigbrk/u32-grapheme-next-tests: New file.
58684         * lib/unigbrk.in.h: Add prototype for new function.
58685         * lib/unigbrk/u32-grapheme-next.c: New file.
58686         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58688         New module 'u8-grapheme-prev'.
58689         * modules/unigbrk/u8-grapheme-prev: New file.
58690         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58691         * lib/unigbrk.in.h: Add prototype for new function.
58692         * lib/unigbrk/u8-grapheme-prev.c: New file.
58693         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58695         New module 'u16-grapheme-prev'.
58696         * modules/unigbrk/u16-grapheme-prev: New file.
58697         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58698         * lib/unigbrk.in.h: Add prototype for new function.
58699         * lib/unigbrk/u16-grapheme-prev.c: New file.
58700         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58702         New module 'u32-grapheme-prev'.
58703         * modules/unigbrk/u32-grapheme-prev: New file.
58704         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58705         * lib/unigbrk.in.h: Add prototype for new function.
58706         * lib/unigbrk/u32-grapheme-prev.c: New file.
58707         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58709         New module 'u8-grapheme-breaks'.
58710         * modules/unigbrk/u8-grapheme-breaks: New file.
58711         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58712         * lib/unigbrk.in.h: Add prototype for new function.
58713         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58714         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58716         New module 'u16-grapheme-breaks'.
58717         * modules/unigbrk/u16-grapheme-breaks: New file.
58718         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58719         * lib/unigbrk.in.h: Add prototype for new function.
58720         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58721         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58723         New module 'u32-grapheme-breaks'.
58724         * modules/unigbrk/u32-grapheme-breaks: New file.
58725         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58726         * lib/unigbrk.in.h: Add prototype for new function.
58727         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58728         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58730         New module 'ulc-grapheme-breaks'.
58731         * modules/unigbrk/ulc-grapheme-breaks: New file.
58732         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58733         * m4/locale-ar.m4: New file.
58734         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58735         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58736         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58738 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58740         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58741         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58742         modified how this file was generated before I initially submitted
58743         the module, but failed to regenerate it.  This meant that several
58744         of the level2 entries were wrong.
58745         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58746         Remove the division-by-2 that is folded into the table now that
58747         gbrkprop.h has been regenerated properly.  Now -1 entries are
58748         handled correctly.
58750         New module 'unigbrk/uc-gbrk-prop-tests'.
58751         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58752         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58753         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58754         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58756 2011-01-01  Bruno Haible  <bruno@clisp.org>
58758         Avoid use of hexadecimal escapes.
58759         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58760         instead of hexadecimal escapes.
58762 2011-01-01  Jim Meyering  <meyering@redhat.com>
58764         maint: new rule to update copyright year ranges
58765         * Makefile (update-copyright): New rule.
58767         maint: indent with TABs in Makefile
58768         * Makefile: Expand leading sequences of spaces to TABs
58770         version-etc: update the copyright year it reports
58771         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58773 2010-12-31  Bruno Haible  <bruno@clisp.org>
58775         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58776         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58777         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58778         zero.
58780 2010-12-31  Bruno Haible  <bruno@clisp.org>
58782         pwrite: Work around HP-UX 11.11 bug.
58783         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58784         works and set REPLACE_PWRITE if not.
58785         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58786         function.
58787         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58789 2010-12-31  Bruno Haible  <bruno@clisp.org>
58791         pread: Work around HP-UX 11 bugs.
58792         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58793         and set REPLACE_PREAD if not.
58794         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58796 2010-12-31  Eric Blake  <eblake@redhat.com>
58798         nl_langinfo: fix YESEXPR on Irix 6.5
58799         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58800         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58801         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58802         it.
58804 2010-12-31  Bruno Haible  <bruno@clisp.org>
58806         iconv: Document HP-UX 11 bug.
58807         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58809 2010-12-31  Bruno Haible  <bruno@clisp.org>
58811         ldexpl: Fix link error on HP-UX 11.
58812         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58813         LDEXPL_LIBM, using $ISNANL_LIBM.
58815 2010-12-31  Eric Blake  <eblake@redhat.com>
58817         ftello: avoid compilation failure with SunStudio c89
58818         * lib/ftello.c (ftello): Use lseek, not llseek.
58820         tests: avoid failing coreutils tests on cygwin
58821         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58822         (create_exe_shims_): Return 0 when skipping.
58824 2010-12-31  Bruno Haible  <bruno@clisp.org>
58826         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58827         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58829 2010-12-31  Bruno Haible  <bruno@clisp.org>
58831         waitpid: Fix link error in C++ mode.
58832         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58834 2010-12-31  Bruno Haible  <bruno@clisp.org>
58836         isnan: Use GCC built-ins when possible.
58837         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58838         __builtin_isnan.
58839         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58840         (isnan): Define using GCC built-ins for GCC >= 4.0.
58842 2010-12-31  Bruno Haible  <bruno@clisp.org>
58844         isnand: Fix mistake.
58845         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58846         __builtin_isnand.
58848 2010-12-31  Bruno Haible  <bruno@clisp.org>
58850         open: Avoid C++ error on HP-UX 11.
58851         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58853 2010-12-31  Bruno Haible  <bruno@clisp.org>
58855         time_r: Add missing declarations on HP-UX 11.
58856         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58857         instead of HAVE_LOCALTIME_R.
58858         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58859         HAVE_LOCALTIME_R always.
58860         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58861         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58862         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58863         HAVE_LOCALTIME_R.
58864         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58865         * doc/posix-functions/localtime_r.texi: Likewise.
58867 2010-12-29  Eric Blake  <eblake@redhat.com>
58869         mountlist: tweak previous commit
58870         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58871         Reported by Paul Eggert.
58873         mountlist: fix local drive detection on cygwin
58874         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58875         that works for cygwin.
58877 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58879         ftoastr, snprintf: ftoastr + snprintf module
58880         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58881         since the snprintf module now should be good enough here.
58882         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58883         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58884         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58885         GNULIB_SNPRINTF only for the test directory, and the latter
58886         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58887         seems to suffice by itself.
58889 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58891         alloca: one step towards thread-safety
58892         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58893         need for a static variable.  All callers changed.  This does not
58894         make the alloca replacement thread-safe, but it's one step.
58896         tests: minor indenting change
58897         * tests/init.sh: Sync from coreutils housekeeping patch
58898         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58899         to keep lines within 80 columns.
58901 2010-12-28  Jim Meyering  <meyering@redhat.com>
58903         regex: don't infloop on persistent failing calloc
58904         * lib/regexec.c (build_trtable): Return failure indication upon
58905         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58906         In glibc, this was fixed for version 2.13:
58907         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58909 2010-12-28  Bruno Haible  <bruno@clisp.org>
58910             Paul Eggert <eggert@cs.ucla.edu>
58912         linkat: Make implementation robust against system behaviour variations.
58913         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58914         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58915         way, and to -2 if it needs a generic runtime test.
58916         * lib/linkat.c (solaris_optimized_link_immediate,
58917         solaris_optimized_link_follow): New functions.
58918         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58919         (check_same_link): Use it.
58921 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58923         New module 'unigbrk/base'.
58924         * modules/unigbrk/base: New file.
58925         * lib/unigbrk.in.h: New file.
58927         New module 'unigbrk/uc-gbrk-prop'.
58928         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58929         * modules/unigbrk/uc-gbrk-prop: New file.
58930         * lib/unigbrk/gbrkprop.h: New file.
58931         * lib/unigbrk/uc-gbrk-prop.c: New file.
58933         New module 'unigbrk/uc-is-grapheme-break'.
58934         * modules/unigbrk/uc-is-grapheme-break: New file.
58935         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58936         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58937         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58938         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58939         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58941         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58943 2010-12-27  Bruno Haible  <bruno@clisp.org>
58945         linkat test: Avoid failure on Solaris 11 2010-11.
58946         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58948 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58950         utimens: work around glibc rounding bug on more platforms
58951         * lib/utimens.c (fdutimens): Work around rounding bug even if
58952         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58953         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58955 2010-12-27  Bruno Haible  <bruno@clisp.org>
58957         select tests: Improve comments.
58958         * tests/test-select.c (do_select): Add comments.
58960 2010-12-27  Bruno Haible  <bruno@clisp.org>
58962         select tests: Safer way of handling timeout.
58963         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58964         at every invocation.
58966 2010-12-27  Bruno Haible  <bruno@clisp.org>
58968         select tests: Use 'bool' where appropriate.
58969         * tests/test-select.c (connect_to_socket): Change argument type to
58970         'bool'.
58972 2010-12-27  Bruno Haible  <bruno@clisp.org>
58974         select tests: Use existing modules.
58975         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58976         (configure.ac): Don't test for unistd.h.
58977         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58978         declared in <unistd.h>.
58980 2010-12-27  Bruno Haible  <bruno@clisp.org>
58982         mbrtowc: Work around a Solaris 7 bug.
58983         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58984         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58985         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58986         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58987         MBRTOWC_NULL_ARG1_BUG.
58988         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58989         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58990         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58991         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58993 2010-12-27  Jim Meyering  <meyering@redhat.com>
58995         read-file.c: tweak syntax
58996         * lib/read-file.c (fread_file): Remove space after "*" in function
58997         definitions.
58999 2010-12-27  Bruno Haible  <bruno@clisp.org>
59001         times test: Avoid gcc warnings on OSF/1.
59002         * tests/test-times.c (main): Cast printf arguments from clock_t to
59003         'long int'.
59005 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59007         utimens: work around glibc rounding bug on older Linux kernels
59008         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
59009         on Linux with a glibc whose utimes might not work, then work
59010         around a longstanding glibc bug involving rounding rather than
59011         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
59012         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
59014 2010-12-26  Bruno Haible  <bruno@clisp.org>
59016         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
59017         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
59018         _GL_CXXALIAS_SYS.
59019         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59021 2010-12-26  Bruno Haible  <bruno@clisp.org>
59023         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
59024         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
59025         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59026         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
59027         looking for the declaration.
59028         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59029         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
59030         problem.
59031         * doc/posix-functions/inet_pton.texi: Likewise.
59033 2010-12-26  Bruno Haible  <bruno@clisp.org>
59035         arpa_inet: Use the common idioms with C++ support.
59036         * lib/arpa_inet.in.h: Include c++defs.h.
59037         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
59038         support.
59039         * modules/arpa_inet (Depends-on): Add c++defs.
59040         (Makefile.am): Substitute the contents of c++defs.h.
59041         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
59042         * modules/arpa_inet-c++-tests: New file.
59043         * tests/test-arpa_inet-c++.cc: New file.
59045 2010-12-25  Bruno Haible  <bruno@clisp.org>
59047         Fix more C++ link errors on Solaris 8.
59048         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
59049         $(LIB_EACCESS).
59050         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
59051         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
59052         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
59053         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
59054         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
59056 2010-12-25  Bruno Haible  <bruno@clisp.org>
59058         printf-posix: Fix link error when a non-GCC compiler is used.
59059         * lib/stdio.in.h (printf): When not using GCC, override printf
59060         correctly.
59061         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59063 2010-12-25  Bruno Haible  <bruno@clisp.org>
59065         strerror_r-posix: Update doc.
59066         * doc/posix-functions/strerror_r.texi: Update doc about the return
59067         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
59069 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59071         utimens: simplify the logic of the previous change
59072         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
59073         This should not affect whether the test succeeds or fails.
59075         utimens: configure better on hosts with NFS clock skew
59076         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
59077         uses the clock of the local host.  It might use the clock of the
59078         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
59079         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
59081 2010-12-25  Bruno Haible  <bruno@clisp.org>
59083         ptsname test: Avoid failure on Solaris.
59084         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
59085         open a pseudo-terminal; don't use BSD-style ptys.
59086         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
59088 2010-12-25  Bruno Haible  <bruno@clisp.org>
59090         ptsname: Avoid ERANGE failure on some systems.
59091         * lib/ptsname.c (buffer): Increase size.
59093 2010-12-25  Bruno Haible  <bruno@clisp.org>
59095         rename, renameat: Avoid test failures at NFS mounted locations.
59096         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
59097         so that subsequent mkdir calls succeed.
59099 2010-12-25  Bruno Haible  <bruno@clisp.org>
59101         iswblank: Fix C++ link error on Solaris 8.
59102         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
59103         _GL_FUNCDECL_SYS.
59105 2010-12-25  Bruno Haible  <bruno@clisp.org>
59107         unistd: Fix C++ link error on Solaris 8.
59108         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
59110 2010-12-25  Bruno Haible  <bruno@clisp.org>
59112         readlink doc: Mention an old glibc bug.
59113         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
59115 2010-12-25  Bruno Haible  <bruno@clisp.org>
59117         fcntl-h: Fix for use of C++ on glibc systems.
59118         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59119         also on glibc systems in C++ mode.
59120         Reported by Gary V. Vaughan <gary@gnu.org>.
59122 2010-12-25  Bruno Haible  <bruno@clisp.org>
59124         roundl-ieee: Make it work on OSF/1 5.1 with cc.
59125         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
59127 2010-12-25  Bruno Haible  <bruno@clisp.org>
59129         truncl-ieee: Make it work on OSF/1 5.1 with cc.
59130         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
59131         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
59132         test whether truncl works according to ISO C 99 with IEC 60559.
59133         * m4/truncl-ieee.m4: New file.
59134         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
59135         m4/signbit.m4.
59136         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
59138 2010-12-25  Bruno Haible  <bruno@clisp.org>
59140         ceill-ieee: Make it work on OSF/1 5.1 with cc.
59141         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
59142         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
59143         test whether ceill works according to ISO C 99 with IEC 60559.
59144         * m4/ceill-ieee.m4: New file.
59145         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
59146         m4/signbit.m4.
59147         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
59149 2010-12-25  Bruno Haible  <bruno@clisp.org>
59151         Ensure all prerequisites of <wchar.h> are included.
59152         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
59153         before <wchar.h>.
59154         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
59155         gl_MBRLEN_NUL_RETVAL): Likewise.
59156         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
59158         AC_FUNC_MBRTOWC): Likewise.
59159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59160         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59161         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59162         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
59163         Likewise.
59164         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59165         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
59166         (gl_WCHAR_H): Improve comments.
59167         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59169 2010-12-25  Bruno Haible  <bruno@clisp.org>
59171         strtok_r: Fix C syntax error in autoconf macro.
59172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
59173         characters in test program.
59175 2010-12-24  Bruno Haible  <bruno@clisp.org>
59177         ceil, trunc, round: Fix gcc warnings.
59178         * lib/ceil.c (MIN): Undefine before redefining.
59179         * lib/trunc.c (MIN): Likewise.
59180         * lib/round.c (MIN): Likewise.
59181         Include <math.h> first.
59183 2010-12-24  Bruno Haible  <bruno@clisp.org>
59185         select tests: Avoid failures on OSF/1 5.1.
59186         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
59187         failure of closing the last socket; it may fail with ECONNRESET.
59189 2010-12-24  Eric Blake  <eblake@redhat.com>
59191         stdint: avoid HP-UX 10.20 preprocessor bug
59192         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
59193         than #if.
59194         * tests/test-floor2.c (main): Likewise.
59195         Reported by Peter O'Gorman.
59197         pipe: make obsoletion transition easier
59198         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
59199         * modules/pipe (Files): Include revived file.
59200         (Include): Drop reference, to mirror getdate's behavior.
59202 2010-12-24  Bruno Haible  <bruno@clisp.org>
59204         sys_socket: Hide mismatch of declarations on NonStop Kernel.
59205         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
59206         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
59207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59209 2010-12-24  Bruno Haible  <bruno@clisp.org>
59211         gethostname: Ensure declaration on NonStop Kernel.
59212         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
59213         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59215 2010-12-24  Bruno Haible  <bruno@clisp.org>
59217         sys_select: Ensure all necessary types on NonStop Kernel.
59218         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
59219         include <sys/time.h>.
59220         * doc/posix-headers/sys_select.texi: Mention that it's missing on
59221         NonStop Kernel.
59222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59224 2010-12-24  Bruno Haible  <bruno@clisp.org>
59226         sys_select: Remove unneeded include.
59227         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
59228         have <sys/select.h>.
59230 2010-12-24  Bruno Haible  <bruno@clisp.org>
59232         gethostname: Provide a fallback for HOST_NAME_MAX.
59233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
59234         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
59235         instead.
59236         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59238 2010-12-24  Bruno Haible  <bruno@clisp.org>
59240         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
59241         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
59242         (SA_RESTART): Likewise.
59243         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59245 2010-12-24  Bruno Haible  <bruno@clisp.org>
59247         signal: Define NSIG.
59248         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
59249         * tests/test-signal.c (nsig): New variable.
59250         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59252 2010-12-24  Bruno Haible  <bruno@clisp.org>
59254         rename, renameat: Avoid test failures on OSF/1 5.1.
59255         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
59256         alternative error codes.
59257         * tests/test-renameat.c (main): Likewise.
59259 2010-12-24  Bruno Haible  <bruno@clisp.org>
59261         *printf: Detect large precisions bug on Solaris 10/SPARC.
59262         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
59263         by Paul Eggert.
59264         * tests/test-snprintf-posix.h (test_function): Add this test code here
59265         too.
59266         * tests/test-sprintf-posix.h (test_function): Likewise.
59267         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59268         * tests/test-vasprintf-posix.c (test_function): Likewise.
59269         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
59270         around by gnulib.
59271         * doc/posix-functions/printf.texi: Likewise.
59272         * doc/posix-functions/snprintf.texi: Likewise.
59273         * doc/posix-functions/sprintf.texi: Likewise.
59274         * doc/posix-functions/vfprintf.texi: Likewise.
59275         * doc/posix-functions/vprintf.texi: Likewise.
59276         * doc/posix-functions/vsnprintf.texi: Likewise.
59277         * doc/posix-functions/vsprintf.texi: Likewise.
59278         * doc/posix-functions/dprintf.texi: Undo last commit.
59279         * doc/posix-functions/vdprintf.texi: Likewise.
59281 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59283         tests: port test-fdutimensat.c to Solaris 8
59284         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
59285         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
59286         On Solaris 8, it fails with errno == ENOSYS, because there is no
59287         futimens (so it can't use the fd), and there is no lutimens (so it
59288         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
59290         vsnprintf: make more consistent with snprintf; doc fixes
59292         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
59293         the byte count return problem was promoted from the snprintf-posix
59294         to the snprintf module.
59295         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
59296         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
59297         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
59298         * tests/test-snprintf.c (main): Check the byte count returned.
59299         * tests/test-vsnprintf.c (main): Likewise.
59301 2010-12-23  Eric Blake  <eblake@redhat.com>
59303         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
59304         * modules/sigpipe (License): Relax license.
59306 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59308         doc: document Solaris printf bug with large float precisions
59309         * doc/posix-functions/dprintf.texi (dprintf):
59310         * doc/posix-functions/fprintf.texi (fprintf):
59311         * doc/posix-functions/printf.texi (printf):
59312         * doc/posix-functions/snprintf.texi (snprintf):
59313         * doc/posix-functions/sprintf.texi (sprintf):
59314         * doc/posix-functions/vdprintf.texi (vdprintf):
59315         * doc/posix-functions/vfprintf.texi (vfprintf):
59316         * doc/posix-functions/vprintf.texi (vprintf):
59317         * doc/posix-functions/vsnprintf.texi (vsnprintf):
59318         * doc/posix-functions/vsprintf.texi (vsprintf):
59319         Mention that these functions mishandle large floating point
59320         precisions on Solaris 10.  The same bug is also present in Solaris
59321         8, and I assume earlier.  This causes "cd gnulib-tests; make
59322         check" to fail on Solaris 8 (and I assume, later) when building
59323         the latest coreutils, in test-vasprintf-posix's call to
59324         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
59325         the wide flavors (e.g., wprintf) so this patch just updates the
59326         documentation for the narrow ones.
59328         test-posixtm.c: add two tests
59329         * tests/test-posixtm.c: Add two tests, to highlight the
59330         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
59331         around this bug; this is merely to document it.
59333 2010-12-22  Bruno Haible  <bruno@clisp.org>
59335         getlogin_r: Work around portability problem on OSF/1.
59336         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
59337         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
59338         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
59339         test for a truncated result.
59340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
59341         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
59342         * modules/getlogin_r (Depends-on): Add memchr.
59343         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
59345 2010-12-22  Bruno Haible  <bruno@clisp.org>
59347         ptsname: Avoid test failure on OSF/1 5.1.
59348         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
59349         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
59350         (same_slave): New function.
59351         (main): Use it to compare ptsname's result with the expected file name.
59353 2010-12-22  Bruno Haible  <bruno@clisp.org>
59355         Port extended stdio modules to HP NonStop Kernel.
59356         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
59357         macros.
59358         * lib/fbufmode.c: Update comments.
59359         * lib/fflush.c: Likewise.
59360         * lib/fpurge.c: Likewise.
59361         * lib/freadable.c: Likewise.
59362         * lib/freadahead.c: Likewise.
59363         * lib/freading.c: Likewise.
59364         * lib/freadptr.c: Likewise.
59365         * lib/freadseek.c: Likewise.
59366         * lib/fseeko.c: Likewise.
59367         * lib/fseterr.c: Likewise.
59368         * lib/fwritable.c: Likewise.
59369         * lib/fwriting.c: Likewise.
59370         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59372 2010-12-22  Bruno Haible  <bruno@clisp.org>
59374         ttyname_r: Work around bug on OSF/1 5.1.
59375         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
59376         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
59377         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
59378         present.
59379         * lib/ttyname_r.c (ttyname_r): Update comments.
59381 2010-12-22  Bruno Haible  <bruno@clisp.org>
59383         round: Implement result sign according to IEEE 754.
59384         * lib/round.c (MIN, MINUS_ZERO): New macros.
59385         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
59386         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
59387         * tests/test-round-ieee.c (main): Likewise.
59388         * tests/test-roundl-ieee.c (main): Likewise.
59390         trunc: Implement result sign according to IEEE 754.
59391         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
59392         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
59393         * tests/test-trunc2.c: Include minus-zero.h.
59394         (MINUS_ZERO): New macro.
59395         (trunc_reference): Keep in sync with lib/trunc.c.
59396         * tests/test-truncf2.c: Include minus-zero.h.
59397         (MINUS_ZERO): New macro.
59398         (truncf_reference): Keep in sync with lib/trunc.c.
59399         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
59400         * tests/test-trunc-ieee.c (main): Likewise.
59401         * tests/test-truncl-ieee.c (main): Likewise.
59403         ceil: Implement result sign according to IEEE 754.
59404         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
59405         (FUNC): Return -0.0 for -1 < x < 0.
59406         * tests/test-ceil2.c: Include minus-zero.h.
59407         (MINUS_ZERO): New macro.
59408         (ceil_reference): Keep in sync with lib/ceil.c.
59409         * tests/test-ceilf2.c: Include minus-zero.h.
59410         (MINUS_ZERO): New macro.
59411         (ceilf_reference): Keep in sync with lib/ceil.c.
59412         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
59413         * tests/test-ceil-ieee.c (main): Likewise.
59414         * tests/test-ceill-ieee.c (main): Likewise.
59416         floor: Implement result sign according to IEEE 754.
59417         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
59418         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
59419         * tests/test-floorf2.c (floorf_reference): Likewise.
59420         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
59421         * tests/test-floor-ieee.c (main): Likewise.
59422         * tests/test-floorl-ieee.c (main): Likewise.
59424 2010-12-22  Bruno Haible  <bruno@clisp.org>
59426         getaddrinfo: Update doc.
59427         * doc/posix-functions/gai_strerror.texi: Return type is also different
59428         on AIX and HP-UX.
59430 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59432         getaddrinfo, inet_ntop: Update doc for Solaris.
59433         * doc/posix-functions/gai_strerror.texi: Return type is also an
59434         issue on Solaris 9 and earlier.
59435         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
59436         on Solaris 10 and earlier.
59438 2010-12-21  Bruno Haible  <bruno@clisp.org>
59440         New module 'roundl-ieee'.
59441         * modules/roundl-ieee: New file.
59442         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
59443         test whether roundl works according to ISO C 99 with IEC 60559.
59444         * m4/roundl-ieee.m4: New file.
59445         * modules/roundl-ieee-tests: New file.
59446         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
59447         * tests/test-roundl.c (main): Remove signbit tests.
59448         * modules/roundl-tests (Depends-on): Remove signbit.
59449         * doc/posix-functions/roundl.texi: Mention the new module.
59451 2010-12-21  Bruno Haible  <bruno@clisp.org>
59453         New module 'truncl-ieee'.
59454         * modules/truncl-ieee: New file.
59455         * modules/truncl-ieee-tests: New file.
59456         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
59457         * tests/test-truncl.c (main): Remove signbit tests.
59458         * modules/truncl-tests (Depends-on): Remove signbit.
59459         * doc/posix-functions/truncl.texi: Mention the new module.
59461 2010-12-21  Bruno Haible  <bruno@clisp.org>
59463         New module 'ceill-ieee'.
59464         * modules/ceill-ieee: New file.
59465         * modules/ceill-ieee-tests: New file.
59466         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
59467         * tests/test-ceill.c (main): Remove signbit tests.
59468         * modules/ceill-tests (Depends-on): Remove signbit.
59469         * doc/posix-functions/ceill.texi: Mention the new module.
59471 2010-12-21  Bruno Haible  <bruno@clisp.org>
59473         New module 'floorl-ieee'.
59474         * modules/floorl-ieee: New file.
59475         * modules/floorl-ieee-tests: New file.
59476         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
59477         * tests/test-floorl.c (main): Remove signbit tests.
59478         * modules/floorl-tests (Depends-on): Remove signbit.
59479         * doc/posix-functions/floorl.texi: Mention the new module.
59481 2010-12-21  Bruno Haible  <bruno@clisp.org>
59483         New module 'round-ieee'.
59484         * modules/round-ieee: New file.
59485         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
59486         whether round works according to ISO C 99 with IEC 60559.
59487         * m4/round-ieee.m4: New file.
59488         * modules/round-ieee-tests: New file.
59489         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
59490         * tests/test-round1.c (main): Remove signbit tests.
59491         * modules/round-tests (Depends-on): Remove 'signbit'.
59492         * doc/posix-functions/round.texi: Mention the new module.
59494 2010-12-21  Bruno Haible  <bruno@clisp.org>
59496         New module 'trunc-ieee'.
59497         * modules/trunc-ieee: New file.
59498         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
59499         whether trunc works according to ISO C 99 with IEC 60559.
59500         * m4/trunc-ieee.m4: New file.
59501         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
59502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
59503         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
59504         * modules/trunc-ieee-tests: New file.
59505         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
59506         * tests/test-trunc1.c (main): Remove signbit tests.
59507         * modules/trunc-tests (Depends-on): Remove 'signbit'.
59508         * doc/posix-functions/trunc.texi: Mention the new module.
59510 2010-12-21  Bruno Haible  <bruno@clisp.org>
59512         New module 'ceil-ieee'.
59513         * modules/ceil-ieee: New file.
59514         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
59515         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
59516         ISO C 99 with IEC 60559.
59517         * m4/ceil-ieee.m4: New file.
59518         * modules/ceil (Files): Add lib/ceil.c.
59519         (Depends-on): Add 'float'.
59520         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59521         * lib/math.in.h (ceil): New declaration.
59522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
59523         REPLACE_CEIL.
59524         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
59525         * modules/ceil-ieee-tests: New file.
59526         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
59527         * tests/test-math-c++.cc: Check the signature of 'ceil'.
59528         * doc/posix-functions/ceil.texi: Mention the new module.
59530 2010-12-21  Bruno Haible  <bruno@clisp.org>
59532         New module 'floor-ieee'.
59533         * modules/floor-ieee: New file.
59534         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
59535         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
59536         ISO C 99 with IEC 60559.
59537         * m4/floor-ieee.m4: New file.
59538         * modules/floor (Files): Add lib/floor.c.
59539         (Depends-on): Add 'float'.
59540         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59541         * lib/math.in.h (floor): New declaration.
59542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
59543         REPLACE_FLOOR.
59544         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
59545         * modules/floor-ieee-tests: New file.
59546         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
59547         * tests/test-math-c++.cc: Check the signature of 'floor'.
59548         * doc/posix-functions/floor.texi: Mention the new module.
59550 2010-12-21  Bruno Haible  <bruno@clisp.org>
59552         New module 'roundf-ieee'.
59553         * modules/roundf-ieee: New file.
59554         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
59555         test whether roundf works according to ISO C 99 with IEC 60559.
59556         * m4/roundf-ieee.m4: New file.
59557         * modules/roundf-ieee-tests: New file.
59558         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
59559         * tests/test-roundf1.c (main): Remove signbit tests.
59560         * modules/roundf-tests (Depends-on): Remove 'signbit'.
59561         * doc/posix-functions/roundf.texi: Mention the new module.
59563 2010-12-21  Bruno Haible  <bruno@clisp.org>
59565         New module 'truncf-ieee'.
59566         * modules/truncf-ieee: New file.
59567         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
59568         test whether truncf works according to ISO C 99 with IEC 60559.
59569         * m4/truncf-ieee.m4: New file.
59570         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
59571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
59572         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
59573         * modules/truncf-ieee-tests: New file.
59574         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
59575         * tests/test-truncf1.c (main): Remove signbit tests.
59576         * modules/truncf-tests (Depends-on): Remove 'signbit'.
59577         * doc/posix-functions/truncf.texi: Mention the new module.
59579 2010-12-21  Bruno Haible  <bruno@clisp.org>
59581         New module 'ceilf-ieee'.
59582         * modules/ceilf-ieee: New file.
59583         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
59584         test whether ceilf works according to ISO C 99 with IEC 60559.
59585         * m4/ceilf-ieee.m4: New file.
59586         * modules/ceilf-ieee-tests: New file.
59587         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59588         * tests/test-ceilf1.c (main): Remove signbit tests.
59589         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59590         * doc/posix-functions/ceilf.texi: Mention the new module.
59592 2010-12-21  Bruno Haible  <bruno@clisp.org>
59594         New module 'floorf-ieee'.
59595         * modules/floorf-ieee: New file.
59596         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59597         test whether floorf works according to ISO C 99 with IEC 60559.
59598         * m4/floorf-ieee.m4: New file.
59599         * modules/floorf-ieee-tests: New file.
59600         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59601         * tests/test-floorf1.c (main): Remove signbit tests.
59602         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59603         * doc/posix-functions/floorf.texi: Mention the new module.
59605 2010-12-21  Bruno Haible  <bruno@clisp.org>
59607         Support for minus zero in autoconf macros.
59608         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59609         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59610         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59611         * tests/minus-zero.h: Update comments.
59613 2010-12-21  Bruno Haible  <bruno@clisp.org>
59615         Tests for module 'ceil'.
59616         * modules/ceil-tests: New file.
59617         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59618         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59620 2010-12-21  Bruno Haible  <bruno@clisp.org>
59622         Tests for module 'floor'.
59623         * modules/floor-tests: New file.
59624         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59625         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59627 2010-12-21  Bruno Haible  <bruno@clisp.org>
59629         math: Fix indentation.
59630         * lib/math.in.h (floorf): Fix indentation.
59632 2010-12-21  Bruno Haible  <bruno@clisp.org>
59634         Fix cross-compilation guesses on Solaris.
59635         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59636         not match "solaris2.10".
59637         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59638         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59639         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59641 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59643         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59644         This fixes a problem observed with the latest coreutils snapshot
59645         that caused a test to fail on Solaris 8.  src/csplit.c's call
59646         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59647         earlier, instead of returning the number of bytes that would have
59648         been generated; this causes csplit to incorrectly report memory
59649         exhaustion.
59650         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59651         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59652         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59653         comments to match.
59654         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59655         Fix typo in matching older versions of Solaris: "solaris2.10"
59656         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59657         only for guessing while cross-compiling.
59658         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59660 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59662         ftoastr: fix comment again
59663         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59664         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59665         Also, simplify example a bit by using flags = 0.
59667 2010-12-20  Bruno Haible  <bruno@clisp.org>
59669         round*, trunc*: Update documentation regarding glibc.
59670         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59671         * doc/posix-functions/round.texi: Likewise.
59672         * doc/posix-functions/roundl.texi: Likewise.
59673         * doc/posix-functions/truncf.texi: Likewise.
59674         * doc/posix-functions/trunc.texi: Likewise.
59675         * doc/posix-functions/truncl.texi: Likewise.
59677 2010-12-20  Bruno Haible  <bruno@clisp.org>
59679         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59680         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59681         * doc/posix-functions/round.texi: Likewise.
59682         * doc/posix-functions/roundl.texi: Likewise.
59684 2010-12-20  Bruno Haible  <bruno@clisp.org>
59686         ttyname_r: Add missing declaration on HP-UX 11.
59687         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59688         HAVE_TTYNAME_R.
59689         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59690         declared. Set HAVE_TTYNAME_R always.
59691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59692         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59693         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59694         HAVE_TTYNAME_R.
59695         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59697 2010-12-20  Bruno Haible  <bruno@clisp.org>
59699         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59700         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59701         * doc/posix-functions/getlogin_r.texi: Likewise.
59702         * tests/test-getlogin.c: Include <errno.h>.
59703         (main): Avoid test failure on HP-UX 11.11.
59704         * tests/test-getlogin_r.c (main): Likewise.
59706 2010-12-20  Bruno Haible  <bruno@clisp.org>
59708         getlogin_r: Add missing declaration on HP-UX 11.
59709         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59710         declared also when it exists as a function.
59711         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59713 2010-12-20  Bruno Haible  <bruno@clisp.org>
59715         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59716         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59717         through wcrtomb.
59719 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59721         ftoastr: fix comment
59722         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59723         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59725 2010-12-19  Bruno Haible  <bruno@clisp.org>
59727         isnan: Ensure it is a macro.
59728         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59729         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59730         Solaris.
59732 2010-12-19  Bruno Haible  <bruno@clisp.org>
59734         ldexpl test: Fix link error on OSF/1 5.1.
59735         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59737 2010-12-19  Bruno Haible  <bruno@clisp.org>
59739         wctype: Make it work in C++ mode on OSF/1 5.1.
59740         * lib/wctype.in.h (iswblank): Declare but not define here.
59741         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59742         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59743         * modules/wctype (Files): Add lib/iswblank.c.
59745 2010-12-19  Bruno Haible  <bruno@clisp.org>
59747         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59748         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59749         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59751 2010-12-19  Bruno Haible  <bruno@clisp.org>
59753         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59755         _POSIX_PII_SOCKET.
59756         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59757         * doc/posix-functions/recvfrom.texi: Likewise.
59758         * doc/posix-functions/send.texi: Likewise.
59759         * doc/posix-functions/sendto.texi: Likewise.
59761 2010-12-19  Bruno Haible  <bruno@clisp.org>
59763         tcgetsid: Add missing declaration on OSF/1 5.1.
59764         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59765         HAVE_TCGETSID.
59766         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59767         Don't set HAVE_TCGETSID.
59768         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59769         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59770         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59771         HAVE_TCGETSID.
59772         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59774 2010-12-19  Bruno Haible  <bruno@clisp.org>
59776         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59777         * lib/stdio.in.h: During the include_next statement, let recursive
59778         includes of this file include only the system header file.
59780 2010-12-19  Bruno Haible  <bruno@clisp.org>
59782         iconv_open: Fix regression from 2010-12-04.
59783         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59784         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59786 2010-12-19  Bruno Haible  <bruno@clisp.org>
59788         stdbool test: Avoid a gcc warning.
59789         * tests/test-stdbool.c (main): Fail if e1 is false.
59790         Reported by Jim Meyering.
59792 2010-12-19  Jim Meyering  <meyering@redhat.com>
59794         setenv: restore to working order
59795         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59796         mistakenly removed.
59797         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59798         HAVE_SETENV.
59799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59800         HAVE_SETENV.
59802 2010-12-19  Bruno Haible  <bruno@clisp.org>
59804         Document some different function declarations on OSF/1 5.1.
59805         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59806         * doc/posix-functions/inet_ntop.texi: Likewise.
59807         * doc/posix-functions/gethostname.texi: Likewise.
59808         * lib/unistd.in.h (gethostname): Update comment.
59810 2010-12-19  Bruno Haible  <bruno@clisp.org>
59812         doc: Mention vasprintf-posix module.
59813         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59814         the 'vasprintf-posix' module.
59815         * doc/glibc-functions/vasprintf.texi: Likewise.
59817 2010-12-19  Bruno Haible  <bruno@clisp.org>
59819         unsetenv: Add missing declaration on OSF/1 5.1.
59820         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59821         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59822         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59824         not HAVE_UNSETENV.
59825         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59826         HAVE_UNSETENV.
59827         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59829 2010-12-19  Bruno Haible  <bruno@clisp.org>
59831         setenv: Add missing declaration on OSF/1 5.1.
59832         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59834         declared. Don't set HAVE_SETENV.
59835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59836         not HAVE_SETENV.
59837         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59838         HAVE_SETENV.
59839         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59841 2010-12-19  Bruno Haible  <bruno@clisp.org>
59843         nl_langinfo tests: Avoid gcc warning.
59844         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59846 2010-12-19  Bruno Haible  <bruno@clisp.org>
59848         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59849         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59850         _GL_CXXALIAS_SYS.
59852 2010-12-19  Bruno Haible  <bruno@clisp.org>
59854         stdbool: Relax test.
59855         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59856         address to 'bool' work in static initializer, for compilers other than
59857         GCC.
59859 2010-12-19  Bruno Haible  <bruno@clisp.org>
59861         ftello: Add missing declaration on OSF/1 5.1.
59862         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59863         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59865         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59866         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59868 2010-12-19  Bruno Haible  <bruno@clisp.org>
59870         fseeko: Add missing declaration on OSF/1 5.1.
59871         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59872         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59874         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59875         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59877 2010-12-19  Bruno Haible  <bruno@clisp.org>
59879         fchdir: Add missing declaration on OSF/1 5.1.
59880         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59883         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59884         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59886 2010-12-19  Bruno Haible  <bruno@clisp.org>
59888         relocatable-prog-wrapper: Separate from relocatable-prog.
59889         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59890         uninstall-relocwrapper rule here.
59891         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59892         Reported by Ian Beckwith <ianb@erislabs.net>.
59894 2010-12-19  Bruno Haible  <bruno@clisp.org>
59896         unistr/u8-mbsnlen: Add missing dependency.
59897         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59898         Reported by Ian Beckwith <ianb@erislabs.net>.
59900 2010-12-19  Bruno Haible  <bruno@clisp.org>
59902         iconv: Make it possible again to use this module without 'iconv-h'.
59903         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59904         if it is not defined.
59905         Reported by Ian Beckwith <ianb@erislabs.net>.
59907 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59909         acl: port to Solaris 8 when copying from tmpfs to ufs
59910         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59911         error number.  Problem observed on Solaris 8 with latest
59912         coreutils, with "mv A B", where A is on a tmpfs file system and B
59913         is on a ufs file system.  This caused coreutils' mv/part-symlink
59914         test to fail.
59916         tests: set fail=0 at start
59917         * tests/init.sh (setup_): Move fail=0 initialization here ...
59918         (mktempd_): ... from here, so that tests can rely on fail being
59919         set to 0 initially.  This fixes a problem in coreutils; see:
59920         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59922 2010-12-18  Bruno Haible  <bruno@clisp.org>
59924         memmem-simple: Stylistic changes.
59925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59926         Fix preprocessor directive indentation.
59928 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59930         memmem, memmem-simple: reorganize and expand empty needle check
59931         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59932         functional checks to memmem-simple so that one has a fully functional
59933         memmem by using just this module.
59934         Restrict the performance only check to the memmem module.
59935         Also expand the empty needle check to ensure the correct
59936         pointer is returned, not just a non NULL pointer.
59937         * doc/glibc-functions/memmem.texi: Rearrange the portability
59938         documentation to correlate with the rearranged checks.
59939         Clarify exactly how the memmem and memmem-simple modules
59940         relate to each other.
59942 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59943             Bruno Haible  <bruno@clisp.org>
59945         Improve cross-compilation guesses for uClibc.
59946         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59947         that uClibc does not have the glibc bug.
59948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59949         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59951 2010-12-14  Eric Blake  <eblake@redhat.com>
59953         configmake: provide fallbacks for oldest supported autotools
59954         * m4/configmake.m4: New file.
59955         * modules/configmake (Files): Ship it.
59956         (configure.ac): Use it to guarantee fallbacks.
59958 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59960         read-file: Improve handling of large files
59961         * lib/read-file.c (fread_file): Minimize realloc()s
59962         for regular files, and better manage sizes around SIZE_MAX.
59964 2010-12-13  Eric Blake  <eblake@redhat.com>
59966         cloexec, fcntl: relax license
59967         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59968         consent from all contributors.
59969         * modules/fcntl (License): Likewise.
59971 2010-12-10  Bruno Haible  <bruno@clisp.org>
59973         Tests for module 'pipe-posix'.
59974         * modules/pipe-posix-tests: New file.
59975         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59977 2010-12-10  Bruno Haible  <bruno@clisp.org>
59979         pipe-posix: Make it work in C++ mode.
59980         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59981         (pipe): Use common idiom, not a macro definition.
59982         * lib/pipe.c: New file.
59983         * m4/pipe.m4: New file.
59984         * modules/pipe-posix (Description): Enhance.
59985         (Files): Add lib/pipe.c, m4/pipe.m4.
59986         (configure.ac): Invoke gl_FUNC_PIPE.
59987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59988         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59989         * tests/test-unistd-c++.cc: Check the signature of pipe.
59991 2010-12-10  Bruno Haible  <bruno@clisp.org>
59993         Rename module 'pipe' to 'spawn-pipe'.
59994         * modules/spawn-pipe: New file, renamed from modules/pipe.
59995         (Files, configure.ac, Makefile.am): Update.
59996         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59997         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59998         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59999         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
60000         "spawn-pipe.h" instead of "pipe.h".
60001         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
60002         to gl_SPAWN_PIPE.
60003         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
60004         (Files, Makefile.am): Update.
60005         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
60006         Update.
60007         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
60008         Include "spawn-pipe.h" instead of "pipe.h".
60009         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
60010         * lib/javacomp.c: Likewise.
60011         * lib/javaversion.c: Likewise.
60012         * lib/pipe-filter-gi.c: Likewise.
60013         * lib/pipe-filter-ii.c: Likewise.
60014         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
60015         * modules/javacomp (Depends-on): Likewise.
60016         * modules/javaversion (Depends-on): Likewise.
60017         * modules/pipe-filter-gi (Depends-on): Likewise.
60018         * modules/pipe-filter-ii (Depends-on): Likewise.
60019         * MODULES.html.sh (Executing programs): Update.
60020         * NEWS: Mention the change.
60022 2010-12-10  Eric Blake  <eblake@redhat.com>
60024         pipe-posix: new module
60025         * modules/pipe-posix: New file.
60026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
60027         (gl_UNISTD_H): Check for declaration.
60028         * modules/unistd (Makefile.am): Substitute it.
60029         * lib/unistd.in.h (pipe): Provide it for mingw.
60030         * doc/posix-functions/pipe.texi (pipe): Update documentation.
60031         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
60033 2010-12-07  Bruno Haible  <bruno@clisp.org>
60035         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
60036         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
60037         u8_strcmp_gnu.
60038         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
60040 2010-12-06  Bruno Haible  <bruno@clisp.org>
60042         Update internal documentation.
60043         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
60045 2010-12-04  Bruno Haible  <bruno@clisp.org>
60047         Put more information about failed tests into the test return codes.
60048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
60049         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
60050         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60051         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60052         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
60053         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60054         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60055         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
60056         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
60057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
60059         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60060         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
60061         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60062         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
60063         returns a bit mask.
60064         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
60065         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
60066         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
60067         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
60068         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60069         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
60070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60072         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
60073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
60074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60075         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
60076         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
60077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
60078         * m4/link.m4 (gl_FUNC_LINK): Likewise.
60079         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
60080         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
60081         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
60082         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60083         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
60084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60085         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
60086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
60087         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60088         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
60089         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60090         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
60091         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
60092         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
60093         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
60094         gl_PRINTF_PRECISION): Likewise.
60095         * m4/regex.m4 (gl_REGEX): Likewise.
60096         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
60097         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
60098         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
60099         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
60100         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60102         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
60103         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
60104         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60105         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60106         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
60107         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
60109         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60110         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
60111         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60112         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
60113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60115         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
60116         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
60117         enumerated value.
60118         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
60120 2010-12-04  Bruno Haible  <bruno@clisp.org>
60122         Update for Solaris 11 2010-11.
60123         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
60124         Express, released in November 2010.
60126 2010-12-04  Bruno Haible  <bruno@clisp.org>
60128         nproc: Relax license.
60129         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
60130         and Paul Eggert.
60131         Requested by Ludovic Courtès <ludo@gnu.org>.
60133 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60135         utimecmp: fine-grained src to nearby coarse-grained dest
60137         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
60138         and the source is on a file system with higher-resolution time
60139         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
60140         not work, and the time stamps are close together, the algorithm to
60141         determine the exact resolution from the read-back mtime was buggy:
60142         it had a "!=" where it should have had an "==".  This bug has been
60143         in the code ever since it was introduced to gnulib.
60144         Problem reported by Dan Jacobson in
60145         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
60147 2010-11-30  Bruno Haible  <bruno@clisp.org>
60149         strerror_r-posix: Fix autoconf test.
60150         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
60152 2010-11-28  Bruno Haible  <bruno@clisp.org>
60153             Paul Eggert  <eggert@cs.ucla.edu>
60155         Tests for module 'getdomainname'.
60156         * modules/getdomainname-tests: New file.
60157         * tests/test-getdomainname.c: New file, based on
60158         tests/test-gethostname.c.
60160 2010-11-28  Bruno Haible  <bruno@clisp.org>
60161             Paul Eggert  <eggert@cs.ucla.edu>
60163         getdomainname: Use the system function when possible.
60164         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
60165         (getdomainname): Replace if needed. Provide the declaration if it is
60166         missing. Don't use _GL_CXXALIAS_SYS_CAST.
60167         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
60168         (getdomainname): When the system has getdomainname, call the system
60169         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
60170         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
60171         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
60172         found in libnsl. Look for the declaration also in <netdb.h>. Replace
60173         the function if its second argument is of type 'int' or if it is found
60174         in libnsl.
60175         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
60176         <sys/systeminfo.h> and sysinfo().
60177         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
60178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60179         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
60180         HAVE_GETDOMAINNAME.
60181         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
60182         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
60183         * doc/glibc-functions/getdomainname.texi: Document the problems with
60184         the getdomainname declaration.
60186 2010-11-28  Bruno Haible  <bruno@clisp.org>
60188         sys_socket: Ensure ss_family field on AIX.
60189         * lib/sys_socket.in.h (ss_family): New macro definition.
60190         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
60191         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
60192         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
60193         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60194         * modules/sys_socket (Makefile.am): Substitute
60195         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60196         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
60198 2010-11-27  Bruno Haible  <bruno@clisp.org>
60200         readline: Improve configure output.
60201         * m4/readline.m4 (gl_FUNC_READLINE): Make the
60202         "checking for readline..." result understandable.
60204 2010-11-27  Bruno Haible  <bruno@clisp.org>
60206         *printf-posix: Detect a bug on Solaris 10/x86.
60207         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
60208         for floating-point output.
60209         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
60210         directive.
60211         * tests/test-snprintf-posix.h (test_function): Likewise.
60212         * tests/test-sprintf-posix.h (test_function): Likewise.
60213         * tests/test-vasprintf-posix.c (test_function): Likewise.
60214         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
60215         * doc/posix-functions/printf.texi: Likewise.
60216         * doc/posix-functions/snprintf.texi: Likewise.
60217         * doc/posix-functions/sprintf.texi: Likewise.
60218         * doc/posix-functions/vfprintf.texi: Likewise.
60219         * doc/posix-functions/vprintf.texi: Likewise.
60220         * doc/posix-functions/vsnprintf.texi: Likewise.
60221         * doc/posix-functions/vsprintf.texi: Likewise.
60222         * doc/glibc-functions/obstack_printf.texi: Likewise.
60223         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60225 2010-11-27  Bruno Haible  <bruno@clisp.org>
60227         Fix link error when module libunistring-optional is in use.
60228         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
60229         * modules/striconveha-tests (Makefile.am): Likewise.
60231 2010-11-27  Bruno Haible  <bruno@clisp.org>
60233         regex: Mention link dependencies.
60234         * modules/regex (Link): New section.
60235         * modules/rpmatch (Link): Likewise.
60236         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
60238 2010-11-27  Bruno Haible  <bruno@clisp.org>
60240         ftoastr: Fix compilation error on Solaris.
60241         * lib/ftoastr.c: Include <config.h>.
60243 2010-11-27  Bruno Haible  <bruno@clisp.org>
60245         getloadavg: Update documentation.
60246         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
60248 2010-11-27  Bruno Haible  <bruno@clisp.org>
60250         sys_socket: Fix test whether the functions are declared.
60251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
60252         not <sys/select.h>.
60254 2010-11-27  Bruno Haible  <bruno@clisp.org>
60256         getpass: Make sure to get system declaration on some platforms.
60257         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
60258         gl_USE_SYSTEM_EXTENSIONS.
60259         * modules/getpass (Depends-on): Add extensions.
60261 2010-11-26  Bruno Haible  <bruno@clisp.org>
60263         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
60264         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
60265         'iconv' module is present.
60266         (ICONV_CONST): New macro.
60267         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
60268         ICONV_CONST.
60269         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
60270         set ICONV_CONST.
60271         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
60272         here.
60273         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
60274         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
60275         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
60276         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
60277         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
60278         present.
60280 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60282         ftoastr: comment fix
60283         * lib/ftoastr.c: "little" -> "little or no" in comment
60285 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
60287         stdint: port to GCC 4.3 + OSX + Octave
60288         On this platform, stdint.h is buggy and defines int64_t to long
60289         long int.  The replacement defined it to long int, causing
60290         problems with C++ style name mangling.  Instead, trust the system
60291         definition if INT64_MAX is defined, and likewise for the unsigned
60292         variant.   Problem reported by Jarno Rajahalme in
60293         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
60294         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
60295         and don't mess with int64_t and INT64_MAX in this case.
60296         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
60298 2010-11-24  Bruno Haible  <bruno@clisp.org>
60300         doc: Corrections regarding MacOS X 10.4 and 10.5.
60301         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
60302         MacOS X.
60303         Reported by Simon Josefsson.
60305 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
60307         Uninstall ".bin" files installed by relocwrapper.
60308         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
60309         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
60310         unless it is already there.
60312 2010-11-21  Bruno Haible  <bruno@clisp.org>
60314         Update for NetBSD 5.0.
60315         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60316         NetBSD; the test fails on NetBSD 5.0.
60317         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60318         about NetBSD.
60320 2010-11-21  Bruno Haible  <bruno@clisp.org>
60322         Update for HP-UX 11.23 and HP-UX 11.31.
60323         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
60324         HP-UX.
60326 2010-11-21  Bruno Haible  <bruno@clisp.org>
60328         Update for MacOS X 10.5.
60329         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60330         MacOS X; the test fails on MacOS X 10.5.8.
60331         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60332         about MacOS X.
60334 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
60336         bootstrap: add bootstrap_sync option.
60337         See discussion at
60338         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
60339         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
60340         * build-aux/bootstrap: Accept --bootstrap-sync to update
60341         bootstrap if it is not identical to the local gnulib's
60342         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
60343         enable this by default.  Accept --no-bootstrap-sync to disable
60344         it.
60346 2010-11-20  Bruno Haible  <bruno@clisp.org>
60348         Ensure that <features.h> is included before __GLIBC__ is tested.
60349         * lib/printf-parse.h: Include <features.h>.
60350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
60351         Reported by Mike Frysinger <vapier@gentoo.org>.
60353         Ensure that <features.h> is included before __GLIBC__ is tested.
60354         * lib/wchar.in.h: Include <features.h>.
60355         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
60356         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
60357         Reported by Mike Frysinger <vapier@gentoo.org>.
60359         Ensure that <features.h> is included before __GLIBC__ is tested.
60360         * lib/arpa_inet.in.h: Include <features.h>.
60361         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
60362         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
60363         Reported by Mike Frysinger <vapier@gentoo.org>.
60365         Ensure that <features.h> is included before __GLIBC__ is tested.
60366         * build-aux/link-warning.h: Include <features.h>.
60367         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
60368         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
60369         Reported by Mike Frysinger <vapier@gentoo.org>.
60371         Ensure that <features.h> is included before __GLIBC__ is tested.
60372         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
60373         Reported by Mike Frysinger <vapier@gentoo.org>.
60375 2010-11-20  Bruno Haible  <bruno@clisp.org>
60377         memmem: Fix autoconf test.
60378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
60380 2010-11-20  Bruno Haible  <bruno@clisp.org>
60382         Port to uClibc.
60383         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
60384         * lib/fcntl.in.h: Likewise.
60385         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
60386         * lib/mbrtowc.c (mbrtowc): Likewise.
60387         * lib/relocatable.c (find_shared_library_fullname): Likewise.
60388         * lib/strerror_r.c: Likewise.
60389         * lib/unistr/u8-strnlen.c: Likewise.
60390         * lib/vasnprintf.c (decimal_point_char): Likewise.
60391         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60392         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
60393         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60394         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
60395         * tests/test-sigaction.c (handler, main): Likewise.
60396         * lib/freading.h: Treat uClibc like a non-glibc platform.
60397         * lib/freading.c: Likewise.
60398         * lib/gettext.h: Likewise.
60399         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
60400         Likewise.
60401         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
60402         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60403         * lib/propername.c (proper_name_utf8): Likewise.
60404         * lib/spawn.in.h: Likewise.
60405         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
60406         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
60407         mem_cd_iconveh_internal): Likewise.
60408         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
60409         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60410         strstr, strcasestr): Likewise.
60411         * lib/unicodeio.c (unicode_to_mb): Likewise.
60412         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
60413         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
60414         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
60415         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
60416         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
60417         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
60418         * lib/unistr/u8-stpncpy.c: Likewise.
60419         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60420         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
60421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60422         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60423         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
60424         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
60425         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
60426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
60427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
60428         Likewise.
60429         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60430         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60431         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
60432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60434         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60436         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60437         * tests/test-getopt.h (OPTIND_MIN): Likewise.
60438         * tests/test-striconveha.c (main): Likewise.
60439         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60440         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
60441         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
60442         * doc/posix-functions/getline.texi: Likewise.
60443         Reported by Mike Frysinger <vapier@gentoo.org>.
60445 2010-11-20  Bruno Haible  <bruno@clisp.org>
60447         nproc: Fix condition.
60448         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
60449         HAVE_PTHREAD_AFFINITY_NP.
60451 2010-11-20  Bruno Haible  <bruno@clisp.org>
60453         Fix a comment.
60454         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
60456 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
60458         ftoastr: don't assume snprintf
60459         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
60460         Implement a subset of snprintf here, by using sprintf safely.
60461         * modules/ftoastr (Depends-on): Remove snprintf.
60463 2010-11-19  Jim Meyering  <meyering@redhat.com>
60465         test-rename.h: fix compilation failure
60466         * tests/test-rename.h (test_rename): Add omitted "}".
60468 2010-11-17  Jim Meyering  <meyering@redhat.com>
60470         maint.mk: add a URL discussing the no-@acronym policy
60471         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
60473 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
60475         ftoastr: depend on snprintf, improve comments
60476         * lib/ftoastr.c: Also mention Loitsch's draft.
60477         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
60478         needed in the current implementation, but it might simplify
60479         speeding up the code later.
60480         * modules/ftoastr: Depend on snprintf; this improves portability.
60481         Suggested by Bruno Haible in the same email.
60483         ftoastr: port to hosts lacking strtof and strtold
60484         Problem reported by Bruno Haible in
60485         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
60486         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
60487         environment and strtold (and presumably strtof) are not available.
60488         * modules/ftoastr (Files): Add m4/c-strtod.m4.
60489         (configure.ac): Require gl_C99_STRTOLD.
60491 2010-11-18  Bruno Haible  <bruno@clisp.org>
60493         c-strtold: Avoid link error on AIX 7.
60494         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
60495         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
60496         (gl_C_STRTOLD): Test whether strtold_l exists.
60497         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60499 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60501         intprops: new macro INT_BITS_STRLEN_BOUND
60502         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
60503         ftoastr.h.  This exposes an internal of intprops.h that was formerly
60504         not exposed.  Also, it uses a slightly tighter bound than before;
60505         though this makes no practical difference, we might as well be as
60506         tight as we easily can.
60508         ftoastr: new module, for lossless conversion of floats to short strings
60509         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
60510         * modules/ftoastr: New files.
60512 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60514         bootstrap: port to Solaris sed
60515         * build-aux/bootstrap (get_version): Port to Solaris sed.
60516         See Ralf Wildenhues's note in
60517         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
60519 2010-11-14  Jim Meyering  <meyering@redhat.com>
60521         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
60522         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
60523         and move definition closer to sole use.
60525 2010-11-13  Jim Meyering  <meyering@redhat.com>
60527         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
60528         Now we require at least autoconf-2.59, which means the work-around
60529         is no longer needed.
60530         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
60531         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60532         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60533         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60534         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60536 2010-11-13  Bruno Haible  <bruno@clisp.org>
60538         rename, renameat: Avoid test failures at NFS mounted locations.
60539         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
60540         functions.
60541         (test_rename): Use assert_nonexistent.
60542         * tests/test-rename.c: Include <dirent.h>.
60543         * tests/test-renameat.c: Likewise.
60544         Reported by Gary V. Vaughan <gary@gnu.org>.
60546         rename, renameat: Document Linux bug with NFS
60547         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
60548         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
60549         * doc/posix-functions/renameat.texi: Likewise.
60550         Suggested by Eric Blake.
60552 2010-11-13  Bruno Haible  <bruno@clisp.org>
60554         rename test: Add comments.
60555         * tests/test-rename.h (test_rename): Add structure and comments.
60557 2010-11-13  Eric Blake  <eblake@redhat.com>
60559         maintainer-makefile: cover a few more files
60560         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
60561         scripts generated within C files, for libvirt.
60563 2010-11-13  Bruno Haible  <bruno@clisp.org>
60565         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
60566         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
60567         character, return the number of bytes that belong together, not always
60568         1.
60569         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
60570         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
60571         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
60572         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
60573         number of bytes of an invalid character.
60574         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
60575         (main): Invoke it.
60576         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
60577         results.
60578         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
60579         malformed byte sequences.
60580         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
60581         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
60582         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
60583         Reported by Ben Pfaff and Paolo Bonzini.
60585 2010-11-13  Bruno Haible  <bruno@clisp.org>
60587         openat: Work around glibc bug with fchownat() and empty file names.
60588         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60589         (gl_FUNC_FCHOWNAT): Invoke it.
60590         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60591         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60592         Reported by Gary V. Vaughan <gary@gnu.org>.
60594 2010-11-13  Bruno Haible  <bruno@clisp.org>
60596         openat: Ensure autoconf macro ordering.
60597         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60598         gl_USE_SYSTEM_EXTENSIONS.
60599         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60601 2010-11-13  Bruno Haible  <bruno@clisp.org>
60603         Update comments.
60604         * lib/unistr/u8-check.c: Update file name in comments.
60605         * lib/unistr/u8-mblen.c: Likewise.
60606         * lib/unistr/u8-prev.c: Likewise.
60607         * lib/unistr/u8-strmblen.c: Likewise.
60608         * lib/unistr/u8-strmbtouc.c: Likewise.
60610 2010-11-13  Jim Meyering  <meyering@redhat.com>
60612         tests: avoid test failure on Solaris 10 due to lack of PATH export
60613         * tests/test-update-copyright.sh: Don't forget to export PATH.
60615         init.sh: ensure that IFS is defined, just in case...
60616         * tests/init.sh (setup_): Ensure that IFS is defined,
60617         so that saving and restoring it works as expected.  This
60618         appears to be useful at least for an old version of dash
60619         from a long time ago (RH 6).  See here for details:
60620         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60622         maint.mk: tighten "test a == b" check
60623         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60624         test to files that contain something like #!/bin/sh.
60625         Without this, coreutils would get two false positives in
60626         the comments of C source files.
60628 2010-11-12  Eric Blake  <eblake@redhat.com>
60630         bootstrap: fix typo in previous attempt
60631         * build-aux/bootstrap (buildreq): Correct the grouping.
60632         Reported by Paul Eggert.
60634         maintainer-makefile: prohibit test x == x
60635         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60636         Based on a report by Matthias Bolte.
60638         bootstrap: allow FreeBSD gzip
60639         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60640         which has no '.' and goes to stderr.
60641         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60642         Reported by Matthias Bolte.
60644         maintainer-makefile: check for i18n setup
60645         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60646         will likely work.
60648 2010-11-12  Bruno Haible  <bruno@clisp.org>
60650         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60651         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60652         * lib/nanosleep.c (nanosleep): Likewise.
60654 2010-11-11  Bruno Haible  <bruno@clisp.org>
60656         fcntl-h: Fix for use of C++ on glibc systems.
60657         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60658         also on glibc systems in C++ mode.
60659         Reported by Gary V. Vaughan <gary@gnu.org>.
60661 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60663         mknod: avoid false failure with dash
60664         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60666 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60668         unlink: Fix "is it should" typo in diagnostic.
60669         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60670         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60672 2010-11-11  Bruno Haible  <bruno@clisp.org>
60674         Tests for module 'strerror_r-posix'.
60675         * modules/strerror_r-posix-tests: New file.
60676         * tests/test-strerror_r.c: New file.
60677         * tests/test-string-c++.cc: Check the signature of strerror_r.
60679         New module 'strerror_r-posix'.
60680         * lib/string.in.h (strerror_r): New declaration.
60681         * lib/strerror_r.c: New file.
60682         * m4/strerror_r.m4: New file.
60683         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60684         of strerror_r.
60685         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60686         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60687         * modules/strerror_r-posix: New file.
60688         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60689         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60690         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60691         portability problems.
60693 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60695         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60696         line is also considered for output. Quoted function name in shell
60697         command, so temporary files for functions like MyClass::operator()
60698         are removed correctly without errors.
60700 2010-11-09  Bruno Haible  <bruno@clisp.org>
60702         * doc/posix-functions/strerror.texi: List more failing platforms.
60704         * doc/posix-functions/strerror.texi: Add a comment.
60706 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60708         fdopendir: fix bug on MacOS X when low on file descriptors
60710         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60711         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60712         All callers changed.
60713         (fdopendir): Invoke save_cwd at the top level, not after using
60714         multiple dup() calls to use up file descriptors.  Then retry
60715         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60716         less than the maximum number of open file descriptors, because
60717         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60718         on Mac OS X 10.6.4 for tar 1.24
60719         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60720         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60721         and for tar 1.25
60722         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60724 2010-11-07  Bruno Haible  <bruno@clisp.org>
60726         vasnprintf: Support I flag on glibc systems.
60727         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60728         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60729         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60730         snprintf function.
60731         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60732         glibc systems.
60733         * tests/test-vasnprintf-posix3.c: New file.
60734         * modules/vasnprintf-posix-tests (Files): Add it.
60735         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60737 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60739         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60740         * MODULES.html.sh: For compiler warnings, use name
60741         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60743 2010-11-05  Eric Blake  <eblake@redhat.com>
60745         ceil, floor: avoid spurious failure with icc
60746         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60747         [denormals-as-zero] when optimizing without -mieee-fp option.
60748         * tests/test-floorf2.c (floorf_reference): Likewise.
60749         * tests/test-ceilf1.c (dummy): New function.
60750         (main): Use it to outsmart icc's optimization.
60751         * tests/test-floorf1.c (dummy, main): Likewise.
60753         tests: require working signbit
60754         * modules/ceilf-tests (Depends-on): Add signbit.
60755         * modules/ceill-tests (Depends-on): Likewise.
60756         * modules/floorf-tests (Depends-on): Likewise.
60757         * modules/floorl-tests (Depends-on): Likewise.
60758         * modules/round-tests (Depends-on): Likewise.
60759         * modules/roundf-tests (Depends-on): Likewise.
60760         * modules/roundl-tests (Depends-on): Likewise.
60761         * modules/trunc-tests (Depends-on): Likewise.
60762         * modules/truncf-tests (Depends-on): Likewise.
60763         * modules/truncl-tests (Depends-on): Likewise.
60765         strtod: work around icc bug
60766         * lib/strtod.c (minus_zero): Define to working value.
60767         (strtod): Use it to avoid icc bug.
60769         copysign: enhance tests
60770         * modules/copysign-tests (Files): Add minus-zero.h.
60771         * tests/test-copysign.c (main): Also test zeros.
60773 2010-11-04  Eric Blake  <eblake@redhat.com>
60775         ceil, floor, round, trunc: enhance tests of -0
60776         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60777         * tests/test-ceill.c (main): Likewise.
60778         * tests/test-floorf1.c (main): Likewise.
60779         * tests/test-floorl.c (main): Likewise.
60780         * tests/test-round1.c (main): Likewise.
60781         * tests/test-roundf1.c (main): Likewise.
60782         * tests/test-roundl.c (main): Likewise.
60783         * tests/test-trunc1.c (main): Likewise.
60784         * tests/test-truncf1.c (main): Likewise.
60785         * tests/test-truncl.c (main): Likewise.
60787 2010-11-04  Eric Blake  <eblake@redhat.com>
60789         frexp, tests: work around ICC bug with -zero
60790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60791         works with more compilers.
60792         * tests/minus-zero.h: New file.
60793         * modules/ceilf-tests (Files): Include it.
60794         * modules/ceill-tests (Files): Likewise.
60795         * modules/floorf-tests (Files): Likewise.
60796         * modules/floorl-tests (Files): Likewise.
60797         * modules/frexp-nolibm-tests (Files): Likewise.
60798         * modules/frexp-tests (Files): Likewise.
60799         * modules/frexpl-nolibm-tests (Files): Likewise.
60800         * modules/frexpl-tests (Files): Likewise.
60801         * modules/isnan-tests (Files): Likewise.
60802         * modules/isnand-nolibm-tests (Files): Likewise.
60803         * modules/isnand-tests (Files): Likewise.
60804         * modules/isnanf-nolibm-tests (Files): Likewise.
60805         * modules/isnanf-tests (Files): Likewise.
60806         * modules/isnanl-nolibm-tests (Files): Likewise.
60807         * modules/isnanl-tests (Files): Likewise.
60808         * modules/round-tests (Files): Likewise.
60809         * modules/roundf-tests (Files): Likewise.
60810         * modules/roundl-tests (Files): Likewise.
60811         * modules/ldexpl-tests (Files): Likewise.
60812         * modules/signbit-tests (Files): Likewise.
60813         * modules/snprintf-posix-tests (Files): Likewise.
60814         * modules/sprintf-posix-tests (Files): Likewise.
60815         * modules/strtod-tests (Files): Likewise.
60816         * modules/trunc-tests (Files): Likewise.
60817         * modules/truncf-tests (Files): Likewise.
60818         * modules/truncl-tests (Files): Likewise.
60819         * modules/vsnprintf-posix-tests (Files): Likewise.
60820         * modules/vsprintf-posix-tests (Files): Likewise.
60821         * modules/vasnprintf-posix-tests (Files): Likewise.
60822         * modules/vasprintf-posix-tests (Files): Likewise.
60823         * tests/test-ceilf1.c (main): Use it.
60824         * tests/test-ceill.c (main): Likewise.
60825         * tests/test-floorf1.c (main): Likewise.
60826         * tests/test-floorl.c (main): Likewise.
60827         * tests/test-frexp.c (main): Likewise.
60828         * tests/test-frexpl.c (main): Likewise.
60829         * tests/test-isnan.c (main): Likewise.
60830         * tests/test-isnand.h (main): Likewise.
60831         * tests/test-isnanf.h (main): Likewise.
60832         * tests/test-isnanl.h (main): Likewise.
60833         * tests/test-ldexpl.c (main): Likewise.
60834         * tests/test-round.c (main): Likewise.
60835         * tests/test-roundf.c (main): Likewise.
60836         * tests/test-roundl.c (main): Likewise.
60837         * tests/test-signbit.c (test_signbitf, test_signbitd)
60838         (test_signbitl): Likewise.
60839         * tests/test-snprintf-posix.h (test_function): Likewise.
60840         * tests/test-sprintf-posix.h (test_function): Likewise.
60841         * tests/test-strtod.c (main): Likewise.
60842         * tests/test-trunc1.c (main): Likewise.
60843         * tests/test-truncf1.c (main): Likewise.
60844         * tests/test-truncl.c (main): Likewise.
60846         isnanl: work around icc bug
60847         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60849 2010-11-03  Eric Blake  <eblake@redhat.com>
60851         tests: fix compiler warnings
60852         * tests/test-getopt.h (test_getopt): Fix condition.
60853         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60854         * tests/test-pipe2.c (main): Likewise.
60855         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60857         utimens: fix broken m4 test
60858         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60860 2010-10-28  Bruno Haible  <bruno@clisp.org>
60862         posix_spawn*, getdtablesize: Relax license.
60863         * modules/posix_spawn (License): Change to LGPLv2+.
60864         * modules/posix_spawnp (License): Likewise.
60865         * modules/posix_spawn-internal (License): Likewise.
60866         * modules/posix_spawnattr_init (License): Likewise.
60867         * modules/posix_spawnattr_getflags (License): Likewise.
60868         * modules/posix_spawnattr_setflags (License): Likewise.
60869         * modules/posix_spawnattr_getpgroup (License): Likewise.
60870         * modules/posix_spawnattr_setpgroup (License): Likewise.
60871         * modules/posix_spawnattr_getschedparam (License): Likewise.
60872         * modules/posix_spawnattr_setschedparam (License): Likewise.
60873         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60874         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60875         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60876         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60877         * modules/posix_spawnattr_getsigmask (License): Likewise.
60878         * modules/posix_spawnattr_setsigmask (License): Likewise.
60879         * modules/posix_spawnattr_destroy (License): Likewise.
60880         * modules/posix_spawn_file_actions_init (License): Likewise.
60881         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60882         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60883         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60884         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60885         * modules/getdtablesize (License): Likewise.
60886         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60888 2010-10-26  Bruno Haible  <bruno@clisp.org>
60890         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60891         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60892         Cygwin and mingw.
60893         Suggested by Eric Blake.
60895 2010-10-26  Bruno Haible  <bruno@clisp.org>
60897         stdio: Work around compilation error due to renameat() on Solaris 10.
60898         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60899         * lib/renameat.c: Don't include <unistd.h> here.
60900         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60901         Reported by Paul Eggert and Eric Blake.
60903 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60905         renameat: port to Solaris 10, which declares renameat in unistd.h
60907         * lib/renameat.c: Include unistd.h before stdio.h, because
60908         Solaris 10 declares renameat in unistd.h.  Problem encountered
60909         when building GNU tar 1.24 on Solaris 10.
60911 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60913         fdopendir: fix C89 compilation
60914         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60915         compilers.
60917 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60919         inttostr: simplify by removing unnecessary redundancy
60920         * lib/anytostr.c: Don't include verify.h.
60921         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60922         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60923         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60924         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60925         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60926         Likewise.
60927         * modules/inttostr (Depends-on): Remove 'verify'.
60929 2010-10-23  Bruno Haible  <bruno@clisp.org>
60931         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60932         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60933         Reported by Eric Blake.
60935 2010-10-23  Bruno Haible  <bruno@clisp.org>
60937         Tests: Fix LOCALE_JA on MirBSD 10.
60938         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60939         to an UTF-8 locale.
60940         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60942         Reported by Eric Blake.
60944 2010-10-21  Bruno Haible  <bruno@clisp.org>
60946         nl_langinfo test: Avoid test failure on NetBSD 5.
60947         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60948         Reported by Eric Blake.
60950 2010-10-21  Eric Blake  <eblake@redhat.com>
60952         c-stack: work around libsigsegv 2.8 bug
60953         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60954         overflow on at least PowerPC64.
60956 2010-10-17  Bruno Haible  <bruno@clisp.org>
60958         userspec: Drop redundant file.
60959         * modules/userspec (Files): Remove lib/inttostr.h.
60961 2010-10-17  Bruno Haible  <bruno@clisp.org>
60963         nl_langinfo tests: Silence some warnings.
60964         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60965         Reported by Jim Meyering.
60967 2010-10-17  Bruno Haible  <bruno@clisp.org>
60969         Make use of GCC's attribute __alloc_size__.
60970         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60971         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60972         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60973         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60974         __alloc_size__.
60975         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60976         Suggested by Jim Meyering.
60978 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60980         bootstrap: anchor .gitignore entries.
60981         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60982         with...
60983         (insert_vc_ignore): ... this new function, which prepends `/' to
60984         all .gitignore entries before passing them to
60985         insert_sorted_if_absent.
60987 2010-10-16  Bruno Haible  <bruno@clisp.org>
60989         nextafter: Fix configure check.
60990         * modules/nextafter (configure.ac): Correct expected prototype.
60992 2010-10-16  Bruno Haible  <bruno@clisp.org>
60994         termios: Update documentation.
60995         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60997 2010-10-16  Bruno Haible  <bruno@clisp.org>
60999         tests: Make them compile with TinyCC.
61000         * tests/test-strstr.c (main): Remove parentheses around array
61001         initializer.
61003 2010-10-15  Eric Blake  <eblake@redhat.com>
61005         ignore-value: make header idempotent
61006         * lib/ignore-value.h: Add double-inclusion guards.
61007         Reported by Stefan Berger.
61009 2010-10-15  Jim Meyering  <meyering@redhat.com>
61011         GNUmakefile: handle "stable" target, not "major"
61012         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
61013         lists in maint.mk and announce-gen.  Without this, "make stable"
61014         would fail to ensure that $(VERSION) is up to date.
61016 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
61018         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
61019         & co.
61021 2010-10-14  Bruno Haible  <bruno@clisp.org>
61023         vasnprintf: Don't set errno to 0.
61024         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
61025         block that sets it to 0.
61026         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
61028 2010-10-14  Bruno Haible  <bruno@clisp.org>
61030         socketlib: Fix.
61031         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
61032         gl_PREREQ_SYS_H_WINSOCK2.
61033         Reported by Ian Beckwith <ianb@erislabs.net>.
61035 2010-10-13  Jim Meyering  <meyering@redhat.com>
61037         test-select-stdin.c: avoid warn_unused_result warnings
61038         * tests/test-select-stdin.c: Include "macros.h".
61039         ASSERT that read and fflush succeed.
61041 2010-10-13  Jim Meyering  <meyering@redhat.com>
61043         git-version-gen: do require git-VC'd files in cwd
61044         * build-aux/git-version-gen: Reject a git version string
61045         if there are no commits associated with the current directory.
61046         This avoids an unlikely false-positive (unrelated dir whose parent
61047         repository also contains a tag matching v*), as pointed out
61048         by Giuseppe Scrivano in
61049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
61051 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61053         argv-iter: omit nonconforming declaration
61054         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
61055         enum arg_iter_err declaration, which doesn't conform to C99.
61056         Solaris 10 cc warns about this.
61058 2010-10-13  Eric Blake  <eblake@redhat.com>
61060         termios: fix compilation on mingw
61061         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
61062         (gl_TERMIOS_H): Adjust it on mingw.
61063         * modules/termios (Makefile.am): Substitute new key.
61064         * lib/termios.in.h (includes): Make include_next conditional.
61065         * doc/posix-headers/termios.texi (termios.h): Update
61066         documentation.
61067         Reported by Daniel P. Berrange.
61069 2010-10-13  Jim Meyering  <meyering@redhat.com>
61071         git-version-gen: don't require that .git/ be in the current dir
61072         * build-aux/git-version-gen: Adjust this script so that it works
61073         when run from any working directory beneath the top-level .git/-
61074         containing directory.  Inspired by a patch from Giuseppe Scrivano,
61075         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
61077         test-select: avoid warn_unused_result warnings
61078         * tests/test-select.c: Include "macros.h".
61079         ASSERT that each call to read, write, and pipe succeeds.
61080         While not technically required, also check each "close".
61081         * modules/select-tests (Files): Add tests/macros.h.
61083         test-symlinkat: remove declaration of unused local
61084         * tests/test-symlinkat.c (main): Remove unused local, "buf".
61086         test-inttostr: avoid shadowing warnings
61087         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
61088         and use malloc rather than the stack for the same reason as
61089         mentioned in the comment justifying the other allocation.
61091 2010-10-11  Bruno Haible  <bruno@clisp.org>
61093         stdlib: Allow multiple gnulib generated replacements to coexist.
61094         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
61095         Reported by Sam Steingold <sds@gnu.org>.
61097 2010-10-11  Jim Meyering  <meyering@redhat.com>
61099         fix a documentation typo
61100         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
61102 2010-10-11  Eric Blake  <eblake@redhat.com>
61104         futimens: work around Solaris 11 bug
61105         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
61106         * tests/test-futimens.h (test_futimens): Enhance, rather than
61107         weaken test.
61108         * doc/posix-functions/futimens.texi (futimens): Document the bug.
61110 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61112         Indentation.
61113         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
61114         higher-level operators more to the left.
61116 2010-10-11  Jim Meyering  <meyering@redhat.com>
61118         test-futimens: avoid unwarranted test failure on Solaris 5.11
61119         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
61120         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
61121         because it tries to dereference the NULL name argument.
61123 2010-10-11  Bruno Haible  <bruno@clisp.org>
61125         Indentation.
61126         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
61127         indentation.
61129 2010-10-11  Jim Meyering  <meyering@redhat.com>
61131         spawn.in.h: make indentation consistent with parentheses
61132         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
61133         Make indentation consistent with parentheses.
61135 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
61137         Fix mismatched parens in previous commit
61138         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
61139         parens.
61141 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61143         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
61145         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
61146         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
61147         * lib/malloca.c: Include "verify.h".
61148         (verify1): Remove, replacing with a verify call.
61149         * lib/relocwrapper.c (verify1): Likewise.
61150         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
61151         Likewise.
61152         * modules/malloca (Depends-on): Add 'verify'.
61153         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
61154         * modules/vasnprintf (Depends-on): Add 'verify'.
61155         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61156         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61157         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61158         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61159         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61160         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61161         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61163         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
61165         Formerly the style was sometimes 2*X - 1, because the C standard
61166         was wrongly thought to disallow ?: in integral constant expressions.
61167         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
61168         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
61169         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
61170         * lib/stdint.in.h (_verify_intmax_size): Likewise.
61171         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
61172         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
61173         verify that time_t cannot be floating.
61175 2010-10-08  Eric Blake  <eblake@redhat.com>
61177         time: enforce recent POSIX ruling that time_t is integral
61178         * lib/time.in.h (__time_t_must_be_integral): Detect any
61179         problematic systems, allowing the rest of gnulib to assume POSIX.
61181 2010-10-08  Jim Meyering  <meyering@redhat.com>
61183         fdopendir: fix a bug on systems lacking openat and /proc support
61184         OpenBSD 4.7 is one such system.  The most noticeable effect was
61185         failure of any application making nontrivial use of fts: rm, du,
61186         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
61187           ./rm: traversal failed: `a': Bad file descriptor
61188         Debugging that, you see that even though FD 6 was closed just
61189         prior to the opendir call in fd_clone_opendir, its resulting
61190         dir->dd_fd was 8, rather than the expected value of 6:
61192         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
61193         93                close (fd);
61194         (gdb) n
61195         94                dir = fd_clone_opendir (dupfd);
61196         (gdb) n
61197         95                saved_errno = errno;
61198         (gdb) p dir->dd_fd
61199         $11 = 8
61201         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
61202         The problem is that on OpenBSD, fd_clone_opendir has to resort
61203         to using the old-style save/restore CWD mechanism, due to its
61204         lack of openat/proc support, and *that* would steal the FD (6)
61205         that opendir was supposed to use.
61207         The fix is to squirrel away the desired FD so that save_cwd uses a
61208         different one, and then free the dest FD right before calling opendir.
61209         That guarantees opendir will use the required file descriptor.
61211         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
61213 2010-10-08  Bruno Haible  <bruno@clisp.org>
61215         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
61216         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
61218 2010-10-08  Bruno Haible  <bruno@clisp.org>
61220         nanosleep: Make replacement POSIX compliant.
61221         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
61222         is out of range.
61223         Reported by Jim Meyering.
61225 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61227         bootstrap: add hook for altering gnulib.mk, for Bison
61228         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
61229         the Bison bootstrapping process can rewrite file names and variables
61230         in this file before later parts of 'bootstrap' use the file.
61231         Bison wants to include lib/gnulib.mk from the top-level makefile,
61232         so it needs the file names in this file to be relative to the top
61233         level, not relative to lib; plus it needs variable names to be
61234         rewritten.
61235         (slurp): Use the new function.
61237         bootstrap: reformat for readability
61238         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
61240 2010-10-08  Eric Blake  <eblake@redhat.com>
61242         docs: update cygwin progress
61243         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
61244         1.7.7.
61245         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
61246         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
61247         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
61248         * doc/posix-functions/carg.texi (carg): Likewise.
61249         * doc/posix-functions/cargf.texi (cargf): Likewise.
61250         * doc/posix-functions/casin.texi (casin): Likewise.
61251         * doc/posix-functions/casinf.texi (casinf): Likewise.
61252         * doc/posix-functions/casinh.texi (casinh): Likewise.
61253         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
61254         * doc/posix-functions/catan.texi (catan): Likewise.
61255         * doc/posix-functions/catanf.texi (catanf): Likewise.
61256         * doc/posix-functions/catanh.texi (catanh): Likewise.
61257         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
61258         * doc/posix-functions/ccos.texi (ccos): Likewise.
61259         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
61260         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
61261         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
61262         * doc/posix-functions/cexp.texi (cexp): Likewise.
61263         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
61264         * doc/posix-functions/cimag.texi (cimag): Likewise.
61265         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
61266         * doc/posix-functions/clog.texi (clog): Likewise.
61267         * doc/posix-functions/clogf.texi (clogf): Likewise.
61268         * doc/posix-functions/conj.texi (conj): Likewise.
61269         * doc/posix-functions/conjf.texi (conjf): Likewise.
61270         * doc/posix-functions/cpow.texi (cpow): Likewise.
61271         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
61272         * doc/posix-functions/cproj.texi (cproj): Likewise.
61273         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
61274         * doc/posix-functions/creal.texi (creal): Likewise.
61275         * doc/posix-functions/crealf.texi (crealf): Likewise.
61276         * doc/posix-functions/csin.texi (csin): Likewise.
61277         * doc/posix-functions/csinf.texi (csinf): Likewise.
61278         * doc/posix-functions/csinh.texi (csinh): Likewise.
61279         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
61280         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
61281         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
61282         * doc/posix-functions/ctan.texi (ctan): Likewise.
61283         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
61284         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
61285         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
61286         * doc/posix-headers/complex.texi (complex.h): Likewise.
61288 2010-10-07  Jim Meyering  <meyering@redhat.com>
61290         parse-datetime: avoid compilation failure on OpenBSD 4.7
61291         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
61292         This works around a compilation failure on OpenBSD 4.7:
61293         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
61295 2010-10-07  Eric Blake  <eblake@redhat.com>
61297         docs: update cygwin progress
61298         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
61299         1.7.6.
61300         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
61301         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
61302         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
61303         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
61304         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
61305         Likewise.
61306         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
61307         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
61308         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
61309         Likewise.
61310         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
61311         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
61312         Likewise.
61313         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
61314         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
61315         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
61316         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
61317         Likewise.
61318         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
61319         Likewise.
61320         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
61322         docs: update parse-datetime history
61323         * doc/parse-datetime.texi (Authors of parse_datetime): Better
61324         documentation of this function's history and alternatives.
61326         cygwin: use more robust version check
61327         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
61328         exclude an eventual cygwin 1.9.1.
61329         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61331         (gl_FUNC_STRCASESTR): Likewise.
61332         Reported by Bruno Haible.
61334 2010-10-06  Bruno Haible  <bruno@clisp.org>
61336         string, sys_select: Avoid #including large headers unless necessary.
61337         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
61338         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
61339         OSF/1, BeOS, Haiku.
61340         Reported by Jim Meyering.
61342 2010-10-05  Eric Blake  <eblake@redhat.com>
61344         memmem, strstr, strcasestr: fix bug with long periodic needle
61345         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
61346         periodic needle having false positive.
61347         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
61348         and cygwin 1.7.7.
61349         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
61350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61351         (gl_FUNC_STRCASESTR): Likewise.
61352         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61353         * tests/test-memmem.c (main): Expose the bug.
61354         * tests/test-strcasestr.c (main): Likewise.
61355         * tests/test-strstr.c (main): Likewise.
61356         * tests/test-c-strcasestr.c (main): Likewise.
61357         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
61358         * doc/posix-functions/strstr.texi (strstr): Likewise.
61359         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61360         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
61362 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61364         parse-datetime: do some more renaming
61365         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
61366         parse_datetime, not get_date.  Mention the renaming.
61367         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
61368         in comments.
61369         * m4/bison.m4: Likewise.
61371 2010-10-05  Eric Blake  <eblake@redhat.com>
61373         parse-datetime: better name than get_date
61374         * NEWS: Reword the deprecation notice.
61375         * modules/get_date: Rename to modules/parse-datetime.
61376         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
61377         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
61378         * lib/get_date.y: Rename to lib/parse-datetime.y.
61379         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
61380         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
61381         * doc/getdate.texi: Provide fallback wrapper.
61382         * lib/getdate.h: Move guts, and wrap...
61383         * lib/parse-datetime.h: ...new file.
61384         * lib/parse-datetime.y (get_date): Rename...
61385         (parse_datetime): ...to this.
61386         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
61387         (gl_PARSE_DATETIME): ...to this.
61388         * doc/posix-functions/getdate.texi (get_date): Provide fallback
61389         documentation.
61390         * modules/getdate (Files): Provide fallback docs and header.
61391         (Notice, Depends-on): Update references.
61392         * tests/test-parse-datetime.c: Likewise.
61393         * DEPENDENCIES: Likewise.
61394         * MODULES.html.sh (Date and time <time.h>): Likewise.
61395         * doc/parse-datetime.texi (Date input formats)
61396         (Authors of parse_datetime): Likewise.
61397         * modules/parse-datetime (Files, configure.ac, Makefile.am)
61398         (Include): Likewise.
61399         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
61400         * gnulib-tool: Likewise.
61401         * m4/bison.m4 (gl_BISON): Likewise.
61402         Suggested by Bruno Haible.
61404 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61406         more ports to Solaris tr, which needs [] around ranges
61407         * gnulib-tool: Solaris tr needs [] around ranges.
61408         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61409         * tests/test-pipe-filter-gi1.c (main): Likewise.
61410         * tests/test-pipe-filter-ii1.c (main): Likewise.
61412 2010-10-05  Eric Blake  <eblake@redhat.com>
61414         bootstrap: fix Solaris regression
61415         * build-aux/bootstrap (check_versions): Solaris tr still needs []
61416         around ranges.
61417         Reported by Pádraig Brady.
61419         bootstrap: work with pkg-config
61420         * build-aux/bootstrap (check_versions): Also transliterate - in
61421         prerequisite name.
61422         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
61423         prerequisites that were already found, to avoid confusion.
61424         Reported by Justin Clift.
61426         faccessat: remove unused wrappers
61427         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
61428         presence of these wrappers dragged in -lgen on Solaris.
61429         Reported by Clemens Brogi; fix suggested by Paul Eggert.
61431 2010-10-05  Jim Meyering  <meyering@redhat.com>
61433         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
61434         * Makefile (sc_pragma_columns): New syntax-check rule.
61436 2010-10-04  Bruno Haible  <bruno@clisp.org>
61438         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
61439         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
61440         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
61441         Reported by Bruce Korb and Eric Blake.
61443 2010-10-04  Bruno Haible  <bruno@clisp.org>
61445         threadlib: Make option --with-libpth-prefix work.
61446         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
61447         use $LIBPTH, not just -lpth.
61449 2010-10-04  Bruno Haible  <bruno@clisp.org>
61451         Avoid line length limitation from HP NonStop system header files.
61452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
61453         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
61454         * lib/ctype.in.h: Likewise.
61455         * lib/dirent.in.h: Likewise.
61456         * lib/errno.in.h: Likewise.
61457         * lib/fcntl.in.h: Likewise.
61458         * lib/float.in.h: Likewise.
61459         * lib/getopt.in.h: Likewise.
61460         * lib/iconv.in.h: Likewise.
61461         * lib/inttypes.in.h: Likewise.
61462         * lib/langinfo.in.h: Likewise.
61463         * lib/locale.in.h: Likewise.
61464         * lib/math.in.h: Likewise.
61465         * lib/netdb.in.h: Likewise.
61466         * lib/netinet_in.in.h: Likewise.
61467         * lib/poll.in.h: Likewise.
61468         * lib/pthread.in.h: Likewise.
61469         * lib/pty.in.h: Likewise.
61470         * lib/sched.in.h: Likewise.
61471         * lib/se-selinux.in.h: Likewise.
61472         * lib/search.in.h: Likewise.
61473         * lib/signal.in.h: Likewise.
61474         * lib/spawn.in.h: Likewise.
61475         * lib/stdarg.in.h: Likewise.
61476         * lib/stddef.in.h: Likewise.
61477         * lib/stdint.in.h: Likewise.
61478         * lib/stdio.in.h: Likewise.
61479         * lib/stdlib.in.h: Likewise.
61480         * lib/string.in.h: Likewise.
61481         * lib/strings.in.h: Likewise.
61482         * lib/sys_file.in.h: Likewise.
61483         * lib/sys_ioctl.in.h: Likewise.
61484         * lib/sys_select.in.h: Likewise.
61485         * lib/sys_socket.in.h: Likewise.
61486         * lib/sys_stat.in.h: Likewise.
61487         * lib/sys_time.in.h: Likewise.
61488         * lib/sys_times.in.h: Likewise.
61489         * lib/sys_utsname.in.h: Likewise.
61490         * lib/sys_wait.in.h: Likewise.
61491         * lib/sysexits.in.h: Likewise.
61492         * lib/termios.in.h: Likewise.
61493         * lib/time.in.h: Likewise.
61494         * lib/unistd.in.h: Likewise.
61495         * lib/wchar.in.h: Likewise.
61496         * lib/wctype.in.h: Likewise.
61497         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
61498         * modules/ctype (Makefile.am): Likewise.
61499         * modules/dirent (Makefile.am): Likewise.
61500         * modules/errno (Makefile.am): Likewise.
61501         * modules/fcntl-h (Makefile.am): Likewise.
61502         * modules/float (Makefile.am): Likewise.
61503         * modules/getopt-posix (Makefile.am): Likewise.
61504         * modules/iconv-h (Makefile.am): Likewise.
61505         * modules/inttypes (Makefile.am): Likewise.
61506         * modules/langinfo (Makefile.am): Likewise.
61507         * modules/locale (Makefile.am): Likewise.
61508         * modules/math (Makefile.am): Likewise.
61509         * modules/netdb (Makefile.am): Likewise.
61510         * modules/netinet_in (Makefile.am): Likewise.
61511         * modules/poll-h (Makefile.am): Likewise.
61512         * modules/pthread (Makefile.am): Likewise.
61513         * modules/pty (Makefile.am): Likewise.
61514         * modules/sched (Makefile.am): Likewise.
61515         * modules/search (Makefile.am): Likewise.
61516         * modules/selinux-h (Makefile.am): Likewise.
61517         * modules/signal (Makefile.am): Likewise.
61518         * modules/spawn (Makefile.am): Likewise.
61519         * modules/stdarg (Makefile.am): Likewise.
61520         * modules/stddef (Makefile.am): Likewise.
61521         * modules/stdint (Makefile.am): Likewise.
61522         * modules/stdio (Makefile.am): Likewise.
61523         * modules/stdlib (Makefile.am): Likewise.
61524         * modules/string (Makefile.am): Likewise.
61525         * modules/strings (Makefile.am): Likewise.
61526         * modules/sys_file (Makefile.am): Likewise.
61527         * modules/sys_ioctl (Makefile.am): Likewise.
61528         * modules/sys_select (Makefile.am): Likewise.
61529         * modules/sys_socket (Makefile.am): Likewise.
61530         * modules/sys_stat (Makefile.am): Likewise.
61531         * modules/sys_time (Makefile.am): Likewise.
61532         * modules/sys_times (Makefile.am): Likewise.
61533         * modules/sys_utsname (Makefile.am): Likewise.
61534         * modules/sys_wait (Makefile.am): Likewise.
61535         * modules/sysexits (Makefile.am): Likewise.
61536         * modules/termios (Makefile.am): Likewise.
61537         * modules/time (Makefile.am): Likewise.
61538         * modules/unistd (Makefile.am): Likewise.
61539         * modules/wchar (Makefile.am): Likewise.
61540         * modules/wctype (Makefile.am): Likewise.
61542 2010-10-04  Bruno Haible  <bruno@clisp.org>
61544         read-file tests: Avoid a test failure on NonStop Kernel.
61545         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
61546         a regular file.
61547         Reported by Joachim Schmitz <schmitz@hp.com>.
61549 2010-10-03  Bruno Haible  <bruno@clisp.org>
61551         gnulib-tool: Fixes for --create-testdir with --libtool.
61552         * gnulib-tool (func_get_automake_snippet): Don't augment
61553         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
61554         an executable.
61555         (func_create_testdir): Handle module 'alloca' like func_import.
61556         Reported by Bruce Korb <bruce.korb@gmail.com>.
61558 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61560         Avoid some lines longer than 80 characters.
61561         * lib/stdint.in.h: Break long comment lines.
61562         * lib/math.in.h: Likewise.
61563         (_GL_NUM_UINT_WORDS): New macro, for readability.
61564         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
61565         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
61566         * lib/stdlib.in.h: Likewise.
61567         * lib/spawn.in.h: Likewise.
61568         * lib/sys_socket.in.h: Update an URL.
61569         * lib/sys_stat.in.h: Break long line.
61571 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
61573         Improve pmccabe2html.
61574         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
61575         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
61576         when the sources change. Remove the line in the HTML about "Used
61577         ranges" (which implied that there might be other unused ranges),
61578         rename "Resume" to "Summary" (easier to understand for more users).
61579         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
61580         styles, and some unnecessary blank lines.
61582 2010-10-03  Bruno Haible  <bruno@clisp.org>
61583             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
61585         acl: Add support for ACLs on NonStop Kernel.
61586         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61587         Check whether the function aclsort() exists.
61588         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61589         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61590         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61591         (acl_nontrivial [HAVE_ACLSORT]: New function.
61592         (file_has_acl): Implement for NonStop Kernel.
61593         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61594         (qset_acl): Implement for NonStop Kernel.
61595         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61596         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61597         (main): Implement for NonStop Kernel.
61598         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61599         Kernel. Handle this flavor.
61600         * tests/test-set-mode-acl.sh: Likewise.
61601         * tests/test-copy-acl.sh: Likewise.
61602         * tests/test-copy-file.sh: Likewise.
61604 2010-10-03  Bruno Haible  <bruno@clisp.org>
61606         Info about ACLs on NonStop Kernel.
61607         * doc/acl-resources.txt: Add info about NonStop Kernel.
61608         References by Joachim Schmitz <schmitz@hp.com>.
61610 2010-10-02  Bruno Haible  <bruno@clisp.org>
61612         Define missing EDQUOT on NonStop Kernel.
61613         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61614         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61616         missing.
61617         * doc/posix-headers/errno.texi: Mention the NSK bug.
61618         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61619         Reported by Joachim Schmitz <schmitz@hp.com>.
61621 2010-10-02  Bruno Haible  <bruno@clisp.org>
61623         Update doc for POSIX:2008.
61624         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61625         Update URL of POSIX specification.
61627 2010-10-02  Bruno Haible  <bruno@clisp.org>
61629         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61630         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61631         from gnulib, not from Automake.
61633 2010-10-02  Bruno Haible  <bruno@clisp.org>
61635         New module 'system-posix'.
61636         * modules/system-posix: New file.
61637         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61638         module is present.
61639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61640         GNULIB_SYSTEM_POSIX.
61641         * modules/stdlib (Depends-on): Remove sys_wait.
61642         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61643         * doc/posix-functions/system.texi: Mention the new module.
61644         * doc/posix-headers/stdlib.texi: Likewise.
61645         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61646         define test_sys_wait_macros to a no-op.
61647         Reported by Sam Steingold <sds@gnu.org>.
61649 2010-09-30  Bruno Haible  <bruno@clisp.org>
61651         More renaming from 'getdate' to 'get_date'.
61652         * doc/get_date.texi: Renamed from doc/getdate.texi.
61653         * modules/get_date (Files): Update.
61654         * MODULES.html.sh (Date and time <time.h>): Update.
61655         * DEPENDENCIES: Update.
61656         * gnulib-tool: Update comment.
61657         * m4/bison.m4 (gl_BISON): Likewise.
61658         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61660 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61662         bootstrap: support ACLOCAL_FLAGS during aclocal
61663         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61664         can add additional -I dir for third-party .m4 files.
61666 2010-09-30  Eric Blake  <eblake@redhat.com>
61668         bootstrap: use glibtoolize on MacOS
61669         * build-aux/bootstrap (check_versions): Convert libtool into
61670         libtoolize.
61671         (tool search): Move libtool check earlier, and look for
61672         glibtoolize for MacOS.
61673         (gnulib_tool_options): Auto-add --libtool when appropriate.
61674         Reported by Justin Clift.
61676         poll: fix typo that broke test on MacOS
61677         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61678         Reported by Justin Clift.
61680         getdate: rename to get_date
61681         Note: getdate.h is not renamed, to minimize client impact.
61682         * modules/getdate: Mark obsolete.  Move old contents...
61683         * modules/get_date: ...to new module name.
61684         * modules/getdate-tests: Move...
61685         * modules/get_date-tests: ...here.
61686         * m4/getdate.m4: Move...
61687         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61688         * lib/getdate.y: Move...
61689         * lib/get_date.y: ...here.
61690         * tests/test-getdate.c: Move...
61691         * tests/test-get_date.c: ...here.
61692         * doc/posix-functions/getdate.texi (getdate): Update name.
61693         * NEWS: Mention the change.
61695 2010-09-29  Bruno Haible  <bruno@clisp.org>
61697         Separate the module 'waitpid' from the module 'sys_wait'.
61698         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61699         present.
61700         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61701         gl_MODULE_INDICATOR_FOR_TESTS.
61702         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61703         * modules/sys_wait (Depends-on): Remove waitpid.
61704         (Makefile.am): Substitute GNULIB_WAITPID.
61705         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61706         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61707         signature only if the 'waitpid' module is present.
61708         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61709         * NEWS: Mention the change.
61710         * modules/grantpt (Depends-on): Add waitpid.
61711         * modules/wait-process (Depends-on): Likewise.
61713 2010-09-29  Bruno Haible  <bruno@clisp.org>
61715         More tests for module 'sys_wait'.
61716         * modules/sys_wait-c++-tests: New file.
61717         * tests/test-sys_wait-c++.cc: New file.
61718         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61719         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61721 2010-09-29  Bruno Haible  <bruno@clisp.org>
61723         New module 'waitpid'.
61724         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61725         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61726         Don't include <process.h>.
61727         (waitpid): Declare only, using modern idiom.
61728         * m4/waitpid.m4: New file.
61729         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61730         * modules/waitpid: New file.
61731         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61732         (Makefile.am): Update.
61733         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61735 2010-09-28  Bruno Haible  <bruno@clisp.org>
61737         poll: Assume ANSI C.
61738         * lib/poll.c (poll): Use an ANSI C declaration.
61740 2010-09-28  Bruno Haible  <bruno@clisp.org>
61742         poll-h: Create poll.h on all platforms.
61743         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61744         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61745         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61746         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61747         (gl_REPLACE_POLL_H): Don't set POLL_H.
61748         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61749         * modules/poll-h (Depends-on): Add include_next.
61750         (Makefile.am): Create poll.h unconditionally. Substitute also
61751         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61753 2010-09-28  Bruno Haible  <bruno@clisp.org>
61755         Tests for module 'poll-h'.
61756         * modules/poll-h-c++-tests: New file.
61757         * tests/test-poll-h-c++.cc: New file.
61759         Tests for module 'poll-h'.
61760         * modules/poll-h-tests: New file.
61761         * tests/test-poll-h.c: New file.
61763 2010-09-28  Bruno Haible  <bruno@clisp.org>
61765         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61766         * modules/poll-h (Depends-on): Add 'extensions'.
61768 2010-09-28  Bruno Haible  <bruno@clisp.org>
61770         New module 'poll-h'.
61771         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61772         (poll): Use modern idiom.
61773         * modules/poll-h: New file.
61774         * modules/poll (Files): Remove lib/poll.in.h.
61775         (Depends-on): Add poll-h.
61776         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61777         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61778         * m4/poll_h.m4: New file.
61779         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61780         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61781         and invoke gl_REPLACE_POLL_H.
61782         * lib/poll.c: Use common idiom.
61783         * tests/test-poll.c: Likewise.
61784         * doc/posix-headers/poll.texi: Mention the poll-h module.
61785         Suggested by Eric Blake.
61787 2010-09-26  Bruno Haible  <bruno@clisp.org>
61789         sys_wait: Implement WSTOPSIG.
61790         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61791         Reported by Simon Josefsson.
61793 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61795         stdlib, sys_wait: Avoid compilation error on mingw.
61796         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61798 2010-09-26  Bruno Haible  <bruno@clisp.org>
61800         stdlib tests: Avoid code duplication.
61801         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61802         * modules/sys_wait-tests (Files): Likewise.
61803         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61804         * tests/test-stdlib.c: Include test-sys_wait.h.
61805         (main): Invoke test_sys_wait_macros.
61806         * tests/test-sys_wait.c: Include test-sys_wait.h.
61807         (main): Invoke test_sys_wait_macros.
61809 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61811         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61812         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61813         sure Windows sockets are working before calling getaddrinfo.
61814         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61815         * doc/gnulib.texi (Windows sockets): Fix typo.
61817 2010-09-25  Bruno Haible  <bruno@clisp.org>
61819         Tests for module 'regex-quote'.
61820         * modules/regex-quote-tests: New file.
61821         * tests/test-regex-quote.c: New file.
61823         New module 'regex-quote'.
61824         * lib/regex-quote.h: New file.
61825         * lib/regex-quote.c: New file.
61826         * modules/regex-quote: New file.
61827         Suggested by Reuben Thomas <rrt@sc3d.org>.
61829 2010-09-24  Bruno Haible  <bruno@clisp.org>
61831         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61832         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61834 2010-09-23  Bruno Haible  <bruno@clisp.org>
61836         setenv: Relax license.
61837         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61838         Blake.
61839         Requested by Eric Blake.
61841 2010-09-22  Bruno Haible  <bruno@clisp.org>
61843         termios: Relax license.
61844         * modules/termios (License): Change to LGPLv2+.
61845         Requested by Eric Blake.
61847 2010-09-22  Bruno Haible  <bruno@clisp.org>
61849         threadlib: Allow the package to change the default to 'no'.
61850         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61851         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61852         Reported by Paul Eggert.
61854 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61855             Bruno Haible  <bruno@clisp.org>
61857         Fix endless loop in mbmemcasecoll.
61858         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61859         byte.
61860         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61862 2010-09-22  Bruno Haible  <bruno@clisp.org>
61864         Tests for module 'memcoll'.
61865         * modules/memcoll-tests: New file.
61866         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61868         memcoll, xmemcoll: Clarify size vs. length.
61869         * modules/memcoll.c (memcoll0): Clarify specification.
61870         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61871         passed to collate_error.
61873 2010-09-22  Bruno Haible  <bruno@clisp.org>
61875         Tests for module 'memcasecmp'.
61876         * modules/memcasecmp-tests: New file.
61877         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61879 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61881         * lib/pthread.in.h: Add split double-inclusion guard, and include
61882         system <pthread.h> if there is one.  Use @@-style as in other
61883         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61884         pthread.h doesn't.
61885         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61886         (pthread_mutexattr_settype, pthread_mutex_trylock):
61887         New static inline functions, if there's no system <pthread.h>.
61888         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61889         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61890         Approximate with mutexes if the system lacks spinlocks, as in
61891         MacOS.
61892         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61893         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61894         @@-style.  Check for spinlocks separately.
61895         (gl_PTHREAD_DEFAULTS): New macro.
61896         * modules/pthread: Redo to use a more typical style for in.h files.
61898 2010-09-21  Eric Blake  <eblake@redhat.com>
61900         net_if: enhance tests
61901         * tests/test-net_if.c (main): Move signature checks earlier.
61902         Print failures to stderr.
61903         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61904         Document the bug that we do not yet fix.
61906 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61908         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61909         about gnulib, not GSS.
61911 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61913         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61914         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61915         for Emacs.
61916         * build-aux/pmccabe2html: Make Makefile.am example code more
61917         cut-and-paste friendly.
61919 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61921         * tests/test-net_if.c: New file.
61922         * modules/net_if-tests: New file.
61924 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61926         pthread: add pthread_spin_destroy
61927         * lib/pthread.in.h (pthread_spin_destroy): New function.
61929 2010-09-19  Bruno Haible  <bruno@clisp.org>
61931         gnulib-tool: Fix --help output.
61932         * gnulib-tool (func_usage): Fix help message.
61933         Reported by Reuben Thomas <rrt@sc3d.org>.
61935 2010-09-18  Jim Meyering  <meyering@redhat.com>
61937         maint.mk: avoid unexpanded \n in two diagnostics
61938         * top/maint.mk (sc_prohibit_always_true_header_tests):
61939         Don't use a literal \n in a halt=... assignment.  It would not be
61940         expanded, and the two \n bytes would appear in the diagnostic output
61941         rather than the desired newline.  Use halt=$$(printf ... instead.
61942         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61944 2010-09-18  Bruno Haible  <bruno@clisp.org>
61946         netinet_in: Doc tweak.
61947         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61948         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61950 2010-09-18  Jim Meyering  <meyering@redhat.com>
61952         init.sh: correct an outdated comment
61953         * tests/init.sh (create_exe_shims_):  s/function/alias/
61955         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61956         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61957         a file named "*.exe" is removed between the glob expansion and the
61958         processing of that oddly named file.
61960 2010-09-17  Eric Blake  <eblake@redhat.com>
61962         mirbsd: add some more support
61963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61964         in BSD family.
61965         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61966         devices as OpenBSD.
61967         * m4/host-os.m4 (mirbsd): Add MirBSD.
61969         tests: fix unportable assumption on sys/wait.h
61970         * tests/test-sys_wait.c (main): Relax test.
61971         * tests/test-stdlib.c (main): Likewise.
61973         init.sh: accommodate directory with no .exes
61974         * tests/init.sh: Accomodate directory containing only scripts.
61976         tests: avoid compiler warning
61977         * tests/test-stdlib.c (main): Use the variable.
61979         fdutimens, fdutimensat: update signature, again
61980         * lib/utimens.h (gl_futimens): Delete, and move signature...
61981         (fdutimens): ...here.
61982         (fdutimensat): Rearrange signature.
61983         (lutimensat): Rename variable for clarity.
61984         * lib/fdutimensat.c (fdutimensat): Update signature.
61985         * lib/utimens.c (fdutimens): Likewise.
61986         (gl_futimens): Delete.
61987         (utimens, lutimens): Update callers.
61988         * lib/futimens.c (futimens): Likewise.
61989         * tests/test-fdutimensat.c: Likewise.
61990         * tests/test-utimens.c: Likewise.
61991         * tests/test-futimens.h: Update comment.
61992         * NEWS: Mention this.
61993         Suggested by Paul Eggert.
61995 2010-09-17  Bruno Haible  <bruno@clisp.org>
61997         Take over the maintenance of some older macros from Autoconf.
61998         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61999         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
62000         GNU Autoconf.
62001         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
62002         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
62004 2010-09-17  Eric Blake  <eblake@redhat.com>
62006         fdutimensat: drop atflag validation
62007         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
62008         with valid fd, to close a race scenario where futimens is
62009         unsupported and FILE was replaced by a symlink.
62010         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
62011         accordingly.
62012         Suggested by Paul Eggert.
62014 2010-09-16  Bruno Haible  <bruno@clisp.org>
62016         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
62017         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
62019 2010-09-16  Bruno Haible  <bruno@clisp.org>
62021         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
62022         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
62023         login_tty exists.
62024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62026 2010-09-16  Bruno Haible  <bruno@clisp.org>
62028         login_tty: Make the replacement code work on BSD systems.
62029         * lib/login_tty.c: Include <sys/ioctl.h>.
62030         (login_tty): Use ioctl TIOCSCTTY when available.
62031         * modules/login_tty (Depends-on): Add sys_ioctl.
62032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62034 2010-09-16  Bruno Haible  <bruno@clisp.org>
62036         login_tty: Stricter unit test.
62037         * modules/login_tty-tests (Depends-on): Add tcgetsid.
62038         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
62039         and tcgetsid() after login_tty.
62040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62042 2010-09-16  Bruno Haible  <bruno@clisp.org>
62044         New module 'tcgetsid'.
62045         * lib/tcgetsid.c: New file.
62046         * m4/tcgetsid.m4: New file.
62047         * modules/tcgetsid: New file.
62048         * modules/termios (Depends-on): Add c++defs, warn-on-use.
62049         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
62050         GNULIB_TCGETSID, HAVE_TCGETSID.
62051         * lib/termios.in.h: Include <sys/types.h>.
62052         (tcgetsid): New declaration.
62053         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
62054         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
62055         * doc/posix-functions/tcgetsid.texi: Mention the new module.
62056         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
62058 2010-09-16  Bruno Haible  <bruno@clisp.org>
62060         Tests for module 'termios'.
62061         * modules/termios-c++-tests: New file.
62062         * modules/termios-tests: New file.
62063         * tests/test-termios-c++.cc: New file.
62064         * tests/test-termios.c: New file.
62066         New module 'termios'.
62067         * modules/termios: New file.
62068         * lib/termios.in.h: New file.
62069         * m4/termios_h.m4: New file.
62070         * doc/posix-headers/termios.texi: Mention the new module.
62072 2010-09-16  Eric Blake  <eblake@redhat.com>
62074         fdutimensat: add an atflag parameter
62075         * lib/fdutimensat.c (fdutimensat): Add new parameter.
62076         * lib/utimens.h (fdutimensat): Update prototype.
62077         * tests/test-fdutimensat.c: Adjust test to match.
62078         * NEWS: Document the change.
62079         Suggested by Paul Eggert.
62081 2010-09-16  Bruno Haible  <bruno@clisp.org>
62083         Fix typos in comments.
62084         * lib/striconveh.h: Fix typo in comment.
62085         * lib/login_tty.c (login_tty): Likewise.
62087 2010-09-15  Bruno Haible  <bruno@clisp.org>
62089         stdlib: clarify MirBSD WEXITSTATUS bug
62090         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
62091         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62093 2010-09-15  Eric Blake  <eblake@redhat.com>
62095         stdlib: work around MirBSD WEXITSTATUS bug
62096         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
62097         * modules/stdlib (Depends-on): Add sys_wait.
62098         * tests/test-sys_wait.c (main): Enhance test.
62099         * tests/test-stdlib.c (main): Likewise.
62100         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
62102         docs: mention MacOS issue with WEXITSTATUS(constant)
62103         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
62104         issue.
62105         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62107         strnlen: add tests
62108         * modules/strnlen-tests: New file.
62109         * tests/test-strnlen.c: Likewise.
62111 2010-09-14  Bruno Haible  <bruno@clisp.org>
62113         unistr/base: Avoid link errors when module 'libunistring' is also used.
62114         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
62115         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
62116         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
62117         Declare also when HAVE_LIBUNISTRING is set.
62118         Reported by Pádraig Brady <P@draigbrady.com>.
62120 2010-09-14  Eric Blake  <eblake@redhat.com>
62122         test-rawmemchr: make more robust
62123         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
62124         (Depends-on, configure.ac): Add needed prerequisites to use it.
62125         * modules/memchr-tests (Files, Depends-on, configure.ac):
62126         Likewise, to avoid implicit reliance on memchr module prereqs.
62127         * tests/test-memchr.c (main): Ensure proper masking.
62128         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
62129         reads.
62131         memchr: detect glibc Alpha bug
62132         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
62133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
62134         Alpha.
62135         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
62136         * tests/test-memchr.c (main): Enhance test.
62137         Reported by Nelson H. F. Beebe.
62139 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62141         fts, getcwd, glob: audit for dirfd returning -1
62142         * lib/fts.c (opendir): Remove #define; no longer used.
62143         (opendirat): New arg PDIR_FD.  All callers changed.
62144         (fts_build, _opendir2): Use new opendirat to avoid the need for
62145         dirfd, or for checking whether dirfd returns a negative value.
62146         Don't use opendir; always use openat followed by fdopendir.
62147         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
62148         it.
62149         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
62150         returns -1 here.
62151         * modules/fts (Depends-on): Remove dirfd.
62152         * modules/getcwd (Depends-on): Likewise.
62154 2010-09-13  Eric Blake  <eblake@redhat.com>
62156         float: fix broken MirBSD header
62157         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
62158         * doc/posix-headers/float.texi (float.h): Document it.
62160 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62162         fts: use O_NOFOLLOW to avoid race condition when opening a directory
62163         * lib/fts.c (opendirat): New arg extra_flags.
62164         (__opendir2): Use it to avoid following symlinks when opening
62165         a directory, if symlinks are not supposed to be followed.  See
62166         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
62168         fdopendir: preserve argument fd before returning
62169         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
62170         (fdopendir_with_dup, fd_clone_opendir): New static functions.
62171         (fdopendir): Use them, arranging for FD to be open to the same
62172         directory that it was when it started.  (It might be temporarily
62173         closed while fdopendir is running, so this not thread- or
62174         signal-safe.)  Be careful to do the right thing even when file
62175         descriptors are scarce and dup fails with errno == EMFILE.  See
62176         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
62178 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
62180         regex: Pass the system regex if its only problem is 32-bit regoff_t.
62181         * NEWS: Document change.
62182         * m4/regex.m4: Disable test for regoff_t size.
62184 2010-09-13  Jim Meyering  <meyering@redhat.com>
62186         fts: don't operate on an invalid file descriptor after failed dup
62187         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
62188         negative file descriptor.
62190 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62192         savedir: add streamsavedir, deprecate fdsavedir
62193         * NEWS: Mention deprecation of fdsavedir.
62194         * lib/savedir.c (streamsavedir): New extern function, whose name
62195         ends in "savedir" to be consistent with the others.  This differs
62196         from savedirstream in that it doesn't close its argument.  The
62197         next version of GNU tar will use this instead of fdsavedir, to
62198         avoid some race conditions and conserve file descriptors.
62199         (savedirstream): Reimplement as a wrapper around streamsavedir.
62200         (fdsavedir): Add a comment deprecating this function.  As far as
62201         I know, only GNU tar used it, and GNU tar doesn't need it any more.
62202         * lib/savedir.h (streamsavedir): New decl.
62203         (fdsavedir): Add a comment deprecating this.
62205 2010-09-10  Bruno Haible  <bruno@clisp.org>
62207         langinfo: Fix last commit.
62208         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
62209         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
62210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62212 2010-09-10  Bruno Haible  <bruno@clisp.org>
62214         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
62215         * lib/progreloc.c (O_EXEC): Define fallback.
62217 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
62219         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
62220         * NEWS: Document recent changes to fcntl-h.
62221         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
62222         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
62223         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
62224         Similarly for O_SEARCH; this last was already true, but not documented.
62225         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
62226         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
62227         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
62228         Likewise.
62229         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
62230         is zero, not whether it is defined.
62231         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
62232         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
62233         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
62235 2010-09-10  Bruno Haible  <bruno@clisp.org>
62237         langinfo, nl_langinfo: Fix for IRIX 5.3.
62238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
62239         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
62240         HAVE_LANGINFO_YESEXPR.
62241         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
62242         HAVE_LANGINFO_YESEXPR.
62243         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
62244         HAVE_LANGINFO_T_FMT_AMPM is 0.
62245         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
62246         HAVE_LANGINFO_YESEXPR is 0.
62247         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
62248         NOEXPR.
62249         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
62250         * doc/posix-functions/nl_langinfo.texi: Likewise.
62251         Reported by Eric Blake.
62253 2010-09-10  Bruno Haible  <bruno@clisp.org>
62255         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
62256         * doc/glibc-functions/login_tty.texi: Mention the include file problem
62257         on FreeBSD 8.0 and OpenBSD 4.6.
62258         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
62259         * m4/pty_h.m4 (gl_PTY_H): Likewise.
62260         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
62261         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
62262         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
62263         ac_includes_default.
62264         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62266 2010-09-09  Eric Blake  <eblake@redhat.com>
62268         strsignal: work around NetBSD bug
62269         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
62270         * lib/string.in.h (includes): Likewise.
62271         * doc/posix-functions/strsignal.texi (strsignal): Document the
62272         bug.
62273         Reported by Nelson H. F. Beebe.
62275         gnulib-tool: work with NetBSD /bin/sh
62276         * gnulib-tool (func_cache_var, func_cache_lookup_module)
62277         (func_get_description, func_get_comment, func_get_status)
62278         (func_get_notice, func_get_applicability, func_get_filelist)
62279         (func_get_dependencies, func_get_autoconf_early_snippet)
62280         (func_get_autoconf_snippet, func_get_automake_snippet)
62281         (func_get_include_directive, func_get_link_directive)
62282         (func_get_license, func_get_maintainer, func_import): Avoid
62283         shell syntax errors from parsing syntax extensions.
62285 2010-09-09  Bruno Haible  <bruno@clisp.org>
62287         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62288         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
62289         a reliable way to determine whether the 'alias' command works.
62291 2010-09-08  Jim Meyering  <meyering@redhat.com>
62293         init.sh: penalize a set-x-impaired shell; don't disqualify it
62294         * tests/init.sh: Too many shells corrupt application stderr when
62295         you set -x, so we can't afford to disqualify them, since at least
62296         on Irix-6.5, that would disqualify all bourne shells.
62297         Instead, use a two-pass approach.
62298         On the first pass, try to find a shell that meets the stricter
62299         condition that set -x does not corrupt stderr.
62300         If no shell meets the stricter condition, retest each candidate
62301         shell, but without that extra condition.  Finally, when
62302         VERBOSE=yes is requested and set -x might cause trouble, simply
62303         issue a warning and refrain from enabling debug output.
62305 2010-09-08  Eric Blake  <eblake@redhat.com>
62307         unsetenv: fix OpenBSD bug
62308         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
62309         * doc/posix-functions/unsetenv.texi (unsetenv): Update
62310         documentation.
62311         Reported by Jim Meyering.
62313         strtod: work around IRIX 6.5 bug
62314         * lib/strtod.c (strtod): Reparse number on shorter string if
62315         exponent parse was invalid.
62316         * tests/test-strtod.c (main): Add check for "0x1p 2".
62317         Reported by Tom G. Christensen.
62319         getopt: optimize previous patch
62320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
62321         empty variable.  Speed up awk script.
62322         Reported by Paolo Bonzini.
62324 2010-09-08  Jim Meyering  <meyering@redhat.com>
62326         test.sh: disqualify shells for which set -x corrupts stderr
62327         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
62328         and OpenBSD 4.7.  They make it so with "set -x", environment settings
62329         appear in stderr output.  For example, this command:
62330             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
62331         prints "P=1" on those two systems:
62333 2010-09-08  Bruno Haible  <bruno@clisp.org>
62335         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62336         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
62337         commands, because some shells ignore redirections when there is an
62338         error in the command lookup.
62339         Reported by Eric Blake.
62341 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
62343         * lib/regex.h: Fix a mention of `regex_compile' (should be
62344         `re_compile_pattern').
62345         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
62346         (re_set_registers): Correct name of parameter in comment.
62348         * doc/regex.texi: Add documentation for missing syntax flags.
62349         Remove commented-out documentation of defunct syntax option
62350         RE_NO_EMPTY_ALTS.
62351         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
62352         Add documentation of re_set_registers.
62353         Document trick to re-use a pattern buffer by setting fastmap manually.
62354         Update documentation of struct re_pattern_buffer per public members.
62355         Uncomment documentation of equivalence class operators and
62356         collating symbol operators, since they are now implemented,
62357         Explain leftmost-longest matching in relation to alternatives.
62358         Tidy documentation of substring matching.
62359         Remove POSIX documentation, which is done better in
62360         glibc, and refer the reader there. Keep BSD API documentation, as
62361         that is not readily available elsewhere.
62363 2010-09-07  Eric Blake  <eblake@redhat.com>
62365         getopt: handle POSIXLY_CORRECT set but not exported
62366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
62367         export state of POSIXLY_CORRECT, due to bash set -o posix.
62368         Reported by Dustin J. Mitchell.
62370 2010-09-05  Bruno Haible  <bruno@clisp.org>
62372         gnulib-tool: Highlight the changed options.
62373         * gnulib-tool (func_usage): Display the --import, --add-import,
62374         --remove-import explanations in bold font.
62376 2010-09-06  Karl Berry  <karl@gnu.org>
62378         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
62380 2010-09-05  Bruno Haible  <bruno@clisp.org>
62382         uniwidth/width: Update comment.
62383         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
62384         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
62386 2010-09-05  Bruno Haible  <bruno@clisp.org>
62388         isinf, isnan: Relax license.
62389         * modules/isinf (License): Change from GPL to LGPL, with consent from
62390         Ben Pfaff.
62391         * modules/isnan (License): Likewise.
62392         Requested by Ludovic Courtès.
62394 2010-09-04  Bruno Haible  <bruno@clisp.org>
62396         gnulib-tool: Help migration from --import to --add-import or --update.
62397         * gnulib-tool: Emit a verbose error message when --import is used
62398         without any module name.
62400 2010-09-04  Bruno Haible  <bruno@clisp.org>
62402         Update doc about gnulib-tool.
62403         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
62404         'gnulib-tool --update' in more detail.
62405         Reported by Eric Blake.
62407 2010-09-04  Bruno Haible  <bruno@clisp.org>
62409         gnulib-tool: Change --import. New options --add/remove-import.
62410         * gnulib-tool: New options --add-import, --remove-import.
62411         (func_usage): Document them.
62412         (have_associative): Define always.
62413         (func_import): In import mode, don't merge the specified settings with
62414         the cached settings. Implement remove-import mode.
62415         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
62416         Explain when to use them versus --import.
62417         (Simple update): Use --add-import instead of --import.
62418         * NEWS: Mention the change.
62420 2010-09-04  Bruno Haible  <bruno@clisp.org>
62422         * doc/gnulib-tool.texi (Initial import): Update paragraph about
62423         separate gnulib.mk.
62425 2010-09-04  Bruno Haible  <bruno@clisp.org>
62427         gnulib-tool: Don't talk about CVS any more.
62428         * gnulib-tool (func_usage, func_import): Write "version control"
62429         instead of CVS.
62431 2010-09-04  Jim Meyering  <meyering@redhat.com>
62433         maint.mk: avoid obscure sc_copyright_check failure in coreutils
62434         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
62435         false positives (whose names may be ill-chosen) when searching
62436         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
62437         would cause a false-positive.
62439         avoid coreutils "make distcheck" failure
62440         Coreutils tests with an absolute build directory name that contains
62441         a space.  Not quoting this directory name caused a failure.
62442         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
62443         * tests/test-vc-list-files-cvs.sh: Likewise.
62445 2010-09-04  Bruno Haible  <bruno@clisp.org>
62447         gnulib-tool: Avoid error when run in a package without Makefile.am.
62448         * gnulib-tool: When collecting the m4dirs in a package that does not
62449         have a Makefile.am, eliminate those directories that contain no
62450         gnulib-cache.m4. Fix expression that counts these directories.
62452 2010-09-04  Bruno Haible  <bruno@clisp.org>
62454         update-copyright test: Improve output when perl is missing or too old.
62455         * tests/test-update-copyright.sh: Move test of Perl version down after
62456         the test whether Perl exists. Provide an explanation relating Perl's
62457         error message to Automake's SKIP: message.
62459 2010-09-04  Bruno Haible  <bruno@clisp.org>
62461         Don't augment PATH in TESTS_ENVIRONMENT.
62462         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
62463         set abs_aux_dir instead of augmenting PATH.
62464         * modules/vc-list-files-tests (Makefile.am): Likewise.
62465         * tests/test-update-copyright.sh: Augment PATH here.
62466         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
62467         path_prepend_.
62468         * tests/test-vc-list-files-git.sh: Likewise.
62470 2010-09-04  Jim Meyering  <meyering@redhat.com>
62472         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
62473         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
62475 2010-09-04  Bruno Haible  <bruno@clisp.org>
62477         strdup: Fix compilation error in C++ mode.
62478         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
62479         the macro.
62481 2010-09-04  Bruno Haible  <bruno@clisp.org>
62483         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
62484         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
62485         macro into a function.
62486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62488 2010-09-04  Bruno Haible  <bruno@clisp.org>
62490         Set PATH_SEPARATOR the same way autoconf does.
62491         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
62492         the value of PATH_SEPARATOR the same way autoconf-generated configure
62493         scripts do.
62494         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
62495         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62497 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62499         Set PATH_SEPARATOR the same way autoconf does.
62500         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
62501         the same way autoconf-generated configure scripts do.
62502         * posix-modules: Likewise.
62504 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62506         hash: fix safe_hasher const typo
62507         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
62508         const; otherwise, there is a type error later.
62510 2010-09-02  Jim Meyering  <meyering@redhat.com>
62512         test-update-copyright.sh: require perl 5.8.0
62513         * tests/test-update-copyright.sh: Require 5.8.0,
62514         which Tom G. Christensen has confirmed is adequate,
62515         while 5.6.1 is not.
62517 2010-09-02  Eric Blake  <eblake@redhat.com>
62519         tests: init.sh improvements for re-exec'ing with zsh
62520         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
62521         -vx through shell re-exec.
62522         Reported by Tom G. Christensen.
62524         wctype: fix typo in previous commit
62525         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
62526         Reported by Ludovic Courtès.
62528 2010-09-02  Jim Meyering  <meyering@redhat.com>
62530         test-update-copyright.sh: skip test if Perl is too old
62531         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
62532         Reported by Tom G. Christensen.
62534 2010-09-02  Bruno Haible  <bruno@clisp.org>
62536         wctype: Avoid compilation error on IRIX 6.5.30.
62537         * lib/wctype.in.h (iswblank): Declare with a replacement if
62538         REPLACE_ISWBLANK is set.
62539         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
62540         declared. Set REPLACE_ISWBLANK.
62541         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
62542         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
62543         * doc/posix-headers/wctype.texi: Likewise.
62544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62546 2010-09-01  Bruno Haible  <bruno@clisp.org>
62548         New module 'socketlib'.
62549         * modules/socketlib: New file.
62550         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
62551         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
62552         * modules/sockets (Depends-on): Add socketlib.
62553         Suggested by Sam Steingold <sds@gnu.org>.
62555 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62557         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
62559         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
62560         when one needs search access to a directory but not read access.
62561         On systems where it is available, it works in some cases where
62562         O_RDONLY does not, namely on directories that are searchable but
62563         not readable, and which need only to be searchable.  If O_SEARCH
62564         is not available, fall back to the traditional method of using
62565         O_RDONLY.
62567         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
62568         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
62569         when opening a directory that needs only to be searchable.
62570         * lib/chdir-safer.c (chdir_no_follow): Likewise.
62571         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
62572         * lib/openat-proc.c (openat_proc_name): Likewise.
62573         * lib/openat.c (openat_needs_fchdir): Likewise.
62574         * lib/save-cwd.c (save_cwd): Likewise.
62575         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
62577 2010-08-28  Bruno Haible  <bruno@clisp.org>
62579         New module 'host-cpu-c-abi'.
62580         * modules/host-cpu-c-abi: New file.
62581         * m4/host-cpu-c-abi.m4: New file, based on part of
62582         clisp/src/m4/general.m4.
62583         Requested by Sam Steingold <sds@gnu.org>.
62585 2010-08-31  Eric Blake  <eblake@redhat.com>
62586         and Jim Meyering  <meyering@redhat.com>
62588         hash: factor, and guard against misbehaving hasher function
62589         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62590         of table->hasher's return value.  Also protect against a hash value
62591         so large that adding it to table->bucket results in a NULL pointer.
62592         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62593         Use it in place of open-coded check-and-abort.
62595 2010-08-30  Bruno Haible  <bruno@clisp.org>
62597         hash: silence spurious clang warning
62598         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62599         Reported by Eric Blake.
62601 2010-08-30  Eric Blake  <eblake@redhat.com>
62603         strstr, memmem, strcasestr: avoid leaked shell message
62604         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62605         FreeBSD.
62606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62607         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62609         tests: silence clang warning
62610         * tests/test-malloca.c (do_allocation): Avoid dead store.
62612 2010-08-29  Bruno Haible  <bruno@clisp.org>
62614         gettext: Fix recent mistake.
62615         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62617 2010-08-29  Bruno Haible  <bruno@clisp.org>
62619         selinux-h: Offer a --without-selinux option.
62620         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62621         --without-selinux was specified, skip all tests and define
62622         HAVE_SELINUX_SELINUX_H to 0.
62623         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62624         set LIB_SELINUX to empty.
62625         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62626         gl_LIBSELINUX. If --without-selinux was specified, replace
62627         selinux/context.h.
62628         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62630 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62631             Bruno Haible  <bruno@clisp.org>
62633         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62634         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62635         of HAVE_REALLOC.
62636         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62637         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62638         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62639         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62641 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62642             Bruno Haible  <bruno@clisp.org>
62644         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62645         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62646         HAVE_CALLOC.
62647         * lib/xmalloc.c: Update accordingly.
62648         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62649         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62650         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62652 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62653             Bruno Haible  <bruno@clisp.org>
62655         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62656         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62657         HAVE_MALLOC.
62658         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62659         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62660         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62662 2010-08-29  Bruno Haible  <bruno@clisp.org>
62664         Update modules list.
62665         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62666         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62667         (String handling <string.h>): Add astrxfrm.
62668         (File system functions): Add readlinkat.
62670 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62672         Tests for module 'realloc-gnu'.
62673         * modules/realloc-gnu-tests: New file.
62674         * tests/test-realloc-gnu.c: New file.
62676         Tests for module 'calloc-gnu'.
62677         * modules/calloc-gnu-tests: New file.
62678         * tests/test-calloc-gnu.c: New file.
62680         Tests for module 'malloc-gnu'.
62681         * modules/malloc-gnu-tests: New file.
62682         * tests/test-malloc-gnu.c: New file.
62684 2010-08-28  Bruno Haible  <bruno@clisp.org>
62686         Rename module 'realloc' -> 'realloc-gnu'.
62687         * modules/realloc-gnu: New file, copied from modules/realloc.
62688         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62689         obsolete.
62690         * modules/mgetgroups (Depends-on): Update.
62691         * doc/posix-functions/realloc.texi: Update.
62692         * NEWS: Mention the change.
62694         Rename module 'calloc' -> 'calloc-gnu'.
62695         * modules/calloc-gnu: New file, copied from modules/calloc.
62696         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62697         obsolete.
62698         * doc/posix-functions/calloc.texi: Update.
62699         * NEWS: Mention the change.
62701         Rename module 'malloc' -> 'malloc-gnu'.
62702         * modules/malloc-gnu: New file, copied from modules/malloc.
62703         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62704         obsolete.
62705         * modules/argp (Depends-on): Update.
62706         * modules/regex (Depends-on): Update.
62707         * doc/posix-functions/malloc.texi: Update.
62708         * NEWS: Mention the change.
62710 2010-08-28  Eric Blake  <eblake@redhat.com>
62712         pread, pwrite: add missing dependency
62713         * modules/pread (Depends-on): Add extensions.
62714         * modules/pwrite (Depends-on): Likewise.
62716 2010-08-28  Bruno Haible  <bruno@clisp.org>
62718         unistr/u*-strchr: Fix tests dependencies.
62719         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62720         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62721         Reported by Ian Beckwith <ianb@erislabs.net>.
62723 2010-08-28  Bruno Haible  <bruno@clisp.org>
62725         read-file: Don't occupy too much unused memory.
62726         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62728 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62729             Eric Blake  <eblake@redhat.com>
62730             Bruno Haible  <bruno@clisp.org>
62732         read-file: Avoid memory reallocations with regular files.
62733         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62734         (fread_file): With regular files, use the remaining length as the
62735         initial buffer size.  Check against overflow.
62736         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62737         sys_stat.
62739 2010-08-28  Bruno Haible  <bruno@clisp.org>
62741         ftello: Relax license.
62742         * modules/ftello (License): Relax to LGPLv2+.
62743         Reported by Eric Blake.
62745 2010-08-28  Bruno Haible  <bruno@clisp.org>
62747         Avoid relocwrapper link errors due to gnulib replacement functions.
62748         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62749         function.
62750         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62752 2010-08-28  Bruno Haible  <bruno@clisp.org>
62754         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62755         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62756         defined.
62757         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62758         Suggested by Eric Blake.
62760 2010-08-28  Bruno Haible  <bruno@clisp.org>
62762         sys_socket, netdb: Ensure socklen_t gets defined.
62763         * modules/sys_socket (Depends-on): Add socklen.
62764         * modules/netdb (Depends-on): Likewise.
62765         * modules/getaddrinfo (Depends-on): Remove socklen.
62766         * modules/getsockopt (Depends-on): Likewise.
62767         * modules/setsockopt (Depends-on): Likewise.
62768         * tests/test-sys_socket.c: Check that socklen_t is defined.
62769         * tests/test-netdb.c: Likewise.
62770         * m4/socklen.m4: Update comments.
62771         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62773 2010-08-27  Eric Blake  <eblake@redhat.com>
62775         login_tty: add missing dependency
62776         * modules/login_tty (Depends-on): Add pty.
62778 2010-08-26  Eric Blake  <eblake@redhat.com>
62780         lib-symbol-versions: fix m4 quoting
62781         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62782         format for AC_LINK_IFELSE.
62784         glob: fix compile test
62785         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62787         btowc: fix missing file
62788         * modules/btowc (Files): Also ship locale-fr.m4.
62790         lseek: fix link test
62791         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62792         AC_LINK_IFELSE.
62794         include_next: silence autoconf 2.68 warning
62795         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62796         AC_COMPILE_IFELSE as special.
62797         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62798         autoconf < 2.68.
62800         acl: fix compilation test
62801         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62802         AC_COMPILE_IFELSE.
62804 2010-08-26  Bruno Haible  <bruno@clisp.org>
62806         Modernize AC_TRY_RUN invocations.
62807         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62808         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62809         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62810         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62811         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62812         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62813         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62815         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62816         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62817         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62818         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62819         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62820         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62822         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62823         gl_MBRLEN_NUL_RETVAL): Likewise.
62824         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62825         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62826         Likewise.
62827         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62828         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62829         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62830         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62831         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62832         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62833         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62834         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62835         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62836         Likewise.
62837         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62838         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62840         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62842         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62843         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62844         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62845         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62848 2010-08-26  Bruno Haible  <bruno@clisp.org>
62850         Modernize AC_TRY_LINK invocations.
62851         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62852         AC_TRY_LINK.
62853         * m4/argp.m4 (gl_ARGP): Likewise.
62854         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62855         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62856         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62857         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62858         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62859         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62860         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62861         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62862         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62863         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62864         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62865         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62866         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62867         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62868         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62869         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62870         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62871         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62872         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62873         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62874         Likewise.
62875         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62876         Likewise.
62877         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62878         Likewise.
62879         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62881         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62882         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62883         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62884         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62885         * m4/servent.m4 (gl_SERVENT): Likewise.
62886         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62887         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62888         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62889         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62890         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62891         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62892         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62894         * modules/tsearch-tests (configure.ac): Likewise.
62896 2010-08-26  Bruno Haible  <bruno@clisp.org>
62898         Modernize AC_TRY_COMPILE invocations.
62899         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62900         AC_TRY_COMPILE.
62901         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62902         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62903         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62904         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62905         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62906         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62907         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62908         * m4/lock.m4 (gl_LOCK): Likewise.
62909         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62910         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62911         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62912         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62913         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62914         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62915         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62916         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62917         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62918         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62919         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62920         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62921         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62922         extraneous semicolon.
62924 2010-08-26  Jim Meyering  <meyering@redhat.com>
62926         stat-time: relax license LGPL
62927         * modules/stat-time (License): Change from GPL to LGPL,
62928         with consent from all contributors, for use in libguile.
62929         Requested by Ludovic Courtès.
62931 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62933         poll: return immediately on POLLHUP.
62934         * lib/poll.c (poll): Always set timeout before wait_timeout is
62935         computed.
62937 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62939         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62940         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62941         rmdir ("dir/.//"), unlinkat.
62943 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62945         stdbool: avoid spurious failure with modern xlc
62946         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62948 2010-08-24  Bruno Haible  <bruno@clisp.org>
62950         getloadavg: simplify code
62951         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62952         gl_have_func. Update comments.
62954 2010-08-24  Eric Blake  <eblake@redhat.com>
62956         getloadavg: don't define SVR4 on cygwin
62957         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62958         only define SVR4 when -lkvm is required.
62959         Reported by Yaakov Selkowitz.
62961 2010-08-24  Bruno Haible  <bruno@clisp.org>
62963         priv-set: fix comment
62964         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62966 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62968         priv-set: fix comments
62969         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62970         to match code, as suggested by David Bartley in:
62971         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62973 2010-08-23  Eric Blake  <eblake@redhat.com>
62975         stdbool: avoid rejecting clang
62976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62977         * tests/test-stdbool.c: Enable more tests if using the system
62978         <stdbool.h> instead of the gnulib replacement.
62979         (main): Move xlc bug test to a runtime test for all compilers.
62980         Reported by Anders Kaseorg.
62982         argz: fix shell quoting issue
62983         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62984         Reported by Charles Wilson.
62986 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62987             Erik Faye-Lund <kusmabite@gmail.com>
62989         poll, select: handle ERROR_BROKEN_PIPE.
62990         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62991         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62992         * lib/select.c (win32_compute_revents): Do not mark a pipe
62993         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62995 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62997         fts: allow compilation with C++
62998         * lib/fts_.h: Specify extern "C" linkage with C++.
63000 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63002         Fix gnulib-tool sed script de-commentation for AIX sed.
63003         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
63004         sed.
63006 2010-08-17  Eric Blake  <eblake@redhat.com>
63008         test-stddef: test for (some) offsetof bugs
63009         * tests/test-stddef.c: Enhance test to ensure correct type of
63010         offsetof.
63011         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
63012         that we are not fixing at this time.
63014 2010-08-15  Bruno Haible  <bruno@clisp.org>
63016         stpncpy: Allow stpncpy to be defined as a macro.
63017         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
63018         if it's already correctly declared.
63019         * lib/string.in.h (stpncpy): Undefine before redefining.
63020         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
63022 2010-08-14  Bruno Haible  <bruno@clisp.org>
63024         Rename module 'memxfrm' to 'amemxfrm'.
63025         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
63026         (amemxfrm): Renamed from memxfrm.
63027         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
63028         (amemxfrm): Renamed from memxfrm.
63029         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
63030         * NEWS: Mention the change.
63031         * MODULES.html.sh (String handling <string.h>): Update.
63032         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
63033         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
63034         * lib/unicase/u16-casexfrm.c: Likewise.
63035         * lib/unicase/u32-casexfrm.c: Likewise.
63036         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
63037         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
63038         * lib/uninorm/u16-normxfrm.c: Likewise.
63039         * lib/uninorm/u32-normxfrm.c: Likewise.
63040         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
63041         memxfrm.
63042         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
63043         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
63044         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
63045         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
63046         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
63047         Suggested by Paul Eggert.
63049 2010-08-14  Bruno Haible  <bruno@clisp.org>
63051         Tests for module 'astrxfrm'.
63052         * modules/astrxfrm-tests: New file.
63053         * tests/test-astrxfrm.c: New file.
63055         New module 'astrxfrm'.
63056         * lib/astrxfrm.h: New file.
63057         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
63058         * modules/astrxfrm: New file.
63060 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
63062         regex: Tweak doc.
63063         * doc/regex.texi (Overview): Don't mention regex.c.
63064         (GNU Regular Expression Compiling): Likewise.
63065         (Match-end-of-line Operator): Mention 'not_eol'.
63067 2010-08-14  Brian Gough  <bjg@gnu.org>
63068             Bruno Haible  <bruno@clisp.org>
63070         git-merge-changelog: add doc relating to use with bzr and hg.
63071         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
63073 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
63075         pthread: fix pthread.h creation for srcdir != builddir
63076         * modules/pthread (Makefile.am): Fix the rule to work also in a
63077         non-srcdir build.
63079 2010-08-13  Karl Berry  <karl@gnu.org>
63081         * doc/regex.texi (Predefined Syntaxes): @smallexample.
63082         * doc/posix-*/*: force line break before @url of POSIX
63083         specifications.
63084         Suggested by Werner Lemberg.
63086 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63088         strtod: fix const diagnostic
63089         * lib/strtod.c (strtod): Don't assign const char * to char *,
63090         as this elicits a warning from GCC when warnings are enabled.
63092 2010-08-10  Pádraig Brady  <P@draigbrady.com>
63093         and Eric Blake  <eblake@redhat.com>
63095         copy-acl: ignore ENOTSUP on HP-UX
63096         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
63097         so that it is available for HP-UX.
63098         * lib/copy-acl.c (qcopy_acl): Use it.
63099         Reported by Patrick M. Callahan.
63101 2010-08-10  Eric Blake  <eblake@redhat.com>
63103         open, chown: relax license
63104         * modules/open (License): Change to LGPLv2+, with consent by all
63105         authors, for use in augeas.
63106         * modules/chown (License): Likewise.
63107         * modules/lchown (Likewise): Likewise.
63108         Requested by Adam Stokes.
63110 2010-08-09  Karl Berry  <karl@gnu.org>
63112         * build-aux/ar-lib: new file, import from Automake.
63113         * config/srclist.txt: autocheck for updates.
63115 2010-08-09  Eric Blake  <eblake@redhat.com>
63117         readlinkat: adjust client modules
63118         * modules/areadlinkat (Depends-on): Use readlinkat, not
63119         symlinkat.
63120         * modules/areadlinkat-with-size (Depends-on): Likewise.
63122         mknod: be more vocal about danger of running tests as root
63123         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
63124         root, since that is just asking for problems.
63125         Suggested by Bruno Haible, based on a report by Rainer Tammer.
63127         readlinkat: split into its own module
63128         * modules/symlinkat: Split readlinkat...
63129         * modules/readlinkat: ...into separate module.
63130         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
63131         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
63132         * lib/symlinkat.c (readlinkat): Move...
63133         * lib/readlinkat.c: ...into new file.
63134         * modules/symlinkat-tests: Split readlinkat test...
63135         * modules/readlinkat-tests: ...into separate module.
63136         * tests/test-symlinkat.c: Split...
63137         * tests/test-readlinkat.c: ...into new file.
63138         * NEWS: Document the split.
63139         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63140         * lib/unistd.in.h (readlinkat): Likewise.
63141         Suggested by Bruno Haible.
63143 2010-08-08  Bruno Haible  <bruno@clisp.org>
63145         memxfrm: Speed up.
63146         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
63147         that usually only one call to strxfrm is necessary for each string
63148         part.
63149         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63151 2010-08-07  Karl Berry  <karl@gnu.org>
63153         * doc/posix-headers/limits.texi,
63154         * doc/posix-functions/malloc.texi,
63155         * doc/posix-functions/strsignal.texi: missing @item.
63156         * doc/ld-version-script.texi: spurious leading i.
63157         * doc/regex.texi (Interval Operators): no commas inside @var.
63159 2010-08-01  Bruno Haible  <bruno@clisp.org>
63161         Integrate the regex documentation.
63162         * doc/gnulib.texi: Define 'cn' index.
63163         (Regular expressions): New a chapter that includes regex.texi and
63164         regexprops-generic.texi.
63165         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
63166         syntax.
63168         Whitespace cleanup.
63169         * doc/regex.texi: Remove trailing spaces.
63171         Add regex documentation.
63172         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
63173         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
63174         Written by Kathy A. Hargreaves and Karl Berry.
63176 2010-08-01  Bruno Haible  <bruno@clisp.org>
63178         link: Update documentation.
63179         * doc/posix-functions/link.texi: Update regarding Solaris.
63181 2010-07-31  Bruno Haible  <bruno@clisp.org>
63183         Update modules list.
63184         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
63185         (String handling <string.h>): Add memcmp2, memxfrm.
63186         (Container data structures): Add xlist, xsublist, xoset.
63187         (Core language properties): Add alignof, unused-parameter.
63188         (Process control, Numeric conversion functions <stdlib.h>): Renamed
63189         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
63190         (Unibyte characters <ctype.h>): New section.
63191         (String handling <string.h>): New section.
63192         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
63193         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
63194         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
63195         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
63196         tan, tanh, tanl, y0, y1, yn.
63197         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
63198         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
63199         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
63200         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
63201         unlockpt, vdprintf, vdprintf-posix.
63202         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
63203         (File system functions): Add concat-filename, sys_file, sys_ioctl,
63204         xconcat-filename.
63205         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
63206         getdtablesize, pipe2, pipe2-safer.
63207         (Security): New section.
63208         (Networking functions): Add accept4.
63209         (Signal handling): Add sigpipe.
63210         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
63211         mbmemcasecoll.
63212         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
63213         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
63214         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
63215         pipe-filter-ii.
63216         (Misc): Add argp-version-etc, login_tty, parse-duration.
63218 2010-07-31  Bruno Haible  <bruno@clisp.org>
63220         Improve doc in MODULES.html.
63221         * modules/linkat (Description): Add the word "function".
63222         * modules/mkfifo (Description): Likewise.
63223         * modules/mknod (Description): Likewise.
63224         * modules/remove (Description): Likewise.
63225         * modules/renameat (Description): Likewise.
63226         * modules/stat (Description): Likewise.
63227         * modules/symlink (Description): Likewise.
63228         * modules/unlink (Description): Likewise.
63230 2010-07-31  Bruno Haible  <bruno@clisp.org>
63232         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
63233         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
63234         option --enable/disable-c++ instead of --enable/disable-cxx.
63235         * NEWS: Mention the change.
63237 2010-07-31  Bruno Haible  <bruno@clisp.org>
63239         readlink, areadlink: Relax test a bit.
63240         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
63241         alternative to ENOTDIR.
63242         * tests/test-areadlink.h (test_areadlink): Likewise.
63243         Reported by Rainer Tammer.
63245 2010-07-31  Bruno Haible  <bruno@clisp.org>
63247         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
63248         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
63249         character, perform the search using U_STRCHR.
63250         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
63251         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
63252         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
63253         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
63254         Suggested by Paolo Bonzini.
63256 2010-07-31  Bruno Haible  <bruno@clisp.org>
63258         unistr/u*-strstr: Fix dependencies.
63259         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
63260         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
63261         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
63263 2010-07-31  Bruno Haible  <bruno@clisp.org>
63265         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
63266         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
63267         the beginning of the loop.
63268         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
63269         cases in 'switch' statement.
63271         unistr/u8-strchr: Fix several bugs.
63272         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
63273         the string. When not found, return NULL, not a pointer near the end.
63275         More tests for unistr/u8-strchr.
63276         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
63277         that the function does not read past the first occurrence of the byte
63278         being searched.
63279         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
63280         * tests/unistr/test-u16-strchr.c (main): New function.
63281         * tests/unistr/test-u32-strchr.c (main): New function.
63283 2010-07-31  Bruno Haible  <bruno@clisp.org>
63285         posix-modules: Ignore backup files of documentation files.
63286         * posix-modules: grep only through files named *.texi.
63288 2010-07-31  Bruno Haible  <bruno@clisp.org>
63290         symlinkat: Fix documentation.
63291         * doc/posix-functions/readlinkat.texi: Fix module name.
63293 2010-07-31  Bruno Haible  <bruno@clisp.org>
63295         fchownat: Replace also when chown has the trailing slash bug.
63296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
63297         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
63298         introduced on 2010-04-10.
63299         Reported by Rainer Tammer.
63301 2010-07-31  Bruno Haible  <bruno@clisp.org>
63303         linkat: Work around AIX 7.1 bug.
63304         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
63305         whether linkat handles trailing slash correctly. If not, replace linkat
63306         and define LINKAT_TRAILING_SLASH_BUG.
63307         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
63308         check whether (fd1,file1) points to a directory if file1 or file2 ends
63309         in a slash. Code taken from lib/link.c.
63310         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
63311         Reported by Rainer Tammer.
63313 2010-07-31  Bruno Haible  <bruno@clisp.org>
63315         Correctly determine whether pow is available in libc on AIX 7 with xlc.
63316         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
63317         This disables an xlc optimization that was causing wrong test results.
63318         Reported by Rainer Tammer.
63320 2010-07-31  Bruno Haible  <bruno@clisp.org>
63322         iconv: Work around AIX 6.1..7.1 bug.
63323         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
63324         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
63325         cross-compiling, guess no on all versions of AIX.
63326         Reported by Rainer Tammer.
63328 2010-07-31  Bruno Haible  <bruno@clisp.org>
63330         readlink: Relax test a bit.
63331         * tests/test-readlink.h (test_readlink): Allow different errno value
63332         when readlink is called with a file name that ends in / and refers to
63333         a file.
63334         Suggested by Eric Blake.
63335         Reported by Rainer Tammer.
63337 2010-07-31  Bruno Haible  <bruno@clisp.org>
63339         copysign: Does not require -lm on glibc systems.
63340         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
63341         gl_COMMON_DOUBLE_MATHFUNC.
63342         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
63344 2010-07-31  Bruno Haible  <bruno@clisp.org>
63346         duplocale: Work around AIX 7.1 bug.
63347         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
63348         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
63349         * lib/duplocale.c (rpl_duplocale): Update comment.
63350         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
63351         Reported by Rainer Tammer.
63353 2010-07-30  Bruno Haible  <bruno@clisp.org>
63355         dirfd: Avoid link error on AIX 7.1.
63356         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
63357         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
63358         exist, set REPLACE_DIRFD.
63359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
63360         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
63361         * doc/posix-functions/dirfd.texi: Update.
63362         Reported by Rainer Tammer.
63364 2010-07-30  Eric Blake  <eblake@redhat.com>
63366         strtod: next round of AIX fixes
63367         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
63368         exponent.
63369         * tests/test-strtod.c (main): Enhance tests.
63370         * doc/posix-functions/strtod.texi (strtod): Document next bug.
63371         Reported by Rainer Tammer.
63373         futimens: fix configure check
63374         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
63375         Reported by Bruno Haible.
63377 2010-07-30  Bruno Haible  <bruno@clisp.org>
63379         getline: Update regarding AIX.
63380         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
63381         Reported by Rainer Tammer.
63383 2010-07-30  Bruno Haible  <bruno@clisp.org>
63385         wcwidth: Drop replacement on AIX 7.
63386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
63387         AIX 7.
63388         Reported by Rainer Tammer.
63390 2010-07-30  Bruno Haible  <bruno@clisp.org>
63392         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
63393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
63394         a 'char *'.
63395         Reported by Rainer Tammer.
63397 2010-07-30  Bruno Haible  <bruno@clisp.org>
63399         unlink: Update regarding AIX.
63400         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
63401         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
63402         Reported by Rainer Tammer.
63404 2010-07-30  Bruno Haible  <bruno@clisp.org>
63406         symlink: Update regarding AIX.
63407         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
63408         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
63409         Reported by Rainer Tammer.
63411 2010-07-30  Bruno Haible  <bruno@clisp.org>
63413         strndup: Update regarding AIX.
63414         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
63415         AIX 7.
63416         Reported by Rainer Tammer.
63418 2010-07-30  Bruno Haible  <bruno@clisp.org>
63420         stat: Update regarding AIX.
63421         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
63422         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
63423         Reported by Rainer Tammer.
63425 2010-07-30  Bruno Haible  <bruno@clisp.org>
63427         truncl: Fix autoconf test.
63428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
63429         whether truncl works.
63430         Reported by Rainer Tammer.
63432 2010-07-30  Bruno Haible  <bruno@clisp.org>
63434         round: Update regarding AIX.
63435         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
63436         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
63437         Reported by Rainer Tammer.
63439 2010-07-30  Bruno Haible  <bruno@clisp.org>
63441         rename: Update regarding AIX.
63442         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
63443         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
63444         Reported by Rainer Tammer.
63446 2010-07-30  Bruno Haible  <bruno@clisp.org>
63448         printf.m4: Update regarding AIX.
63449         * m4/printf.m4: Update comments regarding AIX.
63450         Reported by Rainer Tammer.
63452 2010-07-30  Bruno Haible  <bruno@clisp.org>
63454         iconv: Update regarding AIX.
63455         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
63456         AIX 7.
63457         Reported by Rainer Tammer.
63459 2010-07-30  Bruno Haible  <bruno@clisp.org>
63461         getopt: Update regarding AIX.
63462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
63463         no on AIX.
63464         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
63465         Reported by Rainer Tammer.
63467 2010-07-30  Bruno Haible  <bruno@clisp.org>
63469         ldexpl; Update regarding AIX.
63470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
63471         on AIX 7.
63472         Reported by Rainer Tammer.
63474 2010-07-30  Bruno Haible  <bruno@clisp.org>
63476         frexpl: Update regarding AIX.
63477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
63478         on AIX 7.
63479         Reported by Rainer Tammer.
63481 2010-07-30  Bruno Haible  <bruno@clisp.org>
63483         open, fopen: Update regarding AIX.
63484         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
63485         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63486         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
63487         * doc/posix-functions/fopen.texi: Likewise.
63488         Reported by Rainer Tammer.
63490 2010-07-30  Bruno Haible  <bruno@clisp.org>
63492         chown: Update doc regarding AIX.
63493         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
63494         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
63495         Reported by Rainer Tammer.
63497 2010-07-30  Eric Blake  <eblake@redhat.com>
63499         strtod: fix bug in replacement function on AIX
63500         * lib/strtod.c (strtod): Special case broken "0x" parse in
63501         underlying strtod.
63502         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
63503         * doc/posix-functions/strtod.texi (strtod): Likewise.
63504         Reported by Rainer Tammer.
63506 2010-07-30  Bruno Haible  <bruno@clisp.org>
63508         mbrlen: Fix cross-compilation guess for AIX.
63509         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
63510         guess. Leftover from 2008-12-22.
63512 2010-07-30  Bruno Haible  <bruno@clisp.org>
63514         mbrtowc: Fix cross-compilation guess for AIX.
63515         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
63516         guess. Leftover from 2008-12-21.
63518 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
63520         init.sh: work around trap limitation of some shells
63521         * tests/init.sh (setup_): Move exit trap outside of shell function.
63523 2010-07-29  Eric Blake  <eblake@redhat.com>
63525         strtod: aid debugging
63526         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
63527         understanding why strtod is rejected.
63529 2010-07-28  Bruno Haible  <bruno@clisp.org>
63531         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
63532         * lib/unistr/u8-chr.c: Include <string.h>.
63533         * tests/unistr/test-u8-chr.c: Likewise.
63534         * tests/unistr/test-u16-chr.c: Likewise.
63535         * tests/unistr/test-u32-chr.c: Likewise.
63536         * tests/unistr/test-u8-strchr.c: Likewise.
63537         * tests/unistr/test-u16-strchr.c: Likewise.
63538         * tests/unistr/test-u32-strchr.c: Likewise.
63539         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
63540         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
63541         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
63542         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
63544 2010-07-28  Bruno Haible  <bruno@clisp.org>
63546         Use spaces for indentation, not tabs.
63547         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
63549 2010-07-27  Bruno Haible  <bruno@clisp.org>
63551         mbspcasecmp: Fix function specification.
63552         * lib/string.in.h (mbspcasecmp): Fix specification comment.
63553         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
63554         Reported by Eric Blake <eblake@redhat.com>.
63556 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
63558         timespec: use cast and not conditional, as truncation isn't possible
63559         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
63560         instead of a conditional.  Comment about the situation in more detail.
63561         This undoes most of the 2009-10-29 patch.
63563 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
63565         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
63566         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
63567         * lib/unistr/u8-strchr.c: Likewise.
63568         * modules/unistr/u8-chr: Depend on memchr.
63570         unistr/u*-strchr: add tests
63571         * modules/unistr/u8-strchr-tests: New file.
63572         * modules/unistr/u16-strchr-tests: New file.
63573         * modules/unistr/u32-strchr-tests: New file.
63574         * tests/unistr/test-strchr.h: New file.
63575         * tests/unistr/test-u8-strchr.c: New file.
63576         * tests/unistr/test-u16-strchr.c: New file.
63577         * tests/unistr/test-u32-strchr.c: New file.
63579         unistr/u*-chr: test multibyte sequences more
63580         * tests/unistr/test-chr.h: Do complete testing of the characters in the
63581         test vector.
63582         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
63583         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
63584         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
63586         unistr/u*-chr: test multibyte sequences
63587         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63589         unistr/u*-chr: prepare for multibyte tests
63590         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63591         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63592         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63593         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63594         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63595         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63597 2010-07-18  Bruno Haible  <bruno@clisp.org>
63599         unistr/u8-strchr: Optimize non-ASCII argument case.
63600         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63601         because the first byte often matches anyway.
63602         Reported by Pádraig Brady <P@draigbrady.com>.
63604 2010-07-15  Karl Berry  <karl@gnu.org>
63606         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63608 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63610         getcwd: on Solaris, work better if ancestors are inaccessible
63611         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63612         buffer and size, try again with a large buffer.  This works better
63613         on Solaris, since its getcwd succeeds even if the path to the root
63614         is inaccessible, and this is helpful in common cases such as .zfs
63615         hidden directories.  Problem reported by J Chapman Flack in
63616         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63617         Use system getcwd if it's declared, not merely if it's partly
63618         working; use the partly-working test only to avoid needless effort
63619         if the system getcwd fails.
63620         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63621         comment that was already obsolete and is now even more obsolete.
63622         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63623         now might call strdup.
63625 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63627         pthread: Add enough so that coreutils/src/sort.c compiles.
63628         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63629         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63630         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63631         Include <sys/types.h>, in case it defines pthread_t.
63632         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63633         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63634         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63635         (pthread_rwlockattr_t, pthread_spinlock_t):
63636         New typedefs, if HAVE_PTHREAD_T is not defined.
63637         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63638         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63639         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63640         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63641         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63642         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63643         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63644         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63645         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63646         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63647         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63648         New macros.
63649         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63650         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63651         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63652         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63653         (pthread_spin_unlock): New dummy functions.
63654         (pthread_create): Return EAGAIN; don't set errno.
63655         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63656         require AC_C_INLINE.
63657         * modules/pthread (Depends-on): Add sched, time.
63658         (pthread.h): Use AM_V_GEN.
63660 2010-07-13  Bruno Haible  <bruno@clisp.org>
63662         striconveh: Don't malloc memory if the result buffer is sufficient.
63663         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63664         buffer if its size is sufficient.
63665         Reported by Ludovic Courtès <ludo@gnu.org>.
63667 2010-07-13  Bruno Haible  <bruno@clisp.org>
63669         strtod: Add safety check.
63670         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63672 2010-07-12  Bruno Haible  <bruno@clisp.org>
63674         Unify tests that set gl_cv_func_ldexpl_no_libm.
63675         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63676         gl_FUNC_LDEXPL.
63677         (gl_FUNC_LDEXPL): Invoke it.
63678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63680 2010-07-12  Bruno Haible  <bruno@clisp.org>
63682         Unify tests that set gl_cv_func_ldexp_no_libm.
63683         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63684         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63685         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63686         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63687         * modules/strtod (Files): Add m4/ldexp.m4.
63689 2010-07-12  Bruno Haible  <bruno@clisp.org>
63691         Unify tests that set gl_cv_func_frexpl_no_libm.
63692         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63693         gl_FUNC_FREXPL_NO_LIBM.
63694         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63697 2010-07-12  Bruno Haible  <bruno@clisp.org>
63699         Unify tests that set gl_cv_func_frexp_no_libm.
63700         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63701         gl_FUNC_FREXP_NO_LIBM.
63702         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63703         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63705 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63707         memcoll: clarify sizes versus lengths, document better, and tweak perf
63708         * lib/memcoll.c (strcoll_loop, memcoll0):
63709         Improve quality of descriptive comments.  Name variables
63710         consistently as to whether they are lengths (which do not include
63711         terminating null) versus sizes (which do).
63712         * lib/xmemcoll.c (xmemcoll0): Likewise.
63713         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63714         returned when s1size == 0; this is easier to compile and saves
63715         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63717 2010-07-12  Bruno Haible  <bruno@clisp.org>
63719         Tests for module '_Exit'.
63720         * modules/_Exit-tests: New file.
63721         * tests/test-_Exit.sh: New file.
63722         * tests/test-_Exit.c: New file.
63724         New module '_Exit'.
63725         * lib/stdlib.in.h (__attribute__): New macro.
63726         (_Exit): New declaration.
63727         * lib/_Exit.c: New file.
63728         * m4/_Exit.m4: New file.
63729         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63730         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63731         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63732         * modules/_Exit: New file.
63733         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63734         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63736 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63738         strtod: make it more-accurate typically, and don't require libm
63739         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63740         Include limits.h.  Don't include string.h.
63741         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63742         (locale_isspace): New function, so that no casts are needed to
63743         check whether *s is a space.
63744         (ldexp): Provide an unused dummy if not available.
63745         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63746         (strtod): Use them.  This implementation prefers to use the
63747         underlying strtod if available, falling back on our own code
63748         only to fix known bugs.  This is more likely to produce an
63749         accurate result.  Also, it avoids the use of libm functions.
63750         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63751         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63752         was absent, but it caused a test failure with coreutils.
63753         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63754         with libm.
63755         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63756         * modules/strtod-tests (Makefile.am): Likewise.
63758 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63759             Bruno Haible  <bruno@clisp.org>
63761         unistr/u8-strchr: Optimize ASCII argument case.
63762         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63764 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63766         (x)memcoll: minor tweaks
63767         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63768         is after the type that it qualifies.
63769         (memcoll0): Likewise.
63770         * lib/memcoll.h (memcoll0): Likewise.
63771         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63772         * lib/xmemcoll.h (xmemcoll0): Likewise.
63773         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63774         differs from memcoll in that the NUL byte is part of the argument.
63775         Omit the abort-checks, as performance is a real issue here.  Plus,
63776         the checks were wrong anyway (an off-by-one error).  Omit local
63777         variable 'diff', as it's a bit clearer that way.
63778         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63779         no longer needed.
63781 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63783         (x)memcoll: speedup when input is known to be NUL delimited
63784         * lib/memcoll.c: Include stdlib.
63785         (memcoll0): New function.
63786         (strcoll_loop): New function, refactored for use in both memcoll
63787         and memcoll0.
63788         * lib/memcoll.h (memcoll0): Add prototype.
63789         * lib/xmemcoll.c (xmemcoll0): New function.
63790         (collate_error): New function, refactored for use in both xmemcoll
63791         and xmemcoll0.
63792         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63793         * m4/memcoll.m4: add inline invocation.
63795 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63797         * build-aux/bootstrap: Remove any local translations
63798         from the translation project synchronization directory,
63799         so that local only translations are not distributed.
63801 2010-07-04  Bruno Haible  <bruno@clisp.org>
63803         fsusage: Clarify which code applies to which platforms.
63804         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63805         platform.
63806         * lib/fsusage.c (get_fs_usage): Likewise.
63808 2010-07-04  Bruno Haible  <bruno@clisp.org>
63810         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63811         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63812         Reported by Martin Lambers <marlam@marlam.de>.
63814 2010-07-04  Jim Meyering  <meyering@redhat.com>
63816         hash: once again explicitly disallow insertion of NULL
63817         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63818         inserting a NULL pointer cannot work with these functions.
63819         Add a comment with details.
63820         This reverts part of the 2010-07-01 commit, 5bef1a35
63821         "hash: extend module to deal with non-pointer keys".
63823 2010-07-01  Bruno Haible  <bruno@clisp.org>
63825         stdbool: Update doc.
63826         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63827         Info from Christian Weisgerber <naddy@mips.inka.de>.
63829 2010-07-01  Jim Meyering  <meyering@redhat.com>
63831         hash: extend module to deal with non-pointer keys
63832         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63833         but that allows insertion of non-pointer entries.
63834         Do not disallow an ENTRY value of NULL.
63835         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63836         * lib/hash.h (hash_insert0): Declare.
63838 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63840         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63841         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63842         not present (i.e. with autoconf 2.59 and when using gettextize, not
63843         gnulib), require AC_GNU_SOURCE instead.
63845 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63847         idpriv-drop: Fix tests.
63848         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63849         not to the test-idpriv-droptemp program.
63851 2010-06-29  Bruno Haible  <bruno@clisp.org>
63853         string: Fix syntax error with g++ 2.96.
63854         * lib/string.in.h (__pure__): Remove definition.
63855         (_GL_ATTRIBUTE_PURE): New macro.
63856         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63857         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63858         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63860 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63862         unitypes: Fix bug introduced on 2010-05-18.
63863         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63865 2010-06-22  Eric Blake  <eblake@redhat.com>
63867         memmem: slight optimization
63868         * lib/str-two-way.h (critical_factorization): Update comments.
63869         Reduce work during factorization phase.
63870         Reported by Carlos Bueno <carlos@bueno.org>.
63872 2010-06-21  Bruno Haible  <bruno@clisp.org>
63874         Fix HAVE_CALLOC_POSIX misnomer.
63875         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63876         !HAVE_CALLOC_POSIX.
63877         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63878         HAVE_CALLOC_POSIX.
63879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63880         instead of HAVE_CALLOC_POSIX.
63881         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63882         HAVE_CALLOC_POSIX.
63884         Use modern idiom for calloc() replacement.
63885         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63886         AC_FUNC_CALLOC.
63887         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63888         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63889         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63890         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63891         (gl_REPLACE_CALLOC): New macro.
63893 2010-06-21  Bruno Haible  <bruno@clisp.org>
63895         Fix HAVE_REALLOC_POSIX misnomer.
63896         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63897         !HAVE_REALLOC_POSIX.
63898         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63899         HAVE_REALLOC_POSIX.
63900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63901         instead of HAVE_REALLOC_POSIX.
63902         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63903         HAVE_REALLOC_POSIX.
63905         Use modern idiom for realloc() replacement.
63906         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63907         AC_FUNC_REALLOC.
63908         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63909         Autoconf's AC_FUNC_REALLOC.
63910         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63911         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63912         (gl_REPLACE_REALLOC): New macro.
63913         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63915 2010-06-21  Bruno Haible  <bruno@clisp.org>
63917         Fix HAVE_MALLOC_POSIX misnomer.
63918         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63919         !HAVE_MALLOC_POSIX.
63920         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63921         HAVE_MALLOC_POSIX.
63922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63923         instead of HAVE_MALLOC_POSIX.
63924         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63925         HAVE_MALLOC_POSIX.
63927         Use modern idiom for malloc() replacement.
63928         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63929         AC_FUNC_MALLOC.
63930         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63931         Autoconf's AC_FUNC_MALLOC.
63932         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63933         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63934         (gl_REPLACE_MALLOC): New macro.
63935         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63937 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63939         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63940         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63941         This macro takes 3 arguments, not 4.
63943 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63945         ipv6: fix detection under mingw
63946         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63947         in6_addr.
63949 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63951         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63952         that strtod() works when cross-compiling to a glibc version known
63953         to work.
63955 2010-06-15  Bruno Haible  <bruno@clisp.org>
63957         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63959 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63961         select: Correct timeout.
63962         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63964 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63966         git-version-gen: init shell var to avoid env var influence
63967         * build-aux/git-version-gen (v): Init shell var to empty.
63969 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63971         priv-set: Don't assume that priv.h exists merely because getppriv does.
63972         See Jan Andersen's bug report about AIX 5L in
63973         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63974         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63975         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63976         * lib/priv-set.h: Likewise.
63977         * tests/test-priv-set.c: Likewise.
63979 2010-06-13  Bruno Haible  <bruno@clisp.org>
63981         relocatable: Make it easier to test whether to install wrappers.
63982         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63983         RELOCATABLE_VIA_WRAPPER.
63985 2010-06-13  Bruno Haible  <bruno@clisp.org>
63987         gnulib-tool: Display specified modules and dependencies differently.
63988         * gnulib-tool (func_show_module_list): New function.
63989         (func_import, func_create_testdir): Invoke it.
63990         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63992 2010-06-13  Bruno Haible  <bruno@clisp.org>
63994         gnulib-tool: Align code of func_import and func_create_testdir.
63995         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63996         specified_modules.
63998 2010-06-12  Jim Meyering  <meyering@redhat.com>
64000         test-inttostr: avoid spurious failure on Solaris 9
64001         * tests/test-inttostr.c (main): Skip the test when snprintf fails
64002         to accept "%ju".  Reported by Bruno Haible.
64004 2010-06-11  Jim Meyering  <meyering@redhat.com>
64006         test-sys_socket: mark variables as used more readably
64007         * tests/test-sys_socket.c (main): Mark otherwise unused variables
64008         as "used" explicitly via (void) statement casts.  This is more
64009         readable than using them in an artificial return expression.
64010         Suggestion from Bruno Haible.
64012 2010-06-11  Bruno Haible  <bruno@clisp.org>
64014         Avoid some more warnings from "gcc -Wwrite-strings".
64015         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
64016         to 'const char *'.
64017         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
64018         * tests/test-c-strcasestr.c (main): Likewise.
64019         * tests/test-mbscasestr1.c (main): Likewise.
64020         * tests/test-mbscasestr2.c (main): Likewise.
64021         * tests/test-memmem.c (main): Likewise.
64022         * tests/test-strstr.c (main): Likewise.
64023         * tests/test-strcasestr.c (main): Likewise.
64025 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64027         init.sh: change framework_failure_ to fail with status 99, not 1
64028         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
64029         automake's parallel-tests rule that this is an unexpected failure,
64030         even if the test is listed in XFAIL_TESTS.
64032 2010-06-11  Jim Meyering  <meyering@redhat.com>
64034         test-inttostr: avoid warnings about 4-6KB literal strings
64035         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
64036         Include "macros.h", for its definition of ASSERT.
64037         (CK): s/assert/ASSERT/
64038         * modules/inttostr-tests (Files): Add macros.h.
64040         init.sh: don't use $ME_ or skip_ before they are defined
64041         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
64042         their first uses.  Also hoist their companions: warn_, fail_,
64043         framework_failure_, $stderr_fileno.  Prompted by a patch from
64044         Stefano Lattarini.
64046         test-sys_socket: avoid set-but-not-used warnings from gcc
64047         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
64048         avoid warning about set-but-not-used variables.
64050         test-xvasprintf: avoid 'const' discard warnings
64051         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
64052         "const" when assigning from literal strings.
64053         (test_xasprintf): Add "void" in function argument list to placate
64054         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
64056         tests: avoid compilation warnings in argmatch and exclude tests...
64057         in packages that define ARGMATCH_DIE_DECL, like coreutils.
64058         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
64059         Since it always exits, declare with the "noreturn" attribute.
64060         * tests/test-argmatch.c: Likewise.
64062         tests: avoid 'const' discard warnings in mbsstr tests
64063         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
64064         * tests/test-mbsstr2.c (main): Likewise.
64066         test-verify: avoid warning from gcc's -Wmissing-declarations
64067         * tests/test-verify.c (function): Declare to be static.
64069         test-inttostr.c: include <string.h> for use of strcmp
64070         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
64072         test-linkat: avoid failed assertion on "other" architectures
64073         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
64074         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
64075         sparc: https://bugs.launchpad.net/bugs/591968
64077 2010-06-11  Jim Meyering  <meyering@redhat.com>
64079         printf.m4: avoid autoconf's "Expanded Before Required" warning
64080         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
64081         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
64082         autoconf warning.
64084 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
64086         Replacement header templates are now named with ".in", not "_".
64087         * doc/gnulib-intro.texi: Correct.
64089 2010-06-10  Jim Meyering  <meyering@redhat.com>
64091         inttostr-tests: depend on snprintf, not snprintf-posix
64092         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
64093         snprintf-posix, to avoid this aclocal failure:
64094           missing file gnulib-tests/vasnprintf.c
64095           configure.ac:45: error: expected source file, required through \
64096           AC_LIBSOURCES, not found
64098 2010-06-10  Jim Meyering  <meyering@redhat.com>
64100         inttostr: add a new function, inttostr, and tests
64101         The namesake function was not available.  The existence of the
64102         template file, inttostr.c makes its addition nontrivial.
64103         * lib/anytostr.c: Rename from inttostr.c.
64104         (anytostr): Rename from inttostr.
64105         * lib/inttostr.c: New file.
64106         * modules/inttostr (Files): Add anytostr.c.
64107         (Makefile.am): Set lib_SOURCES instead of ...
64108         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
64109         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
64110         * lib/offtostr.c: Likewise.
64111         * lib/uinttostr.c: Likewise.
64112         * lib/umaxtostr.c: Likewise.
64113         * modules/inttostr-tests: New file.
64114         * tests/test-inttostr.c: New file.  Test these functions.
64116 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
64117             Bruno Haible  <bruno@clisp.org>
64119         Add "Extending Gnulib" chapter to manual.
64120         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
64121         chapter.
64122         (Extending Gnulib): New chapter.
64123         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
64124         chapter.
64126 2010-06-09  Bruno Haible  <bruno@clisp.org>
64128         Avoid relocwrapper link errors due to gnulib replacement functions.
64129         * lib/areadlink.c: Use the system's malloc, realloc functions.
64130         (areadlink): Set errno to ENOMEM explicitly.
64131         * modules/areadlink (Depends-on): Remove malloc-posix.
64132         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64134 2010-06-09  Bruno Haible  <bruno@clisp.org>
64136         Avoid relocwrapper link errors due to gnulib replacement functions.
64137         * lib/canonicalize-lgpl.c: Use the system's malloc function.
64138         * lib/malloca.c: Likewise.
64139         * lib/relocatable.c: Likewise.
64140         * lib/progreloc.c: Use the system's malloc, sprintf functions.
64141         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
64142         * lib/setenv.c: Use the system's malloc, realloc functions.
64143         * lib/strerror.c: Use the system's sprintf function.
64144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64146 2010-06-04  Bruno Haible  <bruno@clisp.org>
64148         Prefer documented low-level autoconf macro names.
64149         * m4/lib-link.m4: Use m4_translit instead of translit.
64150         * m4/environ.m4: Likewise.
64151         * m4/mathfunc.m4: Likewise.
64152         * m4/onceonly.m4: Likewise.
64153         * m4/stdint.m4: Likewise.
64154         Suggested by Eric Blake.
64156 2010-06-04  Martin Lambers  <marlam@marlam.de>
64157             Bruno Haible  <bruno@clisp.org>
64159         havelib: Allow library names with '+' characters.
64160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64161         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
64163 2010-06-09  Bruno Haible  <bruno@clisp.org>
64165         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
64166         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
64167         realloc failed.
64169 2010-06-08  Peter Simons  <simons@cryp.to>
64171         maint.mk: make the news-check rule more configurable
64172         * top/maint.mk (news-check-lines-spec): New variable.
64173         (news-check): Use "sed -n 1,10p" in place of "head".
64175 2010-06-07  Jim Meyering  <meyering@redhat.com>
64177         do-release-commit-and-tag: fix typo in --help
64178         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
64180         regex: avoid new dead-code warning with gcc-4.6.0
64181         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
64182         if-block containing a while-loop.  It's been unused for at least
64183         5 years.
64185 2010-06-05  Bruno Haible  <bruno@clisp.org>
64187         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
64188         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
64190 2010-06-04  Bruno Haible  <bruno@clisp.org>
64192         Update to GNU gettext 0.18.1.
64193         * modules/gettext (configure.ac): Require gettext infrastructure from
64194         version 0.18.1.
64196 2010-06-03  Bruno Haible  <bruno@clisp.org>
64198         Don't use AC_LIBOBJ with file names in subdirectories.
64199         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
64200         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
64201         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
64202         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
64203         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
64204         gl_LIBUNISTRING_LIBSOURCE.
64205         (Makefile.am): Augment lib_SOURCES here, conditionally.
64206         * NEWS: Drop requirement for Automake option 'subdir-objects'.
64208 2010-06-03  Bruno Haible  <bruno@clisp.org>
64210         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
64211         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
64212         expansion does not end with a newline.
64213         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
64214         unnecessary newline.
64216 2010-06-03  Bruno Haible  <bruno@clisp.org>
64218         Reduce dependencies.
64219         * tests/test-quotearg.h: New file, extracted from
64220         tests/test-quotearg.c.
64221         * tests/test-quotearg-simple.c: New file, extracted from
64222         tests/test-quotearg.c.
64223         * tests/test-quotearg.c: Don't include <ctype.h>.
64224         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
64225         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
64226         use_quote_double_quotes, use_quotearg_colon): Moved to
64227         tests/test-quotearg.h.
64228         (results_g, flag_results, custom_quotes, custom_results): Moved
64229         to tests/test-quotearg-simple.c.
64230         (main): Moved the part that does not depend on gettext to
64231         tests/test-quotearg-simple.c. Return 77 if the test cannot be
64232         performed.
64233         * modules/quotearg-simple: New file.
64234         * modules/quotearg-simple-tests: New file.
64235         * modules/quotearg (Depends-on): Add quotearg-simple.
64236         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
64237         (Files): Add tests/test-quotearg.h.
64238         Reported by Paolo Bonzini.
64240 2010-06-03  Bruno Haible  <bruno@clisp.org>
64242         Reduce dependencies.
64243         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
64245 2010-06-03  Bruno Haible  <bruno@clisp.org>
64247         time: Undefine more broken macros.
64248         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
64249         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
64250         Reported by Eric Blake.
64252 2010-06-03  Bruno Haible  <bruno@clisp.org>
64254         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
64255         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
64256         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
64257         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
64258         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
64259         Reported by Ludovic Courtès <ludo@gnu.org>.
64261 2010-06-02  Eric Blake  <eblake@redhat.com>
64263         time: work with mingw + pthreads-win32 library
64264         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
64265         if timespec is defined only in pthread.h.
64266         * modules/time (Makefile.am): Substitute it.
64267         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
64268         <pthread.h>, when needed.
64269         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
64270         from the library.
64272 2010-05-31  Bruno Haible  <bruno@clisp.org>
64274         Avoid expanding two macros in the wrong order.
64275         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
64276         gl_LIBUNISTRING if it is defined.
64277         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
64278         autoconf >= 2.64.
64279         Reported by Ludovic Courtès <ludo@gnu.org>.
64281 2010-05-27  Jim Meyering  <meyering@redhat.com>
64283         maint.mk: also prohibit "#undef" of always-defined symbols
64284         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
64285         Allow more than one space before the symbol name.
64286         (sc_prohibit_always-defined_macros): Use grep's -E, now that
64287         the regexp uses alternation.
64289 2010-05-26  Eric Blake  <eblake@redhat.com>
64291         maint.mk: avoid echo -e
64292         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
64293         Convert all uses of echo -* to printf.
64294         Reported by Matthias Bolte.
64296 2010-05-25  Bruno Haible  <bruno@clisp.org>
64298         Update to GNU gettext 0.18, part 2.
64299         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
64300         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
64302 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64304         Add missing include in test-pwrite.c.
64305         * tests/test-pwrite.c: Include string.h, for strcmp.
64307 2010-05-24  Bruno Haible  <bruno@clisp.org>
64309         * NEWS: Mention requirement for Automake option 'subdir-objects'.
64311 2010-05-24  Bruno Haible  <bruno@clisp.org>
64313         Don't use conversion with transliteration in u{8,16,32}_strcoll.
64314         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
64315         iconveh_error argument.
64316         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
64317         U_STRCONV_TO_LOCALE.
64318         * lib/unistr/u16-strcoll.c: Likewise.
64319         * lib/unistr/u32-strcoll.c: Likewise.
64320         * modules/unistr/u8-strcoll (Depends-on): Add
64321         uniconv/u8-strconv-to-enc, localcharset. Remove
64322         uniconv/u8-strconv-to-locale.
64323         (configure.ac): Bump version number.
64324         * modules/unistr/u16-strcoll (Depends-on): Add
64325         uniconv/u16-strconv-to-enc, localcharset. Remove
64326         uniconv/u16-strconv-to-locale.
64327         (configure.ac): Bump version number.
64328         * modules/unistr/u32-strcoll (Depends-on): Add
64329         uniconv/u32-strconv-to-enc, localcharset. Remove
64330         uniconv/u32-strconv-to-locale.
64331         (configure.ac): Bump version number.
64333 2010-05-24  Bruno Haible  <bruno@clisp.org>
64335         Avoid a test failure on NetBSD 5.0.
64336         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
64337         an iconv() bug.
64339 2010-05-24  Bruno Haible  <bruno@clisp.org>
64341         Adjust #include directive style.
64342         * modules/regex (Includes): Recommend to write <regex.h>.
64344 2010-05-24  Bruno Haible  <bruno@clisp.org>
64346         regex: Don't require alloca.
64347         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
64348         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
64349         only inside if (0).
64351 2010-05-23  Jim Meyering  <meyering@redhat.com>
64353         test-renameat.c: include <sys/stat.h>
64354         * tests/test-renameat.c: Include <sys/stat.h>; required for
64355         definition of S_IS* macros.
64357 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
64359         Update maintainer documentation for 'relocatable-prog' module.
64360         * doc/relocatable-maint.texi: Update.
64361         Comments by Bruno Haible.
64363 2010-05-23  Bruno Haible  <bruno@clisp.org>
64365         git-merge-changelog: Enable --split-merged-entry by default.
64366         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
64367         (usage): Don't mention this option any more.
64368         Reported by Ralf Wildenhues.
64370 2010-05-23  Jim Meyering  <meyering@redhat.com>
64372         test-pwrite: do not leave behind a test file named "out"
64373         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
64374         The trivial-looking use of init.sh is really necessary.
64375         It ensures that the temporary file, "out", is created in
64376         a temporary directory, and removed upon termination.
64377         * tests/test-pwrite.sh: Re-add file.
64378         * modules/pwrite-tests: Reference it.
64380 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64382         Fix output redirection buglet in init.sh.
64383         * tests/init.sh: Fix redirection of stderr.
64385 2010-05-20  Simon Josefsson  <simon@josefsson.org>
64387         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
64389 2010-05-17  Simon Josefsson  <simon@josefsson.org>
64391         * modules/valgrind-tests: New file.
64392         * m4/valgrind-tests.m4: New file.
64393         * doc/valgrind-tests.texi: New file.
64394         * doc/gnulib.texi (Running self-tests under valgrind): New
64395         section.
64397 2010-05-19  Bruno Haible  <bruno@clisp.org>
64399         Clean up dead code in recent commit.
64400         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
64401         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
64402         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
64403         Suggested by Paolo Bonzini.
64405 2010-05-19  Bruno Haible  <bruno@clisp.org>
64407         Avoid valgrind error reports from libunistring.
64408         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
64409         * modules/libunistring (Files): Add it.
64410         * modules/libunistring-optional (Files): Likewise.
64412 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
64413             Bruno Haible  <bruno@clisp.org>
64415         New module 'libunistring-optional'.
64416         * modules/libunistring-optional: New file.
64417         * m4/libunistring-base.m4: New file.
64418         * m4/libunistring-optional.m4: New file.
64419         * lib/unicase.in.h: Renamed from lib/unicase.h.
64420         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
64421         * lib/unictype.in.h: Renamed from lib/unictype.h.
64422         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
64423         * lib/uniname.in.h: Renamed from lib/uniname.h.
64424         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
64425         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
64426         * lib/unistr.in.h: Renamed from lib/unistr.h.
64427         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
64428         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
64429         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
64430         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
64431         gl_LIBUNISTRING. If the library was found, determine the installed
64432         version and set LIBUNISTRING_VERSION.
64433         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
64434         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
64435         handle a configuration option --with-included-libunistring.
64436         * modules/libunistring (Files): Add m4/absolute-header.m4.
64437         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
64438         Add m4/libunistring-base.m4.
64439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64440         (Makefile.am): Build unicase.h from unicase.in.h.
64441         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
64442         Add m4/libunistring-base.m4.
64443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64444         (Makefile.am): Build uniconv.h from uniconv.in.h.
64445         * modules/unictype/base (Files): Use unictype.in.h instead of
64446         unictype.h. Add m4/libunistring-base.m4.
64447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64448         (Makefile.am): Build unictype.h from unictype.in.h.
64449         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
64450         Add m4/libunistring-base.m4.
64451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64452         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
64453         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
64454         Add m4/libunistring-base.m4.
64455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64456         (Makefile.am): Build uniname.h from uniname.in.h.
64457         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
64458         Add m4/libunistring-base.m4.
64459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64460         (Makefile.am): Build uninorm.h from uninorm.in.h.
64461         * modules/unistdio/base (Files): Use unistdio.in.h instead of
64462         unistdio.h. Add m4/libunistring-base.m4.
64463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64464         (Makefile.am): Build unistdio.h from unistdio.in.h.
64465         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
64466         Add m4/libunistring-base.m4.
64467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64468         (Makefile.am): Build unistr.h from unistr.in.h.
64469         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
64470         Add m4/libunistring-base.m4.
64471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64472         (Makefile.am): Build unitypes.h from unitypes.in.h.
64473         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
64474         Add m4/libunistring-base.m4.
64475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64476         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
64477         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
64478         uniwidth.h. Add m4/libunistring-base.m4.
64479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64480         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
64481         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
64482         instead of augmenting lib_SOURCES.
64483         * modules/unicase/empty-suffix-context: Likewise.
64484         * modules/unicase/locale-language: Likewise.
64485         * modules/unicase/tolower: Likewise.
64486         * modules/unicase/totitle: Likewise.
64487         * modules/unicase/toupper: Likewise.
64488         * modules/unicase/u8-casecmp: Likewise.
64489         * modules/unicase/u8-casecoll: Likewise.
64490         * modules/unicase/u8-casefold: Likewise.
64491         * modules/unicase/u8-casexfrm: Likewise.
64492         * modules/unicase/u8-ct-casefold: Likewise.
64493         * modules/unicase/u8-ct-tolower: Likewise.
64494         * modules/unicase/u8-ct-totitle: Likewise.
64495         * modules/unicase/u8-ct-toupper: Likewise.
64496         * modules/unicase/u8-is-cased: Likewise.
64497         * modules/unicase/u8-is-casefolded: Likewise.
64498         * modules/unicase/u8-is-lowercase: Likewise.
64499         * modules/unicase/u8-is-titlecase: Likewise.
64500         * modules/unicase/u8-is-uppercase: Likewise.
64501         * modules/unicase/u8-prefix-context: Likewise.
64502         * modules/unicase/u8-suffix-context: Likewise.
64503         * modules/unicase/u8-tolower: Likewise.
64504         * modules/unicase/u8-totitle: Likewise.
64505         * modules/unicase/u8-toupper: Likewise.
64506         * modules/unicase/u16-casecmp: Likewise.
64507         * modules/unicase/u16-casecoll: Likewise.
64508         * modules/unicase/u16-casefold: Likewise.
64509         * modules/unicase/u16-casexfrm: Likewise.
64510         * modules/unicase/u16-ct-casefold: Likewise.
64511         * modules/unicase/u16-ct-tolower: Likewise.
64512         * modules/unicase/u16-ct-totitle: Likewise.
64513         * modules/unicase/u16-ct-toupper: Likewise.
64514         * modules/unicase/u16-is-cased: Likewise.
64515         * modules/unicase/u16-is-casefolded: Likewise.
64516         * modules/unicase/u16-is-lowercase: Likewise.
64517         * modules/unicase/u16-is-titlecase: Likewise.
64518         * modules/unicase/u16-is-uppercase: Likewise.
64519         * modules/unicase/u16-prefix-context: Likewise.
64520         * modules/unicase/u16-suffix-context: Likewise.
64521         * modules/unicase/u16-tolower: Likewise.
64522         * modules/unicase/u16-totitle: Likewise.
64523         * modules/unicase/u16-toupper: Likewise.
64524         * modules/unicase/u32-casecmp: Likewise.
64525         * modules/unicase/u32-casecoll: Likewise.
64526         * modules/unicase/u32-casefold: Likewise.
64527         * modules/unicase/u32-casexfrm: Likewise.
64528         * modules/unicase/u32-ct-casefold: Likewise.
64529         * modules/unicase/u32-ct-tolower: Likewise.
64530         * modules/unicase/u32-ct-totitle: Likewise.
64531         * modules/unicase/u32-ct-toupper: Likewise.
64532         * modules/unicase/u32-is-cased: Likewise.
64533         * modules/unicase/u32-is-casefolded: Likewise.
64534         * modules/unicase/u32-is-lowercase: Likewise.
64535         * modules/unicase/u32-is-titlecase: Likewise.
64536         * modules/unicase/u32-is-uppercase: Likewise.
64537         * modules/unicase/u32-prefix-context: Likewise.
64538         * modules/unicase/u32-suffix-context: Likewise.
64539         * modules/unicase/u32-tolower: Likewise.
64540         * modules/unicase/u32-totitle: Likewise.
64541         * modules/unicase/u32-toupper: Likewise.
64542         * modules/unicase/ulc-casecmp: Likewise.
64543         * modules/unicase/ulc-casecoll: Likewise.
64544         * modules/unicase/ulc-casexfrm: Likewise.
64545         * modules/uniconv/u8-conv-from-enc: Likewise.
64546         * modules/uniconv/u8-conv-to-enc: Likewise.
64547         * modules/uniconv/u8-strconv-from-enc: Likewise.
64548         * modules/uniconv/u8-strconv-from-locale: Likewise.
64549         * modules/uniconv/u8-strconv-to-enc: Likewise.
64550         * modules/uniconv/u8-strconv-to-locale: Likewise.
64551         * modules/uniconv/u16-conv-from-enc: Likewise.
64552         * modules/uniconv/u16-conv-to-enc: Likewise.
64553         * modules/uniconv/u16-strconv-from-enc: Likewise.
64554         * modules/uniconv/u16-strconv-from-locale: Likewise.
64555         * modules/uniconv/u16-strconv-to-enc: Likewise.
64556         * modules/uniconv/u16-strconv-to-locale: Likewise.
64557         * modules/uniconv/u32-conv-from-enc: Likewise.
64558         * modules/uniconv/u32-conv-to-enc: Likewise.
64559         * modules/uniconv/u32-strconv-from-enc: Likewise.
64560         * modules/uniconv/u32-strconv-from-locale: Likewise.
64561         * modules/uniconv/u32-strconv-to-enc: Likewise.
64562         * modules/uniconv/u32-strconv-to-locale: Likewise.
64563         * modules/unictype/bidicategory-byname: Likewise.
64564         * modules/unictype/bidicategory-name: Likewise.
64565         * modules/unictype/bidicategory-of: Likewise.
64566         * modules/unictype/bidicategory-test: Likewise.
64567         * modules/unictype/block-list: Likewise.
64568         * modules/unictype/block-test: Likewise.
64569         * modules/unictype/category-C: Likewise.
64570         * modules/unictype/category-Cc: Likewise.
64571         * modules/unictype/category-Cf: Likewise.
64572         * modules/unictype/category-Cn: Likewise.
64573         * modules/unictype/category-Co: Likewise.
64574         * modules/unictype/category-Cs: Likewise.
64575         * modules/unictype/category-L: Likewise.
64576         * modules/unictype/category-Ll: Likewise.
64577         * modules/unictype/category-Lm: Likewise.
64578         * modules/unictype/category-Lo: Likewise.
64579         * modules/unictype/category-Lt: Likewise.
64580         * modules/unictype/category-Lu: Likewise.
64581         * modules/unictype/category-M: Likewise.
64582         * modules/unictype/category-Mc: Likewise.
64583         * modules/unictype/category-Me: Likewise.
64584         * modules/unictype/category-Mn: Likewise.
64585         * modules/unictype/category-N: Likewise.
64586         * modules/unictype/category-Nd: Likewise.
64587         * modules/unictype/category-Nl: Likewise.
64588         * modules/unictype/category-No: Likewise.
64589         * modules/unictype/category-P: Likewise.
64590         * modules/unictype/category-Pc: Likewise.
64591         * modules/unictype/category-Pd: Likewise.
64592         * modules/unictype/category-Pe: Likewise.
64593         * modules/unictype/category-Pf: Likewise.
64594         * modules/unictype/category-Pi: Likewise.
64595         * modules/unictype/category-Po: Likewise.
64596         * modules/unictype/category-Ps: Likewise.
64597         * modules/unictype/category-S: Likewise.
64598         * modules/unictype/category-Sc: Likewise.
64599         * modules/unictype/category-Sk: Likewise.
64600         * modules/unictype/category-Sm: Likewise.
64601         * modules/unictype/category-So: Likewise.
64602         * modules/unictype/category-Z: Likewise.
64603         * modules/unictype/category-Zl: Likewise.
64604         * modules/unictype/category-Zp: Likewise.
64605         * modules/unictype/category-Zs: Likewise.
64606         * modules/unictype/category-and: Likewise.
64607         * modules/unictype/category-and-not: Likewise.
64608         * modules/unictype/category-byname: Likewise.
64609         * modules/unictype/category-name: Likewise.
64610         * modules/unictype/category-none: Likewise.
64611         * modules/unictype/category-of: Likewise.
64612         * modules/unictype/category-or: Likewise.
64613         * modules/unictype/category-test: Likewise.
64614         * modules/unictype/combining-class: Likewise.
64615         * modules/unictype/ctype-alnum: Likewise.
64616         * modules/unictype/ctype-alpha: Likewise.
64617         * modules/unictype/ctype-blank: Likewise.
64618         * modules/unictype/ctype-cntrl: Likewise.
64619         * modules/unictype/ctype-digit: Likewise.
64620         * modules/unictype/ctype-graph: Likewise.
64621         * modules/unictype/ctype-lower: Likewise.
64622         * modules/unictype/ctype-print: Likewise.
64623         * modules/unictype/ctype-punct: Likewise.
64624         * modules/unictype/ctype-space: Likewise.
64625         * modules/unictype/ctype-upper: Likewise.
64626         * modules/unictype/ctype-xdigit: Likewise.
64627         * modules/unictype/decimal-digit: Likewise.
64628         * modules/unictype/digit: Likewise.
64629         * modules/unictype/mirror: Likewise.
64630         * modules/unictype/numeric: Likewise.
64631         * modules/unictype/property-alphabetic: Likewise.
64632         * modules/unictype/property-ascii-hex-digit: Likewise.
64633         * modules/unictype/property-bidi-arabic-digit: Likewise.
64634         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64635         * modules/unictype/property-bidi-block-separator: Likewise.
64636         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64637         * modules/unictype/property-bidi-common-separator: Likewise.
64638         * modules/unictype/property-bidi-control: Likewise.
64639         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64640         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64641         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64642         * modules/unictype/property-bidi-european-digit: Likewise.
64643         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64644         * modules/unictype/property-bidi-left-to-right: Likewise.
64645         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64646         * modules/unictype/property-bidi-other-neutral: Likewise.
64647         * modules/unictype/property-bidi-pdf: Likewise.
64648         * modules/unictype/property-bidi-segment-separator: Likewise.
64649         * modules/unictype/property-bidi-whitespace: Likewise.
64650         * modules/unictype/property-byname: Likewise.
64651         * modules/unictype/property-combining: Likewise.
64652         * modules/unictype/property-composite: Likewise.
64653         * modules/unictype/property-currency-symbol: Likewise.
64654         * modules/unictype/property-dash: Likewise.
64655         * modules/unictype/property-decimal-digit: Likewise.
64656         * modules/unictype/property-default-ignorable-code-point: Likewise.
64657         * modules/unictype/property-deprecated: Likewise.
64658         * modules/unictype/property-diacritic: Likewise.
64659         * modules/unictype/property-extender: Likewise.
64660         * modules/unictype/property-format-control: Likewise.
64661         * modules/unictype/property-grapheme-base: Likewise.
64662         * modules/unictype/property-grapheme-extend: Likewise.
64663         * modules/unictype/property-grapheme-link: Likewise.
64664         * modules/unictype/property-hex-digit: Likewise.
64665         * modules/unictype/property-hyphen: Likewise.
64666         * modules/unictype/property-id-continue: Likewise.
64667         * modules/unictype/property-id-start: Likewise.
64668         * modules/unictype/property-ideographic: Likewise.
64669         * modules/unictype/property-ids-binary-operator: Likewise.
64670         * modules/unictype/property-ids-trinary-operator: Likewise.
64671         * modules/unictype/property-ignorable-control: Likewise.
64672         * modules/unictype/property-iso-control: Likewise.
64673         * modules/unictype/property-join-control: Likewise.
64674         * modules/unictype/property-left-of-pair: Likewise.
64675         * modules/unictype/property-line-separator: Likewise.
64676         * modules/unictype/property-logical-order-exception: Likewise.
64677         * modules/unictype/property-lowercase: Likewise.
64678         * modules/unictype/property-math: Likewise.
64679         * modules/unictype/property-non-break: Likewise.
64680         * modules/unictype/property-not-a-character: Likewise.
64681         * modules/unictype/property-numeric: Likewise.
64682         * modules/unictype/property-other-alphabetic: Likewise.
64683         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64684         * modules/unictype/property-other-grapheme-extend: Likewise.
64685         * modules/unictype/property-other-id-continue: Likewise.
64686         * modules/unictype/property-other-id-start: Likewise.
64687         * modules/unictype/property-other-lowercase: Likewise.
64688         * modules/unictype/property-other-math: Likewise.
64689         * modules/unictype/property-other-uppercase: Likewise.
64690         * modules/unictype/property-paired-punctuation: Likewise.
64691         * modules/unictype/property-paragraph-separator: Likewise.
64692         * modules/unictype/property-pattern-syntax: Likewise.
64693         * modules/unictype/property-pattern-white-space: Likewise.
64694         * modules/unictype/property-private-use: Likewise.
64695         * modules/unictype/property-punctuation: Likewise.
64696         * modules/unictype/property-quotation-mark: Likewise.
64697         * modules/unictype/property-radical: Likewise.
64698         * modules/unictype/property-sentence-terminal: Likewise.
64699         * modules/unictype/property-soft-dotted: Likewise.
64700         * modules/unictype/property-space: Likewise.
64701         * modules/unictype/property-terminal-punctuation: Likewise.
64702         * modules/unictype/property-test: Likewise.
64703         * modules/unictype/property-titlecase: Likewise.
64704         * modules/unictype/property-unassigned-code-value: Likewise.
64705         * modules/unictype/property-unified-ideograph: Likewise.
64706         * modules/unictype/property-uppercase: Likewise.
64707         * modules/unictype/property-variation-selector: Likewise.
64708         * modules/unictype/property-white-space: Likewise.
64709         * modules/unictype/property-xid-continue: Likewise.
64710         * modules/unictype/property-xid-start: Likewise.
64711         * modules/unictype/property-zero-width: Likewise.
64712         * modules/unictype/scripts: Likewise.
64713         * modules/unictype/syntax-c-ident: Likewise.
64714         * modules/unictype/syntax-c-whitespace: Likewise.
64715         * modules/unictype/syntax-java-ident: Likewise.
64716         * modules/unictype/syntax-java-whitespace: Likewise.
64717         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64718         * modules/unilbrk/u8-width-linebreaks: Likewise.
64719         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64720         * modules/unilbrk/u16-width-linebreaks: Likewise.
64721         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64722         * modules/unilbrk/u32-width-linebreaks: Likewise.
64723         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64724         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64725         * modules/uniname/uniname: Likewise.
64726         * modules/uninorm/canonical-decomposition: Likewise.
64727         * modules/uninorm/composition: Likewise.
64728         * modules/uninorm/decomposing-form: Likewise.
64729         * modules/uninorm/decomposition: Likewise.
64730         * modules/uninorm/filter: Likewise.
64731         * modules/uninorm/nfc: Likewise.
64732         * modules/uninorm/nfd: Likewise.
64733         * modules/uninorm/nfkc: Likewise.
64734         * modules/uninorm/nfkd: Likewise.
64735         * modules/uninorm/u8-normalize: Likewise.
64736         * modules/uninorm/u8-normcmp: Likewise.
64737         * modules/uninorm/u8-normcoll: Likewise.
64738         * modules/uninorm/u8-normxfrm: Likewise.
64739         * modules/uninorm/u16-normalize: Likewise.
64740         * modules/uninorm/u16-normcmp: Likewise.
64741         * modules/uninorm/u16-normcoll: Likewise.
64742         * modules/uninorm/u16-normxfrm: Likewise.
64743         * modules/uninorm/u32-normalize: Likewise.
64744         * modules/uninorm/u32-normcmp: Likewise.
64745         * modules/uninorm/u32-normcoll: Likewise.
64746         * modules/uninorm/u32-normxfrm: Likewise.
64747         * modules/unistdio/u8-asnprintf: Likewise.
64748         * modules/unistdio/u8-asprintf: Likewise.
64749         * modules/unistdio/u8-snprintf: Likewise.
64750         * modules/unistdio/u8-sprintf: Likewise.
64751         * modules/unistdio/u8-u8-asnprintf: Likewise.
64752         * modules/unistdio/u8-u8-asprintf: Likewise.
64753         * modules/unistdio/u8-u8-snprintf: Likewise.
64754         * modules/unistdio/u8-u8-sprintf: Likewise.
64755         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64756         * modules/unistdio/u8-u8-vasprintf: Likewise.
64757         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64758         * modules/unistdio/u8-u8-vsprintf: Likewise.
64759         * modules/unistdio/u8-vasnprintf: Likewise.
64760         * modules/unistdio/u8-vasprintf: Likewise.
64761         * modules/unistdio/u8-vsnprintf: Likewise.
64762         * modules/unistdio/u8-vsprintf: Likewise.
64763         * modules/unistdio/u16-asnprintf: Likewise.
64764         * modules/unistdio/u16-asprintf: Likewise.
64765         * modules/unistdio/u16-snprintf: Likewise.
64766         * modules/unistdio/u16-sprintf: Likewise.
64767         * modules/unistdio/u16-u16-asnprintf: Likewise.
64768         * modules/unistdio/u16-u16-asprintf: Likewise.
64769         * modules/unistdio/u16-u16-snprintf: Likewise.
64770         * modules/unistdio/u16-u16-sprintf: Likewise.
64771         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64772         * modules/unistdio/u16-u16-vasprintf: Likewise.
64773         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64774         * modules/unistdio/u16-u16-vsprintf: Likewise.
64775         * modules/unistdio/u16-vasnprintf: Likewise.
64776         * modules/unistdio/u16-vasprintf: Likewise.
64777         * modules/unistdio/u16-vsnprintf: Likewise.
64778         * modules/unistdio/u16-vsprintf: Likewise.
64779         * modules/unistdio/u32-asnprintf: Likewise.
64780         * modules/unistdio/u32-asprintf: Likewise.
64781         * modules/unistdio/u32-snprintf: Likewise.
64782         * modules/unistdio/u32-sprintf: Likewise.
64783         * modules/unistdio/u32-u32-asnprintf: Likewise.
64784         * modules/unistdio/u32-u32-asprintf: Likewise.
64785         * modules/unistdio/u32-u32-snprintf: Likewise.
64786         * modules/unistdio/u32-u32-sprintf: Likewise.
64787         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64788         * modules/unistdio/u32-u32-vasprintf: Likewise.
64789         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64790         * modules/unistdio/u32-u32-vsprintf: Likewise.
64791         * modules/unistdio/u32-vasnprintf: Likewise.
64792         * modules/unistdio/u32-vasprintf: Likewise.
64793         * modules/unistdio/u32-vsnprintf: Likewise.
64794         * modules/unistdio/u32-vsprintf: Likewise.
64795         * modules/unistdio/ulc-asnprintf: Likewise.
64796         * modules/unistdio/ulc-asprintf: Likewise.
64797         * modules/unistdio/ulc-fprintf: Likewise.
64798         * modules/unistdio/ulc-snprintf: Likewise.
64799         * modules/unistdio/ulc-sprintf: Likewise.
64800         * modules/unistdio/ulc-vasnprintf: Likewise.
64801         * modules/unistdio/ulc-vasprintf: Likewise.
64802         * modules/unistdio/ulc-vfprintf: Likewise.
64803         * modules/unistdio/ulc-vsnprintf: Likewise.
64804         * modules/unistdio/ulc-vsprintf: Likewise.
64805         * modules/unistr/u8-check: Likewise.
64806         * modules/unistr/u8-chr: Likewise.
64807         * modules/unistr/u8-cmp: Likewise.
64808         * modules/unistr/u8-cmp2: Likewise.
64809         * modules/unistr/u8-cpy: Likewise.
64810         * modules/unistr/u8-cpy-alloc: Likewise.
64811         * modules/unistr/u8-endswith: Likewise.
64812         * modules/unistr/u8-mblen: Likewise.
64813         * modules/unistr/u8-mbsnlen: Likewise.
64814         * modules/unistr/u8-mbtouc: Likewise.
64815         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64816         * modules/unistr/u8-mbtoucr: Likewise.
64817         * modules/unistr/u8-move: Likewise.
64818         * modules/unistr/u8-next: Likewise.
64819         * modules/unistr/u8-prev: Likewise.
64820         * modules/unistr/u8-set: Likewise.
64821         * modules/unistr/u8-startswith: Likewise.
64822         * modules/unistr/u8-stpcpy: Likewise.
64823         * modules/unistr/u8-stpncpy: Likewise.
64824         * modules/unistr/u8-strcat: Likewise.
64825         * modules/unistr/u8-strchr: Likewise.
64826         * modules/unistr/u8-strcmp: Likewise.
64827         * modules/unistr/u8-strcoll: Likewise.
64828         * modules/unistr/u8-strcpy: Likewise.
64829         * modules/unistr/u8-strcspn: Likewise.
64830         * modules/unistr/u8-strdup: Likewise.
64831         * modules/unistr/u8-strlen: Likewise.
64832         * modules/unistr/u8-strmblen: Likewise.
64833         * modules/unistr/u8-strmbtouc: Likewise.
64834         * modules/unistr/u8-strncat: Likewise.
64835         * modules/unistr/u8-strncmp: Likewise.
64836         * modules/unistr/u8-strncpy: Likewise.
64837         * modules/unistr/u8-strnlen: Likewise.
64838         * modules/unistr/u8-strpbrk: Likewise.
64839         * modules/unistr/u8-strrchr: Likewise.
64840         * modules/unistr/u8-strspn: Likewise.
64841         * modules/unistr/u8-strstr: Likewise.
64842         * modules/unistr/u8-strtok: Likewise.
64843         * modules/unistr/u8-to-u16: Likewise.
64844         * modules/unistr/u8-to-u32: Likewise.
64845         * modules/unistr/u8-uctomb: Likewise.
64846         * modules/unistr/u16-check: Likewise.
64847         * modules/unistr/u16-chr: Likewise.
64848         * modules/unistr/u16-cmp: Likewise.
64849         * modules/unistr/u16-cmp2: Likewise.
64850         * modules/unistr/u16-cpy: Likewise.
64851         * modules/unistr/u16-cpy-alloc: Likewise.
64852         * modules/unistr/u16-endswith: Likewise.
64853         * modules/unistr/u16-mblen: Likewise.
64854         * modules/unistr/u16-mbsnlen: Likewise.
64855         * modules/unistr/u16-mbtouc: Likewise.
64856         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64857         * modules/unistr/u16-mbtoucr: Likewise.
64858         * modules/unistr/u16-move: Likewise.
64859         * modules/unistr/u16-next: Likewise.
64860         * modules/unistr/u16-prev: Likewise.
64861         * modules/unistr/u16-set: Likewise.
64862         * modules/unistr/u16-startswith: Likewise.
64863         * modules/unistr/u16-stpcpy: Likewise.
64864         * modules/unistr/u16-stpncpy: Likewise.
64865         * modules/unistr/u16-strcat: Likewise.
64866         * modules/unistr/u16-strchr: Likewise.
64867         * modules/unistr/u16-strcmp: Likewise.
64868         * modules/unistr/u16-strcoll: Likewise.
64869         * modules/unistr/u16-strcpy: Likewise.
64870         * modules/unistr/u16-strcspn: Likewise.
64871         * modules/unistr/u16-strdup: Likewise.
64872         * modules/unistr/u16-strlen: Likewise.
64873         * modules/unistr/u16-strmblen: Likewise.
64874         * modules/unistr/u16-strmbtouc: Likewise.
64875         * modules/unistr/u16-strncat: Likewise.
64876         * modules/unistr/u16-strncmp: Likewise.
64877         * modules/unistr/u16-strncpy: Likewise.
64878         * modules/unistr/u16-strnlen: Likewise.
64879         * modules/unistr/u16-strpbrk: Likewise.
64880         * modules/unistr/u16-strrchr: Likewise.
64881         * modules/unistr/u16-strspn: Likewise.
64882         * modules/unistr/u16-strstr: Likewise.
64883         * modules/unistr/u16-strtok: Likewise.
64884         * modules/unistr/u16-to-u32: Likewise.
64885         * modules/unistr/u16-to-u8: Likewise.
64886         * modules/unistr/u16-uctomb: Likewise.
64887         * modules/unistr/u32-check: Likewise.
64888         * modules/unistr/u32-chr: Likewise.
64889         * modules/unistr/u32-cmp: Likewise.
64890         * modules/unistr/u32-cmp2: Likewise.
64891         * modules/unistr/u32-cpy: Likewise.
64892         * modules/unistr/u32-cpy-alloc: Likewise.
64893         * modules/unistr/u32-endswith: Likewise.
64894         * modules/unistr/u32-mblen: Likewise.
64895         * modules/unistr/u32-mbsnlen: Likewise.
64896         * modules/unistr/u32-mbtouc: Likewise.
64897         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64898         * modules/unistr/u32-mbtoucr: Likewise.
64899         * modules/unistr/u32-move: Likewise.
64900         * modules/unistr/u32-next: Likewise.
64901         * modules/unistr/u32-prev: Likewise.
64902         * modules/unistr/u32-set: Likewise.
64903         * modules/unistr/u32-startswith: Likewise.
64904         * modules/unistr/u32-stpcpy: Likewise.
64905         * modules/unistr/u32-stpncpy: Likewise.
64906         * modules/unistr/u32-strcat: Likewise.
64907         * modules/unistr/u32-strchr: Likewise.
64908         * modules/unistr/u32-strcmp: Likewise.
64909         * modules/unistr/u32-strcoll: Likewise.
64910         * modules/unistr/u32-strcpy: Likewise.
64911         * modules/unistr/u32-strcspn: Likewise.
64912         * modules/unistr/u32-strdup: Likewise.
64913         * modules/unistr/u32-strlen: Likewise.
64914         * modules/unistr/u32-strmblen: Likewise.
64915         * modules/unistr/u32-strmbtouc: Likewise.
64916         * modules/unistr/u32-strncat: Likewise.
64917         * modules/unistr/u32-strncmp: Likewise.
64918         * modules/unistr/u32-strncpy: Likewise.
64919         * modules/unistr/u32-strnlen: Likewise.
64920         * modules/unistr/u32-strpbrk: Likewise.
64921         * modules/unistr/u32-strrchr: Likewise.
64922         * modules/unistr/u32-strspn: Likewise.
64923         * modules/unistr/u32-strstr: Likewise.
64924         * modules/unistr/u32-strtok: Likewise.
64925         * modules/unistr/u32-to-u16: Likewise.
64926         * modules/unistr/u32-to-u8: Likewise.
64927         * modules/unistr/u32-uctomb: Likewise.
64928         * modules/uniwbrk/u8-wordbreaks: Likewise.
64929         * modules/uniwbrk/u16-wordbreaks: Likewise.
64930         * modules/uniwbrk/u32-wordbreaks: Likewise.
64931         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64932         * modules/uniwbrk/wordbreak-property: Likewise.
64933         * modules/uniwidth/u8-strwidth: Likewise.
64934         * modules/uniwidth/u8-width: Likewise.
64935         * modules/uniwidth/u16-strwidth: Likewise.
64936         * modules/uniwidth/u16-width: Likewise.
64937         * modules/uniwidth/u32-strwidth: Likewise.
64938         * modules/uniwidth/u32-width: Likewise.
64939         * modules/uniwidth/width: Likewise.
64940         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64941         with $(LIBUNISTRING).
64942         * modules/unicase/ignorable-tests: Likewise.
64943         * modules/unicase/locale-language-tests: Likewise.
64944         * modules/unicase/tolower-tests: Likewise.
64945         * modules/unicase/totitle-tests: Likewise.
64946         * modules/unicase/toupper-tests: Likewise.
64947         * modules/unicase/u8-casecmp-tests: Likewise.
64948         * modules/unicase/u8-casecoll-tests: Likewise.
64949         * modules/unicase/u8-casefold-tests: Likewise.
64950         * modules/unicase/u8-is-cased-tests: Likewise.
64951         * modules/unicase/u8-is-casefolded-tests: Likewise.
64952         * modules/unicase/u8-is-lowercase-tests: Likewise.
64953         * modules/unicase/u8-is-titlecase-tests: Likewise.
64954         * modules/unicase/u8-is-uppercase-tests: Likewise.
64955         * modules/unicase/u8-tolower-tests: Likewise.
64956         * modules/unicase/u8-totitle-tests: Likewise.
64957         * modules/unicase/u8-toupper-tests: Likewise.
64958         * modules/unicase/u16-casecmp-tests: Likewise.
64959         * modules/unicase/u16-casecoll-tests: Likewise.
64960         * modules/unicase/u16-casefold-tests: Likewise.
64961         * modules/unicase/u16-is-cased-tests: Likewise.
64962         * modules/unicase/u16-is-casefolded-tests: Likewise.
64963         * modules/unicase/u16-is-lowercase-tests: Likewise.
64964         * modules/unicase/u16-is-titlecase-tests: Likewise.
64965         * modules/unicase/u16-is-uppercase-tests: Likewise.
64966         * modules/unicase/u16-tolower-tests: Likewise.
64967         * modules/unicase/u16-totitle-tests: Likewise.
64968         * modules/unicase/u16-toupper-tests: Likewise.
64969         * modules/unicase/u32-casecmp-tests: Likewise.
64970         * modules/unicase/u32-casecoll-tests: Likewise.
64971         * modules/unicase/u32-casefold-tests: Likewise.
64972         * modules/unicase/u32-is-cased-tests: Likewise.
64973         * modules/unicase/u32-is-casefolded-tests: Likewise.
64974         * modules/unicase/u32-is-lowercase-tests: Likewise.
64975         * modules/unicase/u32-is-titlecase-tests: Likewise.
64976         * modules/unicase/u32-is-uppercase-tests: Likewise.
64977         * modules/unicase/u32-tolower-tests: Likewise.
64978         * modules/unicase/u32-totitle-tests: Likewise.
64979         * modules/unicase/u32-toupper-tests: Likewise.
64980         * modules/unicase/ulc-casecmp-tests: Likewise.
64981         * modules/unicase/ulc-casecoll-tests: Likewise.
64982         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64983         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64984         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64985         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64986         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64987         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64988         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64989         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64990         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64991         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64992         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64993         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64994         * modules/unictype/bidicategory-byname-tests: Likewise.
64995         * modules/unictype/bidicategory-name-tests: Likewise.
64996         * modules/unictype/bidicategory-of-tests: Likewise.
64997         * modules/unictype/bidicategory-test-tests: Likewise.
64998         * modules/unictype/block-list-tests: Likewise.
64999         * modules/unictype/block-of-tests: Likewise.
65000         * modules/unictype/block-test-tests: Likewise.
65001         * modules/unictype/category-C-tests: Likewise.
65002         * modules/unictype/category-Cc-tests: Likewise.
65003         * modules/unictype/category-Cf-tests: Likewise.
65004         * modules/unictype/category-Cn-tests: Likewise.
65005         * modules/unictype/category-Co-tests: Likewise.
65006         * modules/unictype/category-Cs-tests: Likewise.
65007         * modules/unictype/category-L-tests: Likewise.
65008         * modules/unictype/category-Ll-tests: Likewise.
65009         * modules/unictype/category-Lm-tests: Likewise.
65010         * modules/unictype/category-Lo-tests: Likewise.
65011         * modules/unictype/category-Lt-tests: Likewise.
65012         * modules/unictype/category-Lu-tests: Likewise.
65013         * modules/unictype/category-M-tests: Likewise.
65014         * modules/unictype/category-Mc-tests: Likewise.
65015         * modules/unictype/category-Me-tests: Likewise.
65016         * modules/unictype/category-Mn-tests: Likewise.
65017         * modules/unictype/category-N-tests: Likewise.
65018         * modules/unictype/category-Nd-tests: Likewise.
65019         * modules/unictype/category-Nl-tests: Likewise.
65020         * modules/unictype/category-No-tests: Likewise.
65021         * modules/unictype/category-P-tests: Likewise.
65022         * modules/unictype/category-Pc-tests: Likewise.
65023         * modules/unictype/category-Pd-tests: Likewise.
65024         * modules/unictype/category-Pe-tests: Likewise.
65025         * modules/unictype/category-Pf-tests: Likewise.
65026         * modules/unictype/category-Pi-tests: Likewise.
65027         * modules/unictype/category-Po-tests: Likewise.
65028         * modules/unictype/category-Ps-tests: Likewise.
65029         * modules/unictype/category-S-tests: Likewise.
65030         * modules/unictype/category-Sc-tests: Likewise.
65031         * modules/unictype/category-Sk-tests: Likewise.
65032         * modules/unictype/category-Sm-tests: Likewise.
65033         * modules/unictype/category-So-tests: Likewise.
65034         * modules/unictype/category-Z-tests: Likewise.
65035         * modules/unictype/category-Zl-tests: Likewise.
65036         * modules/unictype/category-Zp-tests: Likewise.
65037         * modules/unictype/category-Zs-tests: Likewise.
65038         * modules/unictype/category-and-not-tests: Likewise.
65039         * modules/unictype/category-and-tests: Likewise.
65040         * modules/unictype/category-byname-tests: Likewise.
65041         * modules/unictype/category-name-tests: Likewise.
65042         * modules/unictype/category-none-tests: Likewise.
65043         * modules/unictype/category-of-tests: Likewise.
65044         * modules/unictype/category-or-tests: Likewise.
65045         * modules/unictype/category-test-withtable-tests: Likewise.
65046         * modules/unictype/combining-class-tests: Likewise.
65047         * modules/unictype/ctype-alnum-tests: Likewise.
65048         * modules/unictype/ctype-alpha-tests: Likewise.
65049         * modules/unictype/ctype-blank-tests: Likewise.
65050         * modules/unictype/ctype-cntrl-tests: Likewise.
65051         * modules/unictype/ctype-digit-tests: Likewise.
65052         * modules/unictype/ctype-graph-tests: Likewise.
65053         * modules/unictype/ctype-lower-tests: Likewise.
65054         * modules/unictype/ctype-print-tests: Likewise.
65055         * modules/unictype/ctype-punct-tests: Likewise.
65056         * modules/unictype/ctype-space-tests: Likewise.
65057         * modules/unictype/ctype-upper-tests: Likewise.
65058         * modules/unictype/ctype-xdigit-tests: Likewise.
65059         * modules/unictype/decimal-digit-tests: Likewise.
65060         * modules/unictype/digit-tests: Likewise.
65061         * modules/unictype/mirror-tests: Likewise.
65062         * modules/unictype/numeric-tests: Likewise.
65063         * modules/unictype/property-alphabetic-tests: Likewise.
65064         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
65065         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
65066         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
65067         * modules/unictype/property-bidi-block-separator-tests: Likewise.
65068         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
65069         * modules/unictype/property-bidi-common-separator-tests: Likewise.
65070         * modules/unictype/property-bidi-control-tests: Likewise.
65071         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
65072         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
65073         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
65074         * modules/unictype/property-bidi-european-digit-tests: Likewise.
65075         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
65076         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
65077         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
65078         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
65079         * modules/unictype/property-bidi-pdf-tests: Likewise.
65080         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
65081         * modules/unictype/property-bidi-whitespace-tests: Likewise.
65082         * modules/unictype/property-byname-tests: Likewise.
65083         * modules/unictype/property-combining-tests: Likewise.
65084         * modules/unictype/property-composite-tests: Likewise.
65085         * modules/unictype/property-currency-symbol-tests: Likewise.
65086         * modules/unictype/property-dash-tests: Likewise.
65087         * modules/unictype/property-decimal-digit-tests: Likewise.
65088         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
65089         * modules/unictype/property-deprecated-tests: Likewise.
65090         * modules/unictype/property-diacritic-tests: Likewise.
65091         * modules/unictype/property-extender-tests: Likewise.
65092         * modules/unictype/property-format-control-tests: Likewise.
65093         * modules/unictype/property-grapheme-base-tests: Likewise.
65094         * modules/unictype/property-grapheme-extend-tests: Likewise.
65095         * modules/unictype/property-grapheme-link-tests: Likewise.
65096         * modules/unictype/property-hex-digit-tests: Likewise.
65097         * modules/unictype/property-hyphen-tests: Likewise.
65098         * modules/unictype/property-id-continue-tests: Likewise.
65099         * modules/unictype/property-id-start-tests: Likewise.
65100         * modules/unictype/property-ideographic-tests: Likewise.
65101         * modules/unictype/property-ids-binary-operator-tests: Likewise.
65102         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
65103         * modules/unictype/property-ignorable-control-tests: Likewise.
65104         * modules/unictype/property-iso-control-tests: Likewise.
65105         * modules/unictype/property-join-control-tests: Likewise.
65106         * modules/unictype/property-left-of-pair-tests: Likewise.
65107         * modules/unictype/property-line-separator-tests: Likewise.
65108         * modules/unictype/property-logical-order-exception-tests: Likewise.
65109         * modules/unictype/property-lowercase-tests: Likewise.
65110         * modules/unictype/property-math-tests: Likewise.
65111         * modules/unictype/property-non-break-tests: Likewise.
65112         * modules/unictype/property-not-a-character-tests: Likewise.
65113         * modules/unictype/property-numeric-tests: Likewise.
65114         * modules/unictype/property-other-alphabetic-tests: Likewise.
65115         * modules/unictype/property-other-default-ignorable-code-point-tests:
65116         Likewise.
65117         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
65118         * modules/unictype/property-other-id-continue-tests: Likewise.
65119         * modules/unictype/property-other-id-start-tests: Likewise.
65120         * modules/unictype/property-other-lowercase-tests: Likewise.
65121         * modules/unictype/property-other-math-tests: Likewise.
65122         * modules/unictype/property-other-uppercase-tests: Likewise.
65123         * modules/unictype/property-paired-punctuation-tests: Likewise.
65124         * modules/unictype/property-paragraph-separator-tests: Likewise.
65125         * modules/unictype/property-pattern-syntax-tests: Likewise.
65126         * modules/unictype/property-pattern-white-space-tests: Likewise.
65127         * modules/unictype/property-private-use-tests: Likewise.
65128         * modules/unictype/property-punctuation-tests: Likewise.
65129         * modules/unictype/property-quotation-mark-tests: Likewise.
65130         * modules/unictype/property-radical-tests: Likewise.
65131         * modules/unictype/property-sentence-terminal-tests: Likewise.
65132         * modules/unictype/property-soft-dotted-tests: Likewise.
65133         * modules/unictype/property-space-tests: Likewise.
65134         * modules/unictype/property-terminal-punctuation-tests: Likewise.
65135         * modules/unictype/property-test-tests: Likewise.
65136         * modules/unictype/property-titlecase-tests: Likewise.
65137         * modules/unictype/property-unassigned-code-value-tests: Likewise.
65138         * modules/unictype/property-unified-ideograph-tests: Likewise.
65139         * modules/unictype/property-uppercase-tests: Likewise.
65140         * modules/unictype/property-variation-selector-tests: Likewise.
65141         * modules/unictype/property-white-space-tests: Likewise.
65142         * modules/unictype/property-xid-continue-tests: Likewise.
65143         * modules/unictype/property-xid-start-tests: Likewise.
65144         * modules/unictype/property-zero-width-tests: Likewise.
65145         * modules/unictype/scripts-tests: Likewise.
65146         * modules/unictype/syntax-c-ident-tests: Likewise.
65147         * modules/unictype/syntax-c-whitespace-tests: Likewise.
65148         * modules/unictype/syntax-java-ident-tests: Likewise.
65149         * modules/unictype/syntax-java-whitespace-tests: Likewise.
65150         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
65151         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
65152         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
65153         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
65154         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
65155         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
65156         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
65157         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
65158         * modules/uniname/uniname-tests: Likewise.
65159         * modules/uninorm/canonical-decomposition-tests: Likewise.
65160         * modules/uninorm/compat-decomposition-tests: Likewise.
65161         * modules/uninorm/composition-tests: Likewise.
65162         * modules/uninorm/decomposing-form-tests: Likewise.
65163         * modules/uninorm/decomposition-tests: Likewise.
65164         * modules/uninorm/filter-tests: Likewise.
65165         * modules/uninorm/nfc-tests: Likewise.
65166         * modules/uninorm/nfd-tests: Likewise.
65167         * modules/uninorm/nfkc-tests: Likewise.
65168         * modules/uninorm/nfkd-tests: Likewise.
65169         * modules/uninorm/u8-normcmp-tests: Likewise.
65170         * modules/uninorm/u8-normcoll-tests: Likewise.
65171         * modules/uninorm/u16-normcmp-tests: Likewise.
65172         * modules/uninorm/u16-normcoll-tests: Likewise.
65173         * modules/uninorm/u32-normcmp-tests: Likewise.
65174         * modules/uninorm/u32-normcoll-tests: Likewise.
65175         * modules/unistdio/u8-asnprintf-tests: Likewise.
65176         * modules/unistdio/u8-vasnprintf-tests: Likewise.
65177         * modules/unistdio/u8-vasprintf-tests: Likewise.
65178         * modules/unistdio/u8-vsnprintf-tests: Likewise.
65179         * modules/unistdio/u8-vsprintf-tests: Likewise.
65180         * modules/unistdio/u16-asnprintf-tests: Likewise.
65181         * modules/unistdio/u16-vasnprintf-tests: Likewise.
65182         * modules/unistdio/u16-vasprintf-tests: Likewise.
65183         * modules/unistdio/u16-vsnprintf-tests: Likewise.
65184         * modules/unistdio/u16-vsprintf-tests: Likewise.
65185         * modules/unistdio/u32-asnprintf-tests: Likewise.
65186         * modules/unistdio/u32-vasnprintf-tests: Likewise.
65187         * modules/unistdio/u32-vasprintf-tests: Likewise.
65188         * modules/unistdio/u32-vsnprintf-tests: Likewise.
65189         * modules/unistdio/u32-vsprintf-tests: Likewise.
65190         * modules/unistdio/ulc-asnprintf-tests: Likewise.
65191         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
65192         * modules/unistdio/ulc-vasprintf-tests: Likewise.
65193         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
65194         * modules/unistdio/ulc-vsprintf-tests: Likewise.
65195         * modules/unistr/u8-check-tests: Likewise.
65196         * modules/unistr/u8-chr-tests: Likewise.
65197         * modules/unistr/u8-cmp-tests: Likewise.
65198         * modules/unistr/u8-cmp2-tests: Likewise.
65199         * modules/unistr/u8-cpy-alloc-tests: Likewise.
65200         * modules/unistr/u8-cpy-tests: Likewise.
65201         * modules/unistr/u8-mblen-tests: Likewise.
65202         * modules/unistr/u8-mbsnlen-tests: Likewise.
65203         * modules/unistr/u8-mbtouc-tests: Likewise.
65204         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
65205         * modules/unistr/u8-mbtoucr-tests: Likewise.
65206         * modules/unistr/u8-move-tests: Likewise.
65207         * modules/unistr/u8-next-tests: Likewise.
65208         * modules/unistr/u8-prev-tests: Likewise.
65209         * modules/unistr/u8-set-tests: Likewise.
65210         * modules/unistr/u8-stpcpy-tests: Likewise.
65211         * modules/unistr/u8-stpncpy-tests: Likewise.
65212         * modules/unistr/u8-strcat-tests: Likewise.
65213         * modules/unistr/u8-strcmp-tests: Likewise.
65214         * modules/unistr/u8-strcoll-tests: Likewise.
65215         * modules/unistr/u8-strcpy-tests: Likewise.
65216         * modules/unistr/u8-strdup-tests: Likewise.
65217         * modules/unistr/u8-strlen-tests: Likewise.
65218         * modules/unistr/u8-strmblen-tests: Likewise.
65219         * modules/unistr/u8-strmbtouc-tests: Likewise.
65220         * modules/unistr/u8-strncat-tests: Likewise.
65221         * modules/unistr/u8-strncmp-tests: Likewise.
65222         * modules/unistr/u8-strncpy-tests: Likewise.
65223         * modules/unistr/u8-strnlen-tests: Likewise.
65224         * modules/unistr/u8-to-u16-tests: Likewise.
65225         * modules/unistr/u8-to-u32-tests: Likewise.
65226         * modules/unistr/u8-uctomb-tests: Likewise.
65227         * modules/unistr/u16-check-tests: Likewise.
65228         * modules/unistr/u16-chr-tests: Likewise.
65229         * modules/unistr/u16-cmp-tests: Likewise.
65230         * modules/unistr/u16-cmp2-tests: Likewise.
65231         * modules/unistr/u16-cpy-alloc-tests: Likewise.
65232         * modules/unistr/u16-cpy-tests: Likewise.
65233         * modules/unistr/u16-mblen-tests: Likewise.
65234         * modules/unistr/u16-mbsnlen-tests: Likewise.
65235         * modules/unistr/u16-mbtouc-tests: Likewise.
65236         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
65237         * modules/unistr/u16-mbtoucr-tests: Likewise.
65238         * modules/unistr/u16-move-tests: Likewise.
65239         * modules/unistr/u16-next-tests: Likewise.
65240         * modules/unistr/u16-prev-tests: Likewise.
65241         * modules/unistr/u16-set-tests: Likewise.
65242         * modules/unistr/u16-stpcpy-tests: Likewise.
65243         * modules/unistr/u16-stpncpy-tests: Likewise.
65244         * modules/unistr/u16-strcat-tests: Likewise.
65245         * modules/unistr/u16-strcmp-tests: Likewise.
65246         * modules/unistr/u16-strcoll-tests: Likewise.
65247         * modules/unistr/u16-strcpy-tests: Likewise.
65248         * modules/unistr/u16-strdup-tests: Likewise.
65249         * modules/unistr/u16-strlen-tests: Likewise.
65250         * modules/unistr/u16-strmblen-tests: Likewise.
65251         * modules/unistr/u16-strmbtouc-tests: Likewise.
65252         * modules/unistr/u16-strncat-tests: Likewise.
65253         * modules/unistr/u16-strncmp-tests: Likewise.
65254         * modules/unistr/u16-strncpy-tests: Likewise.
65255         * modules/unistr/u16-strnlen-tests: Likewise.
65256         * modules/unistr/u16-to-u32-tests: Likewise.
65257         * modules/unistr/u16-to-u8-tests: Likewise.
65258         * modules/unistr/u16-uctomb-tests: Likewise.
65259         * modules/unistr/u32-check-tests: Likewise.
65260         * modules/unistr/u32-chr-tests: Likewise.
65261         * modules/unistr/u32-cmp-tests: Likewise.
65262         * modules/unistr/u32-cmp2-tests: Likewise.
65263         * modules/unistr/u32-cpy-alloc-tests: Likewise.
65264         * modules/unistr/u32-cpy-tests: Likewise.
65265         * modules/unistr/u32-mblen-tests: Likewise.
65266         * modules/unistr/u32-mbsnlen-tests: Likewise.
65267         * modules/unistr/u32-mbtouc-tests: Likewise.
65268         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
65269         * modules/unistr/u32-mbtoucr-tests: Likewise.
65270         * modules/unistr/u32-move-tests: Likewise.
65271         * modules/unistr/u32-next-tests: Likewise.
65272         * modules/unistr/u32-prev-tests: Likewise.
65273         * modules/unistr/u32-set-tests: Likewise.
65274         * modules/unistr/u32-stpcpy-tests: Likewise.
65275         * modules/unistr/u32-stpncpy-tests: Likewise.
65276         * modules/unistr/u32-strcat-tests: Likewise.
65277         * modules/unistr/u32-strcmp-tests: Likewise.
65278         * modules/unistr/u32-strcoll-tests: Likewise.
65279         * modules/unistr/u32-strcpy-tests: Likewise.
65280         * modules/unistr/u32-strdup-tests: Likewise.
65281         * modules/unistr/u32-strlen-tests: Likewise.
65282         * modules/unistr/u32-strmblen-tests: Likewise.
65283         * modules/unistr/u32-strmbtouc-tests: Likewise.
65284         * modules/unistr/u32-strncat-tests: Likewise.
65285         * modules/unistr/u32-strncmp-tests: Likewise.
65286         * modules/unistr/u32-strncpy-tests: Likewise.
65287         * modules/unistr/u32-strnlen-tests: Likewise.
65288         * modules/unistr/u32-to-u16-tests: Likewise.
65289         * modules/unistr/u32-to-u8-tests: Likewise.
65290         * modules/unistr/u32-uctomb-tests: Likewise.
65291         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
65292         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
65293         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
65294         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
65295         * modules/uniwidth/u8-strwidth-tests: Likewise.
65296         * modules/uniwidth/u8-width-tests: Likewise.
65297         * modules/uniwidth/u16-strwidth-tests: Likewise.
65298         * modules/uniwidth/u16-width-tests: Likewise.
65299         * modules/uniwidth/u32-strwidth-tests: Likewise.
65300         * modules/uniwidth/u32-width-tests: Likewise.
65301         * modules/uniwidth/width-tests: Likewise.
65303 2010-05-18  Richard Jones  <rjones@redhat.com>
65305         doc: users.txt: list hivex
65306         * users.txt: Add hivex.
65308 2010-05-18  Richard Jones  <rjones@redhat.com>
65310         doc: users.txt: list febootstrap
65311         * users.txt: Add febootstrap.
65313 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
65315         bootstrap: fix an error when gnulib is not used as a git submodule
65316         * build-aux/bootstrap (gnulib_path): If its length is zero then
65317         assign "gnulib" to it.
65318         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
65320 2010-05-16  Bruno Haible  <bruno@clisp.org>
65322         Avoid autoconf warnings about AM_ICONV.
65323         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
65324         2.64.
65326 2010-05-16  Bruno Haible  <bruno@clisp.org>
65328         absolute-header: Make the macro usable in more situations.
65329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
65330         from gl_ABSOLUTE_HEADER.
65331         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
65333 2010-05-16  James Youngman  <jay@gnu.org>
65335         doc: update users.txt
65336         * users.txt: Add CSSC.
65338 2010-05-16  Jim Meyering  <meyering@redhat.com>
65340         init.sh: fix an error in the previous change; add more comments
65341         * tests/init.sh: Compare exit code in loop against 9, not 2.
65342         Patch by Bruno Haible.
65343         Make the two tests more similar by adding an empty "then" clause.
65344         Add comments.
65346         init.sh: avoid unnecessary shell re-exec
65347         * tests/init.sh: Improve the re-exec-required check to first test the
65348         current shell.  If it passes the test, do not search for a shell that
65349         does pass, and do not re-exec.  This test is particularly contorted to
65350         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
65351         of $(...) evokes a syntax error and causes immediate shell exit with
65352         status 2.  Bruno Haible reported that the re-exec made it impossible
65353         to single-step through any init.sh-using script.
65355 2010-05-16  Bruno Haible  <bruno@clisp.org>
65357         Fix collision between gnulib's and libintl's printf replacements.
65358         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
65359         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
65360         (printf): When using GNU C, map the __printf__ function to rpl_printf
65361         via __asm__. When not using GNU C, define rpl_printf instead of
65362         __printf__.
65363         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
65364         commit.
65365         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
65366         commit.
65367         * m4/asm-underscore.m4: New file.
65368         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
65369         * modules/stdio (Files): Add m4/asm-underscore.m4.
65370         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
65371         Reported by Ben Pfaff.
65373 2010-05-16  Bruno Haible  <bruno@clisp.org>
65375         verify: Avoid skipping the test on openSUSE 11.0.
65376         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
65378 2010-05-13  Bruno Haible  <bruno@clisp.org>
65380         Avoid useless warnings from G++.
65381         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
65382         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
65383         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65385 2010-05-11  Jim Meyering  <meyering@redhat.com>
65387         maint.mk: tweak preceding change
65388         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
65389         regexps tighter by anchoring at EOL, and make the new group "shy"
65390         for slightly decreased overhead.
65392 2010-05-11  Eric Blake  <eblake@redhat.com>
65394         maint.mk: gnulib doesn't guarantee NSIG
65395         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
65397 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65399         test-pwrite.c: Remove unused variable declaration.
65400         * tests/test-pwrite.c (main): Remove read_buf declaration.
65402         Remove useless test-pwrite.sh file.
65403         * tests/test-pwrite.sh: Delete file.
65404         * modules/pwrite-tests: Remove references.
65405         Reported by Bruno Haible.
65407 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65409         init.sh: fix a typo
65410         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
65412 2010-05-10  Jim Meyering  <meyering@redhat.com>
65414         maint.mk: avoid using a temporary file in the always-defined-macros check
65415         * top/maint.mk (.re-defmac): Remove rule.
65416         (gl_trap_): Remove definition.
65417         (sc_prohibit_always-defined_macros): Rewrite not to create and
65418         depend on a temporary file.  Instead, depend on GNU grep's ability
65419         to read a list of regular expressions from stdin when given "-f -".
65421 2010-05-09  Bruno Haible  <bruno@clisp.org>
65423         Update to GNU gettext 0.18, part 1.
65424         * m4/gettext.m4: Update to GNU gettext 0.18.
65425         * m4/intl.m4: Likewise.
65426         * m4/po.m4: Likewise.
65427         * modules/gettext (Files): Add m4/fcntl-o.m4.
65428         (configure.ac): Require gettext infrastructure from version 0.18.
65430 2010-05-09  Jim Meyering  <meyering@redhat.com>
65432         init.sh: enable MALLOC_PERTURB_
65433         * tests/init.sh: Enable glibc's malloc-perturbing option.
65435         maint.mk: improve sc_cross_check_PATH_usage_in_tests
65436         With my recent change in init.sh from the two-line form:
65437             -#   : ${srcdir=.}
65438             -#   . "$srcdir/init.sh"; path_prepend_ .
65439             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
65440         I noticed that using the one-line form would cause this test
65441         to fail with a false-positive, or to stop working altogether,
65442         depending on whether help-version changed or all the tests did.
65443         * top/maint.mk (_hv_regex): Remove this definition.
65444         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
65445         (_hv_regex_strong): Use a stronger regex to check for conformance.
65446         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
65447         Give a separate diagnostic for lack of conforming use.
65449         maint.mk: prohibit definition of symbols defined by gnulib
65450         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
65451         definition of symbols defined by gnulib.
65453 2010-05-09  Bruno Haible  <bruno@clisp.org>
65455         acl: Avoid test failure on Cygwin-hosted mingw.
65456         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
65458 2010-05-09  Bruno Haible  <bruno@clisp.org>
65460         error: Use system's fcntl function.
65461         * lib/error.c (fcntl): Undefine.
65463 2010-05-09  Jim Meyering  <meyering@redhat.com>
65465         verify: adjust formatting to be more consistent
65466         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
65467         argument-list '('s, and after one comma.
65469 2010-05-09  Bruno Haible  <bruno@clisp.org>
65471         error: More reliable output on mingw.
65472         * lib/error.c: Include <windows.h>.
65473         (is_open): New function.
65474         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
65475         defined.
65477 2010-05-09  Bruno Haible  <bruno@clisp.org>
65479         vasnprintf: Fix syntax errors in libintl build on mingw.
65480         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
65481         pad_ourselves and prec_ourselves after use.
65483 2010-05-08  Bruno Haible  <bruno@clisp.org>
65485         * lib/config.charset: Update comments for Cygwin 1.7.
65486         * lib/localcharset.c: Likewise.
65488 2010-05-07  Jim Meyering  <meyering@redhat.com>
65490         init.sh: improve comments
65491         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
65492         . "${srcdir=.}/init.sh"; path_prepend_ .
65493         Add a note about path_prepend_ and the alternative of using
65494         TESTS_ENVIRONMENT.
65496 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
65498         exclude: Unescape hashed patterns in wildcard mode.
65499         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
65500         to the hash list.
65501         * tests/test-exclude8.sh: New test case.
65502         * modules/exclude-tests: Add new test.
65504 2010-05-05  Eric Blake  <eblake@redhat.com>
65506         verify: automate tests
65507         * modules/verify-tests: New module.
65508         * tests/test-verify.sh: New file.
65509         * tests/test-verify.c: Guard each negative test with a unique id.
65510         Also avoid warning about unused left hand of comma expressions.
65512 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65514         Further improvements to verify.h, suggested by Eric Blake.
65515         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
65516         the GL_* versions, to avoid collision with OpenGL.
65517         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
65518         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
65519         than testing merely whether it's defined.
65521         Modify verify.h to pacify gcc -Wredundant_decls.
65522         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
65523         These use the prefix "GL_" since they're likely to be useful elsewhere.
65524         We may need to break them out into a different .h file.
65525         (__COUNTER__): Define to 0 if the compiler doesn't support it.
65526         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
65527         of verify_function__.
65529 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65531         Tests for module pwrite.
65532         * modules/pwrite-tests: New file.
65533         * tests/test-pwrite.sh: New file.
65534         * tests/test-pwrite.c: New file.
65536         New module pwrite.
65537         * lib/unistd.in.h (pwrite): New declaration.
65538         * lib/pwrite.c: New file, from glibc with modifications.
65539         * m4/pwrite.m4: New file.
65540         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
65541         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
65542         REPLACE_PWRITE.
65543         * modules/pwrite: New file.
65544         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
65545         REPLACE_PWRITE.
65546         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
65547         * doc/posix-functions/pwrite.texi: Mention the new module.
65549 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65551         pread: Update documentation.
65552         * doc/posix-functions/pread.texi: Mention the 'pread' module.
65554 2010-05-04  Eric Blake  <eblake@redhat.com>
65556         docs: update cygwin progress
65557         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
65558         this bug.
65559         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
65560         Added in cygwin 1.7.2.
65561         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
65562         Likewise.
65563         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
65564         Likewise.
65565         * doc/glibc-functions/dup3.texi (dup3): Likewise.
65566         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
65567         * doc/glibc-functions/accept4.texi (accept4): Likewise.
65568         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
65569         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
65570         Mention nproc module.
65571         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
65572         bug in cygwin 1.7.5 addition.
65573         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
65574         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
65575         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
65576         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
65577         1.7.5.
65578         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
65579         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
65580         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
65581         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
65582         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
65583         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
65584         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
65585         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
65586         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65587         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65588         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65589         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65590         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65591         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65592         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65593         Likewise.
65594         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65595         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65596         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65597         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65598         Likewise.
65599         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65600         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65601         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65602         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65603         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65604         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65605         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65606         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65607         Likewise.
65608         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65609         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65610         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65611         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65612         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65613         Likewise.
65614         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65615         Likewise.
65616         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65617         Likewise.
65618         * doc/glibc-functions/xdrrec_endofrecord.texi
65619         (xdrrec_endofrecord): Likewise.
65620         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65621         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65622         Likewise.
65623         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65624         Likewise.
65626 2010-05-04  Jim Meyering  <meyering@redhat.com>
65628         gendocs.sh: make its "-s FILE" option more useful
65629         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65630         $PACKAGE to reflect the probably-different basename of "FILE".
65632 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65634         bootstrap: don't ignore download_po_files failure
65635         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65636         failure.
65638 2010-05-03  Jim Meyering  <meyering@redhat.com>
65640         maint.mk: allow to pass options to gendocs.sh
65641         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65642         (gendocs_options_): New overridable variable.
65644         gnu-web-doc-update: don't ignore configure or build failure
65645         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65647         announce-gen: backslash-escape '@'s in --help output
65648         * build-aux/announce-gen: Fix syntax errors.
65650         maint.mk, announce-gen: allow project-specific announcement mail headers
65651         * top/maint.mk (translation_project_): Define default.
65652         (announcement_Cc_, announcement_mail_headers_): Likewise.
65653         (announcement): Invoke announce-gen with new --mail-headers option.
65654         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65656         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65657         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65658         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65659         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65660         line in the "err2" output file when running "make check" in verbose
65661         mode (i.e., with set -x enabled).
65663 2010-05-03  Bruno Haible  <bruno@clisp.org>
65665         wctob: Fix for weird platforms.
65666         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65667         argument value.
65669 2010-05-03  Jim Meyering  <meyering@redhat.com>
65671         maint.mk: prohibit unwarranted use of <strings.h>
65672         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65673         strings.h in a file that does not also use strcasecmp, strncasecmp,
65674         ffs or ffsll.
65676         maint.mk: remove obsolete comments
65677         * top/maint.mk: Remove stale, commented-out rules.
65679 2010-05-02  Bruno Haible  <bruno@clisp.org>
65681         wcwidth: Declare also when it's aliased.
65682         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65683         macro.
65685 2010-05-02  Bruno Haible  <bruno@clisp.org>
65687         Fix regression from 2010-04-25.
65688         * gnulib-tool (func_modules_transitive_closure): Check the status of
65689         all modules, not only of the tests that are of the form foo-tests where
65690         foo is a module.
65692 2010-05-02  Bruno Haible  <bruno@clisp.org>
65694         wctob: Work around nasty Cygwin 1.7.2 bug.
65695         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65696         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65698 2010-05-01  Bruno Haible  <bruno@clisp.org>
65700         fpurge: Sharper test.
65701         * tests/test-fpurge.c (main): Add one more ftell check.
65702         * modules/fpurge-tests (Depends-on): Add ftell.
65703         Suggested by Eric Blake.
65705 2010-05-01  Bruno Haible  <bruno@clisp.org>
65707         ftello: Another test.
65708         * tests/test-ftello3.c: New file.
65709         * modules/ftello-tests (Files): Add it.
65710         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65711         MOSTLYCLEANFILES.
65713         ftell: Another test.
65714         * tests/test-ftell3.c: New file.
65715         * modules/ftell-tests (Files): Add it.
65716         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65717         MOSTLYCLEANFILES.
65719 2010-05-01  Bruno Haible  <bruno@clisp.org>
65721         ftell, ftello: Work around Solaris bug.
65722         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65723         * lib/ftello.c: Include stdio-impl.h.
65724         (ftello): On Solaris, when _IOWRT is set, compute the result without
65725         looking at _IOREAD.
65726         * modules/ftello (Files): Add lib/stdio-impl.h.
65727         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65728         * doc/posix-functions/ftello.texi: Likewise.
65729         Reported by Eric Blake.
65731 2010-05-01  Bruno Haible  <bruno@clisp.org>
65733         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65734         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65735         the _IOWRT flag is also set.
65737 2010-05-01  Bruno Haible  <bruno@clisp.org>
65739         Fix doc about a HP-UX stdio bug.
65740         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65741         * doc/posix-functions/ftello.texi: Likewise.
65743 2010-05-01  Bruno Haible  <bruno@clisp.org>
65745         lseek test: Fix failure on Solaris.
65746         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65747         output.
65749 2010-04-30  Jim Meyering  <meyering@redhat.com>
65751         bootstrap: don't ignore failure to generate po*/Makevars
65752         * build-aux/bootstrap (with_gettext): Don't ignore failure
65753         to create po/Makevars or runtime-po/Makevars.
65755 2010-04-29  Eric Blake  <eblake@redhat.com>
65757         headers: relax license to LGPLv2+
65758         * modules/fcntl-h (License): Relax license.
65759         * modules/getopt-posix (License): Likewise.
65760         * modules/locale (License): Likewise.
65761         * modules/math (License): Likewise.
65762         * modules/pty (License): Likewise.
65763         * modules/sched (License): Likewise.
65764         * modules/search (License): Likewise.
65765         * modules/spawn (License): Likewise.
65766         * modules/stdarg (License): Likewise.
65767         * modules/sysexits (License): Likewise.
65769 2010-04-29  Jim Meyering  <meyering@redhat.com>
65771         inttypes: relax license to LGPLv2+
65772         * modules/inttypes (License): Relax license.
65774 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65776         * top/maint.mk (indent): Run twice to produce idempotent results.
65778 2010-04-28  Bruno Haible  <bruno@clisp.org>
65780         getdate: Generate getdate.c in the source directory.
65781         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65782         MOSTLYCLEANFILES.
65783         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65785 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65787         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65788         is not declared as a const *; avoid warnings in that case.
65790 2010-04-28  Eric Blake  <eblake@redhat.com>
65792         canonicalize-lgpl: avoid compiler warning
65793         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65794         declaration' / 'extraneous semicolon' warning with some compilers.
65795         Reported by Andreas Gruenbacher.
65797 2010-04-28  Jim Meyering  <meyering@redhat.com>
65799         init.sh: ensure a more reliable exit status when exiting via trap
65800         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65801         Inspired by patches from Dmitry V. Levin.
65802         Also trap on signal 3 (SIGQUIT).
65804 2010-04-27  Bruno Haible  <bruno@clisp.org>
65806         Update doc about utimes().
65807         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65808         'utimens' module.
65809         Reported by Andreas Gruenbacher <agruen@suse.de>.
65811 2010-04-27  Eric Blake  <eblake@redhat.com>
65813         full-read, full-write: relax license
65814         * modules/full-read (License): Drop to LGPLv2+.
65815         * modules/full-write (License): Likewise.
65816         * modules/safe-read (License): Likewise.
65817         * modules/safe-write (License): Likewise.
65819         pthread: mention library for linking
65820         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65822 2010-04-27  Jim Meyering  <meyering@redhat.com>
65824         maint.mk: fix a bug introduced in last change
65825         * top/maint.mk (gl_assured_headers_): Now that all names are on
65826         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65827         is not anchored to end of word, it should be adequate.
65829         maint.mk: avoid side-effect in latest syntax-check
65830         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65831         to run commands via $(shell...), and hence to incur cost only when
65832         the new rule is actually run.
65834         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65835         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65836         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65837         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65838         (gl_assured_headers_, az_, AZ_): Define.
65839         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65841 2010-04-26  Jim Meyering  <jim@meyering.net>
65842             Bruno Haible  <bruno@clisp.org>
65844         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65845         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65846         Prompted by an exchange with Gilles Espinasse.
65848 2010-04-26  Jim Meyering  <meyering@redhat.com>
65850         git-version-gen: aesthetic tweak
65851         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65852         so that the command remains on a single line.
65854 2010-04-26  Eric Blake  <eblake@redhat.com>
65856         git-version-gen: allow use on EBCDIC hosts
65857         * build-aux/git-version-gen (dirty): Use literal rather than tying
65858         ourselves to ascii.
65859         Reported by Steve Goetze.
65861 2010-04-25  Bruno Haible  <bruno@clisp.org>
65863         netdb: Add support for GNULIB_POSIXCHECK.
65864         * lib/netdb.in.h: Include warn-on-use.h.
65865         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65866         functions are used when GNULIB_POSIXCHECK is defined and the
65867         getaddrinfo module is not in use.
65868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65869         freeaddrinfo, gai_strerror, getnameinfo are declared.
65870         * modules/netdb (Depends-on): Add warn-on-use.
65871         (Makefile.am): Include warn-on-use.h in netdb.h.
65873 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65875         build: avoid "make check" failure without .git/ directory
65876         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65877         there is no .git/ directory.
65879 2010-04-25  Bruno Haible  <bruno@clisp.org>
65881         ptsname: Fix misuse of ttyname_r.
65882         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65883         of errno.
65885 2010-04-25  Bruno Haible  <bruno@clisp.org>
65887         ttyname_r: Make it work on Solaris 10.
65888         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65889         if the system function has the POSIX declaration. Test whether the
65890         function fails if the buffer is less than 128 bytes large.
65891         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65892         system's ttyname_r function. Provide a reasonably large buffer.
65893         * modules/ttyname_r (Depends-on): Add extensions.
65894         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65896 2010-04-25  Bruno Haible  <bruno@clisp.org>
65898         Use the 'extensions' module for some more functions on Solaris.
65899         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65900         module.
65901         * doc/posix-functions/ctime_r.texi: Likewise.
65902         * doc/posix-functions/getgrgid_r.texi: Likewise.
65903         * doc/posix-functions/getgrnam_r.texi: Likewise.
65904         * doc/posix-functions/getpwnam_r.texi: Likewise.
65905         * doc/posix-functions/getpwuid_r.texi: Likewise.
65906         * doc/posix-functions/readdir_r.texi: Likewise.
65907         * doc/posix-functions/sigwait.texi: Likewise.
65908         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65909         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65911 2010-04-25  Bruno Haible  <bruno@clisp.org>
65913         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65914         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65915         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65916         * lib/ttyname_r.c: Include <limits.h>.
65917         (ttyname_r): Define using the system's ttyname_r function, if it exists
65918         and not on Solaris.
65919         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65920         set.
65921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65922         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65923         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65924         Reported by Simon Josefsson.
65926 2010-04-25  Bruno Haible  <bruno@clisp.org>
65928         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65929         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65930         * doc/posix-functions/ctime_r.texi: Likewise.
65931         * doc/posix-functions/getgrgid_r.texi: Likewise.
65932         * doc/posix-functions/getgrnam_r.texi: Likewise.
65933         * doc/posix-functions/getlogin_r.texi: Likewise.
65934         * doc/posix-functions/getpwnam_r.texi: Likewise.
65935         * doc/posix-functions/getpwuid_r.texi: Likewise.
65936         * doc/posix-functions/readdir_r.texi: Likewise.
65937         * doc/posix-functions/sigwait.texi: Likewise.
65938         * doc/posix-functions/ttyname_r.texi: Likewise.
65939         Reported by Simon Josefsson.
65941 2010-04-25  Bruno Haible  <bruno@clisp.org>
65943         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65944         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65945         also to --create-testdir.
65946         (func_acceptable): Don't consider the status of *-tests modules here.
65947         (func_modules_transitive_closure): Consider it here, before including a
65948         test module.
65949         (func_import, func_create_testdir): Set inc_all_direct_tests,
65950         inc_all_indirect_tests.
65951         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65952         --create-testdir and --create-megatestdir.
65954 2010-04-25  Bruno Haible  <bruno@clisp.org>
65956         gnulib-tool: Add --without-*-tests options.
65957         * gnulib-tool (func_usage): Document the --without-*-tests options.
65958         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65959         excl_unportable_tests): New variables.
65960         Fail if they are specified with --import or --update.
65961         (func_acceptable): Respect the excl_*_tests variables.
65962         (func_import): Set the excl_*_tests variables to empty.
65964 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65965             Bruno Haible  <bruno@clisp.org>
65967         Work around a MacOS X 10.4 bug with openpty.
65968         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65969         * tests/test-openpty.c (main): Close the master side explicitly.
65971 2010-04-25  Bruno Haible  <bruno@clisp.org>
65973         strnlen: Fix a C++ test error on MacOS X and Solaris.
65974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65975         the function is not declared.
65976         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65977         Simon Josefsson.
65979 2010-04-24  Bruno Haible  <bruno@clisp.org>
65981         Avoid a gcc warning.
65982         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65983         of correct type for %08lx directive.
65984         Reported by Eric Blake.
65986 2010-04-24  Bruno Haible  <bruno@clisp.org>
65988         vasnprintf: Correct errno value in case of out-of-memory.
65989         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65990         or sprintf. Use the errno value from SNPRINTF or sprintf.
65991         Reported by Ian Beckwith <ianb@erislabs.net>.
65993 2010-04-24  Bruno Haible  <bruno@clisp.org>
65995         ansi-c++-opt: Find correct compiler when cross-compiling.
65996         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65997         AC_CHECK_PROGS.
65998         Reported by Simon Josefsson.
66000 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
66002         vc-list-files: Add support for subversion
66003         * build-aux/vc-list-files: Use "svn list" to generate the list of
66004         files controlled by subversion.
66006 2010-04-23  Jim Meyering  <meyering@redhat.com>
66008         vc-list-files tests: convert to use init.sh
66009         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
66010         path_prepend_.
66011         Use Exit, not exit.
66012         Use skip_ rather than open coding it.
66013         Remove trap set-up and compare definitions.
66014         * tests/test-vc-list-files-git.sh: Likewise.
66015         * modules/vc-list-files-tests (Files): Add tests/init.sh.
66017 2010-04-22  Simon Josefsson  <simon@josefsson.org>
66019         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
66020         backup files.
66022 2010-04-21  Simon Josefsson  <simon@josefsson.org>
66024         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
66026 2010-04-20  Eric Blake  <eblake@redhat.com>
66028         tests: be robust to ignored SIGPIPE
66029         * tests/test-select-in.sh: Consume all output.
66030         * tests/test-lseek.sh: Check correct exit status, while avoiding
66031         EPIPE.
66033 2010-04-20  Simon Josefsson  <simon@josefsson.org>
66034             Bruno Haible  <bruno@clisp.org>
66036         visibility: Don't use -fvisibility if it leads to a warning.
66037         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
66038         yes, don't pretend that visibility works if it leads to a warning.
66039         Reported by Mike Gran <spk121@yahoo.com>.
66041 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
66043         * build-aux/bootstrap: Use "git -h" for testing for supported options
66044         instead of "git --help".  The short-form option only shows a summary,
66045         and doesn't layout the full man page.  Grep for the full option name
66046         in the summary, too.
66048 2010-04-19  Bruno Haible  <bruno@clisp.org>
66050         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
66051         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
66052         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
66053         mention of RELOCATABLE_STRIP.
66054         Reported by Sylvain Beucler <beuc@beuc.net>.
66056 2010-04-19  Bruno Haible  <bruno@clisp.org>
66058         * lib/diffseq.h: Fix typo in comment.
66059         Reported by Eric Blake.
66061 2010-04-19  Bruno Haible  <bruno@clisp.org>
66063         ioctl: Move autoconf macro to a .m4 file.
66064         * m4/ioctl.m4: New file, extracted from modules/ioctl.
66065         * modules/ioctl (Files): Add it.
66066         (configure.ac): Simply invoke gl_FUNC_IOCTL.
66067         Reported by Ian Beckwith <ianb@erislabs.net>.
66069 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
66070             Bruno Haible  <bruno@clisp.org>
66072         diffseq: Accommodate use-case with abstract arrays.
66073         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
66074         is not defined.
66075         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
66076         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
66078 2010-04-18  Bruno Haible  <bruno@clisp.org>
66080         * doc/posix-headers/stdbool.texi: More precise wording.
66082 2010-04-17  Jim Meyering  <meyering@redhat.com>
66084         maint.mk: use gnu-style indentation in an embedded perl script
66085         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
66086         Rename variable: s/two/last_two_bytes/
66088 2010-04-16  Eric Blake  <eblake@redhat.com>
66090         test-stdbool: skip test that fails with Solaris CC
66091         * tests/test-stdbool.c (f): Skip test that causes compilation
66092         error under buggy C++ compiler.
66093         * lib/stdbool.in.h: Document the limitation.
66094         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
66096         setenv: allow compilation with C++
66097         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
66098         register keyword.
66100         stdint: allow test to pass with C++
66101         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
66103         getopt: allow compilation with C++
66104         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
66105         struct.
66106         * lib/getopt.c (_getopt_internal_r): Use correct type.
66107         Reported by Dagobert Michelson, via Joel E. Denny.
66109 2010-04-16  Bruno Haible  <bruno@clisp.org>
66111         Override netdb.h always.
66112         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
66113         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
66114         Reported by Ludovic Courtès <ludo@gnu.org>.
66116 2010-04-15  Bruno Haible  <bruno@clisp.org>
66118         openpty: Fix mistake from 2010-03-21.
66119         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
66120         Reported by Simon Josefsson.
66122 2010-04-15  Eric Blake  <eblake@redhat.com>
66124         test-forkpty: fix expected signature
66125         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
66126         Reported by Simon Josefsson.
66128 2010-04-15  Jim Meyering  <meyering@redhat.com>
66130         maint.mk: texinfo_suffix_re_: correct the default regexp
66131         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
66133         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
66134         make it configurable via texinfo_suffix_re_.
66136 2010-04-14  Eric Blake  <eblake@redhat.com>
66138         strtok_r: relax license to LGPLv2+
66139         * modules/strtok_r (License): Relax license.
66140         Reported by Matthias Bolte.
66142 2010-04-14  Simon Josefsson  <simon@josefsson.org>
66144         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
66145         version 1.4.4 by default instead of requiring the libgcrypt
66146         version used during build.  This makes it possible to use the
66147         application with older but still binary compatible libgcrypt
66148         versions.
66150 2010-04-13  Eric Blake  <eblake@redhat.com>
66152         getopt-gnu: match recent glibc fixes and posix ruling
66153         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
66154         '+' handling, when requesting extensions.
66155         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
66156         'W;' handling.
66157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
66158         * doc/posix-functions/getopt.texi (getopt): Document this.
66159         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66160         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66161         Likewise.
66163         getopt: merge bug fixes from glibc
66164         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
66165         diagnostics.  Honor '+:' correctly.  Reject ';'.
66167         getopt-posix: detect MacOS bug
66168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
66169         optind when missing a required argument.
66170         * doc/posix-functions/getopt.texi (getopt): Document the bug.
66171         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66172         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66173         Likewise.
66175         getopt-posix: avoid spurious failure on Solaris
66176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
66177         an indicator that setting optind=1 is sufficient for reset.
66179         getopt-posix: avoid spurious failure on FreeBSD
66180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
66181         in POSIX mode, since the m4 test uses it.
66183         gnulib-tool: silence warning on BSD sh
66184         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
66186 2010-04-13  Jim Meyering  <meyering@redhat.com>
66188         doc: users.txt: GNU patch now uses gnulib
66189         * users.txt: Add patch.
66191 2010-04-12  Jim Meyering  <meyering@redhat.com>
66193         maint.mk: generate more concise timing data for syntax-check rules
66194         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
66195         " done" from each line that reports a syntax-check test duration.
66197 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
66199         git-version-gen: use "git update-index..." rather than "git status"
66200         * build-aux/git-version-gen: Use git update-index --refresh, not
66201         "git status".  With some versions of git, "git status" would fail
66202         to update the index and result in an unwarranted "-dirty" suffix.
66204 2010-04-11  Jim Meyering  <meyering@redhat.com>
66206         openat: correct formatting (no semantic change)
66207         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
66208         Suggested by Bruno Haible.
66210 2010-04-11  Bruno Haible  <bruno@clisp.org>
66212         Stricter declaration checking in testdirs.
66213         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66214         If for_tests is true, augment AM_CPPFLAGS to define
66215         GNULIB_STRICT_CHECKING.
66216         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
66217         GNULIB_STRICT_CHECKING is defined, verify that the function is
66218         declared.
66220 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
66221             Bruno Haible  <bruno@clisp.org>
66223         libunistring: Improve configure output.
66224         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
66225         Don't say "consider installing GNU libunistring" when checking again
66226         with libiconv.
66228 2010-04-11  Bruno Haible  <bruno@clisp.org>
66230         libunistring: Correct value of $LTLIBUNISTRING.
66231         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
66232         correct the value of $LTLIBUNISTRING.
66234 2010-04-11  Bruno Haible  <bruno@clisp.org>
66236         havelib: Add static libraries to LIBS in the right order.
66237         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
66238         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
66240 2010-04-11  Bruno Haible  <bruno@clisp.org>
66242         libunistring: Detect libunistring also when it depends on libiconv.
66243         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
66244         the second AC_LIB_HAVE_LINKFLAGS invocation.
66246 2010-04-11  James Youngman  <jay@gnu.org>
66248         close-stream: declare local scalars to be "const"
66249         * lib/close-stream.c (close_stream): Make boolean variables const
66250         to document the fact that we set but do not change them.
66252 2010-04-11  Bruno Haible  <bruno@clisp.org>
66254         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
66256 2010-04-11  Jim Meyering  <meyering@redhat.com>
66258         maint.mk: don't include dist-check.mk
66259         * top/maint.mk: Remove bogus include directive.
66261         maint.mk: improve empty-line-at-EOF check
66262         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
66263         solution, rather than tail+Perl-based one.  The latter would read
66264         a few kilobytes from the end of each file, and did not handle empty
66265         files properly.
66267         maint.mk: print the elapsed time for each syntax-check rule
66268         * top/maint.mk (sc_m_rules_): Save start time in a file.
66269         (sc_z_rules_): New rules: remove temp file and print elapsed time.
66270         (local-check): Interpose the .z rules
66272 2010-04-11  Jim Meyering  <meyering@redhat.com>
66274         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
66275         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
66276         empty file with one that ends in an empty line.
66278 2010-04-10  Bruno Haible  <bruno@clisp.org>
66280         mkdir: Make it work on mingw64.
66281         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
66282         * lib/mkdir.c: Update comment.
66283         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
66285 2010-04-10  Bruno Haible  <bruno@clisp.org>
66287         Don't override improved macro from newer autoconf.
66288         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
66289         autoconf >= 2.62.
66290         Reported by Joel E. Denny <jdenny@clemson.edu>.
66292 2010-04-10  Jim Meyering  <meyering@redhat.com>
66294         maint.mk: new syntax-check rule: prohibit empty lines at end of file
66295         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
66297         maint.mk: correct a diagnostic
66298         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
66299         in diagnostic; now use $prohibit.
66301 2010-04-10  Bruno Haible  <address@hidden>
66303         fchownat: Fix a C++ test error on Solaris 8.
66304         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
66305         the function does not exist.
66307 2010-04-10  Bruno Haible  <bruno@clisp.org>
66309         vasnprintf: Add more tests.
66310         * tests/test-vasnprintf-posix.c: Include <errno.h>.
66311         (test_function): Test converting an invalid wide string.
66313         vasnprintf: Correct handling of unconvertible wide string arguments.
66314         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
66315         VASNPRINTF.
66316         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
66317         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
66318         smaller than the expected maximum need for the directive. Set errno to
66319         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
66320         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
66321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
66322         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
66323         * modules/vasnprintf (Files): Add m4/printf.m4.
66324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66326 2010-04-10  Bruno Haible  <bruno@clisp.org>
66328         vasnprintf: Fix crash in %ls directive.
66329         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
66330         string is passed as argument to %ls, with no precision and no width.
66331         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66333 2010-04-10  Bruno Haible  <bruno@clisp.org>
66335         vasnprintf: Fix multiple test failures on mingw.
66336         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
66337         _snprintf, or snwprintf, not _snwprintf.
66339 2010-04-10  Bruno Haible  <bruno@clisp.org>
66341         write: Fix a C++ test error on mingw.
66342         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
66344 2010-04-10  Bruno Haible  <bruno@clisp.org>
66346         vasnprintf test: Reduce code duplication.
66347         * tests/test-vasnprintf.c (test_function): New function, extracted from
66348         test_vasnprintf.
66349         (test_vasnprintf, test_asnprintf): Invoke it.
66351 2010-04-10  Bruno Haible  <bruno@clisp.org>
66353         strnlen: Fix warning in C++ mode on MacOS X.
66354         * lib/string.in.h (strnlen): Use the modern idiom.
66355         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
66356         defining strnlen as a macro already in <config.h>.
66357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66358         REPLACE_STRNLEN.
66359         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
66360         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66362 2010-04-08  James Youngman  <jay@gnu.org>
66364         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
66365         the example.
66367 2010-04-09  Jim Meyering  <meyering@redhat.com>
66369         maint.mk: print better diagnostic when there is no $(_hv_file)
66370         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
66371         announce that when $(_hv_file) (aka help-version) does not exist.
66373         init.sh: run tr in the "C" locale to avoid multibyte interpretation
66374         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
66375         not try to interpret its random input bytes.  Jarno Rajahalme reported
66376         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
66377         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
66378         (mktempd_): Likewise, just in case.
66380         ftruncate: add two years to projected module removal date: 2012
66381         * m4/ftruncate.m4: Adjust comments.
66383         ftruncate: mark module as obsolete; even MinGW provides it, now
66384         * modules/ftruncate (Status): Obsolete.
66385         (Notice): Say that.
66386         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
66387         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
66389 2010-04-08  Bruno Haible  <bruno@clisp.org>
66391         Fix side effects from tests-related modules.
66392         * modules/dprintf-posix (Comment): New section.
66393         * modules/fprintf-posix (Comment): Likewise.
66394         * modules/obstack-printf-posix (Comment): Likewise.
66395         * modules/printf-posix (Comment): Likewise.
66396         * modules/snprintf-posix (Comment): Likewise.
66397         * modules/sprintf-posix (Comment): Likewise.
66398         * modules/vasnprintf-posix (Comment): Likewise.
66399         * modules/vasprintf-posix (Comment): Likewise.
66400         * modules/vdprintf-posix (Comment): Likewise.
66401         * modules/vfprintf-posix (Comment): Likewise.
66402         * modules/vprintf-posix (Comment): Likewise.
66403         * modules/vsnprintf-posix (Comment): Likewise.
66404         * modules/vsprintf-posix (Comment): Likewise.
66405         * modules/xprintf-posix (Comment): Likewise.
66406         * modules/xvasprintf-posix (Comment): Likewise.
66407         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
66408         * modules/floorf-tests (Depends-on): Likewise.
66409         * modules/round-tests (Depends-on): Likewise.
66410         * modules/roundf-tests (Depends-on): Likewise.
66411         * modules/trunc-tests (Depends-on): Likewise.
66412         * modules/truncf-tests (Depends-on): Likewise.
66413         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
66414         'fprintf-posix' module is not present.
66415         * tests/test-floorf2.c (check): Likewise.
66416         * tests/test-trunc2.c (check): Likewise.
66417         * tests/test-truncf2.c (check): Likewise.
66418         * tests/test-round2.c (equal): Likewise.
66419         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66421 2010-04-07  Karl Berry  <karl@gnu.org>
66423         * config/srclist.txt,
66424         * config/srclistvars.sh,
66425         * config/srclist-update: doc fixes.
66427 2010-04-07  Jim Meyering  <meyering@redhat.com>
66429         maint.mk: add a PATH crosschecking syntax-check rule
66430         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
66431         Useful if you use a test like the one in help-version (coreutils,
66432         diffutils, grep, gzip) that ensures $(VERSION) matches what is
66433         printed by prog --version.
66435 2010-04-06  Bruno Haible  <bruno@clisp.org>
66437         Fix link error on mingw.
66438         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
66439         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
66441 2010-04-06  Bruno Haible  <bruno@clisp.org>
66443         Assume rmdir exists.
66444         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
66446 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
66448         doc: update users.txt
66449         * users.txt: Add gcal.
66451 2010-04-06  Jim Meyering  <meyering@redhat.com>
66453         init.sh: simply unset TMPDIR rather than risking env -i
66454         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
66455         although it probably works fine on all Unix-based systems, some
66456         systems (Cygwin?) cannot tolerate a totally cleared environment.
66457         Suggestion from Eric Blake.
66459 2010-04-06  Jim Meyering  <meyering@redhat.com>
66461         init.sh: portability fix: use env's POSIX-specified -i option not -u
66462         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
66463         than unportable env -u.  Solaris 5.11's env lacks support for -u.
66465 2010-04-05  Bruno Haible  <bruno@clisp.org>
66467         btowc: Work around Cygwin 1.7.2 bug.
66468         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
66469         does not map NUL to 0.
66470         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
66472 2010-04-05  Bruno Haible  <bruno@clisp.org>
66474         Make the multithread modules work on Cygwin 1.7.2.
66475         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
66476         imported symbols can be declared weak, so that it returns "no" on
66477         Cygwin 1.7.2.
66479 2010-04-05  Bruno Haible  <bruno@clisp.org>
66481         Use the module 'strncat'.
66482         * modules/unistr/u8-strncat (Depends-on): Add strncat.
66484         Tests for module 'strncat'.
66485         * modules/strncat-tests: New file.
66486         * tests/test-strncat.c: New file.
66488         New module 'strncat'.
66489         * lib/string.in.h (strncat): New declaration.
66490         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
66491         * m4/strncat.m4: New file, based on m4/memchr.m4.
66492         * modules/strncat: New file.
66493         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
66494         is declared.
66495         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
66496         REPLACE_STRNCAT.
66497         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
66498         REPLACE_STRNCAT.
66499         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
66500         module.
66501         * tests/test-string-c++.cc: Check signature of strncat.
66503 2010-04-05  Jim Meyering  <meyering@redhat.com>
66505         xstrtoumax-tests: convert to use init.sh
66506         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
66507         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66508         Use Exit, not exit.
66509         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66511         xstrtoimax-tests: convert to use init.sh
66512         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
66513         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66514         Use Exit, not exit.
66515         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66517 2010-04-05  Bruno Haible  <bruno@clisp.org>
66519         sys_socket: Avoid #define replacements in C++ mode.
66520         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
66521         warning to the function if possible, rather than #defining the symbol
66522         to a dysfunctional alias.
66524 2010-04-05  Bruno Haible  <bruno@clisp.org>
66526         fseeko: Fix C++ test error on mingw.
66527         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
66528         gl_FUNC_FSEEKO.
66529         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
66530         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
66531         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
66532         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
66534 2010-04-05  Bruno Haible  <bruno@clisp.org>
66536         duplocale: Improve test output.
66537         * tests/test-duplocale.c (main): Print reason for skipped test.
66539 2010-04-05  Bruno Haible  <bruno@clisp.org>
66541         Assume rmdir exists.
66542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
66543         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
66545 2010-04-05  Bruno Haible  <bruno@clisp.org>
66547         Fix link error on Solaris 8 with cc.
66548         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
66550 2010-04-05  Bruno Haible  <bruno@clisp.org>
66552         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66553         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
66555 2010-04-05  Bruno Haible  <bruno@clisp.org>
66557         vasprintf: Update documentation.
66558         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
66560 2010-04-05  Bruno Haible  <bruno@clisp.org>
66562         ptsname: Improve test.
66563         * tests/test-ptsname.c (main): Also try the various master names of BSD
66564         systems.
66566 2010-04-05  Bruno Haible  <bruno@clisp.org>
66568         memchr: Avoid a possible C++ test error.
66569         * lib/string.in.h (memchr): Provide declaration if function is missing.
66570         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
66571         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
66572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
66573         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
66575 2010-04-05  Bruno Haible  <bruno@clisp.org>
66577         strtok_r: Improve idiom.
66578         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
66579         AC_LIBOBJ is used.
66581 2010-04-05  Bruno Haible  <bruno@clisp.org>
66583         strdup: Improve idiom.
66584         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
66585         AC_LIBOBJ is used.
66586         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66587         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66588         when AC_LIBOBJ is used.
66590 2010-04-05  Bruno Haible  <bruno@clisp.org>
66592         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66593         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66594         don't set REPLACE_MBSINIT to 1.
66595         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66596         don't set REPLACE_MBRTOWC to 1.
66597         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66598         exist, don't set REPLACE_MBSRTOWCS to 1.
66599         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66600         exist, don't set REPLACE_MBSNRTOWCS to 1.
66601         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66602         don't set REPLACE_WCRTOMB to 1.
66603         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66604         exist, don't set REPLACE_WCSRTOMBS to 1.
66605         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66606         exist, don't set REPLACE_WCSNRTOMBS to 1.
66608 2010-04-05  Bruno Haible  <bruno@clisp.org>
66610         ldexpl: Improve idiom.
66611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66612         make sure to set HAVE_DECL_LDEXPL to 0.
66614 2010-04-05  Jim Meyering  <meyering@redhat.com>
66616         xstrtol-tests: convert to use init.sh
66617         * modules/xstrtol-tests (Files): Add tests/init.sh.
66618         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66619         Use Exit, not exit.
66620         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66622         atexit-tests: convert to use init.sh
66623         * modules/atexit-tests (Files): Add tests/init.sh.
66624         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66625         Use Exit, not exit.
66626         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66628         init.sh: fix typo
66629         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66631         init.sh: make it easier for a test script to write to the tty, ...
66632         when using automake's parallel-tests mode.
66633         * tests/init.sh (stderr_fileno_): Define overridable variable.
66634         (warn_): New function, to use it.
66635         (fail_, skip_, framework_failure_): Use warn_.
66637 2010-04-04  Bruno Haible  <bruno@clisp.org>
66639         btowc: Avoid warning.
66640         * lib/btowc.c: Include <stdlib.h>.
66641         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66643 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66644             Bruno Haible  <bruno@clisp.org>
66646         wchar: Port to NetBSD 1.5.
66647         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66648         * lib/wctype.in.h (WEOF): Likewise.
66650 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66651             Bruno Haible  <bruno@clisp.org>
66653         Port extended stdio to NetBSD 1.5.
66654         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66655         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66656         older.
66658 2010-04-04  Bruno Haible  <bruno@clisp.org>
66660         string: Remove unused substitution.
66661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66662         HAVE_DECL_STRERROR.
66663         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66665 2010-04-04  Bruno Haible  <bruno@clisp.org>
66667         strtod: Avoid a possible C++ test error.
66668         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66669         set REPLACE_STRTOD.
66671 2010-04-04  Bruno Haible  <bruno@clisp.org>
66673         strerror: Update documentation.
66674         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66676 2010-04-04  Bruno Haible  <bruno@clisp.org>
66678         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66679         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66680         _GL_CXXALIAS_SYS_CAST.
66682 2010-04-04  Bruno Haible  <bruno@clisp.org>
66684         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66685         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66686         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66687         REPLACE_FREXPL to 1.
66688         * doc/posix-functions/frexpl.texi: Update documentation.
66690 2010-04-04  Bruno Haible  <bruno@clisp.org>
66692         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66693         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66695 2010-04-04  Bruno Haible  <bruno@clisp.org>
66697         Implement nanosleep for native Windows.
66698         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66700 2010-04-04  Bruno Haible  <bruno@clisp.org>
66702         math: Fix some C++ test errors on Solaris 8.
66703         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66705 2010-04-04  Bruno Haible  <bruno@clisp.org>
66707         math: Fix some C++ test errors on Cygwin.
66708         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66709         truncl): Provide declaration if the system does not have it.
66710         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66711         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66712         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66713         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66714         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66715         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66716         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66717         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66718         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66719         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66720         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66721         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66722         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66723         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66724         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66725         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66727         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66728         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66729         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66730         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66731         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66733 2010-04-04  Bruno Haible  <bruno@clisp.org>
66735         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66736         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66737         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66738         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66739         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66740         * m4/isinf.m4 (gl_ISINF): Likewise.
66741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66743 2010-04-04  Bruno Haible  <bruno@clisp.org>
66745         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66746         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66748 2010-04-04  Bruno Haible  <bruno@clisp.org>
66750         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66751         * modules/tmpfile (configure.ac): Update.
66753         tmpfile: Fix C++ test error on mingw.
66754         * lib/stdio.in.h (tmpfile): New declaration.
66755         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66756         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66757         * modules/tmpfile (Depends-on): Add stdio.
66758         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66759         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66760         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66761         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66762         REPLACE_TMPFILE.
66763         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66765 2010-04-04  Bruno Haible  <bruno@clisp.org>
66767         ioctl: Fix C++ test error on mingw.
66768         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66769         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66770         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66772 2010-04-03  Bruno Haible  <bruno@clisp.org>
66774         wcwidth: Fix C++ test error on mingw.
66775         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66777         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66779 2010-04-03  Bruno Haible  <bruno@clisp.org>
66781         nanosleep: Fix C++ test error on mingw.
66782         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66783         * lib/time.in.h (nanosleep): Use modern idiom.
66784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66785         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66786         REPLACE_NANOSLEEP to 1.
66787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66788         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66790 2010-04-03  Bruno Haible  <bruno@clisp.org>
66792         strptime: Fix C++ test error on mingw.
66793         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66794         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66795         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66796         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66798         not REPLACE_STRPTIME.
66799         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66800         REPLACE_STRPTIME.
66802 2010-04-03  Bruno Haible  <bruno@clisp.org>
66804         timegm: Fix C++ test error on mingw.
66805         * lib/time.in.h (timegm): Use modern idiom.
66806         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66807         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66808         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66809         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66811 2010-04-03  Bruno Haible  <bruno@clisp.org>
66813         timegm: Assume declaration if function exists.
66814         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66815         if it exists. Don't clobber ac_cv_func_timegm.
66817 2010-04-03  Bruno Haible  <bruno@clisp.org>
66819         time_r: Fix C++ test error on mingw.
66820         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66821         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66822         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66823         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66824         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66826 2010-04-03  Bruno Haible  <bruno@clisp.org>
66828         time_r: Minor updates.
66829         * modules/time_r (Description): Mention the provided functions.
66830         * lib/time_r.c: Don't include <string.h>.
66831         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66832         * doc/posix-functions/localtime_r.texi: Likewise.
66834 2010-04-03  Bruno Haible  <bruno@clisp.org>
66836         time: Fix regression introduced on 2010-03-08.
66837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66838         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66840 2010-04-03  Jim Meyering  <meyering@redhat.com>
66842         maint.mk: don't silently disable project-specific syntax-check rules
66843         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66844         that they need to convert their project-specific syntax-check rules
66845         to use the new _sc_search_regexp.
66847 2010-04-03  Bruno Haible  <bruno@clisp.org>
66849         fchdir: Fix regression introduced on 2010-03-08.
66850         * lib/unistd.in.h (fchdir): Fix declaration.
66851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66853         REPLACE_FCHDIR.
66854         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66855         REPLACE_FCHDIR.
66857 2010-04-03  Bruno Haible  <bruno@clisp.org>
66859         getpagesize: Fix C++ test error on mingw.
66860         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66861         system does not declare the function.
66862         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66863         declared.
66864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66865         HAVE_DECL_GETPAGESIZE.
66866         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66868 2010-04-03  Bruno Haible  <bruno@clisp.org>
66870         stdio: Make C++ tests work on mingw.
66871         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66872         does not declare the function.
66874 2010-04-03  Bruno Haible  <bruno@clisp.org>
66876         ftello: Fix C++ test error on mingw.
66877         * lib/stdio.in.h (ftello): Use modern idiom.
66878         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66879         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66880         is missing and that it needs to be replaced.
66881         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66883         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66885 2010-04-03  Bruno Haible  <bruno@clisp.org>
66887         fseeko: Fix C++ test error on mingw.
66888         * lib/stdio.in.h (fseeko): Use modern idiom.
66889         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66891         is missing and that it needs to be replaced.
66892         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66894         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66896 2010-04-03  Bruno Haible  <bruno@clisp.org>
66898         mkstemp: Fix C++ test error on mingw.
66899         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66900         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66901         function is missing and that it needs to be replaced.
66902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66903         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66905 2010-04-03  Bruno Haible  <bruno@clisp.org>
66907         stpncpy: Fix C++ test error on mingw.
66908         * lib/string.in.h (stpncpy): Use modern idiom.
66909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66910         function is missing and that it needs to be replaced.
66911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66912         REPLACE_STPNCPY.
66913         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66915 2010-04-03  Bruno Haible  <bruno@clisp.org>
66917         sys_stat: Fix C++ test error on mingw.
66918         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66919         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66921 2010-04-03  Bruno Haible  <bruno@clisp.org>
66923         pty: Update doc.
66924         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66926 2010-04-03  Bruno Haible  <bruno@clisp.org>
66928         unistd: Fix C++ test error on mingw.
66929         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66931 2010-04-03  Bruno Haible  <bruno@clisp.org>
66933         Update doc regarding mingw.
66934         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66935         * doc/glibc-functions/login_tty.texi: Likewise.
66936         * doc/glibc-functions/forkpty.texi: Likewise.
66938 2010-04-03  Bruno Haible  <bruno@clisp.org>
66940         stdlib: Avoid compilation failure of c-strtold on mingw.
66941         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66943 2010-04-03  Bruno Haible  <bruno@clisp.org>
66945         locale: Make C++ tests work on Cygwin and mingw.
66946         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66947         cannot provide the function.
66948         Reported by Simon Josefsson.
66950 2010-04-03  Bruno Haible  <bruno@clisp.org>
66952         localename: Port to MacOS X 10.6.
66953         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66954         memory layout of the locales in MacOS X 10.6 as well.
66955         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66957 2010-04-02  Bruno Haible  <bruno@clisp.org>
66959         gnulib-tool: Ensure that long-running tests are executed last.
66960         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66961         running tests after the one for the other tests.
66963 2010-04-02  Bruno Haible  <bruno@clisp.org>
66965         gnulib-tool: Ensure the tests in the main directory are executed first.
66966         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66967         start with the current directory.
66969 2010-04-02  Bruno Haible  <bruno@clisp.org>
66971         Tests for module 'havelib', moved here from GNU gettext.
66972         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66973         modifications.
66974         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66975         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66976         with modifications.
66977         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66978         modifications.
66979         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66980         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66981         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66982         with modifications.
66983         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66984         with modifications.
66985         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66986         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66987         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66988         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66989         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66990         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66991         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66992         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66993         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66994         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66995         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66996         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66997         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66998         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66999         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
67000         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
67001         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
67002         with modifications.
67003         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
67004         with modifications.
67005         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
67006         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
67007         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
67008         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
67009         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
67010         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
67011         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
67012         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
67013         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
67014         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
67015         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
67016         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
67017         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
67018         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
67019         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
67020         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
67021         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
67022         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
67023         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
67024         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
67025         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
67026         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
67027         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
67028         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
67029         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
67030         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
67031         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
67032         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
67033         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
67034         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
67035         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
67036         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
67037         * tests/havelib/rpathx/rpathx.c: New file, from
67038         gettext/autoconf-lib-link.
67039         * tests/havelib/rpathx/Makefile.am: New file, from
67040         gettext/autoconf-lib-link.
67041         * tests/havelib/rpathx/configure.ac: New file, from
67042         gettext/autoconf-lib-link with modifications.
67043         * tests/havelib/rpathy/rpathy.c: New file, from
67044         gettext/autoconf-lib-link.
67045         * tests/havelib/rpathy/Makefile.am: New file, from
67046         gettext/autoconf-lib-link.
67047         * tests/havelib/rpathy/configure.ac: New file, from
67048         gettext/autoconf-lib-link with modifications.
67049         * tests/havelib/rpathz/rpathz.c: New file, from
67050         gettext/autoconf-lib-link.
67051         * tests/havelib/rpathz/Makefile.am: New file, from
67052         gettext/autoconf-lib-link.
67053         * tests/havelib/rpathz/configure.ac: New file, from
67054         gettext/autoconf-lib-link with modifications.
67055         * tests/havelib/rpathlx/usex.c: New file, from
67056         gettext/autoconf-lib-link.
67057         * tests/havelib/rpathlx/Makefile.am: New file, from
67058         gettext/autoconf-lib-link.
67059         * tests/havelib/rpathlx/configure.ac: New file, from
67060         gettext/autoconf-lib-link with modifications.
67061         * tests/havelib/rpathly/usey.c: New file, from
67062         gettext/autoconf-lib-link.
67063         * tests/havelib/rpathly/Makefile.am: New file, from
67064         gettext/autoconf-lib-link.
67065         * tests/havelib/rpathly/configure.ac: New file, from
67066         gettext/autoconf-lib-link with modifications.
67067         * tests/havelib/rpathlz/usez.c: New file, from
67068         gettext/autoconf-lib-link.
67069         * tests/havelib/rpathlz/Makefile.am: New file, from
67070         gettext/autoconf-lib-link.
67071         * tests/havelib/rpathlz/configure.ac: New file, from
67072         gettext/autoconf-lib-link with modifications.
67073         * tests/havelib/rpathlyx/usey.c: New file, from
67074         gettext/autoconf-lib-link.
67075         * tests/havelib/rpathlyx/Makefile.am: New file, from
67076         gettext/autoconf-lib-link.
67077         * tests/havelib/rpathlyx/configure.ac: New file, from
67078         gettext/autoconf-lib-link with modifications.
67079         * tests/havelib/rpathlzyx/usez.c: New file, from
67080         gettext/autoconf-lib-link.
67081         * tests/havelib/rpathlzyx/Makefile.am: New file, from
67082         gettext/autoconf-lib-link.
67083         * tests/havelib/rpathlzyx/configure.ac: New file, from
67084         gettext/autoconf-lib-link with modifications.
67085         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
67086         with modifications.
67088 2010-04-02  Bruno Haible  <bruno@clisp.org>
67090         gnulib-tool: Create distributed built sources also for the tests.
67091         * gnulib-tool (func_create_testdir): Also generate distributed built
67092         sources in the tests directory.
67094 2010-04-02  Bruno Haible  <bruno@clisp.org>
67096         gnulib-tool: Obey user's environment variables.
67097         * gnulib-tool (func_create_testdir): When creating built sources,
67098         respect the environment variables for autoconf, automake, etc. given by
67099         the user.
67101 2010-04-02  Bruno Haible  <bruno@clisp.org>
67103         gnulib-tool: Provide the value of --m4-base to modules.
67104         * gnulib-tool (func_import, func_create_testdir): Emit a definition
67105         of gl_m4_base.
67107 2010-04-02  Eric Blake  <eblake@redhat.com>
67109         maint.mk: fix some fallout
67110         * NEWS: Document the incompatible change, and its effect on cfg.mk.
67111         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
67113 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
67115         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
67116         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
67117         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
67118         (sc_cast_of_x_alloc_return_value): Likewise.
67119         (sc_cast_of_alloca_return_value): Likewise.
67120         (sc_space_tab): Likewise.
67121         (sc_prohibit_atoi_atof): Likewise.
67122         (sc_prohibit_magic_number_exit): Likewise.
67123         (sc_error_exit_success): Likewise.
67124         (sc_file_system): Likewise.
67125         (sc_prohibit_have_config_h): Likewise.
67126         (sc_require_config_h): Likewise.
67127         (sc_prohibit_HAVE_MBRTOWC): Likewise.
67128         (sc_obsolete_symbols): Likewise.
67129         (sc_changelog): Likewise.
67130         (sc_program_name): Likewise.
67131         (sc_the_the): Likewise.
67132         (sc_trailing_blank): Likewise.
67133         (sc_two_space_separator_in_usage): Likewise.
67134         (sc_useless_cpp_parens): Likewise.
67135         (sc_GPL_version): Likewise.
67136         (sc_GFDL_version): Likewise.
67137         (sc_texinfo_acronym): Likewise.
67138         (sc_prohibit_cvs_keyword): Likewise.
67139         (sc_prohibit_stat_st_blocks): Likewise.
67140         (sc_prohibit_S_IS_definition): Likewise.
67141         (sc_redundant_const): Likewise.
67142         (sc_makefile_TAB_only_indentation): Likewise.
67143         (sc_m4_quote_check): Likewise.
67144         (sc_makefile_path_separator_check): Likewise.
67145         (sc_copyright_check): Likewise.
67146         (sc_Wundef_boolean): Likewise.
67147         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
67149         maint.mk: match 0 or more whitespace-before-function-call '('
67150         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
67151         that have zero or two-and-more spaces between the function name
67152         and the open parenthesis.
67153         (sc_error_message_warn_fatal): Likewise.
67154         (sc_error_message_uppercase): Likewise.
67155         (sc_error_message_period): Likewise.
67157 2010-03-31  Eric Blake  <eblake@redhat.com>
67159         maint.mk: check for [ as well as test
67160         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
67161         Based on a libvirt report by Matthias Bolte.
67163         gnumakefile: don't squelch _version output
67164         * top/GNUmakefile (_version): Create one-shot dependency rather
67165         than using $(shell) when version must be regenerated.
67166         (_autoreconf): Run verbosely, by default.
67168         sys_time: avoid compiler warnings
67169         * lib/sys_time.in.h (includes): Ensure gcc pragma is
67170         unconditional, fixing regression from 2010-03-29.
67171         Reported by Simon Josefsson.
67173 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
67175         maint.mk: s/_header_without_use/_sc_header_without_use/
67176         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
67177         (sc_prohibit_assert_without_use): Use the new name.
67178         (sc_prohibit_close_stream_without_use): Likewise.
67179         (sc_prohibit_getopt_without_use): Likewise.
67180         (sc_prohibit_quotearg_without_use): Likewise.
67181         (sc_prohibit_quote_without_use): Likewise.
67182         (sc_prohibit_long_options_without_use): Likewise.
67183         (sc_prohibit_inttostr_without_use): Likewise.
67184         (sc_prohibit_ignore_value_without_use): Likewise.
67185         (sc_prohibit_error_without_use): Likewise.
67186         (sc_prohibit_xalloc_without_use): Likewise.
67187         (sc_prohibit_hash_without_use): Likewise.
67188         (sc_prohibit_hash_pjw_without_use): Likewise.
67189         (sc_prohibit_safe_read_without_use): Likewise.
67190         (sc_prohibit_argmatch_without_use): Likewise.
67191         (sc_prohibit_canonicalize_without_use): Likewise.
67192         (sc_prohibit_root_dev_ino_without_use): Likewise.
67193         (sc_prohibit_openat_without_use): Likewise.
67194         (sc_prohibit_c_ctype_without_use): Likewise.
67195         (sc_prohibit_signal_without_use): Likewise.
67196         (sc_prohibit_intprops_without_use): Likewise.
67198 2010-03-30  Eric Blake  <eblake@redhat.com>
67200         maint: improve module indicators
67201         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
67202         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
67203         columns, and avoid extra macro expansion.
67205         fdopendir: work around FreeBSD bug
67206         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
67207         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
67208         * modules/dirent (Makefile.am): Substitute it.
67209         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
67210         declaration.
67211         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
67212         fix.
67213         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67215 2010-03-29  Bruno Haible  <bruno@clisp.org>
67217         Emit #pragma system_header after the inclusion guard, not before.
67218         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
67219         guard that spans the entire file, not before. This enables an
67220         optimization in GCC's preprocessor.
67221         * lib/ctype.in.h: Likewise.
67222         * lib/dirent.in.h: Likewise.
67223         * lib/errno.in.h: Likewise.
67224         * lib/float.in.h: Likewise.
67225         * lib/getopt.in.h: Likewise.
67226         * lib/iconv.in.h: Likewise.
67227         * lib/langinfo.in.h: Likewise.
67228         * lib/locale.in.h: Likewise.
67229         * lib/math.in.h: Likewise.
67230         * lib/netdb.in.h: Likewise.
67231         * lib/netinet_in.in.h: Likewise.
67232         * lib/pty.in.h: Likewise.
67233         * lib/sched.in.h: Likewise.
67234         * lib/se-selinux.in.h: Likewise.
67235         * lib/search.in.h: Likewise.
67236         * lib/spawn.in.h: Likewise.
67237         * lib/stdarg.in.h: Likewise.
67238         * lib/stdint.in.h: Likewise.
67239         * lib/string.in.h: Likewise.
67240         * lib/strings.in.h: Likewise.
67241         * lib/sys_file.in.h: Likewise.
67242         * lib/sys_ioctl.in.h: Likewise.
67243         * lib/sys_time.in.h: Likewise.
67244         * lib/sys_times.in.h: Likewise.
67245         * lib/sys_utsname.in.h: Likewise.
67246         * lib/sys_wait.in.h: Likewise.
67247         * lib/sysexits.in.h: Likewise.
67248         * lib/wctype.in.h: Likewise.
67250 2010-03-28  James Youngman  <jay@gnu.org>
67252         save-cwd: don't leak a file descriptor when the caller execs.
67253         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
67254         saved file descriptor.
67255         * modules/save-cwd (Depends-on): Depend on cloexec.
67257 2010-03-29  Bruno Haible  <bruno@clisp.org>
67259         Remove vestiges of fts-lgpl module.
67260         * lib/fts_.h: Assume GNULIB_FTS is 1.
67261         * lib/fts.c: Likewise.
67262         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67264 2010-03-28  Bruno Haible  <bruno@clisp.org>
67266         Fix definition of tests witness macro.
67267         * gnulib-tool (func_import): Fix definition of witness macro.
67269 2010-03-28  Bruno Haible  <bruno@clisp.org>
67271         Fix ioctl's protoype on glibc systems.
67272         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
67273         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
67274         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
67275         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
67276         signature. If not, arrange to replace the ioctl function.
67277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
67278         REPLACE_IOCTL.
67279         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
67280         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
67281         Reported by Ludovic Courtès <ludo@gnu.org>.
67283 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
67285         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
67286         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
67287         made it so grep -r --include=GLOB* ... did not work.
67289 2010-03-26  Jim Meyering  <meyering@redhat.com>
67290             Eric Blake  <eblake@redhat.com>
67292         maint.mk: prohibit use of test's -o and -a operators
67293         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
67295 2010-03-28  Bruno Haible  <bruno@clisp.org>
67297         Remove unused GNULIB_XYZ macro definitions.
67298         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
67299         invocation.
67301 2010-03-28  Bruno Haible  <bruno@clisp.org>
67303         Mark privileged tests modules.
67304         * modules/idpriv-drop-tests (Status): New section.
67305         * modules/idpriv-droptemp-tests (Status): New section.
67307 2010-03-28  Bruno Haible  <bruno@clisp.org>
67309         Split C++ tests into separate tests modules.
67310         * modules/dirent-c++-tests: New file, extracted from
67311         modules/dirent-tests.
67312         * modules/dirent-tests: Depend on it.
67313         * modules/fcntl-h-c++-tests: New file, extracted from
67314         modules/fcntl-h-tests.
67315         * modules/fcntl-h-tests: Depend on it.
67316         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
67317         * modules/glob-tests: Depend on it.
67318         * modules/iconv-h-c++-tests: New file, extracted from
67319         modules/iconv-h-tests.
67320         * modules/iconv-h-tests: Depend on it.
67321         * modules/langinfo-c++-tests: New file, extracted from
67322         modules/langinfo-tests.
67323         * modules/langinfo-tests: Depend on it.
67324         * modules/locale-c++-tests: New file, extracted from
67325         modules/locale-tests.
67326         * modules/locale-tests: Depend on it.
67327         * modules/math-c++-tests: New file, extracted from modules/math-tests.
67328         * modules/math-tests: Depend on it.
67329         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
67330         * modules/pty-tests: Depend on it.
67331         * modules/search-c++-tests: New file, extracted from
67332         modules/search-tests.
67333         * modules/search-tests: Depend on it.
67334         * modules/signal-c++-tests: New file, extracted from
67335         modules/signal-tests.
67336         * modules/signal-tests: Depend on it.
67337         * modules/spawn-c++-tests: New file, extracted from
67338         modules/spawn-tests.
67339         * modules/spawn-tests: Depend on it.
67340         * modules/stdio-c++-tests: New file, extracted from
67341         modules/stdio-tests.
67342         * modules/stdio-tests: Depend on it.
67343         * modules/stdlib-c++-tests: New file, extracted from
67344         modules/stdlib-tests.
67345         * modules/stdlib-tests: Depend on it.
67346         * modules/string-c++-tests: New file, extracted from
67347         modules/string-tests.
67348         * modules/string-tests: Depend on it.
67349         * modules/sys_ioctl-c++-tests: New file, extracted from
67350         modules/sys_ioctl-tests.
67351         * modules/sys_ioctl-tests: Depend on it.
67352         * modules/sys_select-c++-tests: New file, extracted from
67353         modules/sys_select-tests.
67354         * modules/sys_select-tests: Depend on it.
67355         * modules/sys_socket-c++-tests: New file, extracted from
67356         modules/sys_socket-tests.
67357         * modules/sys_socket-tests: Depend on it.
67358         * modules/sys_stat-c++-tests: New file, extracted from
67359         modules/sys_stat-tests.
67360         * modules/sys_stat-tests: Depend on it.
67361         * modules/sys_time-c++-tests: New file, extracted from
67362         modules/sys_time-tests.
67363         * modules/sys_time-tests: Depend on it.
67364         * modules/time-c++-tests: New file, extracted from modules/time-tests.
67365         * modules/time-tests: Depend on it.
67366         * modules/unistd-c++-tests: New file, extracted from
67367         modules/unistd-tests.
67368         * modules/unistd-tests: Depend on it.
67369         * modules/wchar-c++-tests: New file, extracted from
67370         modules/wchar-tests.
67371         * modules/wchar-tests: Depend on it.
67372         * modules/wctype-c++-tests: New file, extracted from
67373         modules/wctype-tests.
67374         * modules/wctype-tests: Depend on it.
67375         Reported by Simon Josefsson.
67377 2010-03-28  Bruno Haible  <bruno@clisp.org>
67379         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
67380         * gnulib-tool (func_exists_module): New function, extracted from
67381         func_verify_module.
67382         (func_verify_module): Use it.
67383         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
67384         'foo' only if 'foo' exists.
67385         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
67386         module.
67388 2010-03-28  Bruno Haible  <bruno@clisp.org>
67390         gnulib-tool: Add support for special categories of tests.
67391         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
67392         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
67393         (func_usage): Document them.
67394         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
67395         inc_unportable_tests, inc_all_tests): New variables.
67396         (func_acceptable): Consider these variables.
67397         (func_modules_transitive_closure): Make it work when the 'Status' field
67398         consists of multiple words.
67399         (func_import): Store and restore the values of inc_cxx_tests,
67400         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
67401         inc_all_tests in gnulib-comp.m4.
67402         (func_create_testdir): Set inc_all_tests to true.
67403         * doc/gnulib.texi (Extra tests modules): New section.
67404         Suggested by Jim Meyering.
67406 2010-03-28  Bruno Haible  <bruno@clisp.org>
67408         ansi-c++-opt: Allow turning off the C++ build by default.
67409         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
67410         gl_CXX_CHOICE_DEFAULT_NO is defined.
67411         Requested by Eric Blake.
67413 2010-03-28  Bruno Haible  <bruno@clisp.org>
67415         unistd: Avoid #define replacements in C++ mode.
67416         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
67417         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
67418         setsockopt, shutdown, select): In C++, attach a warning to the function
67419         if possible, rather than #defining the symbol to a dysfunctional alias.
67420         Reported by John W. Eaton <jwe@gnu.org>.
67422 2010-03-28  Bruno Haible  <bruno@clisp.org>
67424         Fix link errors on mingw.
67425         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
67426         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
67427         $(LIBSOCKET).
67428         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
67429         $(LIBSOCKET).
67431 2010-03-28  Bruno Haible  <bruno@clisp.org>
67432             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67434         lib-ignore: Determine different options for different compilers.
67435         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
67436         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
67437         Add comments.
67438         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
67439         * NEWS: Mention the change.
67441 2010-03-27  Bruno Haible  <bruno@clisp.org>
67443         Remove unused GNULIB_XYZ macro definitions.
67444         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67445         * modules/fseek (configure.ac): Likewise.
67446         * modules/ioctl (configure.ac): Likewise.
67447         * modules/open (configure.ac): Likewise.
67448         * modules/stdlib-safer (configure.ac): Likewise.
67450 2010-03-27  Bruno Haible  <bruno@clisp.org>
67452         Add a remark about certain modules.
67453         * modules/malloc (Comment): New section.
67454         * modules/realloc (Comment): Likewise.
67455         * modules/sigpipe (Comment): Likewise.
67457 2010-03-27  Bruno Haible  <bruno@clisp.org>
67459         Resolve conflict between the two kinds of module indicators.
67460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
67461         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
67462         * modules/canonicalize (configure.ac): Invoke
67463         gl_MODULE_INDICATOR_FOR_TESTS.
67464         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
67465         GNULIB_XYZ.
67466         * tests/test-dirent-c++.cc: Likewise.
67467         * tests/test-dirent-safer.c: Likewise.
67468         * tests/test-dup2.c: Likewise.
67469         * tests/test-fchdir.c: Likewise.
67470         * tests/test-fcntl-h-c++.cc: Likewise.
67471         * tests/test-getopt.c: Likewise.
67472         * tests/test-getopt.h: Likewise.
67473         * tests/test-langinfo-c++.cc: Likewise.
67474         * tests/test-locale-c++.cc: Likewise.
67475         * tests/test-math-c++.cc: Likewise.
67476         * tests/test-pty-c++.cc: Likewise.
67477         * tests/test-search-c++.cc: Likewise.
67478         * tests/test-signal-c++.cc: Likewise.
67479         * tests/test-spawn-c++.cc: Likewise.
67480         * tests/test-stdio-c++.cc: Likewise.
67481         * tests/test-stdlib-c++.cc: Likewise.
67482         * tests/test-string-c++.cc: Likewise.
67483         * tests/test-sys_ioctl-c++.cc: Likewise.
67484         * tests/test-sys_select-c++.cc: Likewise.
67485         * tests/test-sys_socket-c++.cc: Likewise.
67486         * tests/test-sys_stat-c++.cc: Likewise.
67487         * tests/test-sys_time-c++.cc: Likewise.
67488         * tests/test-time-c++.cc: Likewise.
67489         * tests/test-unistd-c++.cc: Likewise.
67490         * tests/test-wchar-c++.cc: Likewise.
67491         * tests/uninorm/test-u8-nfc.c: Likewise.
67492         * tests/uninorm/test-u8-nfd.c: Likewise.
67493         * tests/uninorm/test-u8-nfkc.c: Likewise.
67494         * tests/uninorm/test-u8-nfkd.c: Likewise.
67495         * tests/uninorm/test-u16-nfc.c: Likewise.
67496         * tests/uninorm/test-u16-nfd.c: Likewise.
67497         * tests/uninorm/test-u16-nfkc.c: Likewise.
67498         * tests/uninorm/test-u16-nfkd.c: Likewise.
67499         * tests/uninorm/test-u32-nfc.c: Likewise.
67500         * tests/uninorm/test-u32-nfc-big.c: Likewise.
67501         * tests/uninorm/test-u32-nfd.c: Likewise.
67502         * tests/uninorm/test-u32-nfd-big.c: Likewise.
67503         * tests/uninorm/test-u32-nfkc.c: Likewise.
67504         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
67505         * tests/uninorm/test-u32-nfkd.c: Likewise.
67506         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
67507         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67509 2010-03-27  Bruno Haible  <bruno@clisp.org>
67511         Distinguish two kinds of module indicators.
67512         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
67513         gl_MODULE_INDICATOR.
67514         (gl_MODULE_INDICATOR): New macro.
67515         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67516         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
67517         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67518         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67519         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67520         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67521         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67522         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67523         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67524         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67525         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67526         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67528         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67529         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67530         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67531         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67532         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67533         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67534         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67535         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67536         * modules/cloexec (configure.ac): Likewise.
67537         * modules/getopt-gnu (configure.ac): Likewise.
67538         * modules/uninorm/u8-normalize (configure.ac): Likewise.
67539         * modules/uninorm/u16-normalize (configure.ac): Likewise.
67540         * modules/uninorm/u32-normalize (configure.ac): Likewise.
67541         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
67543 2010-03-27  Bruno Haible  <bruno@clisp.org>
67545         New module description field 'Comment'.
67546         * gnulib-tool: New option --extract-comment.
67547         (func_usage): Document it.
67548         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
67549         (func_get_comment): New function.
67550         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
67552 2010-03-27  Bruno Haible  <bruno@clisp.org>
67554         Addendum to 2010-02-07 commit.
67555         * gnulib-tool (func_usage): Document --extract-applicability option.
67557 2010-03-27  Bruno Haible  <bruno@clisp.org>
67559         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
67560         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
67561         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
67562         rather than link errors.
67564 2010-03-27  Bruno Haible  <bruno@clisp.org>
67566         Avoid side effects from tests-related modules on the compilation of lib.
67567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
67568         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
67569         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
67570         parameter. Emit into AM_CPPFLAGS a definition of the designated C
67571         macro.
67572         (func_import): Define a witness macro. Assign it a value that depends
67573         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
67574         tests-related modules.
67575         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
67576         Reported by Jim Meyering.
67578 2010-03-27  Bruno Haible  <bruno@clisp.org>
67580         Factorize common .m4 code.
67581         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
67582         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
67583         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
67584         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
67585         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67586         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67587         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67588         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67589         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67590         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67591         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67592         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67593         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67594         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67595         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67596         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67597         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67598         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67600         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67601         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67602         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67603         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67604         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67605         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67606         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67607         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67608         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67611         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67612         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67614 2010-03-27  Bruno Haible  <bruno@clisp.org>
67616         Fix a compilation error on Cygwin with g++ >= 4.3.
67617         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67618         if it is undefined or if we alias it to chmod.
67619         (lstat): Don't warn about the use of this function if it is undefined
67620         or if we alias it to stat.
67621         Reported by Simon Josefsson.
67623 2010-03-27  Bruno Haible  <bruno@clisp.org>
67625         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67626         * modules/getlogin (configure.ac): Update.
67628         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67629         * modules/getlogin_r (configure.ac): Update.
67631         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67633         * modules/inet_ntop (configure.ac): Update.
67635         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67636         * modules/inet_pton (configure.ac): Update.
67638         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67639         * modules/mbslen (configure.ac): Update.
67641         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67642         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67643         * modules/forkpty (configure.ac): Update.
67644         * modules/openpty (configure.ac): Update.
67646 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67648         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67649         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67651 2010-03-25  Eric Blake  <eblake@redhat.com>
67653         maint: use pragma consistently across replacement headers
67654         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67655         * lib/dirent.in.h (system_header): Likewise.
67656         * lib/errno.in.h (system_header): Likewise.
67657         * lib/float.in.h (system_header): Likewise.
67658         * lib/getopt.in.h (system_header): Likewise.
67659         * lib/iconv.in.h (system_header): Likewise.
67660         * lib/inttypes.in.h (system_header): Likewise.
67661         * lib/langinfo.in.h (system_header): Likewise.
67662         * lib/locale.in.h (system_header): Likewise.
67663         * lib/math.in.h (system_header): Likewise.
67664         * lib/netdb.in.h (system_header): Likewise.
67665         * lib/netinet_in.in.h (system_header): Likewise.
67666         * lib/pty.in.h (system_header): Likewise.
67667         * lib/sched.in.h (system_header): Likewise.
67668         * lib/se-selinux.in.h (system_header): Likewise.
67669         * lib/search.in.h (system_header): Likewise.
67670         * lib/spawn.in.h (system_header): Likewise.
67671         * lib/stdarg.in.h (system_header): Likewise.
67672         * lib/stdint.in.h (system_header): Likewise.
67673         * lib/string.in.h (system_header): Likewise.
67674         * lib/strings.in.h (system_header): Likewise.
67675         * lib/sys_file.in.h (system_header): Likewise.
67676         * lib/sys_ioctl.in.h (system_header): Likewise.
67677         * lib/sys_socket.in.h (system_header): Likewise.
67678         * lib/sys_times.in.h (system_header): Likewise.
67679         * lib/sys_utsname.in.h (system_header): Likewise.
67680         * lib/sys_wait.in.h (system_header): Likewise.
67681         * lib/sysexits.in.h (system_header): Likewise.
67682         * lib/unistd.in.h (system_header): Likewise.
67683         * lib/wctype.in.h (system_header): Likewise.
67685         arpa/inet: fix mingw compilation warning
67686         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67687         Reported by Matthew Bolte.
67689 2010-03-25  Bruno Haible  <bruno@clisp.org>
67691         Avoid collision between gnulib wrapper and libintl wrapper.
67692         * lib/printf.c (printf): Don't define if a printf wrapper is already
67693         defined in intl/printf.c.
67694         Reported by Michel Boaventura <michel@michelboaventura.com>.
67696 2010-03-25  Bruno Haible  <bruno@clisp.org>
67698         Use ANSI C.
67699         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67701 2010-03-25  Bruno Haible  <bruno@clisp.org>
67703         Minor formatting changes.
67704         * lib/acosl.c: Insert space before function argument list.
67705         * lib/argz.c: Likewise.
67706         * lib/asinl.c: Likewise.
67707         * lib/expl.c: Likewise.
67708         * lib/gen-uni-tables.c: Likewise.
67709         * lib/gettext.h: Likewise.
67710         * lib/glthread/lock.h: Likewise.
67711         * lib/tanl.c: Likewise.
67712         * lib/uniname/uniname.c: Likewise.
67713         * tests/test-idpriv-drop.c: Likewise.
67714         * tests/test-idpriv-droptemp.c: Likewise.
67715         * tests/test-lock.c: Likewise.
67716         * tests/test-tls.c: Likewise.
67717         * lib/argp-help.c: Insert space before function-like macro argument
67718         list.
67719         * lib/memcmp.c: Likewise.
67720         * tests/test-base64.c: Likewise.
67721         * lib/localename.c: Insert space before sizeof's argument list.
67722         * lib/safe-alloc.h: Likewise.
67723         * lib/file-set.h: Insert space before macro argument list.
67724         * tests/test-argp.c: Likewise.
67725         * lib/argp-namefrob.h: Insert space before function parameter list.
67726         * lib/getaddrinfo.c: Likewise.
67727         * lib/netdb.in.h: Likewise.
67728         * lib/parse-duration.h: Likewise.
67729         * lib/parse-duration.c: Likewise.
67730         * lib/poll.c: Likewise.
67731         * lib/select.c: Likewise.
67732         * lib/trim.h: Likewise.
67733         * tests/test-usleep.c: Likewise.
67734         * lib/ldexpl.c: Insert space before function parameter list and before
67735         function argument list.
67736         * lib/logl.c: Likewise.
67737         * lib/sqrtl.c: Likewise.
67738         * lib/trim.c: Likewise.
67739         * lib/cosl.c: Use GNU style indentation. Insert space before function
67740         argument list.
67741         * lib/sinl.c: Likewise.
67742         * lib/tsearch.c: Insert space after 'for'.
67743         Reported by Jim Meyering.
67745 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67747         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67748         config header before grepping, as it's not present before
67749         autoreconf/configure are run.  Reported by Simon Josefsson.
67751 2010-03-23  Bruno Haible  <bruno@clisp.org>
67753         pt_chown: Make it work with automake < 1.11.
67754         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67755         Reported by Simon Josefsson.
67757 2010-03-23  Bruno Haible  <bruno@clisp.org>
67759         pt_chown: Don't depend on GPLed modules.
67760         * lib/pt_chown.c: Don't include idpriv.h.
67761         (main): Don't drop privileges.
67762         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67763         Reported by Simon Josefsson.
67765 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67767         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67768         suggestions from karl@freefriends.org (Karl Berry).
67770 2010-03-22  Eric Blake  <eblake@redhat.com>
67772         gethostname: further tweaks
67773         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67774         are overriding gethostname.
67775         Suggested by Bruno Haible.
67777 2010-03-21  Bruno Haible  <bruno@clisp.org>
67779         Fix comments.
67780         * lib/forkpty.c (rpl_forkpty): Fix comment.
67781         * lib/openpty.c (rpl_openpty): Likewise.
67782         Reported by Eric Blake.
67784 2010-03-22  Eric Blake  <eblake@redhat.com>
67786         gethostname: fix build on mingw
67787         * lib/unistd.in.h (includes): Work around fact that mingw
67788         <winsock2.h> re-includes <unistd.h>, by avoiding any
67789         redeclarations if we are being included by <winsock2.h>.
67790         Reported by Matthias Bolte.
67792 2010-03-21  Bruno Haible  <bruno@clisp.org>
67794         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67795         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67796         modifications.
67797         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67798         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67799         provide the replacement.
67800         * modules/forkpty (Depends-on): Add openpty, login_tty.
67801         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67802         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67803         * doc/glibc-functions/forkpty.texi: More supported platforms.
67804         * config/srclist.txt: Add forkpty.c (commented).
67806 2010-03-21  Bruno Haible  <bruno@clisp.org>
67808         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67809         (Makefile.am): Verify that PTY_LIB is defined.
67811         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67813 2010-03-21  Bruno Haible  <bruno@clisp.org>
67815         Tests for module 'login_tty'.
67816         * modules/login_tty-tests: New file.
67817         * tests/test-login_tty.c: New file.
67819         New module 'login_tty'.
67820         * lib/login_tty.c: New file.
67821         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67822         * modules/login_tty: New file.
67823         * doc/glibc-functions/login_tty.texi: Mention the new module.
67825 2010-03-21  Bruno Haible  <bruno@clisp.org>
67827         login_tty: Documentation.
67828         * doc/glibc-functions/login_tty.texi: New file.
67829         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67831 2010-03-21  Bruno Haible  <bruno@clisp.org>
67833         pty: Consistent macro naming.
67834         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67835         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67836         * modules/pty (configure.ac): Update.
67838 2010-03-21  Bruno Haible  <bruno@clisp.org>
67840         Tests for openpty: Make stricter.
67841         * tests/test-openpty.c (main): Add test of canonical processing and
67842         erase.
67843         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67845         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67846         * lib/openpty.c (openpty): New replacement function.
67847         * lib/pty.in.h: Include <termios.h>.
67848         (openpty): Update declaration. Add comments.
67849         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67850         is not declared, arrange to provide the replacement. Check for _getpty
67851         and posix_openpt.
67852         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67853         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67854         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67855         * modules/pty-tests (test_pty_c___LDADD): New variable.
67856         * doc/glibc-functions/openpty.texi: More supported platforms.
67858 2010-03-21  Bruno Haible  <bruno@clisp.org>
67860         setenv: Tweaks.
67861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67862         the test program.
67863         * doc/posix-functions/setenv.texi: Update platforms list.
67865 2010-03-21  Bruno Haible  <bruno@clisp.org>
67867         New module 'unlockpt'.
67868         * lib/unlockpt.c: New file, from glibc with modifications.
67869         * m4/unlockpt.m4: New file.
67870         * modules/unlockpt: New file.
67871         * lib/stdlib.in.h (unlockpt): New declaration.
67872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67873         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67874         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67875         HAVE_UNLOCKPT.
67876         * doc/posix-functions/unlockpt.texi: Mention the new module.
67877         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67878         * config/srclist.txt: Add unlockpt.c (commented).
67880 2010-03-21  Jim Meyering  <meyering@redhat.com>
67882         maint.mk: prohibit inclusion of "intprops.h" without use
67883         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67885 2010-03-21  Bruno Haible  <bruno@clisp.org>
67887         New module 'grantpt'.
67888         * lib/grantpt.c: New file, from glibc with modifications.
67889         * m4/grantpt.m4: New file.
67890         * modules/grantpt: New file.
67891         * lib/stdlib.in.h (grantpt): New declaration.
67892         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67893         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67894         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67895         HAVE_GRANTPT.
67896         * doc/posix-functions/grantpt.texi: Mention the new module.
67897         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67898         * config/srclist.txt: Add grantpt.c (commented).
67900 2010-03-21  Bruno Haible  <bruno@clisp.org>
67902         New module 'pt_chown'.
67903         * lib/pt_chown.c: New file, from glibc with modifications.
67904         * lib/pty-private.h: New file, from glibc with modifications.
67905         * modules/pt_chown: New file.
67906         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67908 2010-03-21  Bruno Haible  <bruno@clisp.org>
67910         Tests for module 'ptsname'.
67911         * modules/ptsname-tests: New file.
67912         * tests/test-ptsname.c: New file.
67914         New module 'ptsname'.
67915         * lib/ptsname.c: New file, from glibc with modifications.
67916         * m4/ptsname.m4: New file.
67917         * modules/ptsname: New file.
67918         * lib/stdlib.in.h (ptsname): New declaration.
67919         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67920         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67921         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67922         HAVE_PTSNAME.
67923         * doc/posix-functions/ptsname.texi: Mention the new module.
67924         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67925         * config/srclist.txt: Add ptsname.c (commented).
67927 2010-03-21  Bruno Haible  <bruno@clisp.org>
67929         Tests for module 'ttyname_r'.
67930         * modules/ttyname_r-tests: New file.
67931         * tests/test-ttyname_r.c: New file.
67933         New module 'ttyname_r'.
67934         * lib/ttyname_r.c: New file.
67935         * m4/ttyname_r.m4: New file.
67936         * modules/ttyname_r: New file.
67937         * lib/unistd.in.h (ttyname_r): New declaration.
67938         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67939         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67940         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67941         HAVE_TTYNAME_R.
67942         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67943         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67945 2010-03-20  Bruno Haible  <bruno@clisp.org>
67947         signal: Undefine macro definitions in C++ mode.
67948         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67949         sigfillset): Undefine macro definitions from the system header in C++
67950         mode.
67951         Reported by John W. Eaton <jwe@gnu.org>.
67953 2010-03-20  Bruno Haible  <bruno@clisp.org>
67955         Ensure no #include statements inside extern "C" { ... }.
67956         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67957         contain #include statements.
67958         * lib/time.in.h: Likewise.
67960 2010-03-20  Bruno Haible  <bruno@clisp.org>
67962         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67963         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67964         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67965         Reported by John W. Eaton <jwe@gnu.org>.
67967 2010-03-20  Bruno Haible  <bruno@clisp.org>
67969         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67970         Reported by Jim Meyering.
67972 2010-03-20  Bruno Haible  <bruno@clisp.org>
67974         pipe: Set errno upon failure.
67975         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67976         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67977         errno value in error message.
67979 2010-03-20  Bruno Haible  <bruno@clisp.org>
67980             Jim Meyering  <meyering@redhat.com>
67982         lchown: Avoid "unused variable" warning.
67983         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67985 2010-03-20  Bruno Haible  <bruno@clisp.org>
67987         Work around unlink() bug on MacOS X 10.5.6.
67988         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67989         attempting to unlink a parent directory.
67990         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67991         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67992         activate for the replacement function.
67993         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67995 2010-03-20  Bruno Haible  <bruno@clisp.org>
67997         Fix link errors on Solaris 8.
67998         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67999         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
68001 2010-03-19  Jim Meyering  <meyering@redhat.com>
68003         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
68004         The _LIBC implementation of build_range_exp correctly honors the
68005         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
68006         However, the non-_LIBC implementation would ignore that syntax-bit
68007         flag and return REG_ERANGE unconditionally.
68008         This change makes it honor that flag.
68009         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
68010         Make two pointer parameters "const".
68011         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
68012         (parse_bracket_exp): Update caller.
68014         regex.m4: correct the reversed range endpoint ([b-a]) test
68015         * m4/regex.m4: When requiring that [b-a] evoke failure,
68016         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
68017         test pass once again for x86-based systems.
68019 2010-03-19  Bruno Haible  <bruno@clisp.org>
68021         scandir: Fix link error on Solaris 8.
68022         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
68023         macros.
68025 2010-03-19  Bruno Haible  <bruno@clisp.org>
68027         getusershell: Fix documentation.
68028         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
68029         module.
68030         * doc/glibc-functions/setusershell.texi: Likewise.
68032         getusershell: Provide declaration, missing on Solaris 9.
68033         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
68034         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
68035         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
68036         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
68037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68038         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
68039         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
68040         HAVE_GETUSERSHELL.
68041         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
68043 2010-03-19  Bruno Haible  <bruno@clisp.org>
68045         wctype: Provide iswblank function.
68046         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
68047         exists and is fine.
68048         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
68049         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
68050         * tests/test-wctype.c (main): Re-enable the iswblank tests.
68051         * doc/posix-functions/iswblank.texi: Update.
68053 2010-03-19  Bruno Haible  <bruno@clisp.org>
68055         Tests of module 'pty' in C++ mode.
68056         * modules/pty-tests: New file.
68057         * tests/test-pty-c++.cc: New file.
68058         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68060 2010-03-19  Eric Blake  <eblake@redhat.com>
68062         logb: fix documentation
68063         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
68064         1.5 declaration bug.
68066         forkpty, openpty: prefer glibc's const-safe prototype
68067         * lib/forkpty.c (rpl_forkpty): New file.
68068         * lib/openpty.c (rpl_openpty): Likewise.
68069         * modules/forkpty (Files): Distribute it.
68070         * modules/openpty (Files): Likewise.
68071         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
68072         check...
68073         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
68074         replacement for non-const BSD signature.
68075         * modules/pty (Makefile.am): Substitute witnesses.
68076         * lib/pty.in.h (forkpty, openpty): Declare replacements.
68077         * tests/test-forkpty.c: Update signature check.
68078         * tests/test-openpty.c: Likewise.
68079         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
68080         * doc/glibc-functions/openpty.texi (openpty): Likewise.
68082         forkpty, openpty: split functions into new modules
68083         * modules/pty (Makefile.am): Substitute new witnesses.
68084         (Libraries): Move library detection...
68085         * modules/forkpty: ...into new module.
68086         * modules/openpty: Another new module.
68087         * modules/pty-tests: Rename and split...
68088         * modules/forkpty-tests: ...to this...
68089         * modules/openpty-tests: ...and this.
68090         * tests/test-pty.c: Rename and split...
68091         * tests/test-forkpty.c: ...to this...
68092         * tests/test-openpty.c: ...and this.
68093         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
68094         (gl_PTY): Split library searching...
68095         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
68096         (gl_FORKPTY, gl_OPENPTY): New macros.
68097         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
68098         * NEWS: Mention the split.
68099         * MODULES.html.sh (Misc): Document the modules.
68100         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
68101         * doc/glibc-functions/openpty.texi (openpty): Likewise.
68103         pty: improve replacement header
68104         * lib/pty.in.h: New file.
68105         * modules/pty (Files): Ship it.
68106         (Makefile.am): Always build replacement.
68107         * m4/pty.m4: Rename...
68108         * m4/pty_h.m4: ...to this.
68109         (gl_PTY): Modernize setting of witness macros; update check of
68110         forkpty to take proper advantage of cache.
68111         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
68113         getopt: avoid compiler warning
68114         * lib/getopt.c (attribute_hidden): Remove unused macro.
68116 2010-03-18  Bruno Haible  <bruno@clisp.org>
68118         Fix link errors on Solaris 8.
68119         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
68120         * modules/search-tests (test_search_c___LDADD): Likewise.
68121         * modules/signal-tests (test_signal_c___LDADD): Likewise.
68122         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
68123         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
68124         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
68125         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
68126         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
68127         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
68129 2010-03-18  Bruno Haible  <bruno@clisp.org>
68131         Fix bug introduced on 2010-03-14.
68132         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
68133         (gl_SPAWN_H): Require it.
68134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
68135         Reported by Simon Josefsson.
68137 2010-03-18  Bruno Haible  <bruno@clisp.org>
68139         Fix typo introduced on 2009-12-31.
68140         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
68141         posix_spawn_file_actions_adddup2.
68143 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
68144         and Eric Blake  <eblake@redhat.com>
68146         test-vc-list-files-git: make more robust
68147         * tests/test-vc-list-files-git.sh: Unset problematic environment
68148         variables.  Chain commands together.
68150 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
68152         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
68153         `AC_CHECK_DECL' invocation.
68155 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
68157         * lib/inttostr.c (inttostr): Make sure the invocation of verify
68158         appears before executable statements. Suggested by Petr Sumbera
68159         <Petr.Sumbera@Sun.COM>.
68161 2010-03-14  Bruno Haible  <bruno@clisp.org>
68163         * tests/test-flock.c (test_exclusive): Comment out a test that causes
68164         portability problems. Instead use a simpler test.
68165         (main): Check that invalid arguments are rejected only on Linux.
68167 2010-03-14  Bruno Haible  <bruno@clisp.org>
68169         Fix bug introduced on 2009-12-31.
68170         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
68171         gl_PREREQ_SYS_H_WINSOCK2 always.
68172         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
68173         SYS_SOCKET_H variable.
68174         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
68175         Update comments.
68176         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
68177         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68178         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68179         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68180         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
68182 2010-03-14  Bruno Haible  <bruno@clisp.org>
68184         Fix values returned by sinl, cosl.
68185         * lib/trigl.h: Add specification comments.
68186         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
68187         that combines the values from the precomputed table with the values of
68188         the Chebyshev polynomials.
68190 2010-03-14  Bruno Haible  <bruno@clisp.org>
68192         Fix compilation error when modules 'posix_spawn[p]' are not used.
68193         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
68194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
68196 2010-03-14  Bruno Haible  <bruno@clisp.org>
68198         Fix compilation error on mingw when module 'time_r' is not used.
68199         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
68200         is 1.
68201         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
68202         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68203         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
68204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
68206 2010-03-14  Bruno Haible  <bruno@clisp.org>
68208         Fix compilation error with Sun C.
68209         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
68210         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
68211         instead of GCC specific ULONG_LONG_MAX.
68212         * lib/xstrtoll.c: Likewise.
68213         * lib/xstrtoull.c: Likewise.
68215 2010-03-13  Bruno Haible  <bruno@clisp.org>
68217         Allow the user to disable C++ code and tests.
68218         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
68219         (gl_PROG_ANSI_CXX): Require it.
68221 2010-03-13  Bruno Haible  <bruno@clisp.org>
68223         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
68224         cases.
68226 2010-03-13  Bruno Haible  <bruno@clisp.org>
68228         Test that gnulib does not break the standard C++ headers.
68229         * tests/test-locale-c++2.cc: New file.
68230         * modules/locale-tests (Files): Add it.
68231         (Makefile.am): Compile it for test-locale-c++.
68232         * tests/test-math-c++2.cc: New file.
68233         * modules/math-tests (Files): Add it.
68234         (Makefile.am): Compile it for test-math-c++.
68235         * tests/test-signal-c++2.cc: New file.
68236         * modules/signal-tests (Files): Add it.
68237         (Makefile.am): Compile it for test-signal-c++.
68238         * tests/test-stdio-c++2.cc: New file.
68239         * modules/stdio-tests (Files): Add it.
68240         (Makefile.am): Compile it for test-stdio-c++.
68241         * tests/test-stdlib-c++2.cc: New file.
68242         * modules/stdlib-tests (Files): Add it.
68243         (Makefile.am): Compile it for test-stdlib-c++.
68244         * tests/test-string-c++2.cc: New file.
68245         * modules/string-tests (Files): Add it.
68246         (Makefile.am): Compile it for test-string-c++.
68247         * tests/test-time-c++2.cc: New file.
68248         * modules/time-tests (Files): Add it.
68249         (Makefile.am): Compile it for test-time-c++.
68250         Reported by John W. Eaton <jwe@gnu.org>.
68252 2010-03-13  Bruno Haible  <bruno@clisp.org>
68254         * gnulib-tool (func_usage): Clarify which options are available for
68255         --create-testdir and --create-megatestdir.
68257 2010-03-13  Bruno Haible  <bruno@clisp.org>
68259         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
68260         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
68261         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
68262         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
68263         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
68264         when appropriate.
68265         Reported by Jim Meyering.
68267 2010-03-12  Simon Josefsson  <simon@josefsson.org>
68269         * gnulib-tool (func_import): Explain origin of code.
68271 2010-03-12  Bruno Haible  <bruno@clisp.org>
68273         Fix problem with automake's definition of CXXLINK.
68274         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
68275         Reported by Simon Josefsson and Ludovic Courtès.
68277 2010-03-12  Bruno Haible  <bruno@clisp.org>
68279         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
68280         stable releases.
68282 2010-03-11  Bruno Haible  <bruno@clisp.org>
68284         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
68285         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
68286         whether the system provides one variant or multiple variants of the
68287         function.
68288         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
68289         C++ compilers.
68290         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
68291         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
68292         Reported by Jim Meyering.
68294 2010-03-09  Simon Josefsson  <simon@josefsson.org>
68296         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
68298 2010-03-08  Bruno Haible  <bruno@clisp.org>
68300         gnulib-tool: Add support for --libtool in --create-testdir.
68301         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
68302         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
68304 2010-03-08  Eric Blake  <eblake@redhat.com>
68306         gnulib-tool.texi: mention possibility of git submodule
68307         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
68308         submodules.
68309         * doc/.gitignore: Ignore another generated file.
68311 2010-03-08  Karl Berry  <karl@gnu.org>
68313         * doc/gnulib-tool.texi (VCS Issues): Mention third option
68314         of committing gnulib files while skipping others.
68316 2010-03-07  Bruno Haible  <bruno@clisp.org>
68318         Tests of module 'wctype' in C++ mode.
68319         * tests/test-wctype-c++.cc: New file.
68320         * modules/wctype-tests (Files): Add it and tests/signature.h.
68321         (Depends-on): Add ansi-c++-opt.
68322         (Makefile.am): Arrange to compile and run test-wctype-c++.
68324         Tests of module 'wchar' in C++ mode.
68325         * tests/test-wchar-c++.cc: New file.
68326         * modules/wchar-tests (Files): Add it and tests/signature.h.
68327         (Depends-on): Add ansi-c++-opt.
68328         (Makefile.am): Arrange to compile and run test-wchar-c++.
68329         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
68330         gl_MODULE_INDICATOR.
68332         Tests of module 'unistd' in C++ mode.
68333         * tests/test-unistd-c++.cc: New file.
68334         * modules/unistd-tests (Files): Add it and tests/signature.h.
68335         (Depends-on): Add ansi-c++-opt.
68336         (Makefile.am): Arrange to compile and run test-unistd-c++.
68337         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
68338         gl_MODULE_INDICATOR.
68340         Tests of module 'time' in C++ mode.
68341         * tests/test-time-c++.cc: New file.
68342         * modules/time-tests (Files): Add it and tests/signature.h.
68343         (Depends-on): Add ansi-c++-opt.
68344         (Makefile.am): Arrange to compile and run test-time-c++.
68345         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68347         Tests of module 'sys_time' in C++ mode.
68348         * tests/test-sys_time-c++.cc: New file.
68349         * modules/sys_time-tests (Files): Add it and tests/signature.h.
68350         (Depends-on): Add ansi-c++-opt.
68351         (Makefile.am): Arrange to compile and run test-sys_time-c++.
68352         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
68353         gl_MODULE_INDICATOR.
68355         Tests of module 'sys_stat' in C++ mode.
68356         * tests/test-sys_stat-c++.cc: New file.
68357         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
68358         (Depends-on): Add ansi-c++-opt.
68359         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
68360         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
68361         gl_MODULE_INDICATOR.
68363         Tests of module 'sys_socket' in C++ mode.
68364         * tests/test-sys_socket-c++.cc: New file.
68365         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
68366         (Depends-on): Add ansi-c++-opt.
68367         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
68368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
68369         gl_MODULE_INDICATOR.
68371         Tests of module 'sys_select' in C++ mode.
68372         * tests/test-sys_select-c++.cc: New file.
68373         * modules/sys_select-tests (Files): Add it and tests/signature.h.
68374         (Depends-on): Add ansi-c++-opt.
68375         (Makefile.am): Arrange to compile and run test-sys_select-c++.
68376         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
68377         gl_MODULE_INDICATOR.
68379         Tests of module 'sys_ioctl' in C++ mode.
68380         * tests/test-sys_ioctl-c++.cc: New file.
68381         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
68382         (Depends-on): Add ansi-c++-opt.
68383         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
68384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
68385         gl_MODULE_INDICATOR.
68387         Tests of module 'string' in C++ mode.
68388         * tests/test-string-c++.cc: New file.
68389         * modules/string-tests (Files): Add it and tests/signature.h.
68390         (Depends-on): Add ansi-c++-opt.
68391         (Makefile.am): Arrange to compile and run test-string-c++.
68392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
68393         gl_MODULE_INDICATOR.
68395         Tests of module 'stdlib' in C++ mode.
68396         * tests/test-stdlib-c++.cc: New file.
68397         * modules/stdlib-tests (Files): Add it and tests/signature.h.
68398         (Depends-on): Add ansi-c++-opt.
68399         (Makefile.am): Arrange to compile and run test-stdlib-c++.
68400         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
68401         gl_MODULE_INDICATOR.
68403         Tests of module 'stdio' in C++ mode.
68404         * tests/test-stdio-c++.cc: New file.
68405         * modules/stdio-tests (Files): Add it and tests/signature.h.
68406         (Depends-on): Add ansi-c++-opt.
68407         (Makefile.am): Arrange to compile and run test-stdio-c++.
68408         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
68409         gl_MODULE_INDICATOR.
68411         Tests of module 'spawn' in C++ mode.
68412         * tests/test-spawn-c++.cc: New file.
68413         * modules/spawn-tests (Files): Add it and tests/signature.h.
68414         (Depends-on): Add ansi-c++-opt.
68415         (Makefile.am): Arrange to compile and run test-spawn-c++.
68416         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
68417         gl_MODULE_INDICATOR.
68419         Tests of module 'signal' in C++ mode.
68420         * tests/test-signal-c++.cc: New file.
68421         * modules/signal-tests (Files): Add it and tests/signature.h.
68422         (Depends-on): Add ansi-c++-opt.
68423         (Makefile.am): Arrange to compile and run test-signal-c++.
68424         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
68425         gl_MODULE_INDICATOR.
68427         Tests of module 'search' in C++ mode.
68428         * tests/test-search-c++.cc: New file.
68429         * modules/search-tests (Files): Add it and tests/signature.h.
68430         (Depends-on): Add ansi-c++-opt.
68431         (Makefile.am): Arrange to compile and run test-search-c++.
68432         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
68433         gl_MODULE_INDICATOR.
68435         Tests of module 'math' in C++ mode.
68436         * tests/test-math-c++.cc: New file.
68437         * modules/math-tests (Files): Add it and tests/signature.h.
68438         (Depends-on): Add ansi-c++-opt.
68439         (Makefile.am): Arrange to compile and run test-math-c++.
68440         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68442         Tests of module 'locale' in C++ mode.
68443         * tests/test-locale-c++.cc: New file.
68444         * modules/locale-tests (Files): Add it and tests/signature.h.
68445         (Depends-on): Add ansi-c++-opt.
68446         (Makefile.am): Arrange to compile and run test-locale-c++.
68447         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
68448         gl_MODULE_INDICATOR.
68450         Tests of module 'langinfo' in C++ mode.
68451         * tests/test-langinfo-c++.cc: New file.
68452         * modules/langinfo-tests (Files): Add it and tests/signature.h.
68453         (Depends-on): Add ansi-c++-opt.
68454         (Makefile.am): Arrange to compile and run test-langinfo-c++.
68455         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
68456         gl_MODULE_INDICATOR.
68458         Tests of module 'iconv-h' in C++ mode.
68459         * tests/test-iconv-h-c++.cc: New file.
68460         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
68461         (Depends-on): Add ansi-c++-opt.
68462         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
68464         Tests of module 'glob' in C++ mode.
68465         * tests/test-glob-c++.cc: New file.
68466         * modules/glob-tests (Files): Add it.
68467         (Depends-on): Add ansi-c++-opt.
68468         (Makefile.am): Arrange to compile and run test-glob-c++.
68470         Tests of module 'fcntl-h' in C++ mode.
68471         * tests/test-fcntl-h-c++.cc: New file.
68472         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
68473         (Depends-on): Add ansi-c++-opt.
68474         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
68475         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
68476         gl_MODULE_INDICATOR.
68478         Tests of module 'dirent' in C++ mode.
68479         * tests/test-dirent-c++.cc: New file.
68480         * modules/dirent-tests (Files): Add it and tests/signature.h.
68481         (Depends-on): Add ansi-c++-opt.
68482         (Makefile.am): Arrange to compile and run test-dirent-c++.
68483         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68484         gl_MODULE_INDICATOR.
68486         New module 'ansi-c++-opt'.
68487         * modules/ansi-c++-opt: New file.
68488         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
68490         Document C++ namespace mode.
68491         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
68493         wctype: Avoid #define replacements in C++ mode.
68494         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
68495         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
68496         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
68497         In C++, define a namespaced alias symbol.
68498         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
68499         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
68500         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
68501         rule.
68503         wchar: Avoid #define replacements in C++ mode.
68504         * lib/wchar.in.h: Include c++defs.h.
68505         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
68506         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
68507         symbol.
68508         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
68509         * modules/wchar (Depends-on): Add c++defs.
68510         (Makefile.am): Update wchar.h rule.
68512         unistd: Avoid #define replacements in C++ mode.
68513         * lib/unistd.in.h: Include c++defs.h.
68514         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
68515         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
68516         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
68517         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
68518         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
68519         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
68520         symbol.
68521         (environ): Update.
68522         * modules/unistd (Depends-on): Add c++defs.
68523         (Makefile.am): Update unistd.h rule.
68525         time: Avoid #define replacements in C++ mode.
68526         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
68527         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
68528         define a namespaced alias symbol.
68529         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
68530         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
68531         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
68532         * modules/time (Depends-on): Add c++defs, warn-on-use.
68533         (Makefile.am): Update time.h rule.
68534         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68535         * modules/nanosleep (configure.ac): Likewise.
68536         * modules/strptime (configure.ac): Likewise.
68537         * modules/timegm (configure.ac): Likewise.
68539         sys_time: Avoid #define replacements in C++ mode.
68540         * lib/sys_time.in.h: Include c++defs.h.
68541         (gettimeofday): In C++, define a namespaced alias symbol.
68542         * modules/sys_time (Depends-on): Add c++defs.
68543         (Makefile.am): Update sys/time.h rule.
68545         sys_stat: Avoid #define replacements in C++ mode.
68546         * lib/sys_stat.in.h: Include c++defs.h.
68547         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
68548         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
68549         namespaced alias symbol.
68550         In C++, define a namespaced alias symbol.
68551         * modules/sys_stat (Depends-on): Add c++defs.
68552         (Makefile.am): Update sys/stat.h rule.
68554         sys_socket: Avoid #define replacements in C++ mode.
68555         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
68556         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
68557         definitions also when the system has a <sys/socket.h>.
68558         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68559         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
68560         In C++, define a namespaced alias symbol.
68561         * modules/sys_socket (Depends-on): Add c++defs.
68562         (Makefile.am): Update sys/socket.h rule.
68564         sys_select: Avoid #define replacements in C++ mode.
68565         * lib/sys_select.in.h: Include c++defs.h. Enable the function
68566         definitions also when the system has a <sys/select.h>.
68567         (select): In C++, define a namespaced alias symbol.
68568         * modules/sys_select (Depends-on): Add c++defs.
68569         (Makefile.am): Update sys/select.h rule.
68571         sys_ioctl: Avoid #define replacements in C++ mode.
68572         * lib/sys_ioctl.in.h: Include c++defs.h.
68573         (ioctl): In C++, define a namespaced alias symbol.
68574         * modules/sys_ioctl (Depends-on): Add c++defs.
68575         (Makefile.am): Update sys/ioctl.h rule.
68577         string: Avoid #define replacements in C++ mode.
68578         * lib/string.in.h: Include c++defs.h.
68579         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
68580         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68581         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68582         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
68583         strsignal, strverscmp): In C++, define a namespaced alias symbol.
68584         * modules/string (Depends-on): Add c++defs.
68585         (Makefile.am): Update string.h rule.
68587         stdlib: Avoid #define replacements in C++ mode.
68588         * lib/stdlib.in.h: Include c++defs.h.
68589         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68590         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68591         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68592         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68593         symbol.
68594         * modules/stdlib (Depends-on): Add c++defs.
68595         (Makefile.am): Update stdlib.h rule.
68597         stdio: Avoid #define replacements in C++ mode.
68598         * lib/stdio.in.h: Include c++defs.h.
68599         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68600         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68601         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68602         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68603         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68604         namespaced alias symbol.
68605         * modules/stdio (Depends-on): Add c++defs.
68606         (Makefile.am): Update stdio.h rule.
68608         spawn: Avoid #define replacements in C++ mode.
68609         * lib/spawn.in.h: Include c++defs.h.
68610         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68611         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68612         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68613         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68614         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68615         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68616         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68617         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68618         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68619         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68620         In C++, define a namespaced alias symbol.
68621         * modules/spawn (Depends-on): Add c++defs.
68622         (Makefile.am): Update spawn.h rule.
68624         signal: Avoid #define replacements in C++ mode.
68625         * lib/signal.in.h: Include c++defs.h.
68626         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68627         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68628         namespaced alias symbol.
68629         * modules/signal (Depends-on): Add c++defs.
68630         (Makefile.am): Update signal.h rule.
68632         search: Avoid #define replacements in C++ mode.
68633         * lib/search.in.h: Include c++defs.h.
68634         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68635         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68636         symbol.
68637         * modules/search (Depends-on): Add c++defs.
68638         (Makefile.am): Update search.h rule.
68640         math: Avoid #define replacements in C++ mode.
68641         * lib/math.in.h: Include c++defs.h.
68642         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68643         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68644         trunc, truncl): In C++, define a namespaced alias symbol.
68645         * modules/math (Depends-on): Add c++defs.
68646         (Makefile.am): Update math.h rule.
68648         locale: Avoid #define replacements in C++ mode.
68649         * lib/locale.in.h: Include c++defs.h.
68650         (duplocale): In C++, define a namespaced alias symbol.
68651         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68652         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68653         * modules/locale (Depends-on): Add c++defs.
68654         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68656         langinfo: Avoid #define replacements in C++ mode.
68657         * lib/langinfo.in.h: Include c++defs.h.
68658         (nl_langinfo): In C++, define a namespaced alias symbol.
68659         * modules/langinfo (Depends-on): Add c++defs.
68660         (Makefile.am): Update langinfo.h rule.
68662         iconv-h: Avoid #define replacements in C++ mode.
68663         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68664         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68665         symbol.
68666         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68667         whenever iconv is present.
68668         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68669         (Makefile.am): Update iconv.h rule.
68671         glob: Avoid #define replacements in C++ mode.
68672         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68673         (_gl_glob_errfunc_fn): New type.
68674         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68675         symbol.
68676         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68677         (Makefile.am): Update glob.h rule.
68679         fcntl-h: Avoid #define replacements in C++ mode.
68680         * lib/fcntl.in.h: Include c++defs.h.
68681         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68682         * modules/fcntl-h (Depends-on): Add c++defs.
68683         (Makefile.am): Update fcntl.h rule.
68685         dirent: Avoid #define replacements in C++ mode.
68686         * lib/dirent.in.h: Include c++defs.h.
68687         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68688         namespaced alias symbol.
68689         (dirfd): Update declaration.
68690         * modules/dirent (Depends-on): Add c++defs.
68691         (Makefile.am): Update dirent.h rule.
68693         ctype: Make it usable in C++ code.
68694         * lib/ctype.in.h: Include c++defs.h.
68695         (isblank): Declare as extern "C".
68696         * modules/ctype (Depends-on): Add c++defs.
68697         (Makefile.am): Update ctype.h rule.
68699         New module 'c++defs'.
68700         * modules/c++defs: New file.
68701         * build-aux/c++defs.h: New file.
68702         Reported by John W. Eaton <jwe@gnu.org>.
68704 2010-03-07  Bruno Haible  <bruno@clisp.org>
68706         logb: Provide missing declaration for Cygwin.
68707         * lib/math.in.h (logb): New declaration.
68708         * m4/logb.m4: New file.
68709         * modules/logb (Files): Add m4/logb.m4.
68710         (Depends-on): Add math.
68711         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68712         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68714         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68715         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68717 2010-03-07  Bruno Haible  <bruno@clisp.org>
68719         Fix test-cond link error.
68720         * tests/test-cond.c: Include <stdio.h>.
68722 2010-03-07  Bruno Haible  <bruno@clisp.org>
68724         Fix test-dirent-safer link error.
68725         * modules/dirent-safer-tests (Makefile.am): Define
68726         test_dirent_safer_LDADD.
68728 2010-03-07  Bruno Haible  <bruno@clisp.org>
68730         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68731         among default module list.
68733 2010-03-07  Bruno Haible  <bruno@clisp.org>
68735         Fix link error on platforms with GNU libiconv.
68736         * modules/unistr/u8-strcoll-tests (Makefile): Define
68737         test_u8_strcoll_LDADD.
68738         * modules/unistr/u16-strcoll-tests (Makefile): Define
68739         test_u16_strcoll_LDADD.
68740         * modules/unistr/u32-strcoll-tests (Makefile): Define
68741         test_u32_strcoll_LDADD.
68743 2010-03-07  Bruno Haible  <bruno@clisp.org>
68745         Use POSIX declarations for socket functions.
68746         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68747         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68748         rpl_sendto): Change declaration to match POSIX.
68749         * lib/connect.c (rpl_connect): Likewise.
68750         * lib/accept.c (rpl_accept): Likewise.
68751         * lib/bind.c (rpl_bind): Likewise.
68752         * lib/getpeername.c (rpl_getpeername): Likewise.
68753         * lib/getsockname.c (rpl_getsockname): Likewise.
68754         * lib/recv.c (rpl_recv): Likewise.
68755         * lib/send.c (rpl_send): Likewise.
68756         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68757         * lib/sendto.c (rpl_sendto): Likewise.
68759 2010-03-06  Bruno Haible  <bruno@clisp.org>
68761         Clarify access, euidaccess, faccessat.
68762         * doc/posix-functions/faccessat.texi: Mention security problem under
68763         "Other problems", not "Portability problems".
68764         * doc/posix-functions/access.texi: Likewise. Mention a related security
68765         problem.
68766         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68767         * lib/euidaccess.c: Add comments about platforms.
68768         * lib/unistd.in.h (access, euidaccess): Add warnings.
68770 2010-03-07  Bruno Haible  <bruno@clisp.org>
68772         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68773         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68774         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68775         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68776         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68777         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68778         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68779         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68780         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68782         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68783         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68784         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68785         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68786         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68787         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68788         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68789         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68790         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68791         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68792         Likewise.
68793         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68794         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68795         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68796         Likewise.
68797         * tests/test-spawn.c (main): Make it work when
68798         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68800 2010-03-07  Bruno Haible  <bruno@clisp.org>
68802         Fix incorrect Makefile.am generation in German locale.
68803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68804         Execute sed command with character range in C locale.
68806 2010-03-06  Bruno Haible  <bruno@clisp.org>
68808         Tests for module 'iconv-h'.
68809         * modules/iconv-h-tests: New file.
68810         * tests/test-iconv-h.c: New file.
68812         New module 'iconv-h'.
68813         * modules/iconv-h: New file.
68814         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68815         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68816         (configure.ac): Remove gl_ICONV_H.
68817         (Makefile.am): Remove rule for iconv.h.
68819 2010-03-06  Bruno Haible  <bruno@clisp.org>
68821         More consistent naming of *.m4 files.
68822         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68823         * modules/wctype (Files): Update.
68825         More consistent naming of *.m4 files.
68826         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68827         * modules/wchar (Files): Update.
68829 2010-03-06  Jim Meyering  <meyering@redhat.com>
68831         euidaccess: relax license to LGPLv2+
68832         * modules/euidaccess (License): Relax to LGPLv2+.
68834 2010-03-06  Bruno Haible  <bruno@clisp.org>
68836         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68837         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68838         (Makefile.am): Augment lib_SOURCES instead.
68840 2010-03-04  Jim Meyering  <meyering@redhat.com>
68842         utime: remove obsolete module
68843         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68844         unnecessary for years, and has been marked as obsolete for 10 months.
68845         * modules/utime: Remove file.
68846         * lib/utime.c: Remove file.
68847         * m4/utime.m4: Remove file.
68848         * m4/utimes-null.m4: Remove file.
68849         * doc/posix-functions/utime.texi (utime): Remove reference to
68850         the module.  Move the sole "fixed by gnulib" item into the
68851         "problems not fixed by Gnulib" list.
68852         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68854 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68856         * modules/exit (License): Relax license to LGPLv2+.
68857         (Status): Mark as obsolete.
68858         * NEWS: Mention deprecated 'exit' module.
68859         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68860         of now obsolete 'exit'.
68862 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68864         fts-lgpl: remove unused module
68865         * modules/fts-lgpl: Remove.
68866         * MODULES.html.sh (func_all_modules): Adjust.
68867         * check-module (find_included_lib_files): Adjust.
68868         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68870 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68872         copy-acl: enhance Solaris ACL error handling
68873         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68874         * lib/set-mode-acl.c (qset_acl): Likewise.
68876 2010-03-02  Bruno Haible  <bruno@clisp.org>
68878         spawn: Don't override the system defined values on FreeBSD 8.
68879         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68880         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68881         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68882         if HAVE_POSIX_SPAWN is 1.
68883         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68885 2010-03-01  Bruno Haible  <bruno@clisp.org>
68887         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68888         regarding Automake.
68890 2010-02-25  Bruno Haible  <bruno@clisp.org>
68892         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68893         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68894         setting, not afterwards.
68895         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68897 2010-02-24  Eric Blake  <eblake@redhat.com>
68899         bootstrap, git-version-gen: use timestamp
68900         * build-aux/git-version-gen (scriptversion): Force UTC.
68901         * build-aux/bootstrap (scriptversion): New variable.
68903         bootstrap: allow older git
68904         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68905         older than 1.6.4.  Requested by the libvirt project.
68907 2010-02-23  Eric Blake  <eblake@redhat.com>
68909         warn-on-use: work with old autoconf
68910         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68911         AS_VAR semantics of autoconf 2.60.
68912         Reported by Bruno Haible.
68914         bootstrap: improve some comments
68915         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68916         clarification comments.
68918         gettimeofday: provide correct function
68919         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68920         when replacement is declared, otherwise provide gettimeofday.
68921         Reported by Michael Goffioul.
68923 2010-02-23  Jim Meyering  <meyering@redhat.com>
68925         lib-ignore: relax license to "unlimited", not LGPLv2+
68926         * modules/lib-ignore (License): Relax to "unlimited".
68928 2010-02-23  Jim Meyering  <meyering@redhat.com>
68930         lib-ignore: relax license to LGPLv2+
68931         * modules/lib-ignore (License): Relax to LGPLv2+.
68933 2010-02-22  Eric Blake  <eblake@redhat.com>
68935         lseek: avoid bash 3.2 broken pipe bug
68936         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68937         warning from bash 3.2.
68938         Reported by Ben Pfaff, with analysis from Bruno Haible.
68940         bootstrap: support non-FSF copyright holder
68941         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68942         bootstrap.conf override of COPYRIGHT_HOLDER.
68943         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68945         bootstrap: interoperate with gettext 0.14.1
68946         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68948         bootstrap: allow for alternate submodule location
68949         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68950         hardcoding submodule location.
68951         (gnulib_mk): Allow direct use of Makefile.am.
68953         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68954         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68955         rather than reconfiguring where the submodule points.
68957         gettimeofday: restore support for platforms that lack function
68958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68959         replacement if function is missing.
68960         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68961         * modules/sys_time (Makefile.am): Substitute it.
68962         * lib/sys_time.in.h (gettimeofday): Check it.
68963         Reported by Michael Goffioul.
68965 2010-02-21  Bruno Haible  <bruno@clisp.org>
68967         * lib/stdio.in.h (obstack_printf): Fix typo.
68969 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68971         vc-list-files: use bzr ls's -R option
68972         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68973         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68975 2010-02-21  Jim Meyering  <meyering@redhat.com>
68977         init.sh: fix EXEEXT shims to work also for names like test-prog
68978         * tests/init.sh: Re-exec a better shell, when needed.
68979         If the current shell lacks support for posix $(...), an init.sh-using
68980         test will now try to find a shell that supports that.  If EXEEXT is
68981         nonempty, we also require support for hyphen-in-alias-name and shell
68982         substitutions like ${var#glob}.  Failure to find such a shell results
68983         in a skipped test.
68985 2010-02-21  Bruno Haible  <bruno@clisp.org>
68987         Really work around "broken pipe" error message from bash 3.2.
68988         * gnulib-tool (func_reset_sigpipe): Remove function.
68989         (echo): In bash 3.2, define to a function that uses printf.
68990         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68992 2010-02-20  Bruno Haible  <bruno@clisp.org>
68994         Restore support for automake 1.9.6 with autoconf 2.61.
68995         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68996         Reported by James Youngman <jay@gnu.org>.
68998 2010-02-20  Bruno Haible  <bruno@clisp.org>
69000         Improve *printf warning condition.
69001         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
69002         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
69003         and the function is overridden due to SIGPIPE emulation.
69005 2010-02-20  Bruno Haible  <bruno@clisp.org>
69007         * lib/stdio.in.h: Tweak comments.
69009 2010-02-19  Bruno Haible  <bruno@clisp.org>
69011         Make it easier to find modules. New gnulib-tool option '--find'.
69012         * gnulib-tool: New option --find.
69013         (func_usage): Document it.
69014         (func_sanitize_modulelist): New function, extracted from
69015         func_all_modules.
69016         (func_all_modules): Invoke it.
69017         * doc/gnulib-tool.texi (Which modules?): New node.
69019 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
69021         * lib/sys_select.in.h: Provide select replacement even if
69022         sys/select.h exists on a system, for Interix.
69024 2010-02-18  Jim Meyering  <meyering@redhat.com>
69026         init.sh: don't use $(...) just yet
69027         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
69028         to accommodate e.g., Solaris' /bin/sh.
69030 2010-02-17  Bruno Haible  <bruno@clisp.org>
69032         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
69033         Reported by Ludovic Courtès <ludo@gnu.org>.
69035 2010-02-16  Simon Josefsson  <simon@josefsson.org>
69037         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
69038         linking with -lintl.
69040 2010-02-17  Simon Josefsson  <simon@josefsson.org>
69042         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
69043         if not provided by the system's netdb.h.  Reported by
69044         ludo@gnu.org (Ludovic Courtès).
69046 2010-02-15  Jim Meyering  <meyering@redhat.com>
69048         init.sh: improve portability and efficiency
69049         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
69050         "dummy" in a for loop.
69051         Use '!', not '^' to select the complement of a character set used
69052         in a "case" statement.
69053         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
69054         Suggestions from Eric Blake.
69056         init.sh: automatically accommodate programs with the .exe suffix
69057         Automatically arrange for an invocation of "prog" to execute the
69058         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
69059         may use the simpler "prog", yet still work when built on a system
69060         that requires specifying the added suffix.
69061         Do this by constructing a function named "prog" that invokes
69062         "prog.exe" for each .exe file in selected directories.
69063         * tests/init.sh (find_exe_basenames_): New function.
69064         (create_exe_shim_functions_): New function.
69065         (path_prepend_): Use it.
69067         maint.mk: mark syntax-check sc_*.m rules as .PHONY
69068         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
69069         "make -t syntax-check" doesn't create a ton of sc_*.m files.
69071 2010-02-14  Jim Meyering  <meyering@redhat.com>
69073         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
69074         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
69075         (sc_prohibit_hash_pjw_without_use): New rule.
69077         maint.mk: allow the default upload destination dir to be overridden
69078         * top/maint.mk (upload_dest_dir_): Define with a default that
69079         preserves the status quo.
69080         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
69081         Reported by Peter Simons.
69083         maint.mk: prohibit inclusion of "hash.h" without_use
69084         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
69086 2010-02-10  Jim Meyering  <meyering@redhat.com>
69088         maint.mk: prohibit inclusion of "ignore-value.h" without_use
69089         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
69091 2010-02-09  Eric Blake  <ebb9@byu.net>
69092         and Bruno Haible  <bruno@clisp.org>
69094         obstack-printf-posix: ensure declaration
69095         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
69096         extracted from gl_FUNC_OBSTACK_PRINTF.
69097         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
69098         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
69099         Likewise.
69100         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
69101         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
69102         0.
69104 2010-02-08  Bruno Haible  <bruno@clisp.org>
69106         gnulib-tool: Fix typo in 2010-02-07 commit.
69107         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
69108         Reported by Eric Blake.
69110 2010-02-07  Bruno Haible  <bruno@clisp.org>
69112         gnulib-tool: Fix up caching patches.
69113         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
69114         option --no-cache. Use associative arrays when supported by the shell.
69115         (sed_comments): New variable.
69116         (modcache): Renamed from do_cache.
69117         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
69118         abbreviate unnecessarily.
69119         (have_associative): New variable.
69120         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
69121         way also for ksh and zsh.
69122         (func_init_sed_convert_to_cache_statements): New function, extracted
69123         from func_cache_lookup_module. Add support for associative arrays.
69124         Don't set the c_MODULE_cached variable here. Ignore all lines before
69125         the first field header. Remove only the final newline, not all trailing
69126         newlines. Support empty fields correctly. Limit the use of 'eval' to
69127         assignments.
69128         (func_get_description, func_get_status, func_get_notice,
69129         func_get_applicability, func_get_filelist, func_get_dependencies,
69130         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
69131         func_get_automake_snippet, func_get_include_directive,
69132         func_get_link_directive, func_get_license, func_get_maintainer):
69133         Update documentation. List the unoptimized code first. Add support for
69134         associative arrays. Limit the use of 'eval' to assignments.
69135         (func_get_applicability): Undo stylistic pessimisations.
69136         (func_get_automake_snippet, func_get_include_directive): Reduce code
69137         duplication.
69138         (func_modules_transitive_closure, func_modules_add_dummy,
69139         func_modules_notice, func_modules_to_filelist, func_add_file,
69140         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
69141         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
69142         func_create_testdir, func_create_megatestdir): Update documentation.
69144 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69146         * gnulib-tool (func_cache_lookup_module): Store the module name
69147         belonging to the cache variable; error out if two different
69148         module names map to the same cache variable name.
69150 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69152         gnulib-tool: Make caching optional.
69153         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
69154         Update matching short versions of --no-changelog.
69155         (func_usage): Update.
69156         (sed_extract_cache_prog): Renamed from ...
69157         (sed_extract_prog): ... this; revert to old extraction script.
69158         (func_get_description, func_get_status)
69159         (func_get_notice, func_get_applicability, func_get_filelist)
69160         (func_get_dependencies, func_get_autoconf_early_snippet)
69161         (func_get_autoconf_snippet, func_get_automake_snippet)
69162         (func_get_include_directive, func_get_link_directive)
69163         (func_get_license, func_get_maintainer): If $do_cache is false,
69164         use old, non-caching extraction scripts.
69165         Suggestion by Bruno Haible.
69167 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69169         gnulib-tool: cache module metainformation.
69170         * gnulib-tool (sed_extract_prog): Match newline before each
69171         header, and rewrite header to a shell variable suffix.
69172         (func_cache_var, func_cache_lookup_module): New functions,
69173         to turn a module name into a cache variable prefix, and to
69174         look up and cache module metainformation.
69175         (func_get_description, func_get_status)
69176         (func_get_notice, func_get_applicability, func_get_filelist)
69177         (func_get_dependencies, func_get_autoconf_early_snippet)
69178         (func_get_autoconf_snippet, func_get_automake_snippet)
69179         (func_get_include_directive, func_get_link_directive)
69180         (func_get_license, func_get_maintainer): Use
69181         func_cache_lookup_module.
69183 2010-02-07  Bruno Haible  <bruno@clisp.org>
69185         fnctl: Fix missing dependency.
69186         * modules/fcntl (Depends-on): Add getdtablesize.
69187         Reported by John W. Eaton <jwe@gnu.org>.
69189 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69191         Argp: fix recognition of short alias options.
69193         * lib/argp-parse.c (convert_options): Fix improper use of
69194         `|' between character values.
69195         * tests/test-argp.c (group1_option): New alias option
69196         --read (-r).
69197         (group1_parser): Special handling for 'r'.
69198         (test15): New test case.
69199         (test_fun): Add test15.
69200         * tests/test-argp-2.sh: Update expected --help and --usage
69201         outputs.
69203 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69205         * tests/test-argp.c: Fix indentation.
69207 2010-02-04  Eric Blake  <ebb9@byu.net>
69209         gettimeofday: expose type of second argument
69210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
69211         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
69212         * tests/test-gettimeofday.c: Use it to silence warning.
69213         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
69214         the issue.
69216 2010-02-03  Jim Meyering  <meyering@redhat.com>
69218         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
69219         * lib/regcomp.c (TYPE_SIGNED): Define.
69220         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
69222         regcomp.c: avoid a new -Wshadow warning
69223         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
69225 2010-02-01  Jim Meyering  <meyering@redhat.com>
69227         removing useless parentheses in cpp #define directives
69228         For motivation, see commit c0221df4, "define STREQ(a,b)
69229         consistently, removing useless parentheses"
69230         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
69231         * lib/mountlist.c (MNT_IGNORE): Likewise.
69232         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
69234 2010-02-01  Eric Blake  <ebb9@byu.net>
69236         sys_time: use link-warning
69237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
69238         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
69239         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
69240         * modules/sys_time (Depends-on): Add warn-on-use.
69241         (Makefile.am): Always build replacement.
69242         (configure.ac): Update substitutions.
69243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
69244         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
69245         bother with SYS_TIME_H.
69246         * modules/gettimeofday (configure.ac): Declare indicator.
69247         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
69248         in use.
69250         closein-tests: silence compiler warning
69251         * tests/test-closein.c (main): Ignore fread result.
69252         * modules/closein-tests (Depends-on): Add ignore-value.
69254         tests: silence warning about system return
69255         * tests/test-areadlink-with-size.c (main): Ignore system result.
69256         * tests/test-areadlink.c (main): Likewise.
69257         * tests/test-areadlinkat-with-size.c (main): Likewise.
69258         * tests/test-areadlinkat.c (main): Likewise.
69259         * tests/test-canonicalize-lgpl.c (main): Likewise.
69260         * tests/test-canonicalize.c (main): Likewise.
69261         * tests/test-chown.c (main): Likewise.
69262         * tests/test-fchownat.c (main): Likewise.
69263         * tests/test-fdutimensat.c (main): Likewise.
69264         * tests/test-fstatat.c (main): Likewise.
69265         * tests/test-futimens.c (main): Likewise.
69266         * tests/test-lchown.c (main): Likewise.
69267         * tests/test-link.c (main): Likewise.
69268         * tests/test-linkat.c (main): Likewise.
69269         * tests/test-lstat.c (main): Likewise.
69270         * tests/test-mkdir.c (main): Likewise.
69271         * tests/test-mkdirat.c (main): Likewise.
69272         * tests/test-mkfifo.c (main): Likewise.
69273         * tests/test-mkfifoat.c (main): Likewise.
69274         * tests/test-mknod.c (main): Likewise.
69275         * tests/test-readlink.c (main): Likewise.
69276         * tests/test-remove.c (main): Likewise.
69277         * tests/test-rename.c (main): Likewise.
69278         * tests/test-renameat.c (main): Likewise.
69279         * tests/test-rmdir.c (main): Likewise.
69280         * tests/test-symlink.c (main): Likewise.
69281         * tests/test-symlinkat.c (main): Likewise.
69282         * tests/test-unlink.c (main): Likewise.
69283         * tests/test-unlinkat.c (main): Likewise.
69284         * tests/test-utimens.c (main): Likewise.
69285         * tests/test-utimensat.c (main): Likewise.
69286         * modules/areadlink-tests (Depends-on): Add ignore-value.
69287         * modules/areadlink-with-size-tests (Depends-on): Likewise.
69288         * modules/areadlinkat-tests (Depends-on): Likewise.
69289         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
69290         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69291         * modules/canonicalize-tests (Depends-on): Likewise.
69292         * modules/chown-tests (Depends-on): Likewise.
69293         * modules/fdutimensat-tests (Depends-on): Likewise.
69294         * modules/futimens-tests (Depends-on): Likewise.
69295         * modules/lchown-tests (Depends-on): Likewise.
69296         * modules/link-tests (Depends-on): Likewise.
69297         * modules/linkat-tests (Depends-on): Likewise.
69298         * modules/lstat-tests (Depends-on): Likewise.
69299         * modules/mkdir-tests (Depends-on): Likewise.
69300         * modules/mkfifo-tests (Depends-on): Likewise.
69301         * modules/mkfifoat-tests (Depends-on): Likewise.
69302         * modules/mknod-tests (Depends-on): Likewise.
69303         * modules/openat-tests (Depends-on): Likewise.
69304         * modules/readlink-tests (Depends-on): Likewise.
69305         * modules/remove-tests (Depends-on): Likewise.
69306         * modules/rename-tests (Depends-on): Likewise.
69307         * modules/renameat-tests (Depends-on): Likewise.
69308         * modules/rmdir-tests (Depends-on): Likewise.
69309         * modules/symlink-tests (Depends-on): Likewise.
69310         * modules/symlinkat-tests (Depends-on): Likewise.
69311         * modules/unlink-tests (Depends-on): Likewise.
69312         * modules/utimens-tests (Depends-on): Likewise.
69313         * modules/utimensat-tests (Depends-on): Likewise.
69315 2010-01-31  Bruno Haible  <bruno@clisp.org>
69317         Perform the same test for many <math.h> functions.
69318         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
69319         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
69320         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
69321         of gl_MATHFUNC.
69322         * modules/acos (configure.ac): Likewise.
69323         * modules/asin (configure.ac): Likewise.
69324         * modules/atan (configure.ac): Likewise.
69325         * modules/atan2 (configure.ac): Likewise.
69326         * modules/cbrt (configure.ac): Likewise.
69327         * modules/copysign (configure.ac): Likewise.
69328         * modules/cos (configure.ac): Likewise.
69329         * modules/cosh (configure.ac): Likewise.
69330         * modules/erf (configure.ac): Likewise.
69331         * modules/erfc (configure.ac): Likewise.
69332         * modules/exp (configure.ac): Likewise.
69333         * modules/fmod (configure.ac): Likewise.
69334         * modules/hypot (configure.ac): Likewise.
69335         * modules/j0 (configure.ac): Likewise.
69336         * modules/j1 (configure.ac): Likewise.
69337         * modules/jn (configure.ac): Likewise.
69338         * modules/lgamma (configure.ac): Likewise.
69339         * modules/log (configure.ac): Likewise.
69340         * modules/log10 (configure.ac): Likewise.
69341         * modules/log1p (configure.ac): Likewise.
69342         * modules/pow (configure.ac): Likewise.
69343         * modules/remainder (configure.ac): Likewise.
69344         * modules/sin (configure.ac): Likewise.
69345         * modules/sinh (configure.ac): Likewise.
69346         * modules/tan (configure.ac): Likewise.
69347         * modules/tanh (configure.ac): Likewise.
69348         * modules/y0 (configure.ac): Likewise.
69349         * modules/y1 (configure.ac): Likewise.
69350         * modules/yn (configure.ac): Likewise.
69351         Suggested by Paolo Bonzini.
69353 2010-01-31  Bruno Haible  <bruno@clisp.org>
69355         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
69357 2010-01-31  Bruno Haible  <bruno@clisp.org>
69359         Work around getdelim() bug on FreeBSD 8.0.
69360         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
69361         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
69362         not work.
69363         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
69364         is 1.
69365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
69366         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
69367         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
69368         a non-zero size.
69369         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
69371 2010-01-31  Bruno Haible  <bruno@clisp.org>
69373         Work around getline() bug on FreeBSD 8.0.
69374         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
69375         and a non-zero size.
69376         * tests/test-getline.c (main): Likewise.
69377         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
69378         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
69380 2010-01-28  Eric Blake  <ebb9@byu.net>
69382         regex: fix build failure
69383         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
69384         platforms.
69386 2010-01-28  Jim Meyering  <meyering@redhat.com>
69388         regex: do not ignore memory allocation failure
69389         * lib/regex_internal.c (create_cd_newstate): Detect
69390         re_node_set_init_copy failure.   Extracted from glibc commit
69391         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69393         regex: sync more white-space changes from libc
69394         * lib/regex_internal.c: White-space only changes.
69395         * lib/regexec.c: Likewise.
69397         regex: add many uses of __attribute_warn_unused_result__
69398         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
69399         * lib/regexec.c: Likewise.
69400         Extracted from a messy glibc commit.
69402         regcomp.c: spelling and merge-artifact from glibc
69403         * lib/regcomp.c: Merge remainder of glibc's
69404         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69406         regcomp.c: sync white-space changes from glibc
69407         * lib/regcomp.c: Merge to accommodate white space
69408         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69410         regcomp.c: do not ignore internal return values
69411         * lib/regcomp.c: Do not ignore internal return values.
69412         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
69413         but without its white-space changes and spelling fixes.
69415         regex_internal.h: define __attribute_warn_unused_result__
69416         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
69418         maint: add a syntax-check rule to check for vulnerable Makefile.in
69419         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
69421 2010-01-27  Jim Meyering  <meyering@redhat.com>
69423         ncftpput-ftp: clean up spaces
69424         * build-aux/ncftpput-ftp: Make Copyright line consistent.
69425         Remove trailing blanks.
69427 2010-01-27  Simon Josefsson  <simon@josefsson.org>
69429         * build-aux/git-version-gen: Fix copyright statement.
69430         * build-aux/gnupload: Likewise.
69431         * tests/test-arcfour.c: Likewise.
69432         * tests/test-arctwo.c: Likewise.
69433         * tests/test-count-one-bits.c: Likewise.
69434         * tests/test-crc.c: Likewise.
69435         * tests/test-des.c: Likewise.
69436         * tests/test-gc-arcfour.c: Likewise.
69437         * tests/test-gc-arctwo.c: Likewise.
69438         * tests/test-gc-des.c: Likewise.
69439         * tests/test-gc-hmac-md5.c: Likewise.
69440         * tests/test-gc-hmac-sha1.c: Likewise.
69441         * tests/test-gc-md2.c: Likewise.
69442         * tests/test-gc-md4.c: Likewise.
69443         * tests/test-gc-md5.c: Likewise.
69444         * tests/test-gc-pbkdf2-sha1.c: Likewise.
69445         * tests/test-gc-rijndael.c: Likewise.
69446         * tests/test-gc-sha1.c: Likewise.
69447         * tests/test-gc.c: Likewise.
69448         * tests/test-gethostname.c: Likewise.
69449         * tests/test-gettimeofday.c: Likewise.
69450         * tests/test-hash.c: Likewise.
69451         * tests/test-hmac-md5.c: Likewise.
69452         * tests/test-hmac-sha1.c: Likewise.
69453         * tests/test-md2.c: Likewise.
69454         * tests/test-md4.c: Likewise.
69455         * tests/test-md5.c: Likewise.
69456         * tests/test-memchr.c: Likewise.
69457         * tests/test-memchr2.c: Likewise.
69458         * tests/test-memcmp.c: Likewise.
69459         * tests/test-memmem.c: Likewise.
69460         * tests/test-memrchr.c: Likewise.
69461         * tests/test-rawmemchr.c: Likewise.
69462         * tests/test-read-file.c: Likewise.
69463         * tests/test-rijndael.c: Likewise.
69464         * tests/test-sockets.c: Likewise.
69465         * tests/test-strchrnul.c: Likewise.
69466         * tests/test-strstr.c: Likewise.
69467         * tests/test-strtod.c: Likewise.
69468         * build-aux/ncftpput-ftp: Likewise.
69470 2010-01-26  Eric Blake  <ebb9@byu.net>
69472         ignore-value: update recommended header name
69473         * modules/ignore-value (Include): Only use <> for headers that
69474         exist in glibc.
69476 2010-01-26  Jim Meyering  <meyering@redhat.com>
69478         test-userspec.c: avoid compiler warnings
69479         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
69480         and "initialization discards qualifiers..." warnings.
69481         Put the first "uid" in its own scope, and make char* members "const".
69483 2010-01-25  Bruno Haible  <bruno@clisp.org>
69485         gnulib-tool: Make warning diagnostics consistent.
69486         * gnulib-tool (func_warning): New function.
69487         Use it everywhere where gnulib-tool produces output to stderr and it is
69488         not a fatal error.
69490 2010-01-25  Bruno Haible  <bruno@clisp.org>
69492         Fix test dependencies.
69493         * modules/xstrtol-tests (Depends-on): Add inttypes.
69494         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
69496 2010-01-25  Pádraig Brady  <P@draigBrady.com>
69498         syntax-check: detect incorrect boolean macro values in config.h
69499         * modules/maintainer-makefile (configure.ac): Parameterize the location
69500         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
69501         The logic is from Eric Blake and the location indicated by Jim Meyering.
69502         Note the more natural CONFIG_HEADER name is prohibited by automake
69503         for backwards compatibility reasons.
69504         * top/maint.mk (sc_Wundef_boolean): New rule.
69506 2010-01-25  Jim Meyering  <meyering@redhat.com>
69508         bootstrap: detect MacOS 10.6's shasum, too
69509         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
69510         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
69512 2010-01-23  Jim Meyering  <meyering@redhat.com>
69514         xstrtoll: new module
69515         * modules/xstrtoll: New file.
69516         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
69517         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
69518         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
69519         ./configure fails if you use this module and lack "long long".
69520         * modules/xstrtoll-tests: New module.
69521         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
69522         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
69523         new init.sh-based test framework.
69525 2010-01-24  Bruno Haible  <bruno@clisp.org>
69527         Tests for module 'yn'.
69528         * modules/yn-tests: New file.
69529         * tests/test-yn.c: New file.
69531         Tests for module 'y1'.
69532         * modules/y1-tests: New file.
69533         * tests/test-y1.c: New file.
69535         Tests for module 'y0'.
69536         * modules/y0-tests: New file.
69537         * tests/test-y0.c: New file.
69539         Tests for module 'tanh'.
69540         * modules/tanh-tests: New file.
69541         * tests/test-tanh.c: New file.
69543         Tests for module 'tan'.
69544         * modules/tan-tests: New file.
69545         * tests/test-tan.c: New file.
69547         Tests for module 'sqrt'.
69548         * modules/sqrt-tests: New file.
69549         * tests/test-sqrt.c: New file.
69551         Tests for module 'sinh'.
69552         * modules/sinh-tests: New file.
69553         * tests/test-sinh.c: New file.
69555         Tests for module 'sin'.
69556         * modules/sin-tests: New file.
69557         * tests/test-sin.c: New file.
69559         Tests for module 'rint'.
69560         * modules/rint-tests: New file.
69561         * tests/test-rint.c: New file.
69563         Tests for module 'remainder'.
69564         * modules/remainder-tests: New file.
69565         * tests/test-remainder.c: New file.
69567         Tests for module 'pow'.
69568         * modules/pow-tests: New file.
69569         * tests/test-pow.c: New file.
69571         Tests for module 'nextafter'.
69572         * modules/nextafter-tests: New file.
69573         * tests/test-nextafter.c: New file.
69575         Tests for module 'modf'.
69576         * modules/modf-tests: New file.
69577         * tests/test-modf.c: New file.
69579         Tests for module 'logb'.
69580         * modules/logb-tests: New file.
69581         * tests/test-logb.c: New file.
69583         Tests for module 'log1p'.
69584         * modules/log1p-tests: New file.
69585         * tests/test-log1p.c: New file.
69587         Tests for module 'log10'.
69588         * modules/log10-tests: New file.
69589         * tests/test-log10.c: New file.
69591         Tests for module 'log'.
69592         * modules/log-tests: New file.
69593         * tests/test-log.c: New file.
69595         Tests for module 'lgamma'.
69596         * modules/lgamma-tests: New file.
69597         * tests/test-lgamma.c: New file.
69599         Tests for module 'ldexp'.
69600         * modules/ldexp-tests: New file.
69601         * tests/test-ldexp.c: New file.
69603         Tests for module 'jn'.
69604         * modules/jn-tests: New file.
69605         * tests/test-jn.c: New file.
69607         Tests for module 'j1'.
69608         * modules/j1-tests: New file.
69609         * tests/test-j1.c: New file.
69611         Tests for module 'j0'.
69612         * modules/j0-tests: New file.
69613         * tests/test-j0.c: New file.
69615         Tests for module 'hypot'.
69616         * modules/hypot-tests: New file.
69617         * tests/test-hypot.c: New file.
69619         Tests for module 'fmod'.
69620         * modules/fmod-tests: New file.
69621         * tests/test-fmod.c: New file.
69623         Tests for module 'fabs'.
69624         * modules/fabs-tests: New file.
69625         * tests/test-fabs.c: New file.
69627         Tests for module 'exp'.
69628         * modules/exp-tests: New file.
69629         * tests/test-exp.c: New file.
69631         Tests for module 'erfc'.
69632         * modules/erfc-tests: New file.
69633         * tests/test-erfc.c: New file.
69635         Tests for module 'erf'.
69636         * modules/erf-tests: New file.
69637         * tests/test-erf.c: New file.
69639         Tests for module 'cosh'.
69640         * modules/cosh-tests: New file.
69641         * tests/test-cosh.c: New file.
69643         Tests for module 'cos'.
69644         * modules/cos-tests: New file.
69645         * tests/test-cos.c: New file.
69647         Tests for module 'copysign'.
69648         * modules/copysign-tests: New file.
69649         * tests/test-copysign.c: New file.
69651         Tests for module 'cbrt'.
69652         * modules/cbrt-tests: New file.
69653         * tests/test-cbrt.c: New file.
69655         Tests for module 'atan2'.
69656         * modules/atan2-tests: New file.
69657         * tests/test-atan2.c: New file.
69659         Tests for module 'atan'.
69660         * modules/atan-tests: New file.
69661         * tests/test-atan.c: New file.
69663         Tests for module 'asin'.
69664         * modules/asin-tests: New file.
69665         * tests/test-asin.c: New file.
69667         Tests for module 'acos'.
69668         * modules/acos-tests: New file.
69669         * tests/test-acos.c: New file.
69671 2010-01-24  Bruno Haible  <bruno@clisp.org>
69673         Fix tests for common <math.h> functions.
69674         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69675         code snippet that references the function pointer, rather than merely
69676         calling the function. Substitute the FUNC_LIBM variable.
69677         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69678         * modules/acos (configure.ac): Likewise.
69679         * modules/asin (configure.ac): Likewise.
69680         * modules/atan (configure.ac): Likewise.
69681         * modules/atan2 (configure.ac): Likewise.
69682         * modules/cbrt (configure.ac): Likewise.
69683         * modules/copysign (configure.ac): Likewise.
69684         * modules/cos (configure.ac): Likewise.
69685         * modules/cosh (configure.ac): Likewise.
69686         * modules/erf (configure.ac): Likewise.
69687         * modules/erfc (configure.ac): Likewise.
69688         * modules/exp (configure.ac): Likewise.
69689         * modules/fabs (configure.ac): Likewise.
69690         * modules/fmod (configure.ac): Likewise.
69691         * modules/hypot (configure.ac): Likewise.
69692         * modules/j0 (configure.ac): Likewise.
69693         * modules/j1 (configure.ac): Likewise.
69694         * modules/jn (configure.ac): Likewise.
69695         * modules/ldexp (configure.ac): Likewise.
69696         * modules/lgamma (configure.ac): Likewise.
69697         * modules/log (configure.ac): Likewise.
69698         * modules/log10 (configure.ac): Likewise.
69699         * modules/log1p (configure.ac): Likewise.
69700         * modules/logb (configure.ac): Likewise.
69701         * modules/modf (configure.ac): Likewise.
69702         * modules/nextafter (configure.ac): Likewise.
69703         * modules/pow (configure.ac): Likewise.
69704         * modules/remainder (configure.ac): Likewise.
69705         * modules/rint (configure.ac): Likewise.
69706         * modules/sin (configure.ac): Likewise.
69707         * modules/sinh (configure.ac): Likewise.
69708         * modules/tan (configure.ac): Likewise.
69709         * modules/tanh (configure.ac): Likewise.
69710         * modules/y0 (configure.ac): Likewise.
69711         * modules/y1 (configure.ac): Likewise.
69712         * modules/yn (configure.ac): Likewise.
69714 2010-01-24  Bruno Haible  <bruno@clisp.org>
69716         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69717         * tests/test-acosl.c (x): New variable.
69718         (main): Store argument in x and fetch it from x.
69719         * tests/test-asinl.c (x): New variable.
69720         (main): Store argument in x and fetch it from x.
69721         * tests/test-atanl.c (x): New variable.
69722         (main): Store argument in x and fetch it from x.
69723         * tests/test-cosl.c (x): New variable.
69724         (main): Store argument in x and fetch it from x.
69725         * tests/test-expl.c (x): New variable.
69726         (main): Store argument in x and fetch it from x.
69727         * tests/test-logl.c (x): New variable.
69728         (main): Store argument in x and fetch it from x.
69729         * tests/test-sinl.c (x): New variable.
69730         (main): Store argument in x and fetch it from x.
69731         * tests/test-sqrtl.c (x): New variable.
69732         (main): Store argument in x and fetch it from x.
69733         * tests/test-tanl.c (x): New variable.
69734         (main): Store argument in x and fetch it from x.
69736 2010-01-24  Bruno Haible  <bruno@clisp.org>
69738         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69739         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69740         assignments to the initial TESTS_ENVIRONMENT.
69741         * doc/gnulib.texi (Unit test modules): Document it.
69742         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69743         TESTS_ENVIRONMENT.
69744         * modules/btowc-tests (Makefile.am): Likewise.
69745         * modules/c-stack-tests (Makefile.am): Likewise.
69746         * modules/c-strcase-tests (Makefile.am): Likewise.
69747         * modules/copy-file-tests (Makefile.am): Likewise.
69748         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69749         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69750         * modules/mbrtowc-tests (Makefile.am): Likewise.
69751         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69752         * modules/mbscasestr-tests (Makefile.am): Likewise.
69753         * modules/mbschr-tests (Makefile.am): Likewise.
69754         * modules/mbscspn-tests (Makefile.am): Likewise.
69755         * modules/mbsinit-tests (Makefile.am): Likewise.
69756         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69757         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69758         * modules/mbspbrk-tests (Makefile.am): Likewise.
69759         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69760         * modules/mbsrchr-tests (Makefile.am): Likewise.
69761         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69762         * modules/mbsspn-tests (Makefile.am): Likewise.
69763         * modules/mbsstr-tests (Makefile.am): Likewise.
69764         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69765         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69766         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69767         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69768         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69769         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69770         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69771         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69772         * modules/wcrtomb-tests (Makefile.am): Likewise.
69773         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69774         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69775         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69776         assignments from TESTS_ENVIRONMENT.
69777         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69778         augmentation.
69779         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69780         * modules/atexit-tests (Makefile.am): Likewise.
69781         * modules/binary-io-tests (Makefile.am): Likewise.
69782         * modules/closein-tests (Makefile.am): Likewise.
69783         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69784         * modules/exclude-tests (Makefile.am): Likewise.
69785         * modules/fflush-tests (Makefile.am): Likewise.
69786         * modules/fpending-tests (Makefile.am): Likewise.
69787         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69788         * modules/freadahead-tests (Makefile.am): Likewise.
69789         * modules/freadptr-tests (Makefile.am): Likewise.
69790         * modules/freadseek-tests (Makefile.am): Likewise.
69791         * modules/fseek-tests (Makefile.am): Likewise.
69792         * modules/fseeko-tests (Makefile.am): Likewise.
69793         * modules/ftell-tests (Makefile.am): Likewise.
69794         * modules/ftello-tests (Makefile.am): Likewise.
69795         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69796         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69797         * modules/lseek-tests (Makefile.am): Likewise.
69798         * modules/parse-duration-tests (Makefile.am): Likewise.
69799         * modules/perror-tests (Makefile.am): Likewise.
69800         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69801         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69802         * modules/pipe-tests (Makefile.am): Likewise.
69803         * modules/pread-tests (Makefile.am): Likewise.
69804         * modules/printf-posix-tests (Makefile.am): Likewise.
69805         * modules/select-tests (Makefile.am): Likewise.
69806         * modules/sigpipe-tests (Makefile.am): Likewise.
69807         * modules/tsearch-tests (Makefile.am): Likewise.
69808         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69809         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69810         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69811         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69812         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69813         * modules/version-etc-tests (Makefile.am): Likewise.
69814         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69815         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69816         * modules/xalloc-die-tests (Makefile.am): Likewise.
69817         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69818         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69819         * modules/xstrtol-tests (Makefile.am): Likewise.
69820         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69821         * modules/yesno-tests (Makefile.am): Likewise.
69822         Suggested by Jim Meyering.
69824 2010-01-24  Bruno Haible  <bruno@clisp.org>
69826         More documentation.
69827         * doc/gnulib.texi (Writing modules): New chapter.
69828         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69829         the new chapter.
69831 2010-01-24  Jim Meyering  <meyering@redhat.com>
69833         maint.mk: do not prepend "./" after filtering
69834         * top/maint.mk (_prepend_srcdir_prefix): New variable
69835         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69836         "./" when $(srcdir) is ".".
69838         define STREQ(a,b) consistently, removing useless parentheses
69839         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69840         since the only risk is that "a" or "b" contains an unparenthesized
69841         comma, but if either did that, STREQ would have 3 or more arguments.
69842         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69843         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69844         * lib/hash-triple.c (STREQ): Likewise.
69845         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69846         * lib/getugroups.c (STREQ): Likewise.
69848 2010-01-23  Jim Meyering  <meyering@redhat.com>
69850         maint.mk: fix syntax-check in a non-srcdir build directory
69851         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69852         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69854 2010-01-22  Jim Meyering  <meyering@redhat.com>
69856         userspec: add unit tests
69857         * tests/test-userspec.c: New file.
69858         * modules/userspec-tests: Likewise.
69860 2010-01-21  Jim Meyering  <meyering@redhat.com>
69862         maint.mk: handle source file names containing "." robustly
69863         * top/maint.mk (_dot_escaped_srcdir): Define.
69864         (VC_LIST): Use it in LHS of sed substitution.
69866 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69868         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69869         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69870         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69871         from a non-srcdir build.
69873 2010-01-20  Eric Blake  <ebb9@byu.net>
69875         warn-on-use: use instead of link-warning
69876         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69877         * modules/unistd (Depends-on, Makefile.am): Likewise.
69878         * modules/arpa_inet (Depends-on): Replace link-warning with
69879         warn-on-use.
69880         (Makefile.am): Update rules accordingly.
69881         * modules/ctype (Depends-on, Makefile.am): Likewise.
69882         * modules/dirent (Depends-on, Makefile.am): Likewise.
69883         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69884         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69885         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69886         * modules/locale (Depends-on, Makefile.am): Likewise.
69887         * modules/math (Depends-on, Makefile.am): Likewise.
69888         * modules/search (Depends-on, Makefile.am): Likewise.
69889         * modules/signal (Depends-on, Makefile.am): Likewise.
69890         * modules/spawn (Depends-on, Makefile.am): Likewise.
69891         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69892         * modules/string (Depends-on, Makefile.am): Likewise.
69893         * modules/strings (Depends-on, Makefile.am): Likewise.
69894         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69895         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69896         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69897         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69898         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69899         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69900         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69901         * modules/wchar (Depends-on, Makefile.am): Likewise.
69902         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69903         should be poisoned.
69904         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69905         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69906         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69907         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69908         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69909         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69910         * m4/math_h.m4 (gl_MATH_H): Likewise.
69911         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69912         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69913         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69914         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69915         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69916         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69917         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69918         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69922         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69923         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69924         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69925         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69926         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69927         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69928         GL_LINK_WARNING.
69929         * lib/ctype.in.h: Likewise.
69930         * lib/dirent.in.h: Likewise.
69931         * lib/fcntl.in.h: Likewise.
69932         * lib/inttypes.in.h: Likewise.
69933         * lib/langinfo.in.h: Likewise.
69934         * lib/locale.in.h: Likewise.
69935         * lib/math.in.h: Likewise.
69936         * lib/search.in.h: Likewise.
69937         * lib/signal.in.h: Likewise.
69938         * lib/spawn.in.h: Likewise.
69939         * lib/stdio.in.h: Likewise.
69940         * lib/stdlib.in.h: Likewise.
69941         * lib/string.in.h: Likewise.
69942         * lib/strings.in.h: Likewise.
69943         * lib/sys_file.in.h: Likewise.
69944         * lib/sys_ioctl.in.h: Likewise.
69945         * lib/sys_select.in.h: Likewise.
69946         * lib/sys_socket.in.h: Likewise.
69947         * lib/sys_stat.in.h: Likewise.
69948         * lib/sys_times.in.h: Likewise.
69949         * lib/sys_utsname.in.h: Likewise.
69950         * lib/unistd.in.h: Likewise.
69951         * lib/wchar.in.h: Likewise.
69953 2010-01-20  Bruno Haible  <bruno@clisp.org>
69955         Avoid duplicate -lm.
69956         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69957         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69959         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69960         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69961         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69962         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69963         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69964         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69965         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69966         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69967         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69968         Reported by Paolo Bonzini.
69970 2010-01-19  Bruno Haible  <bruno@clisp.org>
69972         langinfo, nl_langinfo: Relicense under LGPLv2+.
69973         * modules/langinfo (License): Change to LGPLv2+.
69974         * modules/nl_langinfo (License): Likewise.
69975         Patch by David Lutterkort <lutter@redhat.com>.
69977 2010-01-19  Bruno Haible  <bruno@clisp.org>
69979         Avoid compilation error with cc on OSF/1 5.1.
69980         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69981         statement, not before.
69982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69984 2010-01-18  Bruno Haible  <bruno@clisp.org>
69986         Avoid a link error due to the __printf__ symbol.
69987         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69988         and 2.6.x.
69989         (__format__, __printf__): Remove definitions.
69990         * lib/argp-fmtstream.h: Likewise.
69991         * lib/argp.h: Likewise.
69992         * lib/error.h: Likewise.
69993         * lib/vasnprintf.h: Likewise.
69994         * lib/xprintf.h: Likewise.
69995         * lib/xvasprintf.h: Likewise.
69996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69998 2010-01-18  Bruno Haible  <bruno@clisp.org>
70000         Tests for module 'tanl'.
70001         * modules/tanl-tests: New file.
70002         * tests/test-tanl.c: New file.
70004         Tests for module 'sqrtl'.
70005         * modules/sqrtl-tests: New file.
70006         * tests/test-sqrtl.c: New file.
70008         Tests for module 'sinl'.
70009         * modules/sinl-tests: New file.
70010         * tests/test-sinl.c: New file.
70012         Tests for module 'logl'.
70013         * modules/logl-tests: New file.
70014         * tests/test-logl.c: New file.
70016         Tests for module 'expl'.
70017         * modules/expl-tests: New file.
70018         * tests/test-expl.c: New file.
70020         Tests for module 'cosl'.
70021         * modules/cosl-tests: New file.
70022         * tests/test-cosl.c: New file.
70024         Tests for module 'atanl'.
70025         * modules/atanl-tests: New file.
70026         * tests/test-atanl.c: New file.
70028         Tests for module 'asinl'.
70029         * modules/asinl-tests: New file.
70030         * tests/test-asinl.c: New file.
70032         Tests for module 'acosl'.
70033         * modules/acosl-tests: New file.
70034         * tests/test-acosl.c: New file.
70036         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
70037         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
70038         tanl): Use the standard gnulib idiom.
70039         * lib/cosl.c: Don't include trigl.c and sincosl.c.
70040         * lib/sinl.c: Likewise.
70041         * lib/tanl.c: Don't include trigl.c.
70042         (kernel_tanl): Make static.
70043         * lib/sincosl.c: Include trigl.h first.
70044         * lib/trigl.c: Likewise.
70045         * m4/acosl.m4: New file.
70046         * m4/asinl.m4: New file.
70047         * m4/atanl.m4: New file.
70048         * m4/cosl.m4: New file.
70049         * m4/expl.m4: New file.
70050         * m4/logl.m4: New file.
70051         * m4/sinl.m4: New file.
70052         * m4/sqrtl.m4: New file.
70053         * m4/tanl.m4: New file.
70054         * m4/mathl.m4: Remove file.
70055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
70056         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
70057         Don't initialize GNULIB_MATHL.
70058         * modules/acosl: New file.
70059         * modules/asinl: New file.
70060         * modules/atanl: New file.
70061         * modules/cosl: New file.
70062         * modules/expl: New file.
70063         * modules/logl: New file.
70064         * modules/sinl: New file.
70065         * modules/sqrtl: New file.
70066         * modules/tanl: New file.
70067         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
70068         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
70069         substitute GNULIB_MATHL.
70070         * modules/mathl: Rewritten.
70071         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
70072         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
70073         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
70074         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
70075         * doc/posix-functions/expl.texi: Mention the 'expl' module.
70076         * doc/posix-functions/logl.texi: Mention the 'logl' module.
70077         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
70078         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
70079         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
70081 2010-01-18  Bruno Haible  <bruno@clisp.org>
70083         sqrt: Make gl_FUNC_SQRT requirable.
70084         * m4/sqrt.m4: New file.
70085         * modules/sqrt (Files): Add it.
70086         (configure.ac): Invoke gl_FUNC_SQRT.
70088 2010-01-18  Bruno Haible  <bruno@clisp.org>
70090         New modules for common <math.h> functions.
70091         * m4/mathfunc.m4: New file.
70092         * modules/acos: New file.
70093         * modules/asin: New file.
70094         * modules/atan: New file.
70095         * modules/atan2: New file.
70096         * modules/cbrt: New file.
70097         * modules/copysign: New file.
70098         * modules/cos: New file.
70099         * modules/cosh: New file.
70100         * modules/erf: New file.
70101         * modules/erfc: New file.
70102         * modules/exp: New file.
70103         * modules/fabs: New file.
70104         * modules/fmod: New file.
70105         * modules/hypot: New file.
70106         * modules/j0: New file.
70107         * modules/j1: New file.
70108         * modules/jn: New file.
70109         * modules/ldexp: New file.
70110         * modules/lgamma: New file.
70111         * modules/log: New file.
70112         * modules/log10: New file.
70113         * modules/log1p: New file.
70114         * modules/logb: New file.
70115         * modules/modf: New file.
70116         * modules/nextafter: New file.
70117         * modules/pow: New file.
70118         * modules/remainder: New file.
70119         * modules/rint: New file.
70120         * modules/sin: New file.
70121         * modules/sinh: New file.
70122         * modules/sqrt: New file.
70123         * modules/tan: New file.
70124         * modules/tanh: New file.
70125         * modules/y0: New file.
70126         * modules/y1: New file.
70127         * modules/yn: New file.
70128         * doc/posix-functions/acos.texi: Mention the 'acos' module.
70129         * doc/posix-functions/asin.texi: Mention the 'asin' module.
70130         * doc/posix-functions/atan.texi: Mention the 'atan' module.
70131         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
70132         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
70133         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
70134         * doc/posix-functions/cos.texi: Mention the 'cos' module.
70135         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
70136         * doc/posix-functions/erf.texi: Mention the 'erf' module.
70137         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
70138         * doc/posix-functions/exp.texi: Mention the 'exp' module.
70139         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
70140         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
70141         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
70142         * doc/posix-functions/j0.texi: Mention the 'j0' module.
70143         * doc/posix-functions/j1.texi: Mention the 'j1' module.
70144         * doc/posix-functions/jn.texi: Mention the 'jn' module.
70145         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
70146         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
70147         * doc/posix-functions/log.texi: Mention the 'log' module.
70148         * doc/posix-functions/log10.texi: Mention the 'log10' module.
70149         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
70150         * doc/posix-functions/logb.texi: Mention the 'logb' module.
70151         * doc/posix-functions/modf.texi: Mention the 'modf' module.
70152         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
70153         * doc/posix-functions/pow.texi: Mention the 'pow' module.
70154         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
70155         * doc/posix-functions/rint.texi: Mention the 'rint' module.
70156         * doc/posix-functions/sin.texi: Mention the 'sin' module.
70157         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
70158         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
70159         * doc/posix-functions/tan.texi: Mention the 'tan' module.
70160         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
70161         * doc/posix-functions/y0.texi: Mention the 'y0' module.
70162         * doc/posix-functions/y1.texi: Mention the 'y1' module.
70163         * doc/posix-functions/yn.texi: Mention the 'yn' module.
70165 2010-01-18  Jim Meyering  <meyering@redhat.com>
70167         ignore-value: relax license to LGPLv2+
70168         * modules/ignore-value (License): Relax to LGPLv2+.
70170         getdate: don't leak when TZ contains two or more '"'s
70171         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
70172         double quote in TZ after the first one.
70174         readtokens: do not leak internal token_lengths buffer
70175         * lib/readtokens.c (readtokens): Free the local, lengths,
70176         when the supplied "token_lengths" parameter is NULL.
70178 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70180         Fix a couple of missing LIBTHREAD link failures on AIX.
70181         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
70182         $(LIBTHREAD).
70183         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
70185         Link test-poll against INET_PTON_LIB.
70186         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
70187         for inet_pton on Solaris 10.
70189 2010-01-17  Bruno Haible  <bruno@clisp.org>
70191         unistdio/*-sprintf: Fix typo in module description.
70192         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
70193         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
70194         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
70195         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
70196         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
70197         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
70198         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
70199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70201 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70203         gnulib-tool: fix filelist for AIX, HP-UX ksh.
70204         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
70205         variables in shell case patterns, for AIX and HP-UX ksh.
70207         Split large sed scripts, for HP-UX sed.
70208         * modules/stdio: Split sed scripts around 50 sed commands,
70209         to avoid HP-UX limit of 99 commands, in the near future.
70210         * modules/string: Likewise.
70211         * modules/unistd: Likewise.
70213         gnulib-tool: avoid writing in the current directory.
70214         * gnulib-tool (func_emit_lib_Makefile_am)
70215         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
70216         not in the current directory, so concurrent gnulib-tool
70217         instances do not interfere.
70219 2010-01-16  Jim Meyering  <meyering@redhat.com>
70221         doc: update users.txt
70222         * users.txt: Add grep.
70223         (diffutils, gzip): Update URLs.
70225 2010-01-12  Bruno Haible  <bruno@clisp.org>
70227         posix_spawn: Avoid test failure on Cygwin.
70228         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
70229         characters.
70230         Reported by Simon Josefsson.
70232 2010-01-12  Bruno Haible  <bruno@clisp.org>
70234         * tests/test-cond.c (main): When skipping the test, show the reason.
70236 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70238         * lib/striconv.c (str_cd_iconv): Avoid if before free.
70240 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70242         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
70243         VC_LIST_ALWAYS_EXCLUDE_REGEX.
70245 2010-01-12  Eric Blake  <ebb9@byu.net>
70247         build: guarantee AS_VAR_IF
70248         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
70249         (gl_AS_VAR_IF): Move...
70250         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
70251         Reported by Simon Josefsson.
70253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70255         * lib/stdio.in.h: Fix typo.
70257 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70259         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
70260         libgpg-error.
70262 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70264         * tests/test-xalloc-die.sh: Use $EXEEXT.
70266 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70267             Bruno Haible  <bruno@clisp.org>
70269         getlogin, getlogin_r: Avoid test failure.
70270         * tests/test-getlogin.c: Include <stdio.h>.
70271         (main): Skip the test when the function fails because stdin is not a
70272         tty.
70273         * tests/test-getlogin_r.c: Include <stdio.h>.
70274         (main): Skip the test when the function fails because stdin is not a
70275         tty.
70277 2010-01-11  Eric Blake  <ebb9@byu.net>
70279         tests: avoid more large file warnings
70280         * tests/test-fflush.c: Avoid warning about ftell use.
70281         * tests/test-fseek.c: Avoid warning about fseek use.
70283 2010-01-10  Bruno Haible  <bruno@clisp.org>
70285         nproc: Work better on Linux when /proc and /sys are not mounted.
70286         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
70287         as lower bound when, on glibc/Linux systems,
70288         sysconf (_SC_NPROCESSORS_CONF) returns 1.
70289         Suggested by Pádraig Brady <P@draigbrady.com>.
70290         Reported by Dmitry V. Levin <ldv@altlinux.org>.
70292         nproc: Refactor.
70293         * lib/nproc.c (num_processors_via_affinity_mask): New function,
70294         extracted from num_processors.
70295         (num_processors): Call it.
70297 2010-01-11  Jim Meyering  <meyering@redhat.com>
70299         utimecmp: avoid new warning from upcoming gcc-4.5.0
70300         * lib/utimecmp.c (BILLION): Define using #define rather than an
70301         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
70303 2010-01-11  Eric Blake  <ebb9@byu.net>
70305         math: add portability warnings for classification macros
70306         * modules/math (Depends-on): Add warn-on-use.
70307         (Makefile.am): Provide new substitutions.
70308         * m4/math_h.m4 (gl_MATH_H): Require inline.
70309         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
70310         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
70311         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
70312         implement warnings.
70314         unistd: warn on use of environ without module
70315         * modules/unistd (Depends-on): Add warn-on-use.
70316         (Makefile.am): Provide new substitutions.
70317         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
70318         * lib/unistd.in.h (environ): Wrap with a warning helper function.
70320         stdio: warn on suspicious uses
70321         * modules/stdio (Depends-on): Add warn-on-use.
70322         (Makefile.am): Provide new substitutions.
70323         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
70324         fseeko.
70325         * lib/stdio.in.h (gets): Always warn on use.
70326         (fseek, ftell): Adjust when warnings are issued, and honor
70327         _GL_NO_LARGE_FILES as a way to silence the warning.
70328         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
70329         any warning about large file offsets.
70330         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
70331         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
70332         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
70333         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
70334         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
70335         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
70336         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
70337         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
70339         warn-on-use: new module
70340         * modules/warn-on-use: New file.
70341         * build-aux/warn-on-use.h: Likewise.
70342         * m4/warn-on-use.m4: Likewise.
70343         * MODULES.html.sh (Support for building): Mention it.
70345 2010-01-10  Bruno Haible  <bruno@clisp.org>
70347         Tests for module 'unistr/u32-strdup'.
70348         * modules/unistr/u32-strdup-tests: New file.
70349         * tests/unistr/test-u32-strdup.c: New file.
70351         Tests for module 'unistr/u16-strdup'.
70352         * modules/unistr/u16-strdup-tests: New file.
70353         * tests/unistr/test-u16-strdup.c: New file.
70355         Tests for module 'unistr/u8-strdup'.
70356         * modules/unistr/u8-strdup-tests: New file.
70357         * tests/unistr/test-u8-strdup.c: New file.
70358         * tests/unistr/test-strdup.h: New file.
70360         Tests for module 'unistr/u32-strncmp'.
70361         * modules/unistr/u32-strncmp-tests: New file.
70362         * tests/unistr/test-u32-strncmp.c: New file.
70364         Tests for module 'unistr/u16-strncmp'.
70365         * modules/unistr/u16-strncmp-tests: New file.
70366         * tests/unistr/test-u16-strncmp.c: New file.
70368         Tests for module 'unistr/u8-strncmp'.
70369         * modules/unistr/u8-strncmp-tests: New file.
70370         * tests/unistr/test-u8-strncmp.c: New file.
70371         * tests/unistr/test-strncmp.h: New file.
70373         Tests for module 'unistr/u32-strcoll'.
70374         * modules/unistr/u32-strcoll-tests: New file.
70375         * tests/unistr/test-u32-strcoll.c: New file.
70377         Tests for module 'unistr/u16-strcoll'.
70378         * modules/unistr/u16-strcoll-tests: New file.
70379         * tests/unistr/test-u16-strcoll.c: New file.
70381         Tests for module 'unistr/u8-strcoll'.
70382         * modules/unistr/u8-strcoll-tests: New file.
70383         * tests/unistr/test-u8-strcoll.c: New file.
70385         Tests for module 'unistr/u32-strcmp'.
70386         * modules/unistr/u32-strcmp-tests: New file.
70387         * tests/unistr/test-u32-strcmp.c: New file.
70388         * tests/unistr/test-u32-strcmp.h: New file.
70390         Tests for module 'unistr/u16-strcmp'.
70391         * modules/unistr/u16-strcmp-tests: New file.
70392         * tests/unistr/test-u16-strcmp.c: New file.
70393         * tests/unistr/test-u16-strcmp.h: New file.
70395         Tests for module 'unistr/u8-strcmp'.
70396         * modules/unistr/u8-strcmp-tests: New file.
70397         * tests/unistr/test-u8-strcmp.c: New file.
70398         * tests/unistr/test-u8-strcmp.h: New file.
70399         * tests/unistr/test-strcmp.h: New file.
70401         Tests for module 'unistr/u32-strncat'.
70402         * modules/unistr/u32-strncat-tests: New file.
70403         * tests/unistr/test-u32-strncat.c: New file.
70405         Tests for module 'unistr/u16-strncat'.
70406         * modules/unistr/u16-strncat-tests: New file.
70407         * tests/unistr/test-u16-strncat.c: New file.
70409         Tests for module 'unistr/u8-strncat'.
70410         * modules/unistr/u8-strncat-tests: New file.
70411         * tests/unistr/test-u8-strncat.c: New file.
70412         * tests/unistr/test-strncat.h: New file.
70414         Tests for module 'unistr/u32-strcat'.
70415         * modules/unistr/u32-strcat-tests: New file.
70416         * tests/unistr/test-u32-strcat.c: New file.
70418         Tests for module 'unistr/u16-strcat'.
70419         * modules/unistr/u16-strcat-tests: New file.
70420         * tests/unistr/test-u16-strcat.c: New file.
70422         Tests for module 'unistr/u8-strcat'.
70423         * modules/unistr/u8-strcat-tests: New file.
70424         * tests/unistr/test-u8-strcat.c: New file.
70425         * tests/unistr/test-strcat.h: New file.
70427         Tests for module 'unistr/u32-stpncpy'.
70428         * modules/unistr/u32-stpncpy-tests: New file.
70429         * tests/unistr/test-u32-stpncpy.c: New file.
70431         Tests for module 'unistr/u16-stpncpy'.
70432         * modules/unistr/u16-stpncpy-tests: New file.
70433         * tests/unistr/test-u16-stpncpy.c: New file.
70435         Tests for module 'unistr/u8-stpncpy'.
70436         * modules/unistr/u8-stpncpy-tests: New file.
70437         * tests/unistr/test-u8-stpncpy.c: New file.
70438         * tests/unistr/test-stpncpy.h: New file.
70440         Tests for module 'unistr/u32-strncpy'.
70441         * modules/unistr/u32-strncpy-tests: New file.
70442         * tests/unistr/test-u32-strncpy.c: New file.
70444         Tests for module 'unistr/u16-strncpy'.
70445         * modules/unistr/u16-strncpy-tests: New file.
70446         * tests/unistr/test-u16-strncpy.c: New file.
70448         Tests for module 'unistr/u8-strncpy'.
70449         * modules/unistr/u8-strncpy-tests: New file.
70450         * tests/unistr/test-u8-strncpy.c: New file.
70451         * tests/unistr/test-strncpy.h: New file.
70453         Tests for module 'unistr/u32-stpcpy'.
70454         * modules/unistr/u32-stpcpy-tests: New file.
70455         * tests/unistr/test-u32-stpcpy.c: New file.
70457         Tests for module 'unistr/u16-stpcpy'.
70458         * modules/unistr/u16-stpcpy-tests: New file.
70459         * tests/unistr/test-u16-stpcpy.c: New file.
70461         Tests for module 'unistr/u8-stpcpy'.
70462         * modules/unistr/u8-stpcpy-tests: New file.
70463         * tests/unistr/test-u8-stpcpy.c: New file.
70464         * tests/unistr/test-stpcpy.h: New file.
70466         Tests for module 'unistr/u32-strcpy'.
70467         * modules/unistr/u32-strcpy-tests: New file.
70468         * tests/unistr/test-u32-strcpy.c: New file.
70470         Tests for module 'unistr/u16-strcpy'.
70471         * modules/unistr/u16-strcpy-tests: New file.
70472         * tests/unistr/test-u16-strcpy.c: New file.
70474         Tests for module 'unistr/u8-strcpy'.
70475         * modules/unistr/u8-strcpy-tests: New file.
70476         * tests/unistr/test-u8-strcpy.c: New file.
70477         * tests/unistr/test-strcpy.h: New file.
70479         Tests for module 'unistr/u32-strnlen'.
70480         * modules/unistr/u32-strnlen-tests: New file.
70481         * tests/unistr/test-u32-strnlen.c: New file.
70483         Tests for module 'unistr/u16-strnlen'.
70484         * modules/unistr/u16-strnlen-tests: New file.
70485         * tests/unistr/test-u16-strnlen.c: New file.
70487         Tests for module 'unistr/u8-strnlen'.
70488         * modules/unistr/u8-strnlen-tests: New file.
70489         * tests/unistr/test-u8-strnlen.c: New file.
70490         * tests/unistr/test-strnlen.h: New file.
70492         Tests for module 'unistr/u32-strlen'.
70493         * modules/unistr/u32-strlen-tests: New file.
70494         * tests/unistr/test-u32-strlen.c: New file.
70496         Tests for module 'unistr/u16-strlen'.
70497         * modules/unistr/u16-strlen-tests: New file.
70498         * tests/unistr/test-u16-strlen.c: New file.
70500         Tests for module 'unistr/u8-strlen'.
70501         * modules/unistr/u8-strlen-tests: New file.
70502         * tests/unistr/test-u8-strlen.c: New file.
70504         Tests for module 'unistr/u32-prev'.
70505         * modules/unistr/u32-prev-tests: New file.
70506         * tests/unistr/test-u32-prev.c: New file.
70508         Tests for module 'unistr/u16-prev'.
70509         * modules/unistr/u16-prev-tests: New file.
70510         * tests/unistr/test-u16-prev.c: New file.
70512         Tests for module 'unistr/u8-prev'.
70513         * modules/unistr/u8-prev-tests: New file.
70514         * tests/unistr/test-u8-prev.c: New file.
70516         Tests for module 'unistr/u32-next'.
70517         * modules/unistr/u32-next-tests: New file.
70518         * tests/unistr/test-u32-next.c: New file.
70520         Tests for module 'unistr/u16-next'.
70521         * modules/unistr/u16-next-tests: New file.
70522         * tests/unistr/test-u16-next.c: New file.
70524         Tests for module 'unistr/u8-next'.
70525         * modules/unistr/u8-next-tests: New file.
70526         * tests/unistr/test-u8-next.c: New file.
70528         Tests for module 'unistr/u32-strmbtouc'.
70529         * modules/unistr/u32-strmbtouc-tests: New file.
70530         * tests/unistr/test-u32-strmbtouc.c: New file.
70532         Tests for module 'unistr/u16-strmbtouc'.
70533         * modules/unistr/u16-strmbtouc-tests: New file.
70534         * tests/unistr/test-u16-strmbtouc.c: New file.
70536         Tests for module 'unistr/u8-strmbtouc'.
70537         * modules/unistr/u8-strmbtouc-tests: New file.
70538         * tests/unistr/test-u8-strmbtouc.c: New file.
70540         Tests for module 'unistr/u32-strmblen'.
70541         * modules/unistr/u32-strmblen-tests: New file.
70542         * tests/unistr/test-u32-strmblen.c: New file.
70544         Tests for module 'unistr/u16-strmblen'.
70545         * modules/unistr/u16-strmblen-tests: New file.
70546         * tests/unistr/test-u16-strmblen.c: New file.
70548         Tests for module 'unistr/u8-strmblen'.
70549         * modules/unistr/u8-strmblen-tests: New file.
70550         * tests/unistr/test-u8-strmblen.c: New file.
70552         Tests for module 'unistr/u32-cpy-alloc'.
70553         * modules/unistr/u32-cpy-alloc-tests: New file.
70554         * tests/unistr/test-u32-cpy-alloc.c: New file.
70556         Tests for module 'unistr/u16-cpy-alloc'.
70557         * modules/unistr/u16-cpy-alloc-tests: New file.
70558         * tests/unistr/test-u16-cpy-alloc.c: New file.
70560         Tests for module 'unistr/u8-cpy-alloc'.
70561         * modules/unistr/u8-cpy-alloc-tests: New file.
70562         * tests/unistr/test-u8-cpy-alloc.c: New file.
70563         * tests/unistr/test-cpy-alloc.h: New file.
70565         Tests for module 'unistr/u32-mbsnlen'.
70566         * modules/unistr/u32-mbsnlen-tests: New file.
70567         * tests/unistr/test-u32-mbsnlen.c: New file.
70569         Tests for module 'unistr/u16-mbsnlen'.
70570         * modules/unistr/u16-mbsnlen-tests: New file.
70571         * tests/unistr/test-u16-mbsnlen.c: New file.
70573         Tests for module 'unistr/u8-mbsnlen'.
70574         * modules/unistr/u8-mbsnlen-tests: New file.
70575         * tests/unistr/test-u8-mbsnlen.c: New file.
70577         Tests for module 'unistr/u32-chr'.
70578         * modules/unistr/u32-chr-tests: New file.
70579         * tests/unistr/test-u32-chr.c: New file.
70581         Tests for module 'unistr/u16-chr'.
70582         * modules/unistr/u16-chr-tests: New file.
70583         * tests/unistr/test-u16-chr.c: New file.
70585         Tests for module 'unistr/u8-chr'.
70586         * modules/unistr/u8-chr-tests: New file.
70587         * tests/unistr/test-u8-chr.c: New file.
70588         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70590         Tests for module 'unistr/u32-cmp2'.
70591         * modules/unistr/u32-cmp2-tests: New file.
70592         * tests/unistr/test-u32-cmp2.c: New file.
70594         Tests for module 'unistr/u16-cmp2'.
70595         * modules/unistr/u16-cmp2-tests: New file.
70596         * tests/unistr/test-u16-cmp2.c: New file.
70598         Tests for module 'unistr/u8-cmp2'.
70599         * modules/unistr/u8-cmp2-tests: New file.
70600         * tests/unistr/test-u8-cmp2.c: New file.
70601         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70603         Tests for module 'unistr/u32-cmp'.
70604         * modules/unistr/u32-cmp-tests: New file.
70605         * tests/unistr/test-u32-cmp.c: New file.
70607         Tests for module 'unistr/u16-cmp'.
70608         * modules/unistr/u16-cmp-tests: New file.
70609         * tests/unistr/test-u16-cmp.c: New file.
70611         Tests for module 'unistr/u8-cmp'.
70612         * modules/unistr/u8-cmp-tests: New file.
70613         * tests/unistr/test-u8-cmp.c: New file.
70614         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70616         Tests for module 'unistr/u32-set'.
70617         * modules/unistr/u32-set-tests: New file.
70618         * tests/unistr/test-u32-set.c: New file.
70620         Tests for module 'unistr/u16-set'.
70621         * modules/unistr/u16-set-tests: New file.
70622         * tests/unistr/test-u16-set.c: New file.
70624         Tests for module 'unistr/u8-set'.
70625         * modules/unistr/u8-set-tests: New file.
70626         * tests/unistr/test-u8-set.c: New file.
70627         * tests/unistr/test-set.h: New file.
70629         Tests for module 'unistr/u32-move'.
70630         * modules/unistr/u32-move-tests: New file.
70631         * tests/unistr/test-u32-move.c: New file.
70633         Tests for module 'unistr/u16-move'.
70634         * modules/unistr/u16-move-tests: New file.
70635         * tests/unistr/test-u16-move.c: New file.
70637         Tests for module 'unistr/u8-move'.
70638         * modules/unistr/u8-move-tests: New file.
70639         * tests/unistr/test-u8-move.c: New file.
70640         * tests/unistr/test-move.h: New file.
70642         Tests for module 'unistr/u32-cpy'.
70643         * modules/unistr/u32-cpy-tests: New file.
70644         * tests/unistr/test-u32-cpy.c: New file.
70646         Tests for module 'unistr/u16-cpy'.
70647         * modules/unistr/u16-cpy-tests: New file.
70648         * tests/unistr/test-u16-cpy.c: New file.
70650         Tests for module 'unistr/u8-cpy'.
70651         * modules/unistr/u8-cpy-tests: New file.
70652         * tests/unistr/test-u8-cpy.c: New file.
70653         * tests/unistr/test-cpy.h: New file.
70655 2010-01-09  Bruno Haible  <bruno@clisp.org>
70657         Tests for module 'unistr/u32-uctomb'.
70658         * modules/unistr/u32-uctomb-tests: New file.
70659         * tests/unistr/test-u32-uctomb.c: New file.
70661         Tests for module 'unistr/u16-uctomb'.
70662         * modules/unistr/u16-uctomb-tests: New file.
70663         * tests/unistr/test-u16-uctomb.c: New file.
70665         Tests for module 'unistr/u8-uctomb'.
70666         * modules/unistr/u8-uctomb-tests: New file.
70667         * tests/unistr/test-u8-uctomb.c: New file.
70669         Tests for module 'unistr/u32-mbtoucr'.
70670         * modules/unistr/u32-mbtoucr-tests: New file.
70671         * tests/unistr/test-u32-mbtoucr.c: New file.
70673         Tests for module 'unistr/u16-mbtoucr'.
70674         * modules/unistr/u16-mbtoucr-tests: New file.
70675         * tests/unistr/test-u16-mbtoucr.c: New file.
70677         Tests for module 'unistr/u8-mbtoucr'.
70678         * modules/unistr/u8-mbtoucr-tests: New file.
70679         * tests/unistr/test-u8-mbtoucr.c: New file.
70681         Tests for module 'unistr/u32-mbtouc'.
70682         * modules/unistr/u32-mbtouc-tests: New file.
70683         * tests/unistr/test-u32-mbtouc.c: New file.
70685         Tests for module 'unistr/u16-mbtouc'.
70686         * modules/unistr/u16-mbtouc-tests: New file.
70687         * tests/unistr/test-u16-mbtouc.c: New file.
70689         Tests for module 'unistr/u8-mbtouc'.
70690         * modules/unistr/u8-mbtouc-tests: New file.
70691         * tests/unistr/test-u8-mbtouc.c: New file.
70693         Tests for module 'unistr/u32-mbtouc-unsafe'.
70694         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70695         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70696         * tests/unistr/test-u32-mbtouc.h: New file.
70698         Tests for module 'unistr/u16-mbtouc-unsafe'.
70699         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70700         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70701         * tests/unistr/test-u16-mbtouc.h: New file.
70703         Tests for module 'unistr/u8-mbtouc-unsafe'.
70704         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70705         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70706         * tests/unistr/test-u8-mbtouc.h: New file.
70708         Tests for module 'unistr/u32-mblen'.
70709         * modules/unistr/u32-mblen-tests: New file.
70710         * tests/unistr/test-u32-mblen.c: New file.
70712         Tests for module 'unistr/u16-mblen'.
70713         * modules/unistr/u16-mblen-tests: New file.
70714         * tests/unistr/test-u16-mblen.c: New file.
70716         Tests for module 'unistr/u8-mblen'.
70717         * modules/unistr/u8-mblen-tests: New file.
70718         * tests/unistr/test-u8-mblen.c: New file.
70720         Tests for module 'unistr/u32-to-u16'.
70721         * modules/unistr/u32-to-u16-tests: New file.
70722         * tests/unistr/test-u32-to-u16.c: New file.
70724         Tests for module 'unistr/u32-to-u8'.
70725         * modules/unistr/u32-to-u8-tests: New file.
70726         * tests/unistr/test-u32-to-u8.c: New file.
70728         Tests for module 'unistr/u16-to-u32'.
70729         * modules/unistr/u16-to-u32-tests: New file.
70730         * tests/unistr/test-u16-to-u32.c: New file.
70732         Tests for module 'unistr/u16-to-u8'.
70733         * modules/unistr/u16-to-u8-tests: New file.
70734         * tests/unistr/test-u16-to-u8.c: New file.
70736         Tests for module 'unistr/u8-to-u32'.
70737         * modules/unistr/u8-to-u32-tests: New file.
70738         * tests/unistr/test-u8-to-u32.c: New file.
70740         Tests for module 'unistr/u8-to-u16'.
70741         * modules/unistr/u8-to-u16-tests: New file.
70742         * tests/unistr/test-u8-to-u16.c: New file.
70744         Tests for module 'unistr/u32-check'.
70745         * modules/unistr/u32-check-tests: New file.
70746         * tests/unistr/test-u32-check.c: New file.
70748         Tests for module 'unistr/u16-check'.
70749         * modules/unistr/u16-check-tests: New file.
70750         * tests/unistr/test-u16-check.c: New file.
70752         Tests for module 'unistr/u8-check'.
70753         * modules/unistr/u8-check-tests: New file.
70754         * tests/unistr/test-u8-check.c: New file.
70756         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70757         (category_equals): New function.
70758         (main): Add more tests.
70759         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70761         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70763 2010-01-10  Bruno Haible  <bruno@clisp.org>
70765         unistr/u*-strcoll: Try harder to distinguish different strings.
70766         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70767         compare s1 and s2 to see if they are different.
70769 2010-01-10  Bruno Haible  <bruno@clisp.org>
70771         unistr/u*-stpncpy: Fix the return value.
70772         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70773         description of the return value consistent with stpncpy in glibc.
70774         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70775         written non-NUL unit.
70777 2010-01-10  Bruno Haible  <bruno@clisp.org>
70779         unistr/u*-next: Add missing dependencies.
70780         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70781         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70782         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70784 2010-01-10  Bruno Haible  <bruno@clisp.org>
70786         unistr/u8-mbsnlen: Fix return value for incomplete character.
70787         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70788         u8_mblen.
70789         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70790         Remove unistr/u8-mblen.
70791         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70792         u16_mblen.
70793         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70794         Remove unistr/u16-mblen.
70796 2010-01-10  Bruno Haible  <bruno@clisp.org>
70798         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70799         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70800         Reported by Brian Gough <bjg@gnu.org> and
70801         Chris Clayton <chris2553@googlemail.com> via
70802         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70804 2010-01-09  Bruno Haible  <bruno@clisp.org>
70806         unistr/u16-to-u32: Reject invalid input.
70807         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70808         u16_mbtouc.
70809         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70810         Remove unistr/u16-mbtouc.
70812         unistr/u16-to-u8: Reject invalid input.
70813         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70814         u16_mbtouc.
70815         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70816         Remove unistr/u16-mbtouc.
70818         unistr/u8-to-u32: Reject invalid input.
70819         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70820         u8_mbtouc.
70821         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70822         Remove unistr/u8-mbtouc.
70824         unistr/u8-to-u16: Reject invalid input.
70825         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70826         u8_mbtouc.
70827         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70828         Remove unistr/u8-mbtouc.
70830 2010-01-09  Bruno Haible  <bruno@clisp.org>
70832         Tests for module 'getlogin'.
70833         * modules/getlogin-tests: New file.
70834         * tests/test-getlogin.c: New file.
70836         New module 'getlogin'.
70837         * lib/unistd.in.h (getlogin): New declaration.
70838         * lib/getlogin.c: New file.
70839         * m4/getlogin.m4: New file.
70840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70841         HAVE_GETLOGIN.
70842         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70843         HAVE_GETLOGIN.
70844         * modules/getlogin: New file.
70845         * doc/posix-functions/getlogin.texi: Mention the new module.
70846         Reported by John W. Eaton <jwe@gnu.org>.
70848 2010-01-09  Bruno Haible  <bruno@clisp.org>
70850         getlogin_r: Support for native Windows.
70851         * lib/getlogin_r.c: Include <windows.h>
70852         (getlogin_r): Implement for native Windows.
70853         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70854         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70855         via John W. Eaton <jwe@gnu.org>.
70857 2010-01-09  Bruno Haible  <bruno@clisp.org>
70859         getlogin_r: Small fixes.
70860         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70861         succeeds.
70862         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70863         before testing whether getlogin_r is declared. No need to set
70864         HAVE_DECL_GETLOGIN_R to 1.
70865         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70867 2010-01-09  Bruno Haible  <bruno@clisp.org>
70869         * lib/unistd.in.h (getlogin_r): Add comment.
70871 2010-01-09  Bruno Haible  <bruno@clisp.org>
70873         Tests for module 'getlogin_r'.
70874         * modules/getlogin_r-tests: New file.
70875         * tests/test-getlogin_r.c: New file.
70877 2010-01-09  Jim Meyering  <meyering@redhat.com>
70879         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70880         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70881         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70883 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70885         * lib/dup2.c (rpl_dup2): Improve comment.
70887 2010-01-08  Eric Blake  <ebb9@byu.net>
70889         maint.mk: allow packages to add makefile @@ exceptions
70890         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70891         (sc_makefile_check): Rename...
70892         (sc_makefile_at_at_check): ...to this, and use hook.
70894         dup2: work around mingw bug
70895         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70896         Reported by Simon Josefsson.
70898 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70900         glob: Fix C++ compilation.
70901         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70902         C++.
70904 2010-01-07  Bruno Haible  <bruno@clisp.org>
70906         Fix indentation of wctype.in.h, broken since 2007-01-06.
70907         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70909 2010-01-07  Bruno Haible  <bruno@clisp.org>
70911         mbslen: Avoid collision with system function.
70912         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70913         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70914         * m4/mbslen.m4: New file.
70915         * modules/mbslen (Files): Add it.
70916         (configure.ac): Invoke gl_MBSLEN.
70917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70918         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70919         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70920         via Ian Beckwith <ianb@erislabs.net>.
70922 2010-01-07  Bruno Haible  <bruno@clisp.org>
70924         dirent: Document the last fix.
70925         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70927 2010-01-07  Bruno Haible  <bruno@clisp.org>
70929         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70930         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70931         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70932         va_list are defined.
70933         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70934         Reported by Eric Blake.
70936 2010-01-07  Bruno Haible  <bruno@clisp.org>
70938         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70939         * modules/xlist (Depends-on): Add 'list',
70940         * modules/xoset (Depends-on): Add 'oset'.
70941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70943 2010-01-07  Bruno Haible  <bruno@clisp.org>
70945         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70946         * doc/posix-functions/strncasecmp.texi: Likewise.
70948 2010-01-07  Bruno Haible  <bruno@clisp.org>
70950         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70952 2010-01-07  John W. Eaton  <jwe@octave.org>
70954         wctype: allow C++ use
70955         * lib/wctype.in.h: Add extern "C" block for C++.
70957 2010-01-06  Eric Blake  <ebb9@byu.net>
70959         maint.mk: detect incorrect GFDL usage
70960         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70962 2010-01-06  Jim Meyering  <meyering@redhat.com>
70963         and Eric Blake  <ebb9@byu.net>
70965         maint.mk: ignore multi-line copyright in NEWS
70966         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70968 2010-01-06  Eric Blake  <ebb9@byu.net>
70970         select: add missing dependency
70971         * modules/select-tests (Depends-on): Move sockets dependency...
70972         * modules/select (Depends-on): ...here.
70973         Reported by Ian Beckwith.
70975         doc: regenerate INSTALL
70976         * doc/INSTALL: Reflect recent autoconf update.
70977         * doc/INSTALL.ISO: Likewise.
70978         * doc/INSTALL.UTF-8: Likewise.
70980         pread: fix compilation on glibc
70981         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70982         Reported by Ralf Wildenhues.
70984         dirent: fix test failure
70985         * lib/dirent.in.h (includes): Guarantee ino_t.
70986         Reported by Ralf Wildenhues.
70988 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70990         linkat, renameat: avoid bad free
70991         * lib/at-func2.c (at_func2): Fix typo.
70992         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70994 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70996         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70997         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70998         to avoid failure of symlink test later.
71000 2010-01-06  Eric Blake  <ebb9@byu.net>
71002         stdio, unistd: guarantee ssize_t
71003         * lib/unistd.in.h (includes): Ensure that types required by POSIX
71004         2008 are exposed when needed.
71005         * lib/stdio.in.h (includes): Likewise.
71006         Reported by Ralf Wildenhues.
71008 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
71010         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
71011         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
71012         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
71014 2010-01-06  Jim Meyering  <meyering@redhat.com>
71016         readtokens: this module *does* require xalloc.h
71017         It uses only functions that were omitted by the old syntax-check rule.
71018         * lib/readtokens.c: Include "xalloc.h" once again.
71019         * modules/readtokens (Depends-on): Add xalloc.
71020         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
71022 2010-01-05  Eric Blake  <ebb9@byu.net>
71024         maint: support 'make announcement' from a VPATH build
71025         * top/maint.mk (announcement): Look for correct NEWS file.
71027 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
71029         utimens (fdutimens): ignore a negative FD, per contract
71030         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
71031         when we have a valid file descriptor.  Otherwise, using a brand
71032         new glibc (with just-patched futimens that now fails with EBADF)
71033         would cause this function to fail with ENOSYS.
71034         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
71035         See also http://bugzilla.redhat.com/552320.
71037 2010-01-05  Eric Blake  <ebb9@byu.net>
71039         strcase: document what it provides
71040         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
71041         gnulib module.
71042         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
71043         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
71045 2010-01-05  Jim Meyering  <meyering@redhat.com>
71047         maint: remove useless inclusions of "xalloc.h"
71048         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
71049         * lib/readtokens.c: Likewise.
71050         * lib/same.c: Likewise.
71051         * modules/getloadavg (Depends-on): Remove xalloc.
71052         * modules/readtokens: Likewise.
71053         * modules/same: Likewise.
71055         maint.mk: include 4 more function names in alloca.h-checking regexp
71056         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
71057         regexp.  Before, we would give a false-positive (saying alloca.h
71058         is included unnecessarily) when the only uses involved omitted symbols.
71060         xalloc.h: use consistent formatting
71061         * lib/xalloc.h: Move declarations to start in the first column.
71063 2010-01-05  Eric Blake  <ebb9@byu.net>
71065         mkdir: avoid xalloc
71066         * lib/mkdir.c (includes): Drop unused header.
71067         Reported by John W. Eaton.
71069 2010-01-04  Jim Meyering  <meyering@redhat.com>
71071         nl_langinfo: avoid configure-time syntax error
71072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
71073         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
71074         the empty string.  Don't let that provoke a shell syntax error.
71076         regcomp, regexec, fnmatch: avoid array bounds read error
71077         * lib/regcomp.c (build_equiv_class): From glibc:
71078         Use only the low 24 bits of a findidx return value as an index
71079         into the weights array.  Patch by Ulrich Drepper:
71080         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
71081         * lib/regexec.c (check_node_accept_bytes): Likewise.
71082         * lib/fnmatch_loop.c (FCT): Likewise.
71084         regcomp: skip collseq lookup when there are no rules
71085         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
71086         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
71088         regcomp: recognize ill-formed { } expressions
71089         * lib/regcomp.c (parse_dup_op): From glibc:
71090         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
71092         regcomp: fix typo in comment
71093         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
71094         s/satisfy/satisfies/.
71096         regcomp: sync from glibc: remove dead store
71097         * lib/regcomp.c (duplicate_node_closure): Remove useless
71098         search_duplicated_node call and dead store.
71100         regcomp: sync from glibc; always use nl_langinfo
71101         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
71102         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
71103         * modules/regex (Depends-on): Add nl_langinfo.
71105 2010-01-04  Eric Blake  <ebb9@byu.net>
71107         fdopendir: fix configure test
71108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
71110 2010-01-01  Bruno Haible  <bruno@clisp.org>
71112         wchar: Remove unused configure check.
71113         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
71115 2010-01-01  Eric Blake  <ebb9@byu.net>
71117         headers: make check of system header explicit
71118         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
71119         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
71120         ourselves.
71121         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71123         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
71124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
71125         internals.
71126         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
71127         missing.
71128         Suggested by Bruno Haible.
71130 2010-01-01  Jim Meyering  <meyering@redhat.com>
71132         ChangeLog: tweak to eliminate unnecessary copyright line
71133         * ChangeLog: Remove a copyright line that was mistakenly updated
71134         by today's update-copyright run.  Reported by Eric Blake.
71136         test-update-copyright: don't let envvar setting cause test failure
71137         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71139 2010-01-01  Bruno Haible  <bruno@clisp.org>
71141         localename: Avoid gcc warning.
71142         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
71143         function if it is not used.
71145 2010-01-01  Jim Meyering  <meyering@redhat.com>
71147         update nearly all FSF copyright year lists to include 2010
71148         Use the same procedure as for 2009, outlined in
71149         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
71151         version-etc: set COPYRIGHT_YEAR to 2010
71152         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
71154 2009-12-31  Eric Blake  <ebb9@byu.net>
71156         doc: correct availability of cygwin 1.5.x getopt
71157         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
71158         variables.
71159         * doc/posix-functions/opterr.texi (opterr): Likewise.
71160         * doc/posix-functions/optind.texi (optind): Likewise.
71161         * doc/posix-functions/optopt.texi (optopt): Likewise.
71162         * doc/posix-functions/tzname.texi (tzname): Likewise.
71164         openat: update maintainer
71165         * modules/openat (Maintainer): Add myself.
71167         utimens: avoid shadowing warning
71168         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
71169         buffers into one, to avoid shadowing, as well as avoiding a
71170         redundant stat.
71171         Reported by Jim Meyering.
71173         test-dup2: avoid compiler warning
71174         * tests/test-dup2.c (is_inheritable): Only define if used.
71176 2010-01-01  Bruno Haible  <bruno@clisp.org>
71178         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
71179         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
71180         defined, use wctomb instead of wcrtomb.
71182 2010-01-01  Bruno Haible  <bruno@clisp.org>
71184         iconv: Reject native Solaris iconv.
71185         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
71186         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
71188 2009-12-31  Bruno Haible  <bruno@clisp.org>
71190         * tests/test-signal.c (main): Remove test of 'SIG'.
71192 2009-12-31  Bruno Haible  <bruno@clisp.org>
71194         spawn: Fix incomplete fix.
71195         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71196         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71197         warnings for GNULIB_POSIXCHECK again.
71198         Reported by Eric Blake.
71200 2009-12-31  Bruno Haible  <bruno@clisp.org>
71202         Avoid namespace pollution on glibc systems.
71203         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
71204         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
71205         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
71206         glibc systems.
71208 2009-12-31  Bruno Haible  <bruno@clisp.org>
71210         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
71211         (gl_REPLACE_WCHAR_H): Turn into a no-op.
71212         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
71213         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
71214         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
71215         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
71216         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
71218 2009-12-31  Bruno Haible  <bruno@clisp.org>
71220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71221         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
71222         afterwards.
71224 2009-12-31  Bruno Haible  <bruno@clisp.org>
71226         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
71227         SYS_UTSNAME_H.
71229 2009-12-31  Bruno Haible  <bruno@clisp.org>
71231         spawn: Fix misapplied patch.
71232         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71233         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71234         warnings for GNULIB_POSIXCHECK.
71236 2009-12-31  Bruno Haible  <bruno@clisp.org>
71238         times: Update after sys_times changed.
71239         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
71240         * modules/times (Files): Add it.
71241         (configure.ac): Invoke gl_FUNC_TIMES.
71243 2009-12-31  Bruno Haible  <bruno@clisp.org>
71245         Use AC_C_INLINE where necessary.
71246         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
71247         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71249         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
71250         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71251         * m4/mbiter.m4 (gl_MBITER): Likewise.
71252         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71253         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71254         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
71255         * modules/u64 (configure.ac): Likewise.
71257 2009-12-31  Bruno Haible  <bruno@clisp.org>
71259         Use AC_C_INLINE instead of module 'inline' where possible.
71260         * modules/inline (Description): Clarify purpose.
71261         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
71262         * modules/count-one-bits (Depends-on): Remove inline.
71263         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
71264         * modules/openat (Depends-on): Remove inline.
71265         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
71266         instead of depending on module 'inline'.
71267         * modules/filevercmp (Depends-on, configure.ac): Likewise.
71268         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
71269         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
71270         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
71271         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
71272         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
71273         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
71274         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
71275         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
71276         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
71277         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
71278         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
71279         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
71280         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
71281         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
71282         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
71283         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
71284         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
71285         Likewise.
71286         * modules/unictype/property-ascii-hex-digit (Depends-on,
71287         configure.ac): Likewise.
71288         * modules/unictype/property-bidi-arabic-digit (Depends-on,
71289         configure.ac): Likewise.
71290         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
71291         configure.ac): Likewise.
71292         * modules/unictype/property-bidi-block-separator (Depends-on,
71293         configure.ac): Likewise.
71294         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
71295         configure.ac): Likewise.
71296         * modules/unictype/property-bidi-common-separator (Depends-on,
71297         configure.ac): Likewise.
71298         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
71299         Likewise.
71300         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
71301         configure.ac): Likewise.
71302         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
71303         configure.ac): Likewise.
71304         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
71305         configure.ac): Likewise.
71306         * modules/unictype/property-bidi-european-digit (Depends-on,
71307         configure.ac): Likewise.
71308         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
71309         configure.ac): Likewise.
71310         * modules/unictype/property-bidi-left-to-right (Depends-on,
71311         configure.ac): Likewise.
71312         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
71313         configure.ac): Likewise.
71314         * modules/unictype/property-bidi-other-neutral (Depends-on,
71315         configure.ac): Likewise.
71316         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
71317         Likewise.
71318         * modules/unictype/property-bidi-segment-separator (Depends-on,
71319         configure.ac): Likewise.
71320         * modules/unictype/property-bidi-whitespace (Depends-on,
71321         configure.ac): Likewise.
71322         * modules/unictype/property-combining (Depends-on, configure.ac):
71323         Likewise.
71324         * modules/unictype/property-composite (Depends-on, configure.ac):
71325         Likewise.
71326         * modules/unictype/property-currency-symbol (Depends-on,
71327         configure.ac): Likewise.
71328         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
71329         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
71330         Likewise.
71331         * modules/unictype/property-default-ignorable-code-point (Depends-on,
71332         configure.ac): Likewise.
71333         * modules/unictype/property-deprecated (Depends-on, configure.ac):
71334         Likewise.
71335         * modules/unictype/property-diacritic (Depends-on, configure.ac):
71336         Likewise.
71337         * modules/unictype/property-extender (Depends-on, configure.ac):
71338         Likewise.
71339         * modules/unictype/property-format-control (Depends-on, configure.ac):
71340         Likewise.
71341         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
71342         Likewise.
71343         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
71344         Likewise.
71345         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
71346         Likewise.
71347         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
71348         Likewise.
71349         * modules/unictype/property-hyphen (Depends-on, configure.ac):
71350         Likewise.
71351         * modules/unictype/property-id-continue (Depends-on, configure.ac):
71352         Likewise.
71353         * modules/unictype/property-id-start (Depends-on, configure.ac):
71354         Likewise.
71355         * modules/unictype/property-ideographic (Depends-on, configure.ac):
71356         Likewise.
71357         * modules/unictype/property-ids-binary-operator (Depends-on,
71358         configure.ac): Likewise.
71359         * modules/unictype/property-ids-trinary-operator (Depends-on,
71360         configure.ac): Likewise.
71361         * modules/unictype/property-ignorable-control (Depends-on,
71362         configure.ac): Likewise.
71363         * modules/unictype/property-iso-control (Depends-on, configure.ac):
71364         Likewise.
71365         * modules/unictype/property-join-control (Depends-on, configure.ac):
71366         Likewise.
71367         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
71368         Likewise.
71369         * modules/unictype/property-line-separator (Depends-on, configure.ac):
71370         Likewise.
71371         * modules/unictype/property-logical-order-exception (Depends-on,
71372         configure.ac): Likewise.
71373         * modules/unictype/property-lowercase (Depends-on, configure.ac):
71374         Likewise.
71375         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
71376         * modules/unictype/property-non-break (Depends-on, configure.ac):
71377         Likewise.
71378         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
71379         Likewise.
71380         * modules/unictype/property-numeric (Depends-on, configure.ac):
71381         Likewise.
71382         * modules/unictype/property-other-alphabetic (Depends-on,
71383         configure.ac): Likewise.
71384         * modules/unictype/property-other-default-ignorable-code-point
71385         (Depends-on, configure.ac): Likewise.
71386         * modules/unictype/property-other-grapheme-extend (Depends-on,
71387         configure.ac): Likewise.
71388         * modules/unictype/property-other-id-continue (Depends-on,
71389         configure.ac): Likewise.
71390         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
71391         Likewise.
71392         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
71393         Likewise.
71394         * modules/unictype/property-other-math (Depends-on, configure.ac):
71395         Likewise.
71396         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
71397         Likewise.
71398         * modules/unictype/property-paired-punctuation (Depends-on,
71399         configure.ac): Likewise.
71400         * modules/unictype/property-paragraph-separator (Depends-on,
71401         configure.ac): Likewise.
71402         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
71403         Likewise.
71404         * modules/unictype/property-pattern-white-space (Depends-on,
71405         configure.ac): Likewise.
71406         * modules/unictype/property-private-use (Depends-on, configure.ac):
71407         Likewise.
71408         * modules/unictype/property-punctuation (Depends-on, configure.ac):
71409         Likewise.
71410         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
71411         Likewise.
71412         * modules/unictype/property-radical (Depends-on, configure.ac):
71413         Likewise.
71414         * modules/unictype/property-sentence-terminal (Depends-on,
71415         configure.ac): Likewise.
71416         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
71417         Likewise.
71418         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
71419         * modules/unictype/property-terminal-punctuation (Depends-on,
71420         configure.ac): Likewise.
71421         * modules/unictype/property-titlecase (Depends-on, configure.ac):
71422         Likewise.
71423         * modules/unictype/property-unassigned-code-value (Depends-on,
71424         configure.ac): Likewise.
71425         * modules/unictype/property-unified-ideograph (Depends-on,
71426         configure.ac): Likewise.
71427         * modules/unictype/property-uppercase (Depends-on, configure.ac):
71428         Likewise.
71429         * modules/unictype/property-variation-selector (Depends-on,
71430         configure.ac): Likewise.
71431         * modules/unictype/property-white-space (Depends-on, configure.ac):
71432         Likewise.
71433         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
71434         Likewise.
71435         * modules/unictype/property-xid-start (Depends-on, configure.ac):
71436         Likewise.
71437         * modules/unictype/property-zero-width (Depends-on, configure.ac):
71438         Likewise.
71439         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
71440         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
71441         Likewise.
71443 2009-12-31  Bruno Haible  <bruno@clisp.org>
71445         Remove unnecessary AC_C_INLINE invocation.
71446         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
71447         since 2009-08-21.
71449 2009-12-31  Jim Meyering  <meyering@redhat.com>
71451         maint.mk: don't require explicit gpg_key_ID in cfg.mk
71452         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
71453         With this change, we can all remove the gpg_key_ID = ... definition
71454         from our respective cfg.mk files.
71456         maint.mk: create announcement template in ~/, not in /tmp
71457         * top/maint.mk (emit_upload_commands): Adjust.
71458         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
71459         Remove temporary file, .ci-msg.
71461 2009-12-31  Eric Blake  <ebb9@byu.net>
71463         link-warning: always build headers with link warnings
71464         * modules/arpa_inet (Makefile.am): Always build replacement
71465         header.
71466         * modules/ctype (Makefile.am): Likewise.
71467         * modules/dirent (Makefile.am): Likewise.
71468         * modules/inttypes (Makefile.am): Likewise.
71469         * modules/langinfo (Makefile.am): Likewise.
71470         * modules/locale (Makefile.am): Likewise.
71471         * modules/spawn (Makefile.am): Likewise.
71472         * modules/sys_file (Makefile.am): Likewise.
71473         * modules/sys_ioctl (Makefile.am): Likewise.
71474         * modules/sys_select (Makefile.am): Likewise.
71475         * modules/sys_socket (Makefile.am): Likewise.
71476         * modules/sys_times (Makefile.am): Likewise.
71477         * modules/sys_utsname (Makefile.am): Likewise.
71478         * modules/sys_wait (Makefile.am): Likewise.
71479         * modules/wchar (Makefile.am): Likewise.
71480         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
71481         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
71482         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
71483         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
71484         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
71485         Likewise.
71486         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71487         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71488         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
71489         Likewise.
71490         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
71491         Likewise.
71492         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
71493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
71494         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
71495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71496         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71497         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71498         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71499         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
71500         (gl_WCHAR_H_DEFAULTS): Likewise.
71502 2009-12-31  Eric Blake  <ebb9@byu.net>
71504         signal, spawn: use link warnings
71505         * lib/signal.in.h (sigset_t): Make unconditional.
71506         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
71507         (sigpending, sigprocmask, sigaction): Add link warnings.
71508         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
71509         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
71510         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
71511         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
71512         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
71513         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
71514         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
71515         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
71516         (posix_spawn_file_actions_destroy)
71517         (posix_spawn_file_actions_addopen)
71518         (posix_spawn_file_actions_addclose)
71519         (posix_spawn_file_actions_adddup2): Likewise.
71520         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
71521         * tests/test-signal.c (main): Enhance test.
71523         spawn: improve wrapper support
71524         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
71525         (gl_SPAWN_H_DEFAULTS): New defaults.
71526         * modules/spawn (Makefile.am): Substitute them.
71527         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
71528         Only declare if missing or broken.
71530         sys_times, sys_utsname: use include_next
71531         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
71532         header.
71533         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
71534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71535         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71536         * modules/sys_times (Depends-on): Add include_next.
71537         (Makefile.am): Substitute additional values.
71538         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71539         * lib/sys_times.in.h (includes): Include native header, if
71540         available.
71541         * lib/sys_utsname.in.h (includes): Likewise.
71542         * tests/test-sys_times.c (main): Enhance test.
71544         fdutimensat: revert prior patch
71545         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
71546         utimens.h.
71547         Reported by Bruno Haible.
71549 2009-12-30  Eric Blake  <ebb9@byu.net>
71551         sys_wait: drop link-warning dependency
71552         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
71553         link-warning efforts.
71554         * lib/sys_wait.in.h: Likewise.
71556         fdutimensat: remove bogus dependency
71557         * modules/fdutimensat (Depends-on): Drop inline.
71559         unistd: fix typo
71560         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
71562 2009-12-30  Bruno Haible  <bruno@clisp.org>
71564         Fix compilation error with Solaris cc.
71565         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
71566         * lib/unicase/u16-is-invariant.c: Likewise.
71567         * lib/unicase/u32-is-invariant.c: Likewise.
71568         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71570 2009-12-30  Bruno Haible  <bruno@clisp.org>
71572         Fix test crash.
71573         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
71574         locales.
71575         Reported by Simon Josefsson <simon@josefsson.org>.
71577 2009-12-30  Bruno Haible  <bruno@clisp.org>
71579         Fix compilation error on most platforms.
71580         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
71581         Reported by Simon Josefsson <simon@josefsson.org>
71582         and Nelson H. F. Beebe <beebe@math.utah.edu>.
71584 2009-12-30  Eric Blake  <ebb9@byu.net>
71586         futimens, utimensat: work around ntfs-3g bug
71587         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71588         a ctime bug is present, and expand workaround to cover ntfs-3g.
71589         * lib/utimens.c (fdutimens, lutimens): Likewise.
71590         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71591         (validate_timespec): Adjust return value.
71592         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71593         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71594         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71596 2009-12-29  Eric Blake  <ebb9@byu.net>
71598         link-warning: make usage consistent
71599         * modules/ctype (Depends-on): Add link-warning.
71600         (Makefile.am): Update rules accordingly.
71601         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71602         * modules/locale (Depends-on, Makefile.am): Likewise.
71603         * modules/sys_file (Makefile.am): Likewise.
71604         * modules/getopt-posix (Makefile.am): Delete unused link warning
71605         efforts.
71606         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71607         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71608         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71609         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71611         stdio: remove unused variables
71612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71614         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71616         tests: test more substitute headers
71617         * modules/ctype-tests: New file.
71618         * modules/dirent-tests: Likewise.
71619         * modules/spawn-tests: Likewise.
71620         * modules/sys_file-tests: Likewise.
71621         * modules/sys_ioctl-tests: Likewise.
71622         * modules/sys_wait-tests: Likewise.
71623         * tests/test-ctype.c: Likewise.
71624         * tests/test-dirent.c: Likewise.
71625         * tests/test-spawn.c: Likewise.
71626         * tests/test-sys_file.c: Likewise.
71627         * tests/test-sys_ioctl.c: Likewise.
71628         * tests/test-sys_wait.c: Likewise.
71629         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71630         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71631         whether or not flock is in use.
71633         tests: remove License section from module
71634         * modules/arpa_inet-tests: Remove unneeded section.
71635         * modules/byteswap-tests: Likewise.
71636         * modules/ceilf-tests: Likewise.
71637         * modules/ceill-tests: Likewise.
71638         * modules/crypto/des-tests: Likewise.
71639         * modules/crypto/gc-arcfour-tests: Likewise.
71640         * modules/crypto/gc-arctwo-tests: Likewise.
71641         * modules/crypto/gc-des-tests: Likewise.
71642         * modules/crypto/gc-hmac-md5-tests: Likewise.
71643         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71644         * modules/crypto/gc-md2-tests: Likewise.
71645         * modules/crypto/gc-md4-tests: Likewise.
71646         * modules/crypto/gc-md5-tests: Likewise.
71647         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71648         * modules/crypto/gc-rijndael-tests: Likewise.
71649         * modules/crypto/gc-sha1-tests: Likewise.
71650         * modules/crypto/gc-tests: Likewise.
71651         * modules/crypto/md2-tests: Likewise.
71652         * modules/crypto/md4-tests: Likewise.
71653         * modules/fcntl-h-tests: Likewise.
71654         * modules/floorf-tests: Likewise.
71655         * modules/floorl-tests: Likewise.
71656         * modules/frexp-nolibm-tests: Likewise.
71657         * modules/frexp-tests: Likewise.
71658         * modules/frexpl-nolibm-tests: Likewise.
71659         * modules/frexpl-tests: Likewise.
71660         * modules/getaddrinfo-tests: Likewise.
71661         * modules/inttypes-tests: Likewise.
71662         * modules/isfinite-tests: Likewise.
71663         * modules/isinf-tests: Likewise.
71664         * modules/ldexpl-tests: Likewise.
71665         * modules/locale-tests: Likewise.
71666         * modules/math-tests: Likewise.
71667         * modules/netdb-tests: Likewise.
71668         * modules/netinet_in-tests: Likewise.
71669         * modules/printf-frexp-tests: Likewise.
71670         * modules/printf-frexpl-tests: Likewise.
71671         * modules/priv-set-tests: Likewise.
71672         * modules/random_r-tests: Likewise.
71673         * modules/round-tests: Likewise.
71674         * modules/roundf-tests: Likewise.
71675         * modules/roundl-tests: Likewise.
71676         * modules/search-tests: Likewise.
71677         * modules/select-tests: Likewise.
71678         * modules/signal-tests: Likewise.
71679         * modules/stdbool-tests: Likewise.
71680         * modules/stddef-tests: Likewise.
71681         * modules/stdint-tests: Likewise.
71682         * modules/stdio-tests: Likewise.
71683         * modules/stdlib-tests: Likewise.
71684         * modules/string-tests: Likewise.
71685         * modules/strings-tests: Likewise.
71686         * modules/sys_select-tests: Likewise.
71687         * modules/sys_socket-tests: Likewise.
71688         * modules/sys_stat-tests: Likewise.
71689         * modules/sys_time-tests: Likewise.
71690         * modules/sys_utsname-tests: Likewise.
71691         * modules/sysexits-tests: Likewise.
71692         * modules/time-tests: Likewise.
71693         * modules/trunc-tests: Likewise.
71694         * modules/truncf-tests: Likewise.
71695         * modules/truncl-tests: Likewise.
71696         * modules/tsearch-tests: Likewise.
71697         * modules/unistd-tests: Likewise.
71698         * modules/wchar-tests: Likewise.
71699         * modules/wctype-tests: Likewise.
71701         tests: fix license on several tests
71702         * tests/test-des.c: Update to GPLv3+.
71703         * tests/test-flock.c: Likewise.
71704         * tests/test-fsync.c: Likewise.
71705         * tests/test-futimens.h: Likewise.
71706         * tests/test-gc-arcfour.c: Likewise.
71707         * tests/test-gc-arctwo.c: Likewise.
71708         * tests/test-gc-des.c: Likewise.
71709         * tests/test-gc-hmac-md5.c: Likewise.
71710         * tests/test-gc-hmac-sha1.c: Likewise.
71711         * tests/test-gc-md2.c: Likewise.
71712         * tests/test-gc-md4.c: Likewise.
71713         * tests/test-gc-md5.c: Likewise.
71714         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71715         * tests/test-gc-rijndael.c: Likewise.
71716         * tests/test-gc-sha1.c: Likewise.
71717         * tests/test-gc.c: Likewise.
71718         * tests/test-getcwd.c: Likewise.
71719         * tests/test-link.c: Likewise.
71720         * tests/test-link.h: Likewise.
71721         * tests/test-lutimens.h: Likewise.
71722         * tests/test-md2.c: Likewise.
71723         * tests/test-md4.c: Likewise.
71724         * tests/test-mkdir.h: Likewise.
71725         * tests/test-rename.c: Likewise.
71726         * tests/test-rename.h: Likewise.
71727         * tests/test-safe-alloc.c: Likewise.
71728         * tests/test-utimens-common.h: Likewise.
71729         * tests/test-utimens.h: Likewise.
71731         maint: sync license texts
71732         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71733         * doc/gpl-3.0.texi: Revert copyright year update.
71734         * doc/lgpl-3.0.texi: Likewise.
71736 2009-12-29  Jim Meyering  <meyering@redhat.com>
71738         update nearly all FSF copyright year lists to include 2009
71739         The files named by the following are exempted:
71740             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71741               test -f "$dst" && { echo "$dst"; continue; }
71742               test -d "$dst" || continue
71743               echo "$dst"/$(basename "$src")
71744             done > exempt
71745             git ls-files tests/unictype >> exempt
71746         In the remaining files, convert to all-interval notation if
71747         - there is already at least one year interval like 2000-2003
71748         - the file is maintained by me
71749         - the file is in lib/uni*/, where that style already prevails
71750         Otherwise, use update-copyright's default.
71752 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71753         and Eric Blake  <ebb9@byu.net>
71755         tests: don't require debug system() to pass
71756         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71757         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71758         * tests/test-unlink.h (test_unlink_func): Likewise.
71759         * tests/test-fstatat.c (main): ...into callers.
71760         * tests/test-lstat.c (main): Likewise.
71761         * tests/test-rmdir.c (main): Likewise.
71762         * tests/test-unlink.c (main): Likewise.
71763         * tests/test-unlinkat.c (main): Likewise.
71764         * tests/test-areadlink-with-size.c (main): Don't require a
71765         debug-only system call to pass, aiding cross-testing to mingw.
71766         * tests/test-areadlink.c (main): Likewise.
71767         * tests/test-areadlinkat-with-size.c (main): Likewise.
71768         * tests/test-areadlinkat.c (main): Likewise.
71769         * tests/test-canonicalize-lgpl.c (main): Likewise.
71770         * tests/test-canonicalize.c (main): Likewise.
71771         * tests/test-chown.c (main): Likewise.
71772         * tests/test-fchownat.c (main): Likewise.
71773         * tests/test-lchown.c (main): Likewise.
71774         * tests/test-fdutimensat.c (main): Likewise.
71775         * tests/test-futimens.c (main): Likewise.
71776         * tests/test-link.c (main): Likewise.
71777         * tests/test-linkat.c (main): Likewise.
71778         * tests/test-mkdir.c (main): Likewise.
71779         * tests/test-mkdirat.c (main): Likewise.
71780         * tests/test-mkfifo.c (main): Likewise.
71781         * tests/test-mkfifoat.c (main): Likewise.
71782         * tests/test-mknod.c (main): Likewise.
71783         * tests/test-readlink.c (main): Likewise.
71784         * tests/test-remove.c (main): Likewise.
71785         * tests/test-rename.c (main): Likewise.
71786         * tests/test-renameat.c (main): Likewise.
71787         * tests/test-symlink.c (main): Likewise.
71788         * tests/test-symlinkat.c (main): Likewise.
71789         * tests/test-utimens.c (main): Likewise.
71790         * tests/test-utimensat.c (main): Likewise.
71792 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71794         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71795         on $(UNUSED_PARAMETER_H) to avoid build failure.
71797 2009-12-28  Jim Meyering  <meyering@redhat.com>
71799         update-copyright: you may specify a max. line length other than 72
71800         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71802         maint: use consistent FSF copyright line syntax
71803         * lib/posixtm.c: Add missing comma in FSF copyright line.
71804         * lib/posixtm.h: Likewise.
71805         * lib/getugroups.c: Add missing ", Inc.".
71807         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71808         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71809         FSF copyright line.  Remove trailing blanks.
71811 2009-12-28  Eric Blake  <ebb9@byu.net>
71813         test-dup2: reduce dependencies
71814         * modules/cloexec (Configure.ac): Set witness.
71815         * modules/dup2-tests (Depends-on): Drop cloexec.
71816         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71817         not present.
71818         Suggested by Bruno Haible.
71820 2009-12-26  Bruno Haible  <bruno@clisp.org>
71822         Remove an unneeded dependency.
71823         * modules/fseterr (Depends-on): Remove dup2.
71825 2009-12-26  Eric Blake  <ebb9@byu.net>
71827         tests: use macros.h in more places
71828         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71829         (ASSERT_STREAM): Provide default of stderr.
71830         * tests/test-dirent-safer.c: Include macros.h, using alternate
71831         stream for assertions.
71832         * tests/test-dup-safer.c: Likewise.
71833         * tests/test-freopen-safer.c: Likewise.
71834         * tests/test-getopt.c: Likewise.
71835         * tests/test-openat-safer.c: Likewise.
71836         * tests/test-pipe.c: Likewise.
71837         * tests/test-popen-safer.c: Likewise.
71838         * modules/dirent-safer-tests (Files): Include macros.h.
71839         * modules/unistd-safer-tests (Files): Likewise.
71840         * modules/freopen-safer-tests (Files): Likewise.
71841         * modules/getopt-posix-tests (Files): Likewise.
71842         * modules/openat-safer-tests (Files): Likewise.
71843         * modules/pipe-tests (Files): Likewise.
71845 2009-12-26  Bruno Haible  <bruno@clisp.org>
71847         javacomp-script: Portability fix.
71848         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71849         that it also works on Solaris.
71851 2009-12-26  Bruno Haible  <bruno@clisp.org>
71853         localename: Fix storage allocation of gl_locale_name_thread's result.
71854         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71855         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71856         all platforms that have 'uselocale'.
71857         (gl_locale_name_thread_unsafe): New function, extracted from
71858         gl_locale_name_thread.
71859         (gl_locale_name_thread): Call struniq on all platforms that have
71860         'uselocale'.
71861         * tests/test-localename.c (test_locale_name_thread): Check that the
71862         resulting strings are permanently allocated.
71863         * modules/localename-tests (Depends-on): Add strdup.
71865 2009-12-26  Bruno Haible  <bruno@clisp.org>
71867         * tests/test-localename.c (categories): Fill in the strings.
71869 2009-12-26  Jim Meyering  <meyering@redhat.com>
71871         isdir: complete the removal of m4/isdir.m4
71872         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71874         isdir: clean up, since at least grep still uses it
71875         * lib/isdir.c: Include "isdir.h".
71876         (S_ISDIR): Remove now-unneeded definition.
71877         * modules/isdir (Files): Add lib/isdir.h.
71878         * lib/isdir.h: New file, with declaration.
71879         * m4/isdir.m4: Remove file -- unneeded.
71881 2009-12-25  Bruno Haible  <bruno@clisp.org>
71883         selinux-h: Make generated .h files standalone.
71884         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71885         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71886         * lib/se-selinux.in.h: Likewise.
71887         * modules/selinux-h (Depends-on): Add unused-parameter.
71888         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71889         selinux/selinux.h and selinux/context.h.
71890         Suggested by Eric Blake.
71892 2009-12-25  Bruno Haible  <bruno@clisp.org>
71894         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71895         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71896         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71897         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71898         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71900 2009-12-24  Bruno Haible  <bruno@clisp.org>
71902         openat: Fix warning.
71903         * lib/openat-proc.c: Include <unistd.h>.
71905 2009-12-24  Bruno Haible  <bruno@clisp.org>
71907         New module 'unused-parameter'.
71908         * build-aux/unused-parameter.h: New file, extracted from earlier
71909         gnulib-common.m4.
71910         * modules/unused-parameter: New file.
71911         * lib/unistr.h: Include unused-parameter.h.
71912         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71913         _GL_UNUSED.
71914         * modules/unistr/base (Depends-on): Add unused-parameter.
71916 2009-12-24  Bruno Haible  <bruno@clisp.org>
71918         Add missing dependencies to 'extensions' module.
71919         * m4/extensions.m4: Add comment.
71920         * modules/accept4 (Depends-on): Add extensions.
71921         * modules/dup3 (Depends-on): Likewise.
71922         * modules/fcntl (Depends-on): Likewise.
71923         * modules/futimens (Depends-on): Likewise.
71924         * modules/mknod (Depends-on): Likewise.
71925         * modules/pipe2 (Depends-on): Likewise.
71926         * modules/stat-time (Depends-on): Likewise.
71927         * modules/strcasestr-simple (Depends-on): Likewise.
71928         * modules/strsignal (Depends-on): Likewise.
71929         * modules/utimensat (Depends-on): Likewise.
71930         * modules/localcharset (Depends-on): Likewise. Needed because of
71931         gl_FCNTL_O_FLAGS.
71932         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71933         AC_TYPE_MBSTATE_T.
71934         * modules/wcsnrtombs (Depends-on): Likewise.
71935         * modules/wcsrtombs (Depends-on): Likewise.
71937 2009-12-24  Bruno Haible  <bruno@clisp.org>
71939         binary-io: Avoid gcc warning due to SET_BINARY.
71940         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71941         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71943 2009-12-24  Bruno Haible  <bruno@clisp.org>
71945         Avoid future namespace pollution on glibc systems.
71946         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71947         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71948         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71949         glibc systems.
71951 2009-12-24  Bruno Haible  <bruno@clisp.org>
71953         Refactor common macros used in tests.
71954         * tests/macros.h: New file.
71955         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71956         and/or <stdlib.h>, if appropriate.
71957         (ASSERT, SIZEOF): Remove macros.
71958         * tests/test-areadlink-with-size.c: Likewise.
71959         * tests/test-areadlinkat.c: Likewise.
71960         * tests/test-areadlinkat-with-size.c: Likewise.
71961         * tests/test-argmatch.c: Likewise.
71962         * tests/test-argv-iter.c: Likewise.
71963         * tests/test-array-mergesort.c: Likewise.
71964         * tests/test-array_list.c: Likewise.
71965         * tests/test-array_oset.c: Likewise.
71966         * tests/test-avltree_list.c: Likewise.
71967         * tests/test-avltree_oset.c: Likewise.
71968         * tests/test-avltreehash_list.c: Likewise.
71969         * tests/test-base64.c: Likewise.
71970         * tests/test-binary-io.c: Likewise.
71971         * tests/test-bitrotate.c: Likewise.
71972         * tests/test-btowc.c: Likewise.
71973         * tests/test-byteswap.c: Likewise.
71974         * tests/test-c-ctype.c: Likewise.
71975         * tests/test-c-stack.c: Likewise.
71976         * tests/test-c-strcasecmp.c: Likewise.
71977         * tests/test-c-strcasestr.c: Likewise.
71978         * tests/test-c-strncasecmp.c: Likewise.
71979         * tests/test-c-strstr.c: Likewise.
71980         * tests/test-canonicalize-lgpl.c: Likewise.
71981         * tests/test-canonicalize.c: Likewise.
71982         * tests/test-carray_list.c: Likewise.
71983         * tests/test-ceilf1.c: Likewise.
71984         * tests/test-ceilf2.c: Likewise.
71985         * tests/test-ceill.c: Likewise.
71986         * tests/test-chown.c: Likewise.
71987         * tests/test-cloexec.c: Likewise.
71988         * tests/test-copy-acl.c: Likewise.
71989         * tests/test-copy-file.c: Likewise.
71990         * tests/test-count-one-bits.c: Likewise.
71991         * tests/test-dprintf-posix.c: Likewise.
71992         * tests/test-dup2.c: Likewise.
71993         * tests/test-dup3.c: Likewise.
71994         * tests/test-duplocale.c: Likewise.
71995         * tests/test-fbufmode.c: Likewise.
71996         * tests/test-fchdir.c: Likewise.
71997         * tests/test-fchownat.c: Likewise.
71998         * tests/test-fcntl-safer.c: Likewise.
71999         * tests/test-fcntl.c: Likewise.
72000         * tests/test-fdopendir.c: Likewise.
72001         * tests/test-fdutimensat.c: Likewise.
72002         * tests/test-fflush2.c: Likewise.
72003         * tests/test-file-has-acl.c: Likewise.
72004         * tests/test-filevercmp.c: Likewise.
72005         * tests/test-flock.c: Likewise.
72006         * tests/test-floorf1.c: Likewise.
72007         * tests/test-floorf2.c: Likewise.
72008         * tests/test-floorl.c: Likewise.
72009         * tests/test-fnmatch.c: Likewise.
72010         * tests/test-fopen.h: Likewise.
72011         * tests/test-fpending.c: Likewise.
72012         * tests/test-fprintf-posix.c: Likewise.
72013         * tests/test-fpurge.c: Likewise.
72014         * tests/test-freadable.c: Likewise.
72015         * tests/test-freadahead.c: Likewise.
72016         * tests/test-freading.c: Likewise.
72017         * tests/test-freadptr.c: Likewise.
72018         * tests/test-freadptr2.c: Likewise.
72019         * tests/test-freadseek.c: Likewise.
72020         * tests/test-freopen.c: Likewise.
72021         * tests/test-frexp.c: Likewise.
72022         * tests/test-frexpl.c: Likewise.
72023         * tests/test-fseek.c: Likewise.
72024         * tests/test-fseeko.c: Likewise.
72025         * tests/test-fstatat.c: Likewise.
72026         * tests/test-fstrcmp.c: Likewise.
72027         * tests/test-fsync.c: Likewise.
72028         * tests/test-ftell.c: Likewise.
72029         * tests/test-ftello.c: Likewise.
72030         * tests/test-func.c: Likewise.
72031         * tests/test-futimens.c: Likewise.
72032         * tests/test-fwritable.c: Likewise.
72033         * tests/test-fwriting.c: Likewise.
72034         * tests/test-getcwd.c: Likewise.
72035         * tests/test-getdate.c: Likewise.
72036         * tests/test-getdelim.c: Likewise.
72037         * tests/test-getdtablesize.c: Likewise.
72038         * tests/test-getgroups.c: Likewise.
72039         * tests/test-getline.c: Likewise.
72040         * tests/test-getndelim2.c: Likewise.
72041         * tests/test-glob.c: Likewise.
72042         * tests/test-hash.c: Likewise.
72043         * tests/test-i-ring.c: Likewise.
72044         * tests/test-iconv-utf.c: Likewise.
72045         * tests/test-iconv.c: Likewise.
72046         * tests/test-idpriv-drop.c: Likewise.
72047         * tests/test-idpriv-droptemp.c: Likewise.
72048         * tests/test-inet_ntop.c: Likewise.
72049         * tests/test-inet_pton.c: Likewise.
72050         * tests/test-isblank.c: Likewise.
72051         * tests/test-isfinite.c: Likewise.
72052         * tests/test-isinf.c: Likewise.
72053         * tests/test-isnan.c: Likewise.
72054         * tests/test-isnand.h: Likewise.
72055         * tests/test-isnanf.h: Likewise.
72056         * tests/test-isnanl.h: Likewise.
72057         * tests/test-lchown.c: Likewise.
72058         * tests/test-ldexpl.c: Likewise.
72059         * tests/test-link.c: Likewise.
72060         * tests/test-linkat.c: Likewise.
72061         * tests/test-linked_list.c: Likewise.
72062         * tests/test-linkedhash_list.c: Likewise.
72063         * tests/test-localename.c: Likewise.
72064         * tests/test-lseek.c: Likewise.
72065         * tests/test-lstat.c: Likewise.
72066         * tests/test-mbmemcasecmp.c: Likewise.
72067         * tests/test-mbmemcasecoll.c: Likewise.
72068         * tests/test-mbrtowc.c: Likewise.
72069         * tests/test-mbscasecmp.c: Likewise.
72070         * tests/test-mbscasestr1.c: Likewise.
72071         * tests/test-mbscasestr2.c: Likewise.
72072         * tests/test-mbscasestr3.c: Likewise.
72073         * tests/test-mbscasestr4.c: Likewise.
72074         * tests/test-mbschr.c: Likewise.
72075         * tests/test-mbscspn.c: Likewise.
72076         * tests/test-mbsinit.c: Likewise.
72077         * tests/test-mbsncasecmp.c: Likewise.
72078         * tests/test-mbsnrtowcs.c: Likewise.
72079         * tests/test-mbspbrk.c: Likewise.
72080         * tests/test-mbspcasecmp.c: Likewise.
72081         * tests/test-mbsrchr.c: Likewise.
72082         * tests/test-mbsrtowcs.c: Likewise.
72083         * tests/test-mbsspn.c: Likewise.
72084         * tests/test-mbsstr1.c: Likewise.
72085         * tests/test-mbsstr2.c: Likewise.
72086         * tests/test-mbsstr3.c: Likewise.
72087         * tests/test-memchr.c: Likewise.
72088         * tests/test-memchr2.c: Likewise.
72089         * tests/test-memcmp.c: Likewise.
72090         * tests/test-memmem.c: Likewise.
72091         * tests/test-memrchr.c: Likewise.
72092         * tests/test-mkdir.c: Likewise.
72093         * tests/test-mkdirat.c: Likewise.
72094         * tests/test-mkfifo.c: Likewise.
72095         * tests/test-mkfifoat.c: Likewise.
72096         * tests/test-mknod.c: Likewise.
72097         * tests/test-nanosleep.c: Likewise.
72098         * tests/test-nl_langinfo.c: Likewise.
72099         * tests/test-obstack-printf.c: Likewise.
72100         * tests/test-open.c: Likewise.
72101         * tests/test-openat.c: Likewise.
72102         * tests/test-pipe-filter-gi1.c: Likewise.
72103         * tests/test-pipe-filter-gi2-main.c: Likewise.
72104         * tests/test-pipe-filter-ii1.c: Likewise.
72105         * tests/test-pipe-filter-ii2-main.c: Likewise.
72106         * tests/test-pipe2.c: Likewise.
72107         * tests/test-popen.h: Likewise.
72108         * tests/test-posixtm.c: Likewise.
72109         * tests/test-pread.c: Likewise.
72110         * tests/test-printf-frexp.c: Likewise.
72111         * tests/test-printf-frexpl.c: Likewise.
72112         * tests/test-printf-posix.c: Likewise.
72113         * tests/test-priv-set.c: Likewise.
72114         * tests/test-quotearg.c: Likewise.
72115         * tests/test-random_r.c: Likewise.
72116         * tests/test-rawmemchr.c: Likewise.
72117         * tests/test-rbtree_list.c: Likewise.
72118         * tests/test-rbtree_oset.c: Likewise.
72119         * tests/test-rbtreehash_list.c: Likewise.
72120         * tests/test-readlink.c: Likewise.
72121         * tests/test-remove.c: Likewise.
72122         * tests/test-rename.c: Likewise.
72123         * tests/test-renameat.c: Likewise.
72124         * tests/test-rmdir.c: Likewise.
72125         * tests/test-round1.c: Likewise.
72126         * tests/test-roundf1.c: Likewise.
72127         * tests/test-roundl.c: Likewise.
72128         * tests/test-safe-alloc.c: Likewise.
72129         * tests/test-sameacls.c: Likewise.
72130         * tests/test-set-mode-acl.c: Likewise.
72131         * tests/test-setenv.c: Likewise.
72132         * tests/test-sigaction.c: Likewise.
72133         * tests/test-signbit.c: Likewise.
72134         * tests/test-sleep.c: Likewise.
72135         * tests/test-snprintf-posix.c: Likewise.
72136         * tests/test-snprintf.c: Likewise.
72137         * tests/test-sprintf-posix.c: Likewise.
72138         * tests/test-stat-time.c: Likewise.
72139         * tests/test-stat.c: Likewise.
72140         * tests/test-strcasestr.c: Likewise.
72141         * tests/test-strchrnul.c: Likewise.
72142         * tests/test-strerror.c: Likewise.
72143         * tests/test-striconv.c: Likewise.
72144         * tests/test-striconveh.c: Likewise.
72145         * tests/test-striconveha.c: Likewise.
72146         * tests/test-strsignal.c: Likewise.
72147         * tests/test-strstr.c: Likewise.
72148         * tests/test-strtod.c: Likewise.
72149         * tests/test-strverscmp.c: Likewise.
72150         * tests/test-symlink.c: Likewise.
72151         * tests/test-symlinkat.c: Likewise.
72152         * tests/test-trunc1.c: Likewise.
72153         * tests/test-trunc2.c: Likewise.
72154         * tests/test-truncf1.c: Likewise.
72155         * tests/test-truncf2.c: Likewise.
72156         * tests/test-truncl.c: Likewise.
72157         * tests/test-uname.c: Likewise.
72158         * tests/test-unlink.c: Likewise.
72159         * tests/test-unlinkat.c: Likewise.
72160         * tests/test-unsetenv.c: Likewise.
72161         * tests/test-usleep.c: Likewise.
72162         * tests/test-utimens.c: Likewise.
72163         * tests/test-utimensat.c: Likewise.
72164         * tests/test-vasnprintf-posix.c: Likewise.
72165         * tests/test-vasnprintf-posix2.c: Likewise.
72166         * tests/test-vasnprintf.c: Likewise.
72167         * tests/test-vasprintf-posix.c: Likewise.
72168         * tests/test-vasprintf.c: Likewise.
72169         * tests/test-vdprintf-posix.c: Likewise.
72170         * tests/test-vfprintf-posix.c: Likewise.
72171         * tests/test-vprintf-posix.c: Likewise.
72172         * tests/test-vsnprintf-posix.c: Likewise.
72173         * tests/test-vsnprintf.c: Likewise.
72174         * tests/test-vsprintf-posix.c: Likewise.
72175         * tests/test-wcrtomb.c: Likewise.
72176         * tests/test-wcsnrtombs.c: Likewise.
72177         * tests/test-wcsrtombs.c: Likewise.
72178         * tests/test-wctype.c: Likewise.
72179         * tests/test-wcwidth.c: Likewise.
72180         * tests/test-xfprintf-posix.c: Likewise.
72181         * tests/test-xmemdup0.c: Likewise.
72182         * tests/test-xprintf-posix.c: Likewise.
72183         * tests/test-xvasprintf.c: Likewise.
72184         * tests/unicase/test-locale-language.c: Likewise.
72185         * tests/unicase/test-mapping-part1.h: Likewise.
72186         * tests/unicase/test-predicate-part1.h: Likewise.
72187         * tests/unicase/test-u8-casecmp.c: Likewise.
72188         * tests/unicase/test-u8-casecoll.c: Likewise.
72189         * tests/unicase/test-u8-casefold.c: Likewise.
72190         * tests/unicase/test-u8-is-cased.c: Likewise.
72191         * tests/unicase/test-u8-is-casefolded.c: Likewise.
72192         * tests/unicase/test-u8-is-lowercase.c: Likewise.
72193         * tests/unicase/test-u8-is-titlecase.c: Likewise.
72194         * tests/unicase/test-u8-is-uppercase.c: Likewise.
72195         * tests/unicase/test-u8-tolower.c: Likewise.
72196         * tests/unicase/test-u8-totitle.c: Likewise.
72197         * tests/unicase/test-u8-toupper.c: Likewise.
72198         * tests/unicase/test-u16-casecmp.c: Likewise.
72199         * tests/unicase/test-u16-casecoll.c: Likewise.
72200         * tests/unicase/test-u16-casefold.c: Likewise.
72201         * tests/unicase/test-u16-is-cased.c: Likewise.
72202         * tests/unicase/test-u16-is-casefolded.c: Likewise.
72203         * tests/unicase/test-u16-is-lowercase.c: Likewise.
72204         * tests/unicase/test-u16-is-titlecase.c: Likewise.
72205         * tests/unicase/test-u16-is-uppercase.c: Likewise.
72206         * tests/unicase/test-u16-tolower.c: Likewise.
72207         * tests/unicase/test-u16-totitle.c: Likewise.
72208         * tests/unicase/test-u16-toupper.c: Likewise.
72209         * tests/unicase/test-u32-casecmp.c: Likewise.
72210         * tests/unicase/test-u32-casecoll.c: Likewise.
72211         * tests/unicase/test-u32-casefold.c: Likewise.
72212         * tests/unicase/test-u32-is-cased.c: Likewise.
72213         * tests/unicase/test-u32-is-casefolded.c: Likewise.
72214         * tests/unicase/test-u32-is-lowercase.c: Likewise.
72215         * tests/unicase/test-u32-is-titlecase.c: Likewise.
72216         * tests/unicase/test-u32-is-uppercase.c: Likewise.
72217         * tests/unicase/test-u32-tolower.c: Likewise.
72218         * tests/unicase/test-u32-totitle.c: Likewise.
72219         * tests/unicase/test-u32-toupper.c: Likewise.
72220         * tests/unicase/test-ulc-casecmp.c: Likewise.
72221         * tests/unicase/test-ulc-casecoll.c: Likewise.
72222         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
72223         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
72224         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
72225         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
72226         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
72227         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
72228         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
72229         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
72230         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
72231         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
72232         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
72233         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
72234         * tests/unictype/test-bidi_byname.c: Likewise.
72235         * tests/unictype/test-bidi_name.c: Likewise.
72236         * tests/unictype/test-bidi_of.c: Likewise.
72237         * tests/unictype/test-bidi_test.c: Likewise.
72238         * tests/unictype/test-block_list.c: Likewise.
72239         * tests/unictype/test-block_of.c: Likewise.
72240         * tests/unictype/test-block_test.c: Likewise.
72241         * tests/unictype/test-categ_and.c: Likewise.
72242         * tests/unictype/test-categ_and_not.c: Likewise.
72243         * tests/unictype/test-categ_byname.c: Likewise.
72244         * tests/unictype/test-categ_name.c: Likewise.
72245         * tests/unictype/test-categ_none.c: Likewise.
72246         * tests/unictype/test-categ_of.c: Likewise.
72247         * tests/unictype/test-categ_or.c: Likewise.
72248         * tests/unictype/test-categ_test_withtable.c: Likewise.
72249         * tests/unictype/test-combining.c: Likewise.
72250         * tests/unictype/test-decdigit.c: Likewise.
72251         * tests/unictype/test-digit.c: Likewise.
72252         * tests/unictype/test-mirror.c: Likewise.
72253         * tests/unictype/test-numeric.c: Likewise.
72254         * tests/unictype/test-pr_byname.c: Likewise.
72255         * tests/unictype/test-pr_test.c: Likewise.
72256         * tests/unictype/test-predicate-part1.h: Likewise.
72257         * tests/unictype/test-scripts.c: Likewise.
72258         * tests/unictype/test-sy_c_ident.c: Likewise.
72259         * tests/unictype/test-sy_java_ident.c: Likewise.
72260         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
72261         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
72262         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
72263         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
72264         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
72265         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
72266         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
72267         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
72268         * tests/uninorm/test-canonical-decomposition.c: Likewise.
72269         * tests/uninorm/test-compat-decomposition.c: Likewise.
72270         * tests/uninorm/test-composition.c: Likewise.
72271         * tests/uninorm/test-decomposing-form.c: Likewise.
72272         * tests/uninorm/test-decomposition.c: Likewise.
72273         * tests/uninorm/test-u8-nfc.c: Likewise.
72274         * tests/uninorm/test-u8-nfd.c: Likewise.
72275         * tests/uninorm/test-u8-nfkc.c: Likewise.
72276         * tests/uninorm/test-u8-nfkd.c: Likewise.
72277         * tests/uninorm/test-u8-normcmp.c: Likewise.
72278         * tests/uninorm/test-u8-normcoll.c: Likewise.
72279         * tests/uninorm/test-u16-nfc.c: Likewise.
72280         * tests/uninorm/test-u16-nfd.c: Likewise.
72281         * tests/uninorm/test-u16-nfkc.c: Likewise.
72282         * tests/uninorm/test-u16-nfkd.c: Likewise.
72283         * tests/uninorm/test-u16-normcmp.c: Likewise.
72284         * tests/uninorm/test-u16-normcoll.c: Likewise.
72285         * tests/uninorm/test-u32-nfc.c: Likewise.
72286         * tests/uninorm/test-u32-nfd.c: Likewise.
72287         * tests/uninorm/test-u32-nfkc.c: Likewise.
72288         * tests/uninorm/test-u32-nfkd.c: Likewise.
72289         * tests/uninorm/test-u32-normalize-big.c: Likewise.
72290         * tests/uninorm/test-u32-normcmp.c: Likewise.
72291         * tests/uninorm/test-u32-normcoll.c: Likewise.
72292         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
72293         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
72294         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
72295         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
72296         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
72297         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
72298         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
72299         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
72300         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
72301         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
72302         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
72303         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
72304         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
72305         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
72306         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
72307         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
72308         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
72309         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
72310         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
72311         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
72312         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
72313         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
72314         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
72315         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
72316         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
72317         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
72318         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
72319         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
72320         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
72321         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
72322         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
72323         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
72324         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
72325         * tests/uniwidth/test-u8-strwidth.c: Likewise.
72326         * tests/uniwidth/test-u8-width.c: Likewise.
72327         * tests/uniwidth/test-u16-strwidth.c: Likewise.
72328         * tests/uniwidth/test-u16-width.c: Likewise.
72329         * tests/uniwidth/test-u32-strwidth.c: Likewise.
72330         * tests/uniwidth/test-u32-width.c: Likewise.
72331         * tests/uniwidth/test-uc_width.c: Likewise.
72332         * tests/uniwidth/test-uc_width2.c: Likewise.
72333         * modules/acl-tests (Files): Add tests/macros.h.
72334         * modules/areadlink-tests (Files): Likewise.
72335         * modules/areadlink-with-size-tests (Files): Likewise.
72336         * modules/areadlinkat-tests (Files): Likewise.
72337         * modules/areadlinkat-with-size-tests (Files): Likewise.
72338         * modules/argmatch-tests (Files): Likewise.
72339         * modules/argv-iter-tests (Files): Likewise.
72340         * modules/array-list-tests (Files): Likewise.
72341         * modules/array-mergesort-tests (Files): Likewise.
72342         * modules/array-oset-tests (Files): Likewise.
72343         * modules/avltree-list-tests (Files): Likewise.
72344         * modules/avltree-oset-tests (Files): Likewise.
72345         * modules/avltreehash-list-tests (Files): Likewise.
72346         * modules/base64-tests (Files): Likewise.
72347         * modules/binary-io-tests (Files): Likewise.
72348         * modules/bitrotate-tests (Files): Likewise.
72349         * modules/btowc-tests (Files): Likewise.
72350         * modules/byteswap-tests (Files): Likewise.
72351         * modules/c-ctype-tests (Files): Likewise.
72352         * modules/c-stack-tests (Files): Likewise.
72353         * modules/c-strcase-tests (Files): Likewise.
72354         * modules/c-strcasestr-tests (Files): Likewise.
72355         * modules/c-strstr-tests (Files): Likewise.
72356         * modules/canonicalize-lgpl-tests (Files): Likewise.
72357         * modules/canonicalize-tests (Files): Likewise.
72358         * modules/carray-list-tests (Files): Likewise.
72359         * modules/ceilf-tests (Files): Likewise.
72360         * modules/ceill-tests (Files): Likewise.
72361         * modules/chown-tests (Files): Likewise.
72362         * modules/cloexec-tests (Files): Likewise.
72363         * modules/copy-file-tests (Files): Likewise.
72364         * modules/count-one-bits-tests (Files): Likewise.
72365         * modules/dprintf-posix-tests (Files): Likewise.
72366         * modules/dup2-tests (Files): Likewise.
72367         * modules/dup3-tests (Files): Likewise.
72368         * modules/duplocale-tests (Files): Likewise.
72369         * modules/fbufmode-tests (Files): Likewise.
72370         * modules/fchdir-tests (Files): Likewise.
72371         * modules/fcntl-safer-tests (Files): Likewise.
72372         * modules/fcntl-tests (Files): Likewise.
72373         * modules/fdopendir-tests (Files): Likewise.
72374         * modules/fdutimensat-tests (Files): Likewise.
72375         * modules/fflush-tests (Files): Likewise.
72376         * modules/filevercmp-tests (Files): Likewise.
72377         * modules/flock-tests (Files): Likewise.
72378         * modules/floorf-tests (Files): Likewise.
72379         * modules/floorl-tests (Files): Likewise.
72380         * modules/fnmatch-tests (Files): Likewise.
72381         * modules/fopen-safer-tests (Files): Likewise.
72382         * modules/fopen-tests (Files): Likewise.
72383         * modules/fpending-tests (Files): Likewise.
72384         * modules/fprintf-posix-tests (Files): Likewise.
72385         * modules/fpurge-tests (Files): Likewise.
72386         * modules/freadable-tests (Files): Likewise.
72387         * modules/freadahead-tests (Files): Likewise.
72388         * modules/freading-tests (Files): Likewise.
72389         * modules/freadptr-tests (Files): Likewise.
72390         * modules/freadseek-tests (Files): Likewise.
72391         * modules/freopen-tests (Files): Likewise.
72392         * modules/frexp-nolibm-tests (Files): Likewise.
72393         * modules/frexp-tests (Files): Likewise.
72394         * modules/frexpl-nolibm-tests (Files): Likewise.
72395         * modules/frexpl-tests (Files): Likewise.
72396         * modules/fseek-tests (Files): Likewise.
72397         * modules/fseeko-tests (Files): Likewise.
72398         * modules/fstrcmp-tests (Files): Likewise.
72399         * modules/fsync-tests (Files): Likewise.
72400         * modules/ftell-tests (Files): Likewise.
72401         * modules/ftello-tests (Files): Likewise.
72402         * modules/func-tests (Files): Likewise.
72403         * modules/futimens-tests (Files): Likewise.
72404         * modules/fwritable-tests (Files): Likewise.
72405         * modules/fwriting-tests (Files): Likewise.
72406         * modules/getcwd-tests (Files): Likewise.
72407         * modules/getdate-tests (Files): Likewise.
72408         * modules/getdelim-tests (Files): Likewise.
72409         * modules/getdtablesize-tests (Files): Likewise.
72410         * modules/getgroups-tests (Files): Likewise.
72411         * modules/getline-tests (Files): Likewise.
72412         * modules/getndelim2-tests (Files): Likewise.
72413         * modules/glob-tests (Files): Likewise.
72414         * modules/hash-tests (Files): Likewise.
72415         * modules/i-ring-tests (Files): Likewise.
72416         * modules/iconv-tests (Files): Likewise.
72417         * modules/iconv_open-utf-tests (Files): Likewise.
72418         * modules/idpriv-drop-tests (Files): Likewise.
72419         * modules/idpriv-droptemp-tests (Files): Likewise.
72420         * modules/inet_ntop-tests (Files): Likewise.
72421         * modules/inet_pton-tests (Files): Likewise.
72422         * modules/isblank-tests (Files): Likewise.
72423         * modules/isfinite-tests (Files): Likewise.
72424         * modules/isinf-tests (Files): Likewise.
72425         * modules/isnan-tests (Files): Likewise.
72426         * modules/isnand-nolibm-tests (Files): Likewise.
72427         * modules/isnand-tests (Files): Likewise.
72428         * modules/isnanf-nolibm-tests (Files): Likewise.
72429         * modules/isnanf-tests (Files): Likewise.
72430         * modules/isnanl-nolibm-tests (Files): Likewise.
72431         * modules/isnanl-tests (Files): Likewise.
72432         * modules/lchown-tests (Files): Likewise.
72433         * modules/ldexpl-tests (Files): Likewise.
72434         * modules/link-tests (Files): Likewise.
72435         * modules/linkat-tests (Files): Likewise.
72436         * modules/linked-list-tests (Files): Likewise.
72437         * modules/linkedhash-list-tests (Files): Likewise.
72438         * modules/localename-tests (Files): Likewise.
72439         * modules/lseek-tests (Files): Likewise.
72440         * modules/lstat-tests (Files): Likewise.
72441         * modules/mbmemcasecmp-tests (Files): Likewise.
72442         * modules/mbmemcasecoll-tests (Files): Likewise.
72443         * modules/mbrtowc-tests (Files): Likewise.
72444         * modules/mbscasecmp-tests (Files): Likewise.
72445         * modules/mbscasestr-tests (Files): Likewise.
72446         * modules/mbschr-tests (Files): Likewise.
72447         * modules/mbscspn-tests (Files): Likewise.
72448         * modules/mbsinit-tests (Files): Likewise.
72449         * modules/mbsncasecmp-tests (Files): Likewise.
72450         * modules/mbsnrtowcs-tests (Files): Likewise.
72451         * modules/mbspbrk-tests (Files): Likewise.
72452         * modules/mbspcasecmp-tests (Files): Likewise.
72453         * modules/mbsrchr-tests (Files): Likewise.
72454         * modules/mbsrtowcs-tests (Files): Likewise.
72455         * modules/mbsspn-tests (Files): Likewise.
72456         * modules/mbsstr-tests (Files): Likewise.
72457         * modules/memchr-tests (Files): Likewise.
72458         * modules/memchr2-tests (Files): Likewise.
72459         * modules/memcmp-tests (Files): Likewise.
72460         * modules/memmem-tests (Files): Likewise.
72461         * modules/memrchr-tests (Files): Likewise.
72462         * modules/mkdir-tests (Files): Likewise.
72463         * modules/mkfifo-tests (Files): Likewise.
72464         * modules/mkfifoat-tests (Files): Likewise.
72465         * modules/mknod-tests (Files): Likewise.
72466         * modules/nanosleep-tests (Files): Likewise.
72467         * modules/nl_langinfo-tests (Files): Likewise.
72468         * modules/obstack-printf-tests (Files): Likewise.
72469         * modules/open-tests (Files): Likewise.
72470         * modules/openat-tests (Files): Likewise.
72471         * modules/pipe-filter-gi-tests (Files): Likewise.
72472         * modules/pipe-filter-ii-tests (Files): Likewise.
72473         * modules/pipe2-tests (Files): Likewise.
72474         * modules/popen-safer-tests (Files): Likewise.
72475         * modules/popen-tests (Files): Likewise.
72476         * modules/posixtm-tests (Files): Likewise.
72477         * modules/pread-tests (Files): Likewise.
72478         * modules/printf-frexp-tests (Files): Likewise.
72479         * modules/printf-frexpl-tests (Files): Likewise.
72480         * modules/printf-posix-tests (Files): Likewise.
72481         * modules/priv-set-tests (Files): Likewise.
72482         * modules/quotearg-tests (Files): Likewise.
72483         * modules/random_r-tests (Files): Likewise.
72484         * modules/rawmemchr-tests (Files): Likewise.
72485         * modules/rbtree-list-tests (Files): Likewise.
72486         * modules/rbtree-oset-tests (Files): Likewise.
72487         * modules/rbtreehash-list-tests (Files): Likewise.
72488         * modules/readlink-tests (Files): Likewise.
72489         * modules/remove-tests (Files): Likewise.
72490         * modules/rename-tests (Files): Likewise.
72491         * modules/renameat-tests (Files): Likewise.
72492         * modules/rmdir-tests (Files): Likewise.
72493         * modules/round-tests (Files): Likewise.
72494         * modules/roundf-tests (Files): Likewise.
72495         * modules/roundl-tests (Files): Likewise.
72496         * modules/safe-alloc-tests (Files): Likewise.
72497         * modules/setenv-tests (Files): Likewise.
72498         * modules/sigaction-tests (Files): Likewise.
72499         * modules/signbit-tests (Files): Likewise.
72500         * modules/sleep-tests (Files): Likewise.
72501         * modules/snprintf-posix-tests (Files): Likewise.
72502         * modules/snprintf-tests (Files): Likewise.
72503         * modules/sprintf-posix-tests (Files): Likewise.
72504         * modules/stat-tests (Files): Likewise.
72505         * modules/stat-time-tests (Files): Likewise.
72506         * modules/strcasestr-tests (Files): Likewise.
72507         * modules/strchrnul-tests (Files): Likewise.
72508         * modules/strerror-tests (Files): Likewise.
72509         * modules/striconv-tests (Files): Likewise.
72510         * modules/striconveh-tests (Files): Likewise.
72511         * modules/striconveha-tests (Files): Likewise.
72512         * modules/strsignal-tests (Files): Likewise.
72513         * modules/strstr-tests (Files): Likewise.
72514         * modules/strtod-tests (Files): Likewise.
72515         * modules/strverscmp-tests (Files): Likewise.
72516         * modules/symlink-tests (Files): Likewise.
72517         * modules/symlinkat-tests (Files): Likewise.
72518         * modules/trunc-tests (Files): Likewise.
72519         * modules/truncf-tests (Files): Likewise.
72520         * modules/truncl-tests (Files): Likewise.
72521         * modules/uname-tests (Files): Likewise.
72522         * modules/unicase/cased-tests (Files): Likewise.
72523         * modules/unicase/ignorable-tests (Files): Likewise.
72524         * modules/unicase/locale-language-tests (Files): Likewise.
72525         * modules/unicase/tolower-tests (Files): Likewise.
72526         * modules/unicase/totitle-tests (Files): Likewise.
72527         * modules/unicase/toupper-tests (Files): Likewise.
72528         * modules/unicase/u8-casecmp-tests (Files): Likewise.
72529         * modules/unicase/u8-casecoll-tests (Files): Likewise.
72530         * modules/unicase/u8-casefold-tests (Files): Likewise.
72531         * modules/unicase/u8-is-cased-tests (Files): Likewise.
72532         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
72533         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
72534         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
72535         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
72536         * modules/unicase/u8-tolower-tests (Files): Likewise.
72537         * modules/unicase/u8-totitle-tests (Files): Likewise.
72538         * modules/unicase/u8-toupper-tests (Files): Likewise.
72539         * modules/unicase/u16-casecmp-tests (Files): Likewise.
72540         * modules/unicase/u16-casecoll-tests (Files): Likewise.
72541         * modules/unicase/u16-casefold-tests (Files): Likewise.
72542         * modules/unicase/u16-is-cased-tests (Files): Likewise.
72543         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
72544         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
72545         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
72546         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
72547         * modules/unicase/u16-tolower-tests (Files): Likewise.
72548         * modules/unicase/u16-totitle-tests (Files): Likewise.
72549         * modules/unicase/u16-toupper-tests (Files): Likewise.
72550         * modules/unicase/u32-casecmp-tests (Files): Likewise.
72551         * modules/unicase/u32-casecoll-tests (Files): Likewise.
72552         * modules/unicase/u32-casefold-tests (Files): Likewise.
72553         * modules/unicase/u32-is-cased-tests (Files): Likewise.
72554         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
72555         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
72556         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
72557         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
72558         * modules/unicase/u32-tolower-tests (Files): Likewise.
72559         * modules/unicase/u32-totitle-tests (Files): Likewise.
72560         * modules/unicase/u32-toupper-tests (Files): Likewise.
72561         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
72562         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
72563         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
72564         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
72565         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
72566         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
72567         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
72568         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
72569         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
72570         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
72571         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
72572         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
72573         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
72574         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
72575         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
72576         * modules/unictype/bidicategory-name-tests (Files): Likewise.
72577         * modules/unictype/bidicategory-of-tests (Files): Likewise.
72578         * modules/unictype/bidicategory-test-tests (Files): Likewise.
72579         * modules/unictype/block-list-tests (Files): Likewise.
72580         * modules/unictype/block-of-tests (Files): Likewise.
72581         * modules/unictype/block-test-tests (Files): Likewise.
72582         * modules/unictype/category-C-tests (Files): Likewise.
72583         * modules/unictype/category-Cc-tests (Files): Likewise.
72584         * modules/unictype/category-Cf-tests (Files): Likewise.
72585         * modules/unictype/category-Cn-tests (Files): Likewise.
72586         * modules/unictype/category-Co-tests (Files): Likewise.
72587         * modules/unictype/category-Cs-tests (Files): Likewise.
72588         * modules/unictype/category-L-tests (Files): Likewise.
72589         * modules/unictype/category-Ll-tests (Files): Likewise.
72590         * modules/unictype/category-Lm-tests (Files): Likewise.
72591         * modules/unictype/category-Lo-tests (Files): Likewise.
72592         * modules/unictype/category-Lt-tests (Files): Likewise.
72593         * modules/unictype/category-Lu-tests (Files): Likewise.
72594         * modules/unictype/category-M-tests (Files): Likewise.
72595         * modules/unictype/category-Mc-tests (Files): Likewise.
72596         * modules/unictype/category-Me-tests (Files): Likewise.
72597         * modules/unictype/category-Mn-tests (Files): Likewise.
72598         * modules/unictype/category-N-tests (Files): Likewise.
72599         * modules/unictype/category-Nd-tests (Files): Likewise.
72600         * modules/unictype/category-Nl-tests (Files): Likewise.
72601         * modules/unictype/category-No-tests (Files): Likewise.
72602         * modules/unictype/category-P-tests (Files): Likewise.
72603         * modules/unictype/category-Pc-tests (Files): Likewise.
72604         * modules/unictype/category-Pd-tests (Files): Likewise.
72605         * modules/unictype/category-Pe-tests (Files): Likewise.
72606         * modules/unictype/category-Pf-tests (Files): Likewise.
72607         * modules/unictype/category-Pi-tests (Files): Likewise.
72608         * modules/unictype/category-Po-tests (Files): Likewise.
72609         * modules/unictype/category-Ps-tests (Files): Likewise.
72610         * modules/unictype/category-S-tests (Files): Likewise.
72611         * modules/unictype/category-Sc-tests (Files): Likewise.
72612         * modules/unictype/category-Sk-tests (Files): Likewise.
72613         * modules/unictype/category-Sm-tests (Files): Likewise.
72614         * modules/unictype/category-So-tests (Files): Likewise.
72615         * modules/unictype/category-Z-tests (Files): Likewise.
72616         * modules/unictype/category-Zl-tests (Files): Likewise.
72617         * modules/unictype/category-Zp-tests (Files): Likewise.
72618         * modules/unictype/category-Zs-tests (Files): Likewise.
72619         * modules/unictype/category-and-not-tests (Files): Likewise.
72620         * modules/unictype/category-and-tests (Files): Likewise.
72621         * modules/unictype/category-byname-tests (Files): Likewise.
72622         * modules/unictype/category-name-tests (Files): Likewise.
72623         * modules/unictype/category-none-tests (Files): Likewise.
72624         * modules/unictype/category-of-tests (Files): Likewise.
72625         * modules/unictype/category-or-tests (Files): Likewise.
72626         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72627         * modules/unictype/combining-class-tests (Files): Likewise.
72628         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72629         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72630         * modules/unictype/ctype-blank-tests (Files): Likewise.
72631         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72632         * modules/unictype/ctype-digit-tests (Files): Likewise.
72633         * modules/unictype/ctype-graph-tests (Files): Likewise.
72634         * modules/unictype/ctype-lower-tests (Files): Likewise.
72635         * modules/unictype/ctype-print-tests (Files): Likewise.
72636         * modules/unictype/ctype-punct-tests (Files): Likewise.
72637         * modules/unictype/ctype-space-tests (Files): Likewise.
72638         * modules/unictype/ctype-upper-tests (Files): Likewise.
72639         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72640         * modules/unictype/decimal-digit-tests (Files): Likewise.
72641         * modules/unictype/digit-tests (Files): Likewise.
72642         * modules/unictype/mirror-tests (Files): Likewise.
72643         * modules/unictype/numeric-tests (Files): Likewise.
72644         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72645         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72646         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72647         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72648         Likewise.
72649         * modules/unictype/property-bidi-block-separator-tests (Files):
72650         Likewise.
72651         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72652         Likewise.
72653         * modules/unictype/property-bidi-common-separator-tests (Files):
72654         Likewise.
72655         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72656         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72657         Likewise.
72658         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72659         Likewise.
72660         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72661         Likewise.
72662         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72663         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72664         Likewise.
72665         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72666         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72667         Likewise.
72668         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72669         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72670         * modules/unictype/property-bidi-segment-separator-tests (Files):
72671         Likewise.
72672         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72673         * modules/unictype/property-byname-tests (Files): Likewise.
72674         * modules/unictype/property-combining-tests (Files): Likewise.
72675         * modules/unictype/property-composite-tests (Files): Likewise.
72676         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72677         * modules/unictype/property-dash-tests (Files): Likewise.
72678         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72679         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72680         Likewise.
72681         * modules/unictype/property-deprecated-tests (Files): Likewise.
72682         * modules/unictype/property-diacritic-tests (Files): Likewise.
72683         * modules/unictype/property-extender-tests (Files): Likewise.
72684         * modules/unictype/property-format-control-tests (Files): Likewise.
72685         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72686         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72687         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72688         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72689         * modules/unictype/property-hyphen-tests (Files): Likewise.
72690         * modules/unictype/property-id-continue-tests (Files): Likewise.
72691         * modules/unictype/property-id-start-tests (Files): Likewise.
72692         * modules/unictype/property-ideographic-tests (Files): Likewise.
72693         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72694         * modules/unictype/property-ids-trinary-operator-tests (Files):
72695         Likewise.
72696         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72697         * modules/unictype/property-iso-control-tests (Files): Likewise.
72698         * modules/unictype/property-join-control-tests (Files): Likewise.
72699         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72700         * modules/unictype/property-line-separator-tests (Files): Likewise.
72701         * modules/unictype/property-logical-order-exception-tests (Files):
72702         Likewise.
72703         * modules/unictype/property-lowercase-tests (Files): Likewise.
72704         * modules/unictype/property-math-tests (Files): Likewise.
72705         * modules/unictype/property-non-break-tests (Files): Likewise.
72706         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72707         * modules/unictype/property-numeric-tests (Files): Likewise.
72708         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72709         * modules/unictype/property-other-default-ignorable-code-point-tests
72710         (Files): Likewise.
72711         * modules/unictype/property-other-grapheme-extend-tests (Files):
72712         Likewise.
72713         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72714         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72715         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72716         * modules/unictype/property-other-math-tests (Files): Likewise.
72717         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72718         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72719         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72720         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72721         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72722         * modules/unictype/property-private-use-tests (Files): Likewise.
72723         * modules/unictype/property-punctuation-tests (Files): Likewise.
72724         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72725         * modules/unictype/property-radical-tests (Files): Likewise.
72726         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72727         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72728         * modules/unictype/property-space-tests (Files): Likewise.
72729         * modules/unictype/property-terminal-punctuation-tests (Files):
72730         Likewise.
72731         * modules/unictype/property-test-tests (Files): Likewise.
72732         * modules/unictype/property-titlecase-tests (Files): Likewise.
72733         * modules/unictype/property-unassigned-code-value-tests (Files):
72734         Likewise.
72735         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72736         * modules/unictype/property-uppercase-tests (Files): Likewise.
72737         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72738         * modules/unictype/property-white-space-tests (Files): Likewise.
72739         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72740         * modules/unictype/property-xid-start-tests (Files): Likewise.
72741         * modules/unictype/property-zero-width-tests (Files): Likewise.
72742         * modules/unictype/scripts-tests (Files): Likewise.
72743         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72744         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72745         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72746         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72747         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72748         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72749         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72750         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72751         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72752         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72753         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72754         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72755         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72756         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72757         * modules/uninorm/composition-tests (Files): Likewise.
72758         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72759         * modules/uninorm/decomposition-tests (Files): Likewise.
72760         * modules/uninorm/filter-tests (Files): Likewise.
72761         * modules/uninorm/nfc-tests (Files): Likewise.
72762         * modules/uninorm/nfd-tests (Files): Likewise.
72763         * modules/uninorm/nfkc-tests (Files): Likewise.
72764         * modules/uninorm/nfkd-tests (Files): Likewise.
72765         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72766         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72767         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72768         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72769         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72770         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72771         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72772         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72773         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72774         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72775         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72776         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72777         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72778         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72779         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72780         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72781         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72782         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72783         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72784         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72785         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72786         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72787         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72788         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72789         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72790         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72791         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72792         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72793         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72794         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72795         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72796         * modules/uniwidth/u8-width-tests (Files): Likewise.
72797         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72798         * modules/uniwidth/u16-width-tests (Files): Likewise.
72799         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72800         * modules/uniwidth/u32-width-tests (Files): Likewise.
72801         * modules/uniwidth/width-tests (Files): Likewise.
72802         * modules/unlink-tests (Files): Likewise.
72803         * modules/unsetenv-tests (Files): Likewise.
72804         * modules/usleep-tests (Files): Likewise.
72805         * modules/utimens-tests (Files): Likewise.
72806         * modules/utimensat-tests (Files): Likewise.
72807         * modules/vasnprintf-posix-tests (Files): Likewise.
72808         * modules/vasnprintf-tests (Files): Likewise.
72809         * modules/vasprintf-posix-tests (Files): Likewise.
72810         * modules/vasprintf-tests (Files): Likewise.
72811         * modules/vdprintf-posix-tests (Files): Likewise.
72812         * modules/vfprintf-posix-tests (Files): Likewise.
72813         * modules/vprintf-posix-tests (Files): Likewise.
72814         * modules/vsnprintf-posix-tests (Files): Likewise.
72815         * modules/vsnprintf-tests (Files): Likewise.
72816         * modules/vsprintf-posix-tests (Files): Likewise.
72817         * modules/wcrtomb-tests (Files): Likewise.
72818         * modules/wcsnrtombs-tests (Files): Likewise.
72819         * modules/wcsrtombs-tests (Files): Likewise.
72820         * modules/wctype-tests (Files): Likewise.
72821         * modules/wcwidth-tests (Files): Likewise.
72822         * modules/xmemdup0-tests (Files): Likewise.
72823         * modules/xprintf-posix-tests (Files): Likewise.
72824         * modules/xvasprintf-tests (Files): Likewise.
72826 2009-12-24  Eric Blake  <ebb9@byu.net>
72828         test-nanosleep: fix typo
72829         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72830         patch.
72831         Reported by Bruno Haible.
72833 2009-12-24  Bruno Haible  <bruno@clisp.org>
72835         Reduce namespace pollution on glibc systems.
72836         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72837         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72838         systems.
72839         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72840         <getopt.h> on glibc systems.
72841         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72842         systems.
72843         * lib/fcntl.c: Include <unistd.h> here instead.
72845 2009-12-24  Bruno Haible  <bruno@clisp.org>
72847         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72849 2009-12-24  Eric Blake  <ebb9@byu.net>
72851         tests: add signature checks
72852         * tests/signature.h (SIGNATURE_CHECK): New file.
72853         * modules/atexit-tests (Files): Use it.
72854         * modules/btowc-tests (Files): Likewise.
72855         * modules/canonicalize-lgpl-tests (Files): Likewise.
72856         * modules/ceilf-tests (Files): Likewise.
72857         * modules/ceill-tests (Files): Likewise.
72858         * modules/chown-tests (Files): Likewise.
72859         * modules/dprintf-posix-tests (Files): Likewise.
72860         * modules/dup2-tests (Files): Likewise.
72861         * modules/dup3-tests (Files): Likewise.
72862         * modules/duplocale-tests (Files): Likewise.
72863         * modules/fchdir-tests (Files): Likewise.
72864         * modules/fcntl-tests (Files): Likewise.
72865         * modules/fdopendir-tests (Files): Likewise.
72866         * modules/fflush-tests (Files): Likewise.
72867         * modules/flock-tests (Files): Likewise.
72868         * modules/floorf-tests (Files): Likewise.
72869         * modules/floorl-tests (Files): Likewise.
72870         * modules/fnmatch-tests (Files): Likewise.
72871         * modules/fopen-tests (Files): Likewise.
72872         * modules/fprintf-posix-tests (Files): Likewise.
72873         * modules/freopen-tests (Files): Likewise.
72874         * modules/frexp-nolibm-tests (Files): Likewise.
72875         * modules/frexp-tests (Files): Likewise.
72876         * modules/frexpl-nolibm-tests (Files): Likewise.
72877         * modules/frexpl-tests (Files): Likewise.
72878         * modules/fseek-tests (Files): Likewise.
72879         * modules/fseeko-tests (Files): Likewise.
72880         * modules/fsync-tests (Files): Likewise.
72881         * modules/ftell-tests (Files): Likewise.
72882         * modules/ftello-tests (Files): Likewise.
72883         * modules/futimens-tests (Files): Likewise.
72884         * modules/getaddrinfo-tests (Files): Likewise.
72885         * modules/getcwd-tests (Files): Likewise.
72886         * modules/getdelim-tests (Files): Likewise.
72887         * modules/getdtablesize-tests (Files): Likewise.
72888         * modules/getgroups-tests (Files): Likewise.
72889         * modules/gethostname-tests (Files): Likewise.
72890         * modules/getline-tests (Files): Likewise.
72891         * modules/getopt-posix-tests (Files): Likewise.
72892         * modules/gettimeofday-tests (Files): Likewise.
72893         * modules/glob-tests (Files): Likewise.
72894         * modules/iconv-tests (Files): Likewise.
72895         * modules/inet_ntop-tests (Files): Likewise.
72896         * modules/inet_pton-tests (Files): Likewise.
72897         * modules/isblank-tests (Files): Likewise.
72898         * modules/lchown-tests (Files): Likewise.
72899         * modules/ldexpl-tests (Files): Likewise.
72900         * modules/link-tests (Files): Likewise.
72901         * modules/linkat-tests (Files): Likewise.
72902         * modules/lseek-tests (Files): Likewise.
72903         * modules/lstat-tests (Files): Likewise.
72904         * modules/mbrtowc-tests (Files): Likewise.
72905         * modules/mbsinit-tests (Files): Likewise.
72906         * modules/mbsnrtowcs-tests (Files): Likewise.
72907         * modules/mbsrtowcs-tests (Files): Likewise.
72908         * modules/memchr-tests (Files): Likewise.
72909         * modules/memcmp-tests (Files): Likewise.
72910         * modules/memmem-tests (Files): Likewise.
72911         * modules/memrchr-tests (Files): Likewise.
72912         * modules/mkdir-tests (Files): Likewise.
72913         * modules/mkfifo-tests (Files): Likewise.
72914         * modules/mkfifoat-tests (Files): Likewise.
72915         * modules/mknod-tests (Files): Likewise.
72916         * modules/nanosleep-tests (Files): Likewise.
72917         * modules/nl_langinfo-tests (Files): Likewise.
72918         * modules/obstack-printf-tests (Files): Likewise.
72919         * modules/open-tests (Files): Likewise.
72920         * modules/openat-tests (Files): Likewise.
72921         * modules/perror-tests (Files): Likewise.
72922         * modules/pipe2-tests (Files): Likewise.
72923         * modules/poll-tests (Files): Likewise.
72924         * modules/popen-tests (Files): Likewise.
72925         * modules/posix_spawn-tests (Files): Likewise.
72926         * modules/posix_spawnp-tests (Files): Likewise.
72927         * modules/pread-tests (Files): Likewise.
72928         * modules/printf-posix-tests (Files): Likewise.
72929         * modules/pty-tests (Files): Likewise.
72930         * modules/random_r-tests (Files): Likewise.
72931         * modules/rawmemchr-tests (Files): Likewise.
72932         * modules/readlink-tests (Files): Likewise.
72933         * modules/remove-tests (Files): Likewise.
72934         * modules/rename-tests (Files): Likewise.
72935         * modules/renameat-tests (Files): Likewise.
72936         * modules/rmdir-tests (Files): Likewise.
72937         * modules/round-tests (Files): Likewise.
72938         * modules/roundf-tests (Files): Likewise.
72939         * modules/roundl-tests (Files): Likewise.
72940         * modules/select-tests (Files): Likewise.
72941         * modules/setenv-tests (Files): Likewise.
72942         * modules/sigaction-tests (Files): Likewise.
72943         * modules/sleep-tests (Files): Likewise.
72944         * modules/snprintf-posix-tests (Files): Likewise.
72945         * modules/snprintf-tests (Files): Likewise.
72946         * modules/sprintf-posix-tests (Files): Likewise.
72947         * modules/stat-tests (Files): Likewise.
72948         * modules/strcasestr-tests (Files): Likewise.
72949         * modules/strchrnul-tests (Files): Likewise.
72950         * modules/strerror-tests (Files): Likewise.
72951         * modules/strsignal-tests (Files): Likewise.
72952         * modules/strstr-tests (Files): Likewise.
72953         * modules/strtod-tests (Files): Likewise.
72954         * modules/strverscmp-tests (Files): Likewise.
72955         * modules/symlink-tests (Files): Likewise.
72956         * modules/symlinkat-tests (Files): Likewise.
72957         * modules/times-tests (Files): Likewise.
72958         * modules/trunc-tests (Files): Likewise.
72959         * modules/truncf-tests (Files): Likewise.
72960         * modules/truncl-tests (Files): Likewise.
72961         * modules/tsearch-tests (Files): Likewise.
72962         * modules/uname-tests (Files): Likewise.
72963         * modules/unlink-tests (Files): Likewise.
72964         * modules/unsetenv-tests (Files): Likewise.
72965         * modules/usleep-tests (Files): Likewise.
72966         * modules/utimensat-tests (Files): Likewise.
72967         * modules/vasprintf-tests (Files): Likewise.
72968         * modules/vdprintf-posix-tests (Files): Likewise.
72969         * modules/vfprintf-posix-tests (Files): Likewise.
72970         * modules/vprintf-posix-tests (Files): Likewise.
72971         * modules/vsnprintf-posix-tests (Files): Likewise.
72972         * modules/vsnprintf-tests (Files): Likewise.
72973         * modules/vsprintf-posix-tests (Files): Likewise.
72974         * modules/wcrtomb-tests (Files): Likewise.
72975         * modules/wcsnrtombs-tests (Files): Likewise.
72976         * modules/wcsrtombs-tests (Files): Likewise.
72977         * modules/wcwidth-tests (Files): Likewise.
72978         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72979         * tests/test-isinf.c (isinf): Likewise.
72980         * tests/test-isnan.c (isnan): Likewise.
72981         * tests/test-signbit.c (signbit): Likewise.
72982         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72983         declaration, either as macro or with correct signature.
72984         (select): Ensure function under test is declared with correct
72985         signature in correct header.
72986         * tests/test-atexit.c (atexit): Likewise.
72987         * tests/test-btowc.c (btowc): Likewise.
72988         * tests/test-canonicalize-lgpl.c (realpath)
72989         (canonicalize_file_name): Likewise.
72990         * tests/test-ceilf1.c (ceilf): Likewise.
72991         * tests/test-ceill.c (ceill): Likewise.
72992         * tests/test-chown.c (chown): Likewise.
72993         * tests/test-dprintf-posix.c (dprintf): Likewise.
72994         * tests/test-dup2.c (dup2): Likewise.
72995         * tests/test-dup3.c (dup3): Likewise.
72996         * tests/test-duplocale.c (duplocale): Likewise.
72997         * tests/test-fchdir.c (fchdir): Likewise.
72998         * tests/test-fchownat.c (fchownat): Likewise.
72999         * tests/test-fcntl.c (fcntl): Likewise.
73000         * tests/test-fdopendir.c (fdopendir): Likewise.
73001         * tests/test-fflush.c (fflush): Likewise.
73002         * tests/test-flock.c (flock): Likewise.
73003         * tests/test-floorf1.c (floorf): Likewise.
73004         * tests/test-floorl.c (floorl): Likewise.
73005         * tests/test-fnmatch.c (fnmatch): Likewise.
73006         * tests/test-fopen.c (fopen): Likewise.
73007         * tests/test-fprintf-posix.c (fprintf): Likewise.
73008         * tests/test-freopen.c (freopen): Likewise.
73009         * tests/test-frexp.c (frexp): Likewise.
73010         * tests/test-frexpl.c (frexpl): Likewise.
73011         * tests/test-fseek.c (fseek): Likewise.
73012         * tests/test-fseeko.c (fseeko): Likewise.
73013         * tests/test-fstatat.c (fstatat): Likewise.
73014         * tests/test-fsync.c (fsync): Likewise.
73015         * tests/test-ftell.c (ftell): Likewise.
73016         * tests/test-ftello.c (ftello): Likewise.
73017         * tests/test-futimens.c (futimens): Likewise.
73018         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
73019         (gai_strerror): Likewise.
73020         * tests/test-getcwd.c (getcwd): Likewise.
73021         * tests/test-getdelim.c (getdelim): Likewise.
73022         * tests/test-getdtablesize.c (getdtablesize): Likewise.
73023         * tests/test-getgroups.c (getgroups): Likewise.
73024         * tests/test-gethostname.c (gethostname): Likewise.
73025         * tests/test-getline.c (getline): Likewise.
73026         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
73027         Likewise.
73028         * tests/test-gettimeofday.c (gettimeofday): Likewise.
73029         * tests/test-glob.c (glob, globfree): Likewise.
73030         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
73031         * tests/test-inet_ntop.c (inet_ntop): Likewise.
73032         * tests/test-inet_pton.c (inet_pton): Likewise.
73033         * tests/test-isblank.c (isblank): Likewise.
73034         * tests/test-lchown.c (lchown): Likewise.
73035         * tests/test-ldexpl.c (ldexpl): Likewise.
73036         * tests/test-link.c (link): Likewise.
73037         * tests/test-linkat.c (linkat): Likewise.
73038         * tests/test-lseek.c (lseek): Likewise.
73039         * tests/test-lstat.c (lstat): Likewise.
73040         * tests/test-mbrtowc.c (mbrtowc): Likewise.
73041         * tests/test-mbsinit.c (mbsinit): Likewise.
73042         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
73043         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
73044         * tests/test-memchr.c (memchr): Likewise.
73045         * tests/test-memcmp.c (memcmp): Likewise.
73046         * tests/test-memmem.c (memmem): Likewise.
73047         * tests/test-memrchr.c (memrchr): Likewise.
73048         * tests/test-mkdir.c (mkdir): Likewise.
73049         * tests/test-mkdirat.c (mkdirat): Likewise.
73050         * tests/test-mkfifo.c (mkfifo): Likewise.
73051         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
73052         * tests/test-mknod.c (mknod): Likewise.
73053         * tests/test-nanosleep.c (nanosleep): Likewise.
73054         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
73055         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
73056         Likewise.
73057         * tests/test-open.c (open): Likewise.
73058         * tests/test-openat.c (openat): Likewise.
73059         * tests/test-perror.c (perror): Likewise.
73060         * tests/test-pipe2.c (pipe2): Likewise.
73061         * tests/test-poll.c (poll): Likewise.
73062         * tests/test-popen.c (popen, pclose): Likewise.
73063         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
73064         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
73065         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
73066         (posix_spawn_file_actions_destroy)
73067         (posix_spawn_file_actions_addclose)
73068         (posix_spawn_file_actions_addopen)
73069         (posix_spawn_file_actions_adddup2): Likewise.
73070         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
73071         * tests/test-pread.c (pread): Likewise.
73072         * tests/test-printf-posix.c (printf): Likewise.
73073         * tests/test-pty.c (openpty, forkpty): Likewise.
73074         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
73075         (random_r): Likewise.
73076         * tests/test-rawmemchr.c (rawmemchr): Likewise.
73077         * tests/test-readlink.c (readlink): Likewise.
73078         * tests/test-remove.c (remove): Likewise.
73079         * tests/test-rename.c (rename): Likewise.
73080         * tests/test-renameat.c (renameat): Likewise.
73081         * tests/test-rmdir.c (rmdir): Likewise.
73082         * tests/test-round1.c (round): Likewise.
73083         * tests/test-roundf1.c (roundf): Likewise.
73084         * tests/test-roundl.c (roundl): Likewise.
73085         * tests/test-setenv.c (setenv): Likewise.
73086         * tests/test-sigaction.c (sigaction): Likewise.
73087         * tests/test-sleep.c (sleep): Likewise.
73088         * tests/test-snprintf.c (snprintf): Likewise.
73089         * tests/test-sprintf-posix.c (sprintf): Likewise.
73090         * tests/test-stat.c (stat): Likewise.
73091         * tests/test-stpncpy.c (stpncpy): Likewise.
73092         * tests/test-strcasestr.c (strcasestr): Likewise.
73093         * tests/test-strchrnul.c (strchrnul): Likewise.
73094         * tests/test-strerror.c (strerror): Likewise.
73095         * tests/test-strsignal.c (strsignal): Likewise.
73096         * tests/test-strstr.c (strstr): Likewise.
73097         * tests/test-strtod.c (strtod): Likewise.
73098         * tests/test-strverscmp.c (strverscmp): Likewise.
73099         * tests/test-symlink.c (symlink): Likewise.
73100         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
73101         * tests/test-times.c (times): Likewise.
73102         * tests/test-trunc1.c (trunc): Likewise.
73103         * tests/test-truncf1.c (truncf): Likewise.
73104         * tests/test-truncl.c (truncl): Likewise.
73105         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
73106         Likewise.
73107         * tests/test-uname.c (uname): Likewise.
73108         * tests/test-unlink.c (unlink): Likewise.
73109         * tests/test-unlinkat.c (unlinkat): Likewise.
73110         * tests/test-unsetenv.c (unsetenv): Likewise.
73111         * tests/test-usleep.c (usleep): Likewise.
73112         * tests/test-utimensat.c (utimensat): Likewise.
73113         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
73114         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
73115         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
73116         * tests/test-vprintf-posix.c (vprintf): Likewise.
73117         * tests/test-vsnprintf.c (vsnprintf): Likewise.
73118         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
73119         * tests/test-wcrtomb.c (wcrtomb): Likewise.
73120         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
73121         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
73122         * tests/test-wcwidth.c (wcwidth): Likewise.
73124         build: pull in conditional headers during GNULIB_POSIXCHECK
73125         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
73126         definitions from any conditionally-included headers.
73127         * lib/stdlib.in.h (includes): Likewise.
73128         * lib/unistd.in.h (includes): Likewise.
73130 2009-12-24  Bruno Haible  <bruno@clisp.org>
73132         * tests/test-argv-iter.c: Include header file being tested immediately
73133         after config.h.
73134         * tests/test-base64.c: Likewise.
73135         * tests/test-flock.c: Likewise.
73136         * tests/test-fsync.c: Likewise.
73137         * tests/test-getdate.c: Likewise.
73138         * tests/test-getndelim2.c: Likewise.
73139         * tests/test-isfinite.c: Likewise.
73140         * tests/test-isinf.c: Likewise.
73141         * tests/test-strerror.c: Likewise.
73142         * tests/test-strsignal.c: Likewise.
73144 2009-12-23  Eric Blake  <ebb9@byu.net>
73146         unistd: work around cygwin bug
73147         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
73148         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
73149         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
73151 2009-12-23  Bruno Haible  <bruno@clisp.org>
73153         localename: More tests.
73154         * tests/test-localename.c (SIZEOF): New macro.
73155         (categories): New variable.
73156         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
73157         test_locale_name_default): Add test w.r.t. thread locale.
73158         (test_locale_name_thread): New function.
73159         (main): Invoke it.
73161         localename: Make aware of thread locale.
73162         * lib/localename.h (gl_locale_name_thread): New declaration.
73163         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
73164         behaviour with respect to thread locale.
73165         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
73166         <langinfo.h>, glthread/lock.h.
73167         (SIZE_BITS): New macro.
73168         (string_hash): New function.
73169         (struct hash_node): New type.
73170         (HASH_TABLE_SIZE): New macro.
73171         (struniq_hash_table, struniq_lock): New variables.
73172         (struniq): New function.
73173         (gl_locale_name_thread): New function.
73174         (gl_locale_name): Invoke it.
73175         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
73176         * modules/localename (Depends-on): Add lock.
73177         Reported by Mike Gran <spk121@yahoo.com>.
73179 2009-12-23  Eric Blake  <ebb9@byu.net>
73181         va-args: new module
73182         * modules/va-args: New file.
73183         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
73184         * MODULES.html.sh (Core language properties): Mention it.
73186         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
73187         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
73188         named alias for __attribute__((__unused__)).
73189         * lib/chown.c: Update client.
73190         * lib/fchmodat.c: Likewise.
73191         * lib/fts.c: Likewise.
73192         * lib/getdate.y: Likewise.
73193         * lib/getgroups.c: Likewise.
73194         * lib/getopt.c: Likewise.
73195         * lib/getugroups.c: Likewise.
73196         * lib/mkdir.c: Likewise.
73197         * lib/mkfifo.c: Likewise.
73198         * lib/mkfifoat.c: Likewise.
73199         * lib/mknod.c: Likewise.
73200         * lib/mknodat.c: Likewise.
73201         * lib/readlink.c: Likewise.
73202         * lib/se-context.in.h: Likewise.
73203         * lib/se-selinux.in.h: Likewise.
73204         * lib/sockets.c: Likewise.
73205         * lib/symlink.c: Likewise.
73206         * lib/symlinkat.c: Likewise.
73207         * lib/unicodeio.c: Likewise.
73208         * lib/unistr.h: Likewise.
73209         * tests/test-areadlink.c: Likewise.
73210         * tests/test-areadlinkat.c: Likewise.
73211         * tests/test-filenamecat.c: Likewise.
73212         * tests/test-fseeko.c: Likewise.
73213         * tests/test-ftello.c: Likewise.
73214         * tests/test-getdate.c: Likewise.
73215         * tests/test-getgroups.c: Likewise.
73216         * tests/test-gethostname.c: Likewise.
73217         * tests/test-quotearg.c: Likewise.
73218         * tests/test-version-etc.c: Likewise.
73219         * tests/test-xalloc-die.c: Likewise.
73220         * tests/test-xfprintf-posix.c: Likewise.
73221         * tests/test-xprintf-posix.c: Likewise.
73222         * tests/test-xvasprintf.c: Likewise.
73224         tests: avoid compiler warnings
73225         * tests/test-fcntl.c (main): Delete unused parameters.
73226         * tests/test-freopen-safer.c (main): Likewise.
73227         * tests/test-xalloc-die.c (main): Mark unused parameters.
73228         * tests/test-fseeko.c (main): Likewise.
73229         * tests/test-ftello.c (main): Likewise.
73230         * tests/test-nanosleep.c (main): Avoid declaration warning.
73231         * tests/test-sleep.c (main): Likewise.
73232         * tests/test-unsetenv.c (main): Silence warning about string
73233         literal.
73234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
73236 2009-12-23  Bruno Haible  <bruno@clisp.org>
73238         * tests/test-localename.c (test_locale_name): New function, extracted
73239         from main. Also test mixed situations.
73240         (test_locale_name_posix, test_locale_name_environ,
73241         test_locale_name_default): New functions.
73242         (main): Invoke them all.
73243         * modules/localename-tests (configure.ac): Test for newlocale.
73245 2009-12-23  Bruno Haible  <bruno@clisp.org>
73247         unistd: Ensure getcwd gets declared before being overridden.
73248         * lib/unistd.in.h: Conditionally include <io.h>.
73250 2009-12-22  Bruno Haible  <bruno@clisp.org>
73252         wchar: Diagnose broken combination of glibc and gcc versions and flags.
73253         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
73254         (gl_WCHAR_H): Invoke it.
73255         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
73256         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
73257         Reported by Karl Berry <karl@freefriends.org>.
73259 2009-12-22  Eric Blake  <ebb9@byu.net>
73261         math, unistd: avoid redundant includes
73262         * lib/math.in.h (isnan): No need to re-include <math.h>.
73263         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
73265         getsubopt: work around cygwin bug
73266         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
73267         avoid conflicting with system getsubopt.
73268         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
73269         bug.
73271         getopt: synchronize from glibc
73272         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
73273         parameter order.  Adjust all callers.
73274         (_getopt_internal_r, main): Adjust quoting in error messages.
73275         Drop considerations for outdated POSIX 1003.2 error message.
73276         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
73277         callers.
73278         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
73280         test-getopt: test stderr behavior
73281         * modules/getopt-posix-tests (Depends-on): Add dup2.
73282         * tests/test-getopt.c (ASSERT): Avoid stderr.
73283         (main): Move stderr to a temporary file.
73284         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
73285         Instead, add parameter to inform caller if output occurred.
73286         (test_getopt): Adjust all existing tests to expect silence, and
73287         add new tests of leading ":".
73288         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73289         glibc shortcomings with leading "-:" or "+:" in optstring.
73290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73291         Likewise.
73292         * doc/posix-functions/getopt.texi (getopt): Likewise.
73294         test-getopt: enhance test
73295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
73296         supports optind=0.
73297         * tests/test-getopt.c (OPTIND_MIN): Move...
73298         * tests/test-getopt.h (OPTIND_MIN): ...here.
73299         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
73300         Require that optind=0 works, since modern BSD supports it in
73301         addition to optreset, and since coreutils expects it.
73302         (test_getopt_long_only): New test.
73303         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73304         glibc shortcomings with 'W;', and enforcement of optind=0.
73305         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73306         Likewise.
73308 2009-12-21  Bruno Haible  <bruno@clisp.org>
73310         localename: Improvements for MacOS X and Cygwin.
73311         * lib/localename.h (gl_locale_name_environ): New declaration.
73312         * lib/localename.c (gl_locale_name_environ): New function, extracted from
73313         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
73314         (gl_locale_name_posix): Invoke it.
73315         (gl_locale_name_default): Add comments. Use Windows native API also on
73316         Cygwin.
73318 2009-12-21  Bruno Haible  <bruno@clisp.org>
73320         Update list of Win32 locale ids.
73321         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
73322         (LANG_SAMI): Renamed from LANG_SAAMI.
73323         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
73324         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
73325         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
73326         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
73327         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
73328         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
73329         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
73330         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
73331         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
73332         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
73333         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
73334         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
73335         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
73336         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
73337         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
73338         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
73339         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
73340         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
73341         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
73342         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
73343         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
73344         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
73345         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
73346         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
73347         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
73348         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
73349         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
73350         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
73351         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
73352         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
73353         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
73354         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
73355         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
73356         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
73357         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
73358         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
73359         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
73360         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
73361         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
73362         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
73363         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
73364         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
73365         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
73366         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
73367         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
73368         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
73369         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
73370         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
73371         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
73372         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
73373         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
73374         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
73375         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
73376         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
73377         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
73378         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
73379         Add more languages and countries for Sami, Sorbian. Add more countries
73380         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
73381         for Pashto. Change country for Syriac, Tswana.
73383 2009-12-21  Eric Blake  <ebb9@byu.net>
73385         test-utimens: avoid spurious failure
73386         * tests/test-chown.h (nap): Factor...
73387         * tests/nap.h: ...into new file.
73388         * tests/test-lchown.h (nap): Avoid duplication.
73389         * tests/test-utimens-common.h (nap): Use shared implementation,
73390         necessary on file systems with 1-second resolution.
73391         * modules/chown-tests (Files): Include new file.
73392         * modules/fdutimensat-tests (Files): Likewise.
73393         * modules/futimens-tests (Files): Likewise.
73394         * modules/lchown-tests (Files): Likewise.
73395         * modules/openat-tests (Files): Likewise.
73396         * modules/utimens-tests (Files): Likewise.
73397         * modules/utimensat-tests (Files): Likewise.
73399 2009-12-19  Eric Blake  <ebb9@byu.net>
73401         futimens, utimensat: work around Linux bug
73402         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
73403         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73404         * lib/utimensat.c (rpl_utimensat): Work around it.
73405         * lib/futimens.c (rpl_futimens): Adjust comment.
73407         utimens: work around Linux ctime bug
73408         * lib/utimens.c (detect_ctime_bug): New helper function.
73409         (update_timespec): Differentiate between workaround needed for
73410         this bug vs. what is needed for systems that lack utimensat.
73411         (fdutimens, lutimens): Work around bug.
73413         utimens: check for ctime update
73414         * tests/test-utimens-common.h (check_ctime): Define.
73415         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
73416         * tests/test-futimens.h (test_futimens): Likewise.
73417         * tests/test-lutimens.h (test_lutimens): Likewise.
73418         * doc/posix-functions/futimens.texi (futimens): Document the bug.
73419         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73421 2009-12-19  Bruno Haible  <bruno@clisp.org>
73423         dprintf-posix: Check against memory leak fixed on 2009-12-15.
73424         * tests/test-dprintf-posix2.sh: New file.
73425         * tests/test-dprintf-posix2.c: New file.
73426         * modules/dprintf-posix-tests (Files): Add them.
73427         (configure.ac): Check for getrlimit and setrlimit.
73428         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73430 2009-12-19  Bruno Haible  <bruno@clisp.org>
73432         fprintf-posix: Check against memory leak fixed on 2009-12-15.
73433         * tests/test-fprintf-posix3.sh: New file.
73434         * tests/test-fprintf-posix3.c: New file.
73435         * modules/fprintf-posix-tests (Files): Add them.
73436         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73438 2009-12-19  Eric Blake  <ebb9@byu.net>
73440         dirfd: fix prototype
73441         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
73442         * lib/dirfd.c (dirfd): Likewise.
73444         canonicalize: reduce memory usage
73445         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
73446         allocation to size.
73447         Reported by Solar Designer <solar@openwall.com>.
73449 2009-12-19  Bruno Haible  <bruno@clisp.org>
73451         New module attribute 'Applicability'.
73452         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
73453         * gnulib-tool: New option --extract-applicability.
73454         (func_usage): Document it.
73455         (sed_extract_prog): Recognize it.
73456         (func_get_applicability): New function.
73457         (func_import): Generalize handling of 'link-warning' module.
73458         * modules/link-warning (Applicability): New section.
73459         * modules/arg-nonnull (Applicability): New section.
73460         Repoted by Simon Josefsson <simon@josefsson.org>.
73462 2009-12-19  Bruno Haible  <bruno@clisp.org>
73464         fflush: tweak
73465         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
73466         * lib/fseeko.c (rpl_fseeko): Likewise.
73468 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
73470         * lib/gl_list.h: Fix typo in comment.
73472 2009-12-16  Eric Blake  <ebb9@byu.net>
73474         fcntl: use to simplify other modules
73475         * modules/cloexec (Depends-on): Add fcntl.
73476         * modules/fchdir (Depends-on): Likewise.
73477         * modules/fd-safer-flag (Depends-on): Likewise.
73478         * modules/unistd-safer (Depends-on): Likewise.
73479         * modules/dup3 (configure.ac): Set module indicator.
73480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
73481         missing.
73482         * lib/fchdir.c (_gl_register_dup): Fix comment.
73483         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
73484         * lib/dup-safer.c (dup_safer): Likewise.
73485         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
73486         * lib/dup3.c (dup3): Likewise.
73487         * tests/test-fchdir.c (main): Enhance test.
73488         Fixes a dup_cloexec bug reported by Ondřej Vašík.
73490         fcntl: port portions of fcntl to mingw
73491         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
73492         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
73493         replacement for mingw.
73494         * modules/fcntl (Description): Update.
73495         (Depends-on): Add dup2.
73496         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
73497         * modules/fcntl-h (Makefile.am): Substitute it.
73498         * lib/fcntl.in.h (fcntl): Update declaration.
73499         (F_DUPFD, F_GETFD): New macros, when needed.
73500         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73501         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
73502         * tests/test-fcntl.c (check_flags, main): Enhance test for items
73503         we now guarantee.
73505         fcntl: work around cygwin bug in F_DUPFD
73506         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
73507         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
73508         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
73509         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
73510         * doc/posix-functions/fcntl.texi (fcntl): Document it.
73512         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
73513         * modules/fcntl (Files): List new files.
73514         (configure.ac): Run a test.
73515         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
73516         * lib/fcntl.c (rpl_fcntl): Likewise.
73517         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
73518         (gl_FCNTL_H): Always replace fcntl.h.
73519         * modules/fcntl-h (Makefile.am): Substitute witnesses.
73520         * lib/fcntl.in.h (fcntl): Declare replacement.
73521         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
73522         needed, plus a witness.
73523         * doc/posix-functions/fcntl.texi (fcntl): Document this.
73524         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
73525         * tests/test-fcntl.c: New file.
73526         * modules/fcntl-tests: Likewise.
73528         binary-io: avoid potential compilation warning
73529         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
73530         directives.
73532         fflush: avoid compilation error on NetBSD
73533         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
73534         between off_t and fpos_t, since the latter is sometimes a struct.
73535         * lib/fseeko.c (rpl_fseeko): Likewise.
73536         Reported by Alexander Nasonov <alnsn@yandex.ru>.
73538 2009-12-15  Eric Blake  <ebb9@byu.net>
73540         fcntl-h, stdio, sys_ioctl: fix declarations
73541         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
73542         function must not take arguments.
73543         * lib/sys_ioctl.in.h (ioctl): Likewise.
73544         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
73545         (open): Add a link warning.
73547 2009-12-15  Jim Meyering  <meyering@redhat.com>
73549         areadlink, areadlink-with-size: relax license to LGPLv2+
73550         * modules/areadlink (License): Relax to LGPLv2+.
73551         * modules/areadlink-with-size (License): Likewise.
73553 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
73554             Bruno Haible  <bruno@clisp.org>
73556         *printf: Fix memory leak.
73557         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
73558         * lib/vfprintf.c (vfprintf): Likewise.
73559         * lib/dprintf.c (dprintf): Likewise.
73560         * lib/vdprintf.c (vdprintf): Likewise.
73562 2009-12-14  Eric Blake  <ebb9@byu.net>
73564         accept4: adjust module dependencies
73565         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
73567         utimens: one more try at avoiding compiler warning
73568         * lib/utimens.c (lutimens): Lower scope of result.
73570 2009-12-13  Bruno Haible  <bruno@clisp.org>
73572         Move the malloc checking from module 'list' to new module 'xlist'.
73573         * modules/xlist: New file.
73574         * lib/gl_xlist.h: New file.
73575         * lib/gl_xlist.c: New file.
73576         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
73577         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
73578         gl_list_add_last, gl_list_add_before, gl_list_add_after,
73579         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
73580         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
73581         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
73582         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
73583         gl_sortedlist_nx_add): New declarations.
73584         (struct gl_list_implementation): Rename and change methods accordingly.
73585         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
73586         (gl_list_nx_create): Renamed from gl_list_create.
73587         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73588         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73589         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73590         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73591         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73592         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73593         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73594         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73595         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73596         gl_list_create_empty.
73597         (gl_list_nx_create): Renamed from gl_list_create.
73598         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73599         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73600         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73601         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73602         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73603         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73604         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73605         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73606         * lib/gl_array_list.c: Don't include xalloc.h.
73607         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73608         NULL upon out-of-memory.
73609         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73610         out-of-memory.
73611         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73612         Change return type to 'int'.
73613         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73614         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73615         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73616         upon out-of-memory.
73617         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73618         upon out-of-memory.
73619         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73620         upon out-of-memory.
73621         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73622         upon out-of-memory.
73623         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73624         out-of-memory.
73625         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73626         Update.
73627         (gl_array_list_implementation): Update.
73628         * lib/gl_carray_list.c: Don't include xalloc.h.
73629         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73630         Return NULL upon out-of-memory.
73631         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73632         out-of-memory.
73633         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73634         Change return type to 'int'.
73635         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73636         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73637         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73638         upon out-of-memory.
73639         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73640         upon out-of-memory.
73641         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73642         out-of-memory.
73643         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73644         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73645         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73646         Update.
73647         (gl_carray_list_implementation): Update.
73648         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73649         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73650         gl_linked_create_empty. Return NULL upon out-of-memory.
73651         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73652         out-of-memory.
73653         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73654         Change return type to 'int'. Return -1 upon out-of-memory.
73655         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73656         out-of-memory.
73657         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73658         upon out-of-memory.
73659         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73660         upon out-of-memory.
73661         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73662         NULL upon out-of-memory.
73663         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73664         upon out-of-memory.
73665         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73666         out-of-memory.
73667         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73668         Update.
73669         * lib/gl_linked_list.c: Don't include xalloc.h.
73670         (gl_linked_list_implementation): Update.
73671         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73672         (add_to_bucket): Change return type to 'int'.
73673         (gl_linkedhash_list_implementation): Update.
73674         * lib/gl_anytree_list1.h (free_subtree): New function.
73675         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73676         gl_tree_create_empty. Return NULL upon out-of-memory.
73677         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73678         Change return type to 'int'. Return -1 upon out-of-memory.
73679         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73680         out-of-memory.
73681         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73682         (gl_tree_remove_node): New function, moved here from
73683         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73684         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73685         Update.
73686         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73687         malloc, not xmalloc. Return NULL upon out-of-memory.
73688         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73689         out-of-memory.
73690         (gl_tree_remove_node_from_tree): New function, extracted from
73691         gl_tree_remove_node.
73692         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73693         upon out-of-memory.
73694         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73695         out-of-memory.
73696         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73697         upon out-of-memory.
73698         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73699         upon out-of-memory.
73700         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73701         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73702         not xmalloc. Return NULL upon out-of-memory.
73703         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73704         out-of-memory.
73705         (gl_tree_remove_node_from_tree): New function, extracted from
73706         gl_tree_remove_node.
73707         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73708         upon out-of-memory.
73709         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73710         out-of-memory.
73711         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73712         upon out-of-memory.
73713         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73714         upon out-of-memory.
73715         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73716         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73717         gl_anytree_list1.h before gl_anyavltree_list2.h.
73718         (gl_avltree_list_implementation): Update.
73719         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73720         gl_anytree_list1.h before gl_anyavltree_list2.h.
73721         (gl_rbtree_list_implementation): Update.
73722         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73723         Change return type to 'int'. Return -1 upon out-of-memory. Use
73724         __builtin_expect.
73725         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73726         (gl_avltreehash_list_implementation): Update.
73727         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73728         (gl_rbtreehash_list_implementation): Update.
73729         * modules/array-list (Depends-on): Remove xalloc.
73730         * modules/carray-list (Depends-on): Likewise.
73731         * modules/linked-list (Depends-on): Likewise.
73732         * modules/linkedhash-list (Depends-on): Likewise.
73733         * modules/avltree-list (Depends-on): Likewise.
73734         * modules/rbtree-list (Depends-on): Likewise.
73735         * modules/avltreehash-list (Depends-on): Likewise.
73736         * modules/rbtreehash-list (Depends-on): Likewise.
73738         * modules/xsublist: New file.
73739         * lib/gl_xsublist.h: New file.
73740         * lib/gl_xsublist.c: New file.
73741         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73742         (gl_sublist_nx_create): New declaration.
73743         * lib/gl_sublist.c: Don't include xalloc.h.
73744         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73745         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73746         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73747         Change return type to 'int'. Return -1 upon out-of-memory.
73748         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73749         upon out-of-memory.
73750         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73751         NULL upon out-of-memory.
73752         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73753         upon out-of-memory.
73754         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73755         NULL upon out-of-memory.
73756         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73757         NULL upon out-of-memory.
73758         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73759         upon out-of-memory.
73760         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73761         (gl_sublist_list_implementation): Update.
73762         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73763         upon out-of-memory.
73764         * modules/sublist (Depends-on): Remove xalloc.
73766         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73767         * tests/test-carray_list.c: Likewise.
73768         * tests/test-linked_list.c: Likewise.
73769         * tests/test-linkedhash_list.c: Likewise.
73770         * tests/test-avltree_list.c: Likewise.
73771         * tests/test-rbtree_list.c: Likewise.
73772         * tests/test-avltreehash_list.c: Likewise.
73773         * tests/test-rbtreehash_list.c: Likewise.
73774         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73775         * modules/carray-list-tests (Makefile.am): Likewise.
73776         * modules/linked-list-tests (Makefile.am): Likewise.
73777         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73778         * modules/avltree-list-tests (Makefile.am): Likewise.
73779         * modules/rbtree-list-tests (Makefile.am): Likewise.
73780         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73781         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73783         * NEWS: Mention the changes.
73785         * lib/clean-temp.c: Include gl_xlist.h.
73786         * modules/clean-temp (Depends-on): Add xlist.
73788         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73789         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73791         * tests/test-array_oset.c: Include gl_xlist.h.
73792         * modules/array-oset-tests (Depends-on): Add xlist.
73794         Reported by José E. Marchesi <jemarch@gnu.org>.
73796 2009-12-13  Bruno Haible  <bruno@clisp.org>
73798         Move the malloc checking from module 'oset' to new module 'xoset'.
73799         * modules/xoset: New file.
73800         * lib/gl_xoset.h: New file.
73801         * lib/gl_xoset.c: New file.
73802         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73803         declarations.
73804         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73805         (struct gl_oset_implementation): Rename and change methods accordingly.
73806         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73807         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73808         'int'. Mark as __warn_unused_result__.
73809         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73810         gl_oset_create_empty.
73811         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73812         'int'.
73813         * lib/gl_array_oset.c: Don't include xalloc.h.
73814         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73815         malloc, not xmalloc.
73816         (grow): Change return type to 'int'. Don't call xalloc_die.
73817         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73818         to 'int'.
73819         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73820         'int'.
73821         (gl_array_oset_implementation): Update.
73822         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73823         gl_tree_create_empty.
73824         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73825         'int'.
73826         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73827         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73828         xmalloc.
73829         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73830         not xmalloc.
73831         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73832         xmalloc.
73833         (gl_avltree_oset_implementation): Update.
73834         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73835         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73836         xmalloc.
73837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73838         not xmalloc.
73839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73840         xmalloc.
73841         (gl_rbtree_oset_implementation): Update.
73842         * modules/array-oset (Depends-on): Remove xalloc.
73843         * modules/avltree-oset (Depends-on): Likewise.
73844         * modules/rbtree-oset (Depends-on): Likewise.
73845         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73846         * tests/test-avltree_oset.c: Likewise.
73847         * tests/test-rbtree_oset.c: Likewise.
73848         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73849         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73850         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73851         * NEWS: Mention the change.
73853 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73855         maint.mk: allow a project to override release-prep commands
73856         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73857         commands into a new rule.
73858         (release-prep): New rule.
73859         (release-prep-hook): New overridable variable.
73861 2009-12-13  Bruno Haible  <bruno@clisp.org>
73863         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73865 2009-12-13  Jim Meyering  <meyering@redhat.com>
73867         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73868         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73870 2009-12-12  Bruno Haible  <bruno@clisp.org>
73872         duplocale: Tweak.
73873         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73875 2009-12-12  Karl Berry  <karl@gnu.org>
73877         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73879 2009-12-12  Bruno Haible  <bruno@clisp.org>
73881         * m4/po.m4: Undo incorrect untabification.
73883 2009-12-12  Bruno Haible  <bruno@clisp.org>
73885         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73886         * modules/c-strtod (Depends-on): Add locale.
73887         * modules/c-strtold (Depends-on): Likewise.
73889 2009-12-12  Bruno Haible  <bruno@clisp.org>
73891         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73893 2009-12-11  Eric Blake  <ebb9@byu.net>
73895         setenv: relax requirement in light of POSIX ruling
73896         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73897         not NULL.
73898         * tests/test-setenv.c (main): Relax test.
73899         * tests/test-unsetenv.c (main): Likewise.
73900         * doc/posix-functions/setenv.texi (setenv): Document this.
73901         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73903 2009-12-11  Bruno Haible  <bruno@clisp.org>
73905         New module 'fd-safer-flag'.
73906         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73907         * lib/dup-safer.c (dup_safer_flag): Remove function.
73908         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73909         * lib/fd-safer.c (fd_safer_flag): Remove function.
73910         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73911         * modules/cloexec (configure.ac): Drop indicator macro.
73912         * modules/fd-safer-flag: New file.
73913         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73914         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73915         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73917 2009-12-11  Bruno Haible  <bruno@clisp.org>
73919         Tests for module 'nl_langinfo'.
73920         * modules/nl_langinfo-tests: New file.
73921         * tests/test-nl_langinfo.sh: New file.
73922         * tests/test-nl_langinfo.c: New file.
73924         New module 'nl_langinfo'.
73925         * lib/nl_langinfo.c: New file.
73926         * m4/nl_langinfo.m4: New file.
73927         * modules/nl_langinfo: New file.
73928         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73930 2009-12-11  Bruno Haible  <bruno@clisp.org>
73932         Tests for module 'langinfo'.
73933         * modules/langinfo-tests: New file.
73934         * tests/test-langinfo.c: New file.
73936         New module 'langinfo'.
73937         * lib/langinfo.in.h: New file.
73938         * m4/langinfo_h.m4: New file.
73939         * modules/langinfo: New file.
73940         * doc/posix-headers/langinfo.texi: Mention the new module.
73942 2009-12-11  Bruno Haible  <bruno@clisp.org>
73944         * lib/config.charset: Untabify.
73946 2009-12-11  Bruno Haible  <bruno@clisp.org>
73948         * modules/unistd-safer (configure.ac): Drop indicator macro.
73950 2009-12-11  Bruno Haible  <bruno@clisp.org>
73952         Move pipe2-safer code to its own file.
73953         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73954         * lib/pipe-safer.c (pipe2_safer): Remove function.
73955         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73956         (Makefile.am): Add it to lib_SOURCES.
73958 2009-12-10  Bruno Haible  <bruno@clisp.org>
73960         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73962 2009-12-10  Bruno Haible  <bruno@clisp.org>
73964         Declare which arguments expect non-NULL values, for GCC and clang.
73965         * build-aux/arg-nonnull.h: New file.
73966         * modules/arg-nonnull: New file.
73967         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73968         (inet_ntop, inet_pton): Use it.
73969         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73970         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73971         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73972         (open, openat): Use it.
73973         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73974         (fnmatch): Use it.
73975         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73976         (getopt, getopt_long, getopt_long_only): Use it.
73977         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73978         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73979         Use it.
73980         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73981         (iconv_open): Use it.
73982         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73983         (strtoimax, strtoumax): Use it.
73984         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73985         (duplocale): Use it.
73986         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73987         (frexp, frexpl): Use it.
73988         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73989         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73990         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73991         (tsearch, tfind, tdelete, twalk): Use it.
73992         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73993         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73994         sigpending): Use it.
73995         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73996         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73997         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73998         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73999         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
74000         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
74001         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
74002         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
74003         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
74004         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
74005         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
74006         Use it.
74007         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
74008         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
74009         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
74010         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
74011         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
74012         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
74013         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
74014         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
74015         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
74016         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
74017         strtoull, unsetenv): Use it.
74018         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
74019         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
74020         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
74021         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
74022         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
74023         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
74024         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
74025         (strcasecmp, strncasecmp): Use it.
74026         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
74027         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
74028         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
74029         rpl_setsockopt): Use it.
74030         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
74031         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
74032         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
74033         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
74034         (gettimeofday): Use it.
74035         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
74036         (times): Use it.
74037         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
74038         (uname): Use it.
74039         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
74040         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
74041         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
74042         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
74043         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
74044         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
74045         unlinkat, write): Use it.
74046         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
74047         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
74048         * lib/argv-iter.h: Include arg-nonnull.h.
74049         (_ATTRIBUTE_NONNULL_): Remove macro.
74050         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
74051         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
74052         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
74053         optimization.
74054         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
74055         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
74056         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
74057         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
74058         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
74059         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
74060         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
74061         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
74062         * modules/arpa_inet (Depends-on): Add arg-nonnull.
74063         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
74064         * modules/dirent (Depends-on): Add arg-nonnull.
74065         (Makefile.am): Insert arg-nonnull.h into dirent.h.
74066         * modules/fcntl-h (Depends-on): Add arg-nonnull.
74067         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
74068         * modules/fnmatch (Depends-on): Add arg-nonnull.
74069         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
74070         * modules/getopt-posix (Depends-on): Add arg-nonnull.
74071         (Makefile.am): Insert arg-nonnull.h into getopt.h.
74072         * modules/glob (Depends-on): Add arg-nonnull.
74073         (Makefile.am): Insert arg-nonnull.h into glob.h.
74074         * modules/iconv_open (Depends-on): Add arg-nonnull.
74075         (Makefile.am): Insert arg-nonnull.h into iconv.h.
74076         * modules/inttypes (Depends-on): Add arg-nonnull.
74077         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
74078         * modules/locale (Depends-on): Add arg-nonnull.
74079         (Makefile.am): Insert arg-nonnull.h into locale.h.
74080         * modules/math (Depends-on): Add arg-nonnull.
74081         (Makefile.am): Insert arg-nonnull.h into math.h.
74082         * modules/netdb (Depends-on): Add arg-nonnull.
74083         (Makefile.am): Insert arg-nonnull.h into netdb.h.
74084         * modules/search (Depends-on): Add arg-nonnull.
74085         (Makefile.am): Insert arg-nonnull.h into search.h.
74086         * modules/signal (Depends-on): Add arg-nonnull.
74087         (Makefile.am): Insert arg-nonnull.h into signal.h.
74088         * modules/spawn (Depends-on): Add arg-nonnull.
74089         (Makefile.am): Insert arg-nonnull.h into spawn.h.
74090         * modules/stdio (Depends-on): Add arg-nonnull.
74091         (Makefile.am): Insert arg-nonnull.h into stdio.h.
74092         * modules/stdlib (Depends-on): Add arg-nonnull.
74093         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
74094         * modules/string (Depends-on): Add arg-nonnull.
74095         (Makefile.am): Insert arg-nonnull.h into string.h.
74096         * modules/strings (Depends-on): Add arg-nonnull.
74097         (Makefile.am): Insert arg-nonnull.h into strings.h.
74098         * modules/sys_socket (Depends-on): Add arg-nonnull.
74099         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
74100         * modules/sys_stat (Depends-on): Add arg-nonnull.
74101         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
74102         * modules/sys_time (Depends-on): Add arg-nonnull.
74103         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
74104         * modules/sys_times (Depends-on): Add arg-nonnull.
74105         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
74106         * modules/sys_utsname (Depends-on): Add arg-nonnull.
74107         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
74108         * modules/time (Depends-on): Add arg-nonnull.
74109         (Makefile.am): Insert arg-nonnull.h into time.h.
74110         * modules/unistd (Depends-on): Add arg-nonnull.
74111         (Makefile.am): Insert arg-nonnull.h into unistd.h.
74112         * modules/wchar (Depends-on): Add arg-nonnull.
74113         (Makefile.am): Insert arg-nonnull.h into wchar.h.
74114         * modules/argv-iter (Depends-on): Add arg-nonnull.
74115         * tests/test-canonicalize.c (null_ptr): New function.
74116         (main): Use it.
74117         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
74118         (main): Use it.
74119         * tests/test-memmem.c (null_ptr): New function.
74120         (main): Use it.
74121         Reported by Jim Meyering.
74123 2009-12-10  Bruno Haible  <bruno@clisp.org>
74125         Use spaces for indentation, not tabs.
74126         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
74127         * m4/*.m4: Untabify.
74128         * build-aux/*.h: Untabify.
74129         * tests/**/*.[hc]: Untabify.
74130         * README: New section "Indent with spaces, not TABs", based on
74131         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
74132         * NEWS: Mention the change.
74134 2009-12-10  Bruno Haible  <bruno@clisp.org>
74136         pty test: Fix link error.
74137         * modules/pty-tests (Makefile.am): Add the default LDADD value to
74138         test_pty_LDADD.
74140 2009-12-07  Simon Josefsson  <simon@josefsson.org>
74142         * modules/pty: New file.
74143         * modules/pty-tests: New file.
74144         * m4/pty.m4: New file.
74145         * tests/test-pty.c: New file.
74146         * doc/glibc-headers/pty.texi: Modified.
74147         * doc/glibc-functions/forkpty.texi: Modified.
74148         * doc/glibc-functions/openpty.texi: Modified.
74150 2009-12-10  Bruno Haible  <bruno@clisp.org>
74152         Avoid syntax error in C++ mode.
74153         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
74155 2009-12-10  Bruno Haible  <bruno@clisp.org>
74157         Use sed with option -e.
74158         * gnulib-tool (func_version, func_emit_copyright_notice,
74159         func_emit_initmacro_end, func_import, func_create_testdir): Pass
74160         option -e to sed.
74161         * modules/link-warning (Makefile.am): Likewise.
74163 2009-12-10  Jim Meyering  <meyering@redhat.com>
74165         mgetgroups: do not write bytes beyond end of malloc'd buffer
74166         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
74167         username, we call getgroups with a one-element-shorter buffer,
74168         but still told it the length was original, max_n_groups.
74170 2009-12-09  Eric Blake  <ebb9@byu.net>
74172         cloexec: relax license
74173         * modules/cloexec (Maintainer): Add myself.
74174         (License): Use LGPL, not GPL.
74176         link-warning: optimize generation
74177         * modules/link-warning (Makefile.am): Reduce process usage.
74179 2009-12-09  Bruno Haible  <bruno@clisp.org>
74181         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
74182         workaround was added on 2009-11-17.
74184 2009-12-09  Jim Meyering  <meyering@redhat.com>
74185             Bruno Haible  <bruno@clisp.org>
74187         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
74188         * modules/link-warning (Makefile.am): Make the comment-removing sed
74189         command more robust in the face of bootstrap-prepended comment lines.
74191 2009-12-09  Bruno Haible  <bruno@clisp.org>
74193         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
74194         most one group.
74196 2009-12-09  Simon Josefsson  <simon@josefsson.org>
74197             Bruno Haible  <bruno@clisp.org>
74199         * build-aux/link-warning.h: Add copyright notice.
74200         * modules/link-warning (Makefile.am): Generate link-warning.h from
74201         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
74202         * NEWS: Mention change in link-warning module.
74203         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
74204         * modules/dirent (Makefile.am): Add dependency to dirent.h.
74205         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
74206         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
74207         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
74208         * modules/math (Makefile.am): Add dependency to math.h.
74209         * modules/search (Makefile.am): Add dependency to search.h.
74210         * modules/signal (Makefile.am): Add dependency to signal.h.
74211         * modules/spawn (Makefile.am): Add dependency to spawn.h.
74212         * modules/stdio (Makefile.am): Add dependency to stdio.h.
74213         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
74214         * modules/string (Makefile.am): Add dependency to string.h.
74215         * modules/strings (Makefile.am): Add dependency to strings.h.
74216         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
74217         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
74218         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
74219         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
74220         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
74221         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
74222         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
74223         * modules/unistd (Makefile.am): Add dependency to unistd.h.
74224         * modules/wchar (Makefile.am): Add dependency to wchar.h.
74226 2009-12-09  Bruno Haible  <bruno@clisp.org>
74228         fchdir: Optimize away rpl_fstat when possible.
74229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
74230         REPLACE_OPEN_DIRECTORY.
74231         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
74233 2009-12-09  Bruno Haible  <bruno@clisp.org>
74235         * lib/fchdir.c: Update comment.
74237 2009-12-09  Bruno Haible  <bruno@clisp.org>
74239         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
74241 2009-12-08  Eric Blake  <ebb9@byu.net>
74243         fchdir: avoid memory leak on re-registration.
74244         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
74246 2009-12-08  Jim Meyering  <meyering@redhat.com>
74248         init.sh: avoid Solaris 10 /bin/sh portability problem
74249         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
74250         sourced script:
74251           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
74252           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
74253           bar
74254         tests/init.sh relied on that, accepting a --set-path=DIR argument,
74255         and two tests used that idiom.
74256         * tests/init.sh: Update suggested usage comments.
74257         (path_prepend_): New function, to be used in place
74258         of the --src-path=DIR option.
74259         (setup_): Move PATH-prepending code into path_prepend_.
74260         * tests/test-pread.sh: Adapt to new usage.
74261         * tests/test-xalloc-die.sh: Likewise.
74263 2009-12-08  Simon Josefsson  <simon@josefsson.org>
74265         * doc/gnulib.texi (Glibc pty.h): Add.
74266         * doc/glibc-functions/forkpty.texi: Add.
74267         * doc/glibc-functions/openpty.texi: Add.
74268         Suggested by Bruno Haible.
74270 2009-12-08  Eric Blake  <ebb9@byu.net>
74272         fchdir: fix logic bugs
74273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
74274         * tests/test-fchdir.c (main): Enhance test.
74275         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
74276         is in use.
74278         dup2: fix logic bugs
74279         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
74280         REPLACE_DUP2 to decide when rpl_dup2 is needed.
74281         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
74282         exists.
74283         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
74285 2009-12-07  Eric Blake  <ebb9@byu.net>
74287         unlink: fix m4 detection
74288         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
74290         unistd-safer: add unit test
74291         * modules/unistd-safer-tests: New file.
74292         * tests/test-dup-safer.c: Likewise.
74293         * tests/test-cloexec.c (setmode): Avoid compiler warning.
74294         * tests/test-dup2.c (setmode): Likewise.
74295         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
74297         cloexec: preserve text vs. binary across dup_cloexec
74298         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
74299         mode.
74300         * modules/dup2-tests (Depends-on): Add binary-io.
74301         * modules/cloexec-tests (Depends-on): Likewise.
74302         * tests/test-dup2.c (setmode, is_mode): New helpers.
74303         (main): Add tests that translation mode is preserved.
74304         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
74305         Reported by Bruno Haible.
74307         mgetgroups: reduce duplicate listings
74308         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
74309         resulting array.
74310         * tests/test-chown.h (test_chown): Simplify client.
74311         * tests/test-lchown.h (test_lchown): Likewise.
74313 2009-12-06  Bruno Haible  <bruno@clisp.org>
74315         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
74316         value.
74318 2009-12-06  Bruno Haible  <bruno@clisp.org>
74320         * lib/progname.c: Include stdio.h, stdlib.h.
74321         (set_program_name): Reject a NULL argument.
74323 2009-12-05  Eric Blake  <ebb9@byu.net>
74325         pipe2-safer: new module
74326         * modules/pipe2-safer: New file.
74327         * lib/unistd-safer.h (pipe2_safer): New prototype.
74328         * lib/unistd--.h (pipe2): New wrapper.
74329         * lib/pipe-safer.c (pipe2_safer): New function.
74330         * modules/pipe (Depends-on): Add pipe2-safer.
74331         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
74333         stdlib-safer: preserve cloexec flag for mkostemp[s]
74334         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
74335         fd_safer_flag.
74337         unistd-safer: allow preservation of cloexec status via flag
74338         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
74339         prototypes.
74340         * lib/dup-safer.c (dup_safer_flag): New function.
74341         * lib/fd-safer.c (fd_safer_flag): Likewise.
74342         * modules/cloexec (configure.ac): Set witness.
74344         test-dup2: enhance test
74345         * modules/dup2-tests (Depends-on): Add cloexec.
74346         * tests/test-dup2.c (main): Enhance test.
74348         cloexec: add dup_cloexec
74349         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
74350         header and comments.
74351         * lib/cloexec.c (set_cloexec_flag): Add comments.
74352         (dup_cloexec): New function, with mingw implementation borrowed
74353         from...
74354         * lib/w32spawn.h (dup_noinherit): ...here.
74355         * modules/execute (Depends-on): Add cloexec.
74356         * modules/pipe (Depends-on): Likewise.
74357         * modules/cloexec (Depends-on): Add dup2.
74358         * modules/cloexec-tests (Files): New file.
74359         * tests/test-cloexec.c: Likewise.
74361         test-xalloc-die: fix test for mingw
74362         * modules/xalloc-die-tests (Files): Add tests/init.sh.
74363         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
74364         directory and .exe suffix off argv[0] output.
74366         test-fseeko: fix test for mingw
74367         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
74368         than undefining fseek, so test will pass on mingw.
74370 2009-12-05  Bruno Haible  <bruno@clisp.org>
74372         * lib/progname.h (set_program_name): Clarify specification.
74373         * lib/progname.c (set_program_name): Likewise.
74374         Reported by Jim Meyering.
74376 2009-12-05  Jim Meyering  <meyering@redhat.com>
74378         maint.mk: backslash-escape parens in default regexp
74379         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
74380         backslash-escape the literal parentheses.
74382         maint.mk: news-date-check: use grep -E
74383         * top/maint.mk (today): Define a Make variable, not a...
74384         (news-date-check): ...shell variable.
74385         (news-date-regexp): Use the Make variable.
74386         Use grep's -E option.  Change the failing diagnostic to mention
74387         the variable, $(news-date-regexp).
74389 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
74391         maintainer-makefile: allow customization of NEWS entry format
74392         * top/maint.mk (news-date-regexp): New overridable variable.
74393         (news-date-check): Use it.
74395 2009-12-04  Eric Blake  <ebb9@byu.net>
74397         mgetgroups: add xgetgroups, and avoid ENOSYS failures
74398         * lib/mgetgroups.h (xgetgroups): New prototype.
74399         * lib/mgetgroups.c (xgetgroups): New wrapper.
74400         (mgetgroups): Handle ENOSYS.
74401         * modules/mgetgroups (Depends-on): Add realloc.
74402         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
74404         mgetgroups: avoid argument promotion issues with -1
74405         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
74406         for invalid gid_t.
74407         * tests/test-chown.h (getegid, test_chown): Likewise.
74408         * tests/test-lchown.h (getegid, test_lchown): Likewise.
74410 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
74412         exclude: Fix header file problems.
74413         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
74415 2009-12-01  Jim Meyering  <meyering@redhat.com>
74417         fts: fts_open: do not let an empty string cause immediate failure
74418         This is required in support of GNU rm, for which the command
74419         "rm A '' B" must process and remove both A and B, in spite of
74420         the empty string argument.
74421         * lib/fts.c (fts_open): Do not let the presence of an empty string
74422         cause fts_open to fail immediately.  Most fts-using tools must be
74423         able to process all arguments, in order, and can be expected to
74424         diagnose such arguments themselves.
74426 2009-11-30  Eric Blake  <ebb9@byu.net>
74428         utimens: fix compilation error
74429         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
74430         Declare variable at right scope.
74432 2009-11-29  Jim Meyering  <meyering@redhat.com>
74434         bootstrap: handle perl-5.11's changed --version output
74435         * build-aux/bootstrap (get_version): Handle perl separately,
74436         since perl-5.11's --version output is different.
74438 2009-11-28  Jim Meyering  <meyering@redhat.com>
74440         userspec: depend on the inttostr module, too
74441         * modules/userspec (Depends-on): Add inttostr.
74443         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
74444         * lib/userspec.c (parse_with_separator): Do not accept a user ID
74445         number of MAXUID when it evaluates to (uid_t) -1.
74446         Likewise for group ID.  Reported by Matt McCutchen in
74447         <http://savannah.gnu.org/bugs/?28113>
74449         userspec: reformat to use spaces, not TABs
74450         * lib/userspec.c: Expand TABs to spaces.
74451         Add Emacs' "indent-tabs-mode: nil" hint.
74453 2009-11-27  Eric Blake  <ebb9@byu.net>
74455         getopt-gnu: flush out another BSD bug
74456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
74457         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
74458         flush out BSD bug.
74459         * tests/test-getopt.h (test_getopt): End lists with NULL.
74460         * tests/test-getopt_long.h (test_getopt_long): Likewise.
74461         (test_getopt_long_posix): Enhance test.
74462         * modules/getopt-posix-tests (Depends-on): Add stdbool.
74463         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
74464         getopt-gnu.
74465         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74466         Likewise.
74468 2009-11-27  Simon Josefsson  <simon@josefsson.org>
74470         * modules/idpriv-droptemp-tests (Notice): Fix text.
74472 2009-11-27  Jim Meyering  <meyering@redhat.com>
74474         test-xalloc-die: avoid spurious failure due to libtool argv difference
74475         In a libtool-enabled project, this test would fail due to a difference
74476         in the emitted program name, e.g.,
74477         -test-xalloc-die: memory exhausted
74478         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
74479         Use program to avoid that.
74480         * modules/xalloc-die-tests (Depends-on): Add progname.
74481         * tests/test-xalloc-die.c: Include progname.h".
74482         (program_name): Remove decl.
74483         (main): Call set_program_name.
74484         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
74486 2009-11-26  Richard Jones  <rjones@redhat.com>
74488         w32sock: leave win32 error in place.
74489         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
74491 2009-11-26  Eric Blake  <ebb9@byu.net>
74493         init.sh: suggest to use skip_ and fail_ functions in comments
74494         * tests/init.sh: Add a sentence.
74496 2009-11-25  Bruno Haible  <bruno@clisp.org>
74498         init.sh: add documentation in comments
74499         * tests/init.sh: Add some developer and user documentation.
74501 2009-11-26  Jim Meyering  <meyering@redhat.com>
74503         init.sh: accommodate even those who specify bogus srcdir manually
74504         * tests/init.sh: Normally, srcdir is guaranteed by automake and
74505         configure-time tests to be sanitized, so that there is no need to
74506         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
74507         (with no double quotes) suffices.  However, since tests may be
74508         invoked manually, and since you may explicitly set srcdir to the
74509         name of a directory containing spaces, do quote its uses here.
74510         * tests/test-pread.sh: Likewise.
74511         Suggested by Bruno Haible.
74513         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
74514         * tests/test-pread.sh: Write no data into the pipe, because
74515         test-pread actually reads none.  This avoids a diagnostic,
74516         "bash: echo: write error: Broken pipe", that arises in the unusual
74517         event something is ignoring SIGPIPE, and might be interpreted
74518         as some sort of failure.  Reported by Bruno Haible.
74520 2009-11-25  Jim Meyering  <meyering@redhat.com>
74522         test-pread: cover failure with ESPIPE and EINVAL
74523         * tests/test-pread.c (main): Test for failure, too.
74524         * tests/test-pread.sh: Invoke with stdin on a pipe.
74525         Suggested by Eric Blake.
74527         pread: improvement and fix
74528         * modules/pread (Depends-on): Depend on lseek, for portability to
74529         e.g., mingw.  Suggested by Eric Blake.
74530         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
74532         unistd.in.h: correct declaration of pread
74533         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
74534         Reported by Richard W.M. Jones.
74536         test-pread.sh: distribute the test script
74537         * modules/pread-tests (Files): Include test-pread.sh.
74539         test-pread.sh: clean up
74540         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
74541         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
74542         That is unnecessary, since it's always ".".
74543         Suggestion from Eric Blake.
74545         test-pread.sh: make executable
74546         * tests/test-pread.sh: Set executable bit.
74547         Reported by Eric Blake.
74549         correct typo in test-pread.sh
74550         * tests/test-pread.sh: Add #! line.
74552         test pread
74553         * tests/test-pread.c: New file.
74554         * tests/test-pread.sh: Likewise.
74555         * modules/pread-tests: Likewise.
74557         pread: new module
74558         * modules/pread: New file.
74559         * lib/unistd.in.h (pread): Define/declare.
74560         * lib/pread.c (pread): New file.
74561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
74562         * modules/unistd (Makefile.am): Substitute witnesses.
74563         * doc/posix-functions/pread.texi (pread): Update.
74564         * MODULES.html.sh: Add pread.
74566 2009-11-25  Jim Meyering  <meyering@redhat.com>
74568         tests/init.sh: new file to be used via most *.sh tests
74569         * tests/init.sh: New file.
74571 2009-11-25  Eric Blake  <ebb9@byu.net>
74573         utimens: work around older Linux failure with symlinks
74574         * lib/utimens.c (lutimensat_works_really): New variable.
74575         (fdutimens, lutimens): Use it to manage kernels that support
74576         nanosecond times on files, but not on symlinks.
74577         Reported by Ondřej Vašík.
74579         utimes: fix configure grammar
74580         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
74582 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
74584         regex: Fix fastmap for multibyte character ranges.
74585         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
74586         characters when a multibyte character range is included.
74588 2009-11-22  Andy Wingo  <wingo@pobox.com>
74590         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74591         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74593 2009-11-24  Bruno Haible  <bruno@clisp.org>
74595         doc: Most *_l functions exist in MacOS X 10.5.
74596         * doc/posix-functions/duplocale.texi: Update platforms list.
74597         * doc/posix-functions/freelocale.texi: Likewise.
74598         * doc/posix-functions/newlocale.texi: Likewise.
74599         * doc/posix-functions/uselocale.texi: Likewise.
74600         * doc/posix-functions/isalnum_l.texi: Likewise.
74601         * doc/posix-functions/isalpha_l.texi: Likewise.
74602         * doc/posix-functions/isblank_l.texi: Likewise.
74603         * doc/posix-functions/iscntrl_l.texi: Likewise.
74604         * doc/posix-functions/isdigit_l.texi: Likewise.
74605         * doc/posix-functions/isgraph_l.texi: Likewise.
74606         * doc/posix-functions/islower_l.texi: Likewise.
74607         * doc/posix-functions/isprint_l.texi: Likewise.
74608         * doc/posix-functions/ispunct_l.texi: Likewise.
74609         * doc/posix-functions/isspace_l.texi: Likewise.
74610         * doc/posix-functions/isupper_l.texi: Likewise.
74611         * doc/posix-functions/iswalnum_l.texi: Likewise.
74612         * doc/posix-functions/iswalpha_l.texi: Likewise.
74613         * doc/posix-functions/iswblank_l.texi: Likewise.
74614         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74615         * doc/posix-functions/iswctype_l.texi: Likewise.
74616         * doc/posix-functions/iswdigit_l.texi: Likewise.
74617         * doc/posix-functions/iswgraph_l.texi: Likewise.
74618         * doc/posix-functions/iswlower_l.texi: Likewise.
74619         * doc/posix-functions/iswprint_l.texi: Likewise.
74620         * doc/posix-functions/iswpunct_l.texi: Likewise.
74621         * doc/posix-functions/iswspace_l.texi: Likewise.
74622         * doc/posix-functions/iswupper_l.texi: Likewise.
74623         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74624         * doc/posix-functions/isxdigit_l.texi: Likewise.
74625         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74626         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74627         * doc/posix-functions/strcoll_l.texi: Likewise.
74628         * doc/posix-functions/strfmon_l.texi: Likewise.
74629         * doc/posix-functions/strftime_l.texi: Likewise.
74630         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74631         * doc/posix-functions/strxfrm_l.texi: Likewise.
74632         * doc/posix-functions/tolower_l.texi: Likewise.
74633         * doc/posix-functions/toupper_l.texi: Likewise.
74634         * doc/posix-functions/towctrans_l.texi: Likewise.
74635         * doc/posix-functions/towlower_l.texi: Likewise.
74636         * doc/posix-functions/towupper_l.texi: Likewise.
74637         * doc/posix-functions/wcscoll_l.texi: Likewise.
74638         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74639         * doc/posix-functions/wctrans_l.texi: Likewise.
74640         * doc/posix-functions/wctype_l.texi: Likewise.
74641         * doc/glibc-functions/strptime_l.texi: Likewise.
74642         * doc/glibc-functions/strtod_l.texi: Likewise.
74643         * doc/glibc-functions/strtof_l.texi: Likewise.
74644         * doc/glibc-functions/strtol_l.texi: Likewise.
74645         * doc/glibc-functions/strtold_l.texi: Likewise.
74646         * doc/glibc-functions/strtoll_l.texi: Likewise.
74647         * doc/glibc-functions/strtoul_l.texi: Likewise.
74648         * doc/glibc-functions/strtoull_l.texi: Likewise.
74649         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74650         * doc/glibc-functions/wcstod_l.texi: Likewise.
74651         * doc/glibc-functions/wcstof_l.texi: Likewise.
74652         * doc/glibc-functions/wcstol_l.texi: Likewise.
74653         * doc/glibc-functions/wcstold_l.texi: Likewise.
74654         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74655         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74656         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74658 2009-11-24  Bruno Haible  <bruno@clisp.org>
74660         duplocale: Fix logic bug.
74661         * lib/duplocale.c: Don't include <langinfo.h>.
74662         (_NL_LOCALE_NAME): Remove macro.
74663         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74664         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74666 2009-11-23  Jim Meyering  <meyering@redhat.com>
74668         test-update-copyright: don't hard-code /usr/bin/perl
74669         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74670         perl to print the current year.  Gilles Espinasse reported that
74671         the replaced use of perl was hard-coded as /usr/bin/perl.
74673 2009-11-23  Bruno Haible  <bruno@clisp.org>
74675         duplocale: Add support for glibc 2.3.x.
74676         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74678 2009-11-22  Bruno Haible  <bruno@clisp.org>
74680         vasnprintf: Tiny optimization.
74681         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74682         MacOS X.
74684 2009-11-22  Bruno Haible  <bruno@clisp.org>
74686         Tests for module 'duplocale'.
74687         * modules/duplocale-tests: New file.
74688         * tests/test-duplocale.c: New file.
74690         New module 'duplocale'.
74691         * m4/duplocale.m4: New file.
74692         * lib/locale.in.h (duplocale): New declaration.
74693         * lib/duplocale.c: New file.
74694         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74695         gl_LOCALE_H_DEFAULTS): New macros.
74696         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74697         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74698         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74699         REPLACE_DUPLOCALE.
74700         * modules/duplocale: New file.
74701         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74703 2009-11-22  Bruno Haible  <bruno@clisp.org>
74705         * modules/locale-tests (configure.ac): Test for newlocale function.
74706         * tests/test-locale.c: When the system has extended locale functions,
74707         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74709         locale: Make locale_t available when possible.
74710         * lib/locale.in.h: Include <xlocale.h> when it exists.
74711         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74712         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74713         * modules/locale (Depends-on): Add extensions.
74714         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74715         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74717 2009-11-22  Bruno Haible  <bruno@clisp.org>
74719         Add comments.
74720         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74721         invocation.
74722         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74723         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74724         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74726 2009-11-22  Bruno Haible  <bruno@clisp.org>
74728         error: account for the possibility of freopen (stdout).
74729         * lib/error.c: Include <unistd.h>.
74730         (flush_stdout): New function, extracted from error and error_at_line.
74731         Determine stdout's fd dynamically.
74732         (error, error_at_line): Invoke flush_stdout.
74733         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74734         * modules/error (Depends-on): Add unistd.
74736 2009-11-22  Bruno Haible  <bruno@clisp.org>
74738         diffseq: Add comment.
74739         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74741 2009-11-22  Jim Meyering  <meyering@redhat.com>
74743         c-stack: avoid defining an unused static function
74744         * lib/c-stack.c (find_stack_direction): Do not define this function
74745         when it will not be used.
74747         diffseq: avoid spurious gcc warnings
74748         * lib/diffseq.h (IF_LINT2): Define.
74749         (compareseq): Use it to initialize two members of "part".
74750         This avoids two used-uninitialized warnings.
74752 2009-11-21  Jim Meyering  <meyering@redhat.com>
74754         c-stack: avoid "ignoring return value of `write'" warning
74755         * lib/c-stack.c: Include "ignore-value.h".
74756         (die): Explicitly ignore each write return value.
74757         * modules/c-stack (Depends-on): Add ignore-value.
74759 2009-11-21  Bruno Haible  <bruno@clisp.org>
74761         diffseq: reduce scope of variable 'best'.
74762         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74763         variable, earlier used for two different purposes.
74765 2009-11-21  Jim Meyering  <meyering@redhat.com>
74767         diffseq: remove useless assignment to "best"
74768         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74769         assignment.  At that point "best" is already guaranteed to be zero.
74771 2009-11-20  Eric Blake  <ebb9@byu.net>
74773         build: mention ftp redirector in release announcements
74774         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74775         values that used to come from cfg.mk; mention FTP redirect URL.
74776         * build-aux/announce-gen: Mention the mirror list.
74777         Suggested by Karl Berry.
74779         nanosleep: improve port to mingw
74780         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74782         LIB_NANOSLEEP, but only when needed.
74783         * modules/select (Link): Document LIBSOCKET.
74784         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74785         enough.
74787         nanosleep: work around cygwin bug
74788         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74789         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74790         bug.
74791         (getnow): Delete, not needed.
74792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74793         LIB_CLOCK_GETTIME.
74794         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74795         clock-time, gettime.
74796         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74797         bug.
74798         * modules/nanosleep-tests: New test.
74799         * tests/test-nanosleep.c: New file.
74801         sleep: work around cygwin bug
74802         * lib/sleep.c (rpl_sleep): Work around the bug.
74803         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74804         (gl_PREREQ_SLEEP): Delete unused macro.
74805         * modules/sleep (Depends-on): Add verify.
74806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74807         * modules/unistd (Makefile.am): Substitute witness.
74808         * lib/unistd.in.h (sleep): Update prototype.
74809         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74810         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74811         * modules/sleep-tests (Depends-on): Check for alarm.
74813 2009-11-20  Jim Meyering  <meyering@redhat.com>
74815         maint.mk: improve sc_prohibit_magic_number_exit
74816         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74817         so it does not match uses like System.exit(1).
74818         Add comments showing how to correct all offenders.
74820 2009-11-19  Eric Blake  <ebb9@byu.net>
74822         xalloc-die-tests: add missing library
74823         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74825         test-xvasprintf: silence compiler warnings
74826         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74827         empty string from gcc.
74829 2009-11-19  Jim Meyering  <meyering@redhat.com>
74831         xfreopen: new module, from coreutils
74832         * modules/xfreopen: New module.
74833         * lib/xfreopen.c: New file.
74834         * lib/xfreopen.h: New file.
74835         * MODULES.html.sh (File stream based Input/Output"): Add it.
74837 2009-11-19  Eric Blake  <ebb9@byu.net>
74839         manywarnings: depend on warnings
74840         * modules/manywarnings (Depends-on): Add warnings.
74842         build: avoid compiler warnings
74843         * lib/select.c (rpl_select): Delete unused variable.
74844         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74846 2009-11-18  Eric Blake  <ebb9@byu.net>
74848         tests: avoid false negative with --with-packager
74849         * tests/test-version-etc.sh: Discard packager information.
74850         * tests/test-argp-version-etc-1.sh: Likewise.
74851         Reported by Mike Frysinger.
74853         utimens: fix regression on Solaris
74854         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74855         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74856         can only change fd timestamps via futimesat.  Instead, use an
74857         additional witness macro to avoid BSD bug.
74858         Reported by Jim Meyering.
74860 2009-11-17  Eric Blake  <ebb9@byu.net>
74862         usleep: use it to simplify tests
74863         * modules/stat-time-tests (Depends-on): Add usleep.
74864         (configure.ac): Drop usleep check.
74865         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74866         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74867         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74868         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74869         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74870         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74871         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74872         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74873         Likewise.
74874         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74875         * tests/test-lchown.h (nap): Likewise.
74876         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74877         * tests/test-stat-time.c (nap): Likewise.
74878         * tests/test-utimens-common.h (nap): Update comments.
74880         usleep: new module
74881         * modules/usleep: New file.
74882         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74883         * lib/usleep.c (usleep): Likewise.
74884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74885         * modules/unistd (Makefile.am): Substitute witnesses.
74886         * lib/unistd.in.h (usleep): Add declaration.
74887         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74888         * MODULES.html.sh (Date and time): Likewise.
74889         * modules/usleep-tests (Depends-on): New test.
74890         * tests/test-usleep.c: New file.
74892         chown: work around OpenBSD bug
74893         * lib/chown.c (rpl_chown): Work around the bug.
74894         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74895         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74896         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74897         * modules/chown (Depends-on): Add stdbool.
74898         * modules/lchown (Depends-on): Likewise.
74899         * doc/posix-functions/chown.texi (chown): Document the bug.
74900         * doc/posix-functions/lchown.texi (lchown): Likewise.
74901         * tests/test-lchown.h (test_chown): Relax test.
74903         mkstemp: avoid conflict with C++ keyword template
74904         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74905         * lib/mkostemp.c (mkostemp): Likewise.
74906         * lib/mkostemps.c (mkostemps): Likewise.
74907         * lib/mkstemp.c (mkstemp): Likewise.
74908         * lib/mkstemps.c (mkstemps): Likewise.
74910         xalloc-die-tests: optimize
74911         * tests/test-xalloc-die.sh: Reduce number of processes.
74913 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74915         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74916         patch from ludo@gnu.org (Ludovic Courtès).
74918 2009-11-17  Jim Meyering  <meyering@redhat.com>
74920         version-etc: use proper license string
74921         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74922         * modules/version-etc-fsf: Likewise.
74924 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74926         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74927         printed to stdout.  Deal with EOL differences.
74929 2009-11-17  Eric Blake  <ebb9@byu.net>
74931         unsetenv: work around Solaris bug
74932         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74933         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74934         Reported by Jim Meyering.
74936         vasnprintf: avoid compiler warnings
74937         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74938         variables.
74939         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74941 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74943         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74944         settings since xalloc-die is no longer the self test,
74945         xalloc-die.sh is.
74947 2009-11-17  Jim Meyering  <meyering@redhat.com>
74949         test-xalloc-die.sh: make the code agree with the commit log
74950         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74951         at the end, just in case you happen to have a test-xalloc-die
74952         program in some other PATH directory.
74954         test-xalloc-die.sh: fix a portability bug
74955         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74956         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74957         Otherwise, argv[0] (as often seen in diagnostics) would be too
74958         system-dependent, sometimes with, and sometimes without the leading "./".
74960         version-etc-fsf: relax license to LGPLv3+
74961         * modules/version-etc-fsf (License): Relax license.
74963 2009-11-16  Eric Blake  <ebb9@byu.net>
74965         xalloc-die-tests: avoid printing null pointer
74966         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74967         shell script.
74968         * tests/test-xalloc-die.c (program_name): Declare.
74969         * tests/test-xalloc-die.sh (tmpfiles): New file.
74971         setenv, unsetenv: work around various bugs
74972         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74973         (setenv) [HAVE_SETENV]: Work around bugs.
74974         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74975         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74976         for bugs.
74977         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74978         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74980         * modules/stdlib (Makefile.am): Update substitutions.
74981         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74982         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74983         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74984         * modules/setenv-tests: New test.
74985         * modules/unsetenv-tests: Likewise.
74986         * tests/test-setenv.c: New file.
74987         * tests/test-unsetenv.c: Likewise.
74989 2009-11-16  Jim Meyering  <meyering@redhat.com>
74991         version-etc: relax license to LGPLv3+
74992         * modules/version-etc (License): Relax license.
74994         better AC_REQUIRE expanded-before-required-warning avoidance
74995         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74996         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74997         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74998         which is no longer needed.
75000 2009-11-16  Eric Blake  <ebb9@byu.net>
75002         test-freading: clean up temporary file
75003         * tests/test-freading.c (main): Remove file on success, and use
75004         ASSERT more liberally.
75005         Reported by Jim Meyering.
75007 2009-11-16  Jim Meyering  <meyering@redhat.com>
75009         avoid new AC_REQUIRE expanded-before-required warnings
75010         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
75011         merely using it.
75012         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
75013         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
75015 2009-11-15  Simon Josefsson  <simon@josefsson.org>
75017         * tests/test-xalloc-die.c: New file.
75018         * modules/xalloc-die-tests: New file.
75019         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
75020         XFAIL_TESTS so it can be appended by modules.
75022 2009-11-15  Simon Josefsson  <simon@josefsson.org>
75024         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
75025         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
75027 2009-11-14  Eric Blake  <ebb9@byu.net>
75029         fnmatch: avoid compiler warning
75030         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
75031         to silence compiler warning about mismatch signedness in ?:.
75032         Reported by Robert Millan.
75034         intprops: add double-inclusion guard
75035         * lib/intprops.h: Allow idempotent includes.
75036         Suggested by Bruce Korb.
75038         openat: detect Solaris fchownat bug
75039         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
75040         penalizing glibc chownat when only lchownat is broken.
75041         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
75042         trailing slash bugs.
75043         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
75044         * modules/openat-tests (Files): Include more files.
75045         (Depends-on): Add mgetgroups, sleep, stat-time.
75046         (configure.ac): Add additional checks.
75047         (Makefile.am): Build new test.
75048         * tests/test-fchownat.c: New file.
75050         lchown: detect Solaris and FreeBSD bug
75051         * lib/lchown.c (rpl_lchown): Work around bug.
75052         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
75053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75054         * modules/unistd (Makefile.am): Populate it.
75055         * lib/unistd.in.h (lchown): Update declaration.
75056         * doc/posix-functions/lchown.texi (lchown): Document the bug.
75057         * modules/lchown-tests: New file.
75058         * tests/test-lchown.h (test_lchown): Likewise.
75059         * tests/test-lchown.c (main): Likewise.
75061         chown: detect Solaris and FreeBSD bug
75062         * lib/chown.c (rpl_chown): Work around bug.
75063         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
75064         (gl_PREREQ_CHOWN): Delete.
75065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75066         * modules/unistd (Makefile.am): Populate it.
75067         * lib/unistd.in.h (chown): Update declaration.
75068         * lib/lchown.c (chown): Update client.
75069         * modules/lchown (Depends-on): Add lstat.
75070         * doc/posix-functions/chown.texi (chown): Document the bug.
75071         * doc/posix-functions/getgroups.texi (getgroups): Document
75072         getgroups pitfall.
75073         * modules/chown-tests: New file.
75074         * tests/test-chown.h (test_chown): Likewise.
75075         * tests/test-chown.c (main): Likewise.
75077 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
75079         gnulib-tool: correctly detect absence of m4 directories
75080         * gnulib-tool: Avoid extra newline on data passed to wc -l.
75082 2009-11-14  Jim Meyering  <meyering@redhat.com>
75084         maint.mk: Prohibit inclusion of "xalloc.h" without use.
75085         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75087 2009-11-14  John W. Eaton  <jwe@gnu.org>
75089         strftime.h: wrap function declaration in extern "C" block
75090         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
75092 2009-11-13  Eric Blake  <ebb9@byu.net>
75094         getgroups: avoid compiler warning
75095         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
75097         getgroups: work around FreeBSD bug
75098         * lib/getgroups.c (rpl_getgroups): Work around the bug.
75099         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
75100         * doc/posix-functions/getgroups.texi (getgroups): Document it.
75101         * tests/test-getgroups.c (main): Fix buffer overrun.
75103         getgroups: avoid compilation failure
75104         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
75105         * modules/getgroups (Depends-on): Add stdint.
75107 2009-11-13  Jim Meyering  <meyering@redhat.com>
75109         test-getgroups: avoid compilation failure
75110         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
75112 2009-11-13  Eric Blake  <ebb9@byu.net>
75114         mgetgroups: new module, taken from coreutils
75115         * modules/mgetgroups: New file.
75116         * lib/mgetgroups.h: Likewise.
75117         * lib/mgetgroups.c (mgetgroups): Likewise.
75118         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
75119         * MODULES.html.sh (Users and groups): Mention it.
75121         getgroups: don't expose GETGROUPS_T to user
75122         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
75123         an element at a time if GETGROUPS_T is wrong size.
75124         * lib/getugroups.h (getugroups): Change signature.
75125         * lib/unistd.in.h (getgroups): Likewise.
75126         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
75127         signature needs fixing.
75128         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
75129         AC_TYPE_GETGROUPS.
75130         * modules/group-member (Depends-on): Add getgroups.
75131         * lib/group-member.c (group_info, get_group_info): Use gid_t.
75132         (group_member): Rely on getgroups replacement.
75133         * lib/getugroups.c (getugroups): Use gid_t.
75134         * tests/test-getgroups.c (main): Likewise.
75135         * NEWS: Mention the signature change.
75136         * doc/posix-functions/getgroups.texi (getgroups): Mention the
75137         problem with signature.
75138         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
75139         GETGROUPS_T is still useful for setgroups.
75141         getgroups, getugroups: provide stubs for mingw
75142         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
75143         * lib/getugroups.c (getugroups): Likewise.
75144         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
75145         function.  Modernize replacement scheme.
75146         (gl_PREREQ_GETGROUPS): Delete.
75147         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
75148         * modules/getgroups (configure.ac): Declare witness.
75149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
75150         * modules/unistd (Depends-on): Substitute witness.
75151         * lib/unistd.in.h (getgroups): Declare replacement.
75153         getgroups: avoid calling exit
75154         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
75155         drop xalloc.
75156         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
75157         dependencies.
75158         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
75159         exiting, in the rare case of malloc failure.
75161         getgroups: fix logic error
75162         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
75163         has more than 20 groups.
75164         * modules/getgroups-tests: New test.
75165         * tests/test-getgroups.c: New file.
75167 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75169         * tests/test-base64.c: Improve.
75171 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75173         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
75174         Blake <ebb9@byu.net>.
75176 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75178         * tests/test-xvasprintf.c: Add %s%s related checks.
75180 2009-11-12  Eric Blake  <ebb9@byu.net>
75182         version-etc: match standards.texi style
75183         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
75184         and use <> only for URLs.
75186 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
75188         fts: do not fail on a submount during traversal
75189         * lib/fts.c (fts_build): Read the stat info again after opening
75190         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
75191         Original report at http://bugzilla.redhat.com/501848.
75193 2009-11-12  Jim Meyering  <meyering@redhat.com>
75195         bootstrap: sync from coreutils
75196         * build-aux/bootstrap (bootstrap_epilogue): New function.
75197         Use git_modules_config in one more place.  This make bootstrap's
75198         --gnulib-srcdir option more useful for testing.
75200         bootstrap: generalize autoheader check
75201         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
75202         AC_CONFIG_HEADERS.
75204 2009-11-11  Eric Blake  <ebb9@byu.net>
75206         mkfifoat: use new modules for Solaris and BSD bugs
75207         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
75208         * lib/mkfifoat.c (mknodat): Split...
75209         * lib/mknodat.c (mknodat): ...into new file.
75210         * modules/mkfifoat (Files): Ship new file.
75211         (Depends-on): Add mkfifo, mknod.
75212         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
75213         (Depends-on): Add symlink.
75214         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
75215         redundant with test_mkfifo.h.
75216         (do_mkfifoat, do_mknodat): New helpers.
75218         mknod: new module
75219         * modules/mknod: New file.
75220         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
75221         * lib/mknod.c (mknod): Likewise.
75222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75223         defaults.
75224         * modules/sys_stat (Makefile.am): Substitute them.
75225         * lib/sys_stat.in.h (mknod): Declare replacement.
75226         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75227         Document it.
75228         * doc/posix-functions/mknod.texi (mknod): Likewise.
75229         * modules/mknod-tests: New test.
75230         * tests/test-mknod.c: Likewise.
75232         mkfifo: new module
75233         * modules/mkfifo: New file.
75234         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
75235         * lib/mkfifo.c (mkfifo): Likewise.
75236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75237         defaults.
75238         * modules/sys_stat (Makefile.am): Substitute them.
75239         * lib/sys_stat.in.h (mkfifo): Declare replacement.
75240         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75241         Document it.
75242         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
75243         * modules/mkfifo-tests: New test.
75244         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
75245         from test-mkfifoat.c.
75246         * tests/test-mkfifo.c: New file.
75248         readlink: detect FreeBSD bug
75249         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
75250         slash on symlink.
75251         * doc/posix-functions/readlink.texi (readlink): Document the bug.
75252         * tests/test-readlink.h (test_readlink): Enhance test.
75254         symlink: detect FreeBSD bug
75255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
75256         slash on symlink.
75257         * doc/posix-functions/symlink.texi (symlink): Document the bug.
75258         * tests/test-symlink.h (test_symlink): Enhance test.
75260 2009-11-10  Eric Blake  <ebb9@byu.net>
75262         link: detect FreeBSD bug
75263         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
75264         symlink.
75265         * doc/posix-functions/link.texi (link): Document the bug.
75266         * tests/test-link.h (test_link): Enhance test.
75267         * tests/test-linkat.c (main): Update caller.
75269         unlink, remove: detect FreeBSD bug
75270         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
75271         slash on symlink.
75272         * doc/posix-functions/unlink.texi (unlink): Document the bug.
75273         * doc/posix-functions/remove.texi (remove): Likewise.
75274         * tests/test-unlink.h (test_unlink): Enhance test.
75275         * tests/test-remove.c (main): Likewise.
75277 2009-11-09  Eric Blake  <ebb9@byu.net>
75279         rename: detect FreeBSD bug
75280         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
75281         slash on symlink.
75282         * modules/renameat-tests (Depends-on): Add filenamecat.
75283         * tests/test-rename.h (test_rename): Allow one more errno.
75284         * tests/test-renameat.c (main): Likewise.
75285         * doc/posix-functions/rename.texi (rename): Document the bug.
75287         open: detect FreeBSD bug
75288         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
75289         symlink.
75290         * doc/posix-functions/open.texi (open): Document the bug.
75291         * doc/posix-functions/utimes.texi (utimes): Likewise.
75292         * tests/test-open.h (test_open): Add parameters, and test symlink
75293         handling.
75294         * tests/test-open.c (main): Adjust caller.
75295         * tests/test-fcntl-safer.c (main): Likewise.
75296         * modules/open-tests (Depends-on): Add stdbool, symlink.
75297         * modules/fcntl-safer-tests (Depends-on): Likewise.
75298         * tests/test-openat.c (main): Add test-open tests.
75300         stat: detect FreeBSD bug
75301         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
75302         symlink.
75303         * doc/posix-functions/stat.texi (stat): Document the bug.
75304         * tests/test-stat.h (test_stat_func): Add argument.
75305         * tests/test-stat.c (main): Adjust caller.
75306         * tests/test-fstatat.c (main): Likewise.
75307         * modules/stat-tests (Depends-on): Add stdbool, symlink.
75308         Reported by Jim Meyering.
75310 2009-11-09  James Youngman  <jay@gnu.org>
75312         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
75313         * lib/strftime.c: Correct placement of #include "ignore-value.h".
75315 2009-11-08  Jim Meyering  <meyering@redhat.com>
75317         utimens: remove invalid futimesat call
75318         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
75319         It used the file descriptor of the target file as the DIR_FD
75320         parameter and NULL as the file name.  That caused failure with
75321         errno == EFAULT on FreeBSD-8.0-rc2
75323 2009-11-07  Eric Blake  <ebb9@byu.net>
75325         fflush, freadseek: use fseeko, not fseek
75326         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
75327         (clear_ungetc_buffer): Avoid potential problems on large files.
75328         * lib/freadseek.c (freadseek): Likewise.
75329         * modules/freadseek (Depends-on): Add fseeko.
75330         * modules/fseek (configure.ac): Set a witness.
75331         * tests/test-fflush.c (main): Use fseeko.
75332         * tests/test-fpurge.c (fseek): Disable link warning.
75333         * tests/test-freadable.c (fseek): Likewise.
75334         * tests/test-freading.c (fseek): Likewise.
75335         * tests/test-fseeko.c (fseek): Likewise.
75336         * tests/test-ftell.c (fseek): Likewise.
75337         * tests/test-ftello.c (fseek): Likewise.
75338         * tests/test-fwritable.c (fseek): Likewise.
75339         * tests/test-fwriting.c (fseek): Likewise.
75341 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75343         * modules/memchr (Depends-on): Drop getpagesize dependency.
75345 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75347         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
75348         Reported by Ludovic Courtès.
75349         * build-aux/pmccabe2html: Improve example usage.
75350         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
75352 2009-11-06  Jim Meyering  <meyering@redhat.com>
75354         do-release-commit-and-tag: New module.
75355         Automate the release-commit and tag process.
75356         * build-aux/do-release-commit-and-tag: New script, from coreutils.
75357         * modules/do-release-commit-and-tag: New file.
75358         * MODULES.html.sh (Support for maintaining and releasing): Add it.
75360 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75362         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
75363         because test-select.c uses inet_pton.
75365 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75367         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
75368         GETADDRINFO_LIB.  Bump serial number.
75369         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
75370         Suggested by Eric Blake <ebb9@byu.net>.
75372 2009-11-05  Eric Blake  <ebb9@byu.net>
75374         strtod: detect darwin bug
75375         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
75376         Reported by Leo Davis.
75378         freopen-safer: new module
75379         * modules/freopen-safer: New module.
75380         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
75381         * lib/freopen-safer.c (freopen_safer): New file.
75382         * lib/stdio-safer.h (freopen_safer): New declaration.
75383         * lib/stdio--.h (freopen): New override.
75384         * MODULES.html.sh (File stream based Input/Output): Mention it.
75385         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
75386         freopen-safer module.
75387         * doc/posix-functions/stderr.texi (stderr): Likewise.
75388         * doc/posix-functions/stdin.texi (stdin): Likewise.
75389         * doc/posix-functions/stdout.texi (stdout): Likewise.
75390         * modules/freopen-safer-tests: New test.
75391         * tests/test-reopen-safer.c: New file.
75393 2009-11-05  Jim Meyering  <meyering@redhat.com>
75395         maint.mk: Prohibit inclusion of "close-stream.h" without use.
75396         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75398 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75400         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
75402 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75404         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
75406 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75408         Fix link error.
75409         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75410         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75412 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75414         * tests/test-func.c: Also test value of __func__.
75416 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75418         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
75419         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
75421 2009-11-05  Bruno Haible  <bruno@clisp.org>
75423         Fix link error.
75424         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75425         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75426         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
75428 2009-11-05  Bruno Haible  <bruno@clisp.org>
75430         Tests for module 'inet_pton'.
75431         * modules/inet_pton-tests: New file.
75432         * tests/test-inet_pton.c: New file.
75434 2009-11-05  Bruno Haible  <bruno@clisp.org>
75436         Tests for module 'inet_ntop'.
75437         * modules/inet_ntop-tests: New file.
75438         * tests/test-inet_ntop.c: New file.
75440 2009-11-04  Eric Blake  <ebb9@byu.net>
75442         stdlib-safer: wrap all mkstemp variants
75443         * modules/mkostemp (configure.ac): Set witness.
75444         * modules/mkostemps (configure.ac): Likewise.
75445         * modules/mkstemps (configure.ac): Likewise.
75446         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
75447         (mkstemps_safer): Wrap more functions.
75448         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
75449         wrapping.
75450         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
75451         (mkstemps_safer): Implement the wrappers.
75453         mkstemps, mkostemps: new modules
75454         * modules/mkostemps: New module.
75455         * modules/mkstemps: Likewise.
75456         * lib/mkostemps.c (mkostemps): New file.
75457         * lib/mkstemps.c (mkstemps): Likewise.
75458         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
75459         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
75460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
75461         * modules/stdlib (Makefile.am): Substitute them.
75462         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
75463         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
75464         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
75465         * doc/gnulib.texi (Glibc stdlib.h): Include them.
75466         * MODULES.html.sh (File system functions): Mention them.
75468         tempname: resync from glibc
75469         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
75470         same values for __GT_FILE as glibc.  Abort even when assertions
75471         are disabled.
75472         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
75473         match its value otherwise.  Allow idempotent inclusion.
75474         * lib/mkdtemp.c (mkdtemp): Adjust caller.
75475         * lib/mkostemp.c (mkostemp): Likewise.
75476         * lib/mkstemp.c (mkstemp): Likewise.
75477         * lib/tmpfile.c (tmpfile): Likewise.
75478         * NEWS: Document this.
75480         utimens: fix use of futimens on older Linux
75481         * lib/utimens.c (fdutimens): Use updated, rather than original,
75482         timespec to avoid bug in older Linux kernel.
75483         Reported by Simon Josefsson.
75485 2009-11-04  Bruno Haible  <bruno@clisp.org>
75487         Make num_processors more flexible and consistent.
75488         * lib/nproc.h (enum nproc_query): New type.
75489         (num_processors): Add a 'query' argument.
75490         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
75491         (num_processors): Add a 'query' argument. Test the value of the
75492         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
75493         mingw, count the number of CPUs available for the current process.
75494         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
75495         Check for sched_getaffinity and sched_getaffinity_np.
75496         * modules/nproc (Depends-on): Add c-ctype, extensions.
75497         * NEWS: Mention the change.
75499 2009-11-03  Bruno Haible  <bruno@clisp.org>
75501         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
75503 2009-11-03  Jim Meyering  <meyering@redhat.com>
75505         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
75506         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
75507         if it is defined.
75509 2009-11-02  Eric Blake  <ebb9@byu.net>
75511         mktime, timegm: share common declaration
75512         * lib/mktime-internal.h: New file.
75513         * lib/mktime.c: Use it rather than open-coding a declaration.
75514         * lib/timegm.c: Likewise.
75515         * modules/mktime (Files): Ship it.
75516         * modules/timegm (Files): Likewise.
75517         Suggested by Bruno Haible.
75519         test-update-copyright: update test to match script changes
75520         * tests/test-update-copyright.sh: Avoid hard-coding perl
75521         location.  Don't update *.bak created by earlier runs.
75523 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75524             Simon Josefsson  <simon@josefsson.org>
75525             Bruno Haible  <bruno@clisp.org>
75527         Fix link error on Solaris 8.
75528         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
75529         also in libnsl. Define also INET_PTON_LIB.
75530         * modules/inet_pton (Link): New section.
75532 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75533             Bruno Haible  <bruno@clisp.org>
75535         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
75536         * modules/inet_ntop (Link): New section.
75537         Reported by Boyan Kasarov <bkasarov@gmail.com>.
75539 2009-11-02  Eric Blake  <ebb9@byu.net>
75541         maint: avoid compiler warnings in m4 macros
75542         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
75543         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
75545 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75547         * m4/pmccabe2html.m4: Remove file.
75548         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
75549         function.  Change maintainer.
75550         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
75551         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
75552         Courtès).
75554 2009-10-31  Eric Blake  <ebb9@byu.net>
75556         fseeko: fix m4 regression
75557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
75558         regression from 2009-10-27.
75559         Reported by Ralf Wildenhues.
75561 2009-10-31  Jim Meyering  <meyering@redhat.com>
75563         inttostr: aesthetics and improved (compile-time) safety
75564         Define inttype_is_signed rather than inttype_is_unsigned,
75565         since the sole use is via "#if inttype_is_signed".
75566         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
75567         inttype_is_unsigned.
75568         * lib/offtostr.c (inttype_is_signed): Likewise.
75569         * lib/uinttostr.c (inttype_is_signed): Likewise.
75570         * lib/umaxtostr.c (inttype_is_signed): Likewise.
75571         * lib/inttostr.c (inttostr): Use verify to cross-check the
75572         inttype_is_signed value and the signedness of the actual type.
75573         * modules/inttostr (Depends-on): Add verify.
75575 2009-10-30  Eric Blake  <ebb9@byu.net>
75577         build: avoid compiler warnings
75578         * lib/fchmodat.c (lchmod): Mark unused variables.
75579         * lib/getopt.c (_getopt_initialize): Likewise.
75580         * lib/mktime.c (__mktime_internal): Provide prototype.
75581         * lib/inttostr.c (inttostr): Avoid compiler warning even with
75582         older gcc that do not understand #pragma GCC diagnostic.
75583         * lib/uinttostr.c (inttype_is_unsigned): Define.
75584         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
75586 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75588         stat: fix compilation on AIX
75589         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75590         only see struct stat64.
75592 2009-10-30  Eric Blake  <ebb9@byu.net>
75594         exclude: make more robust
75595         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75596         rather than masking a coding bug.
75597         Suggested by Bruno Haible.
75599 2009-10-30  Jim Meyering  <meyering@redhat.com>
75601         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75602         Rather than putting #!/usr/bin/perl on the first line,
75603         start with a variant of what's recommended by "man perlrun" that
75604         invokes the first "perl" program from your shell's search path.
75605         * build-aux/gitlog-to-changelog: Replace #!... as above.
75606         Add a "Local Variables" perl mode setting.
75607         Prompted by a patch from Ludovic Courtès.
75608         Improved by Eric Blake.
75609         * build-aux/useless-if-before-free: Likewise.
75610         * build-aux/announce-gen: Likewise.
75611         * build-aux/update-copyright: Likewise.
75613 2009-10-29  Eric Blake  <ebb9@byu.net>
75615         filenamecat-lgpl: adjust clients
75616         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75617         filenamecat.
75618         * modules/renameat (Depends-on): Likewise.
75620         filenamecat: split into filenamecat-lgpl
75621         * modules/filenamecat-lgpl: New module.
75622         * modules/filenamecat (Files): Move library-safe files into
75623         filenamecat-lgpl.
75624         (Depends-on): Add filenamecat-lgpl.
75625         (configure.ac): Declare witness.
75626         * lib/filenamecat.h (file_name_concat): Only declare when using
75627         GPL module.
75628         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75629         Move...
75630         * lib/filenamecat-lgpl.c: ...into new file.
75631         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75632         (gl_FILE_NAME_CONCAT): Use it.
75633         * MODULES.html.sh (File system functions): Mention new module.
75635         argp: avoid memory leak
75636         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75637         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75638         base_name, since the latter malloc()s and can call exit().
75639         Leak introduced 2006-07-03.
75641         dirname-lgpl: adjust clients that don't need full dirname
75642         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75643         * modules/filenamecat (Depends-on): Likewise.
75644         * modules/linkat (Depends-on): Likewise.
75645         * modules/mkancesdirs (Depends-on): Likewise.
75646         * modules/mkdir (Depends-on): Likewise.
75647         * modules/openat (Depends-on): Likewise.
75648         * modules/savewd (Depends-on): Likewise.
75649         * modules/rename (Depends-on): Likewise.
75650         (License): Relax license.
75651         * modules/mkdir-tests (Depends-on): Drop progname.
75652         (Makefile.am): Delete unneeded LDADD.
75653         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75655         dirname: split into dirname-lgpl
75656         * modules/dirname-lgpl: New module.
75657         * modules/dirname (Files): Move library-safe files into
75658         dirname-lgpl.
75659         (Depends-on): Add dirname-lgpl.
75660         (configure.ac): Declare witness.
75661         * modules/double-slash-root (License): Relax license.
75662         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75663         module.
75664         * lib/dirname.c (dir_len, mdir_name): Move...
75665         * lib/dirname-lgpl.c: ...into new file.
75666         * lib/basename.c (last_component, base_len): Move...
75667         * lib/basename-lgpl.c: ...into new file.
75668         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75669         (gl_DIRNAME): Use it.
75670         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75671         Mention new module.
75672         * modules/dirname-tests (Depends-on): Add progname.
75673         * tests/test-dirname.c (program_name): Delete.
75675         mkdir: make safe for libraries
75676         * modules/mkdir (Depends-on): Drop xalloc.
75677         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75678         exit.
75680         tests: avoid some compiler warnings
75681         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75682         literals.
75683         * tests/test-memchr.c (main): Avoid type mismatch.
75684         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75685         * tests/test-base64.c (main): Likewise.
75686         * tests/test-getdelim.c (main): Likewise.
75687         * tests/test-gethostname.c (main): Likewise.
75688         * tests/test-getline.c (main): Likewise.
75689         * tests/test-netinet_in.c (main): Likewise.
75690         * tests/test-select.c (open_server_socket, main): Likewise.
75691         * tests/test-select-stdin.c (main): Likewise.
75692         * tests/test-sockets.c (main): Likewise.
75693         * tests/test-strsignal.c (main): Likewise.
75694         * tests/test-sys_select.c (main): Likewise.
75695         * tests/test-sys_socket.c (main): Likewise.
75696         * tests/test-u64.c (main): Likewise.
75697         * tests/test-xfprintf-posix.c (main): Likewise.
75698         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75700         sockets: avoid compiler warning
75701         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75703         maint: detect usage(1) and other suspicious exits
75704         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75706 2009-10-29  Jim Meyering  <meyering@redhat.com>
75708         timespec: long-to-int truncation could make timespec_cmp malfunction
75709         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75710         a multiple of 2^32 nanoseconds as no difference.
75712 2009-10-28  Jim Meyering  <meyering@redhat.com>
75714         fprintftime: wrap macro code argument in "do {...} while(0)"
75715         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75716         cpy macro must be a statement that can be followed by a semicolon.
75717         Now that the else clause contains a comment and is hence longer
75718         than one line, I require curly braces.  That in turn requires
75719         that we wrap this code block in the standard do...while(0).
75721         fprintftime: remove stray semicolon from previous change
75722         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75724         fprintftime: avoid a warning about ignored fwrite return value
75725         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75726         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75727         that is unsafe.
75728         * modules/fprintftime (Depends-on): Add ignore-value.
75730         exclude: avoid an unwarranted warning
75731         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75733 2009-10-27  Eric Blake  <ebb9@byu.net>
75735         fseek: avoid compilation failure when fflush is replaced
75736         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75737         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75738         module is in use.
75739         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75740         module is not in use; since REPLACE_FSEEK worked otherwise.
75741         (GNULIB_FTELLO): Likewise for ftell.
75742         Reported by Ian Beckwith and others.
75744 2009-10-27  Bruno Haible  <bruno@clisp.org>
75746         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75747         Reported by Jim Meyering.
75749 2009-10-27  Jim Meyering  <jim@meyering.net>
75750             Bruno Haible  <bruno@clisp.org>
75752         Avoid warning despite dropping the return value of fwrite.
75753         * lib/unicodeio.c: Include ignore-value.h.
75754         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75755         * modules/unicodeio (Depends-on): Add ignore-value.
75757 2009-10-26  Eric Blake  <ebb9@byu.net>
75759         areadlinkat: fix fallback path
75760         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75761         pointer and zero.
75763 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75765         Use a better IO block size for modern systems
75766         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75767         * lib/md2.c: Likewise.
75768         * lib/md4.c: Likewise.
75769         * lib/md5.c: Likewise.
75770         * lib/sha1.c: Likewise.
75771         * lib/sha256.c: Likewise.
75772         * lib/sha512.c: Likewise.
75774 2009-10-22  Eric Blake  <ebb9@byu.net>
75776         tests: avoid several compiler warnings
75777         * tests/test-getcwd.c (main): Avoid buffer underflow.
75778         * tests/test-getdate.c (main): String literals are not safe with
75779         putenv, so use setenv.  Declare unused argument.
75780         * modules/getdate-tests (Depends-on): Add setenv.
75781         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75782         problems with string literals in char *.
75783         * tests/test-hash.c (main): Avoid shadowing declaration.
75784         (insert_new): Treat string literals as char const *.
75785         * tests/test-getopt.h (test_getopt): Likewise.
75786         (getopt_loop): Alter types to minimize casting elsewhere.
75787         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75788         (test_getopt_long_posix): Likewise.
75789         (do_getopt_long): Add wrapper to minimize casting.
75790         * tests/test-atexit.c (clear_temp_file): Use void.
75791         * tests/test-areadlink-with-size.c (main): Declare unused
75792         arguments.
75793         * tests/test-areadlink.c (main): Likewise.
75794         * tests/test-areadlinkat-with-size.c (main): Likewise.
75795         * tests/test-areadlinkat.c (main): Likewise.
75796         * tests/test-canonicalize-lgpl.c (main): Likewise.
75797         * tests/test-canonicalize.c (main): Likewise.
75798         * tests/test-dirent-safer.c (main): Likewise.
75799         * tests/test-dirname.c (main): Likewise.
75800         * tests/test-dup2.c (main): Likewise.
75801         * tests/test-fchdir.c (main): Likewise.
75802         * tests/test-fcntl-h.c (main): Likewise.
75803         * tests/test-fcntl-safer.c (main): Likewise.
75804         * tests/test-fdopendir.c (main): Likewise.
75805         * tests/test-fdutimensat.c (main): Likewise.
75806         * tests/test-fflush.c (main): Likewise.
75807         * tests/test-filenamecat.c (main): Likewise.
75808         * tests/test-filevercmp.c (main): Likewise.
75809         * tests/test-fopen-safer.c (main): Likewise.
75810         * tests/test-fopen.c (main): Likewise.
75811         * tests/test-fpending.c (main): Likewise.
75812         * tests/test-fpurge.c (main): Likewise.
75813         * tests/test-freading.c (main): Likewise.
75814         * tests/test-fstatat.c (main): Likewise.
75815         * tests/test-fsync.c (main): Likewise.
75816         * tests/test-futimens.c (main): Likewise.
75817         * tests/test-getndelim2.c (main): Likewise.
75818         * tests/test-gettimeofday.c (main): Likewise.
75819         * tests/test-getopt.c (main): Likewise.
75820         * tests/test-i-ring.c (main): Likewise.
75821         * tests/test-inttypes.c (main): Likewise.
75822         * tests/test-link.c (main): Likewise.
75823         * tests/test-lstat.c (main): Likewise.
75824         * tests/test-math.c (main): Likewise.
75825         * tests/test-md5.c (main): Likewise.
75826         * tests/test-memchr2.c (main): Likewise.
75827         * tests/test-memrchr.c (main): Likewise.
75828         * tests/test-mkdir.c (main): Likewise.
75829         * tests/test-mkdirat.c (main): Likewise.
75830         * tests/test-mkfifoat.c (main): Likewise.
75831         * tests/test-open.c (main): Likewise.
75832         * tests/test-openat-safer.c (main): Likewise.
75833         * tests/test-openat.c (main): Likewise.
75834         * tests/test-quotearg.c (main): Likewise.
75835         * tests/test-rawmemchr.c (main): Likewise.
75836         * tests/test-readlink.c (main): Likewise.
75837         * tests/test-remove.c (main): Likewise.
75838         * tests/test-rename.c (main): Likewise.
75839         * tests/test-renameat.c (main): Likewise.
75840         * tests/test-rmdir.c (main): Likewise.
75841         * tests/test-sha1.c (main): Likewise.
75842         * tests/test-signal.c (main): Likewise.
75843         * tests/test-sigaction.c (main): Likewise.
75844         * tests/test-stat.c (main): Likewise.
75845         * tests/test-stat-time.c (main): Likewise.
75846         * tests/test-stddef.c (main): Likewise.
75847         * tests/test-stdint.c (main): Likewise.
75848         * tests/test-stdio.c (main): Likewise.
75849         * tests/test-stdlib.c (main): Likewise.
75850         * tests/test-strchrnul.c (main): Likewise.
75851         * tests/test-strerror.c (main): Likewise.
75852         * tests/test-string.c (main): Likewise.
75853         * tests/test-strtod.c (main): Likewise.
75854         * tests/test-strverscmp.c (main): Likewise.
75855         * tests/test-symlink.c (main): Likewise.
75856         * tests/test-symlinkat.c (main): Likewise.
75857         * tests/test-sys_stat.c (main): Likewise.
75858         * tests/test-sys_time.c (main): Likewise.
75859         * tests/test-time.c (main): Likewise.
75860         * tests/test-unistd.c (main): Likewise.
75861         * tests/test-unlink.c (main): Likewise.
75862         * tests/test-unlinkat.c (main): Likewise.
75863         * tests/test-utimens.c (main): Likewise.
75864         * tests/test-utimensat.c (main): Likewise.
75865         * tests/test-version-etc.c (main): Likewise.
75866         * tests/test-wchar.c (main): Likewise.
75867         * tests/test-wctype.c (main): Likewise.
75868         * tests/test-xprintf-posix.c (main): Likewise.
75869         * tests/test-posixtm.c (main): Likewise.
75870         (STREQ): Delete unused macro.
75871         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75872         shadowed variables.
75873         * tests/test-memchr.c (main): Likewise.
75875 2009-10-21  Eric Blake  <ebb9@byu.net>
75877         areadlinkat: avoid failure on older glibc
75878         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75879         rather than mis-comparing 0 against FUNC_RESULT of char*.
75881 2009-10-21  Bruno Haible  <bruno@clisp.org>
75883         * modules/stpncpy (License): Relicense under LGPLv2+.
75884         Reported by David Lutterkort <lutter@redhat.com>.
75886 2009-10-20  Eric Blake  <ebb9@byu.net>
75888         utimensat: work around Solaris 9 bug
75889         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75890         has trailing slash bugs.
75891         * tests/test-lutimens.h (test_lutimens): Enhance test.
75892         * tests/test-utimens.h (test_utimens): Likewise.
75893         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75894         * doc/posix-functions/utimes.texi (utimes): Likewise.
75895         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75896         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75897         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75898         * doc/posix-functions/futimens.texi (futimens): Likewise.
75900         fdutimensat: new module
75901         * modules/fdutimensat: New file.
75902         * lib/fdutimensat.c (fdutimensat): Likewise.
75903         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75904         * MODULES.html.sh (File system functions): Mention module.
75905         * modules/fdutimensat-tests: New test.
75906         * tests/test-fdutimensat.c: Likewise.
75908         doc: regenerate INSTALL
75909         * doc/INSTALL: Reflect recent autoconf update.
75910         * doc/INSTALL.ISO: Likewise.
75911         * doc/INSTALL.UTF-8: Likewise.
75913 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75915         acl: warn if ACL support is not detected
75916         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75918 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75920         * lib/nproc.h: Add extern "C" block for C++.
75922 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75923             Bruno Haible  <bruno@clisp.org>
75925         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75926         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75927         * doc/posix-functions/isalpha.texi: Likewise.
75928         * doc/posix-functions/isblank.texi: Likewise.
75929         * doc/posix-functions/iscntrl.texi: Likewise.
75930         * doc/posix-functions/isdigit.texi: Likewise.
75931         * doc/posix-functions/isgraph.texi: Likewise.
75932         * doc/posix-functions/islower.texi: Likewise.
75933         * doc/posix-functions/isprint.texi: Likewise.
75934         * doc/posix-functions/ispunct.texi: Likewise.
75935         * doc/posix-functions/isspace.texi: Likewise.
75936         * doc/posix-functions/isupper.texi: Likewise.
75937         * doc/posix-functions/isxdigit.texi: Likewise.
75939 2009-10-18  Bruno Haible  <bruno@clisp.org>
75941         Tests for module 'isblank'.
75942         * modules/isblank-tests: New file.
75943         * tests/test-isblank.c: New file.
75945         New module 'isblank'.
75946         * lib/isblank.c: New file.
75947         * m4/isblank.m4: New file.
75948         * modules/isblank: New file.
75949         * doc/posix-functions/isblank.texi: Mention the new module.
75951 2009-10-18  Bruno Haible  <bruno@clisp.org>
75953         New module 'ctype'.
75954         * lib/ctype.in.h: New file.
75955         * m4/ctype.m4: New file.
75956         * modules/ctype: New file.
75957         * doc/posix-headers/ctype.texi: Mention the new module.
75959 2009-10-18  Jim Meyering  <meyering@redhat.com>
75961         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75962         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75963         right after its initialization, rather than farther down.
75964         Keeping these in close proximity makes it easier to ensure
75965         that each such variable is initialized.  E.g.,
75967             LIB_CLOCK_GETTIME=
75968             AC_SUBST([LIB_CLOCK_GETTIME])
75970         This change also increments these serial numbers.
75971         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75972         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75975 2009-10-18  Bruno Haible  <bruno@clisp.org>
75977         Don't let environment variables perturb build.
75978         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75979         (gl_PREREQ_GETHRXTIME): ... not here.
75981 2009-10-18  Bruno Haible  <bruno@clisp.org>
75983         Avoid symlink attack in localcharset module.
75984         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75985         (O_NOFOLLOW): Define fallback.
75986         (get_charset_aliases): Don't open the file if it is a symbolic link.
75987         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75988         gl_FCNTL_H.
75989         (gl_FCNTL_H): Require it.
75990         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75991         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75992         Reported by Fergal Glynn <fglynn@veracode.com>.
75994 2009-10-18  Bruno Haible  <bruno@clisp.org>
75996         Implement nproc for mingw.
75997         * lib/nproc.c: Include <windows.h>
75998         (num_processors): On native Windows platforms, try GetSystemInfo.
76000 2009-10-18  Bruno Haible  <bruno@clisp.org>
76002         Implement nproc for IRIX.
76003         * lib/nproc.c: Include <sys/sysmp.h>.
76004         (num_processors): On IRIX systems, try sysmp.
76005         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
76007 2009-10-18  Bruno Haible  <bruno@clisp.org>
76009         Implement nproc for HP-UX.
76010         * lib/nproc.c: Include <sys/pstat.h>
76011         (num_processors): On HP-UX systems, try pstat_getdynamic.
76012         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
76013         pstat_getdynamic.
76015 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
76016             Bruno Haible  <bruno@clisp.org>
76018         Implement nproc for NetBSD, OpenBSD.
76019         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
76020         (ARRAY_SIZE): New macro.
76021         (num_processors): On BSD systems, try sysctl of HW_NCPU.
76022         * m4/nproc.m4: New file.
76023         * modules/nproc (Files): Add m4/nproc.m4.
76024         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
76025         (Makefile.am): Instead, augment lib_SOURCES.
76027 2009-10-18  Bruno Haible  <bruno@clisp.org>
76029         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
76030         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
76031         sys/param.h.
76033 2009-10-16  Eric Blake  <ebb9@byu.net>
76035         utimensat: new module
76036         * modules/utimensat: New file.
76037         * lib/utimensat.c (utimensat): Likewise.
76038         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76039         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
76040         so we can work around Linux bugs.
76041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76042         * modules/sys_stat (Makefile.am): Substitute them.
76043         * lib/sys_stat.in.h (utimensat): Declare it.
76044         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76045         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76046         * modules/utimensat-tests: New test.
76047         * tests/test-utimensat.c: Likewise.
76049         utimens: let lutimens work on non-symlinks
76050         * lib/utimens.c (lutimens): Fall back to utimens rather than
76051         failing with ENOSYS, when file is not a symlink.
76052         (utimens): Reduce redirection.
76053         * tests/test-lutimens.h (test_lutimens): Update test to cover
76054         non-symlinks.
76055         * tests/test-utimens.h (test_utimens): Update test to cover
76056         symlinks.
76057         * tests/test-utimens.c (main): Update caller.
76059         utimens: cache whether utimensat syscall works
76060         * lib/utimens.c (utimensat_works_really): New cache variable.
76061         (fdutimens, lutimens): Use it to avoid failing syscall.
76063         test-stat-time, test-utimens: improve portability
76064         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
76065         ext4 on alpha, and for cygwin.
76066         * tests/test-utimens-common.h: New file.
76067         (nap): Factor delays into single function.
76068         * tests/test-lutimens.h (test_lutimens): Use new header.
76069         * tests/test-futimens.h (test_futimens): Likewise.
76070         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
76071         timestamps to occur from same machine, as was done previously for
76072         test_utimens.
76073         * modules/utimens-tests (Files): Ship new file.
76074         * modules/futimens-tests (Files): Likewise.
76075         Reported in part by Jim Meyering.
76077         sys_stat: sort replacement declarations
76078         * lib/sys_stat.in.h: Sort declarations.
76079         * lib/futimens.c (futimens): Fix typo.
76081 2009-10-15  Jim Meyering  <meyering@redhat.com>
76083         don't let environment settings perturb build
76084         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
76085         could cause a configure-time and/or build-time malfunction.
76086         Typically, a configure-time function-in-library test is performed
76087         via code like this:
76089           LIB_VAR=
76090           AC_SUBST([LIB_VAR])
76091           prefix_saved_LIBS=$LIBS
76092             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
76093                        [test "$ac_cv_search_FUNC" = "none required" ||
76094                         LIB_VAR=$ac_cv_search_FUNC])
76095           LIBS=$prefix_saved_LIBS
76097         However, in each of the files affected by this change, the LIB_VAR=
76098         initialization was omitted.  Thus, when set in the environment, its
76099         value would propagate into generated Makefiles when FUNC is not found
76100         in LIB_NAME.
76101         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
76102         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76105 2009-10-14  Eric Blake  <ebb9@byu.net>
76107         fchdir: avoid infinite recursion in mingw
76108         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
76109         recursing.
76111         test-stat-time: port to mingw
76112         * tests/test-stat-time.c (force_unlink): Return a value.
76113         (test_ctime) [W32]: Fix compilation error.
76114         (nap): Don't call usleep with too large an argument.  Use
76115         force_unlink.
76116         * doc/pastposix-functions/usleep.texi (usleep): Document the
76117         portability issue.
76119 2009-10-13  Jim Meyering  <meyering@redhat.com>
76121         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
76122         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
76123         * modules/pipe-filter-ii: Likewise.
76124         * modules/sys_socket-tests: Likewise.
76125         * modules/tsearch-tests: Likewise.
76126         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
76127         (check): Depend on it.
76129 2009-10-12  Eric Blake  <ebb9@byu.net>
76131         utimens-tests: port to NFS file systems
76132         * tests/test-utimens.h (test_utimens): Refactor utimecmp
76133         comparisons to avoid spurious failures from timestamp drift
76134         between NFS machines.
76136 2009-10-12  Eric Blake  <ebb9@byu.net>
76138         stat-time-tests: minor cleanups
76139         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
76140         * tests/test-stat-time.c (nap): Separate assignment from call.
76141         Suggested by Paolo Bonzini and Bruno Haible.
76143         sys_stat: guarantee struct timespec
76144         * lib/sys_stat.in.h (includes): Always include <time.h>
76145         * modules/sys_stat (Depends-on): Add time.
76146         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
76147         mode_t permission values.
76148         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
76149         get at subsecond timestamps.
76151 2009-10-10  Eric Blake  <ebb9@byu.net>
76153         futimens: new module
76154         * modules/futimens: New file.
76155         * lib/futimens.c (futimens): Likewise.
76156         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
76157         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
76158         we can work around Linux bugs.
76159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76160         * modules/sys_stat (Makefile.am): Substitute them.
76161         * lib/sys_stat.in.h (futimens): Declare it.
76162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76163         * doc/posix-functions/futimens.texi (futimens): Likewise.
76164         * modules/futimens-tests: New test.
76165         * tests/test-futimens.c: Likewise.
76167         utimens: introduce fdutimens
76168         * lib/utimens.h (fdutimens): New prototype.
76169         * lib/utimens.c (gl_futimens): Move guts...
76170         (fdutimens): ...to new interface.
76171         * tests/test-utimens.c (do_fdutimens): Use it.
76173         utimens: add UTIME_NOW and UTIME_OMIT support
76174         * lib/utimens.c (validate_timespec, update_timespec): New helper
76175         functions.
76176         (gl_futimens, lutimens): Use them.
76177         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
76178         stdbool, sys_stat.
76179         (Link): Mention resulting library dependency.
76180         * modules/utimecmp (Link): Likewise.
76181         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
76182         (Makefile.am): Pick up library dependency.
76183         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
76184         definition.
76185         * tests/test-sys_stat.c: Test the definitions.
76186         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
76187         * NEWS: Document library dependency.
76189         utimecmp: support symlink timestamps
76190         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
76191         hashing when possible.  Use pathconf when available.
76192         (SYSCALL_RESOLUTION): Recognize tighter resolution.
76193         * modules/utimecmp (Depends-on): Add lstat.
76195         utimens: add lutimens interface
76196         * lib/utimens.c (lutimens): New function.
76197         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
76198         * lib/utimens.h (lutimens): Declare new interface.
76199         * tests/test-utimens.c (main): Enhance test.
76200         * tests/test-lutimens.h (test_lutimens): New file.
76201         * modules/utimens-tests (Files): Distribute it.
76202         (Depends-on): Add symlink.
76203         (configure.ac): Check for usleep.
76205         utimens: validate futimens usage
76206         * lib/utimens.c (gl_futimens): Require valid fd up front, using
76207         fewer syscalls on failure later on.  Avoid compiler warning on
76208         mingw.
76209         * modules/utimens (Depends-on): Add dup2.
76211         utimens: add test
76212         * modules/utimens-tests: New test.
76213         * tests/test-utimens.h: New file.
76214         * tests/test-futimens.h: Likewise.
76215         * tests/test-utimens.c: Likewise.
76217         doc: mention timestamp portability issues
76218         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
76219         instead.
76220         * doc/posix-functions/utime.texi (utime): Likewise.
76221         * doc/posix-functions/utimes.texi (utimes): Likewise.
76222         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
76223         instead.
76224         * doc/posix-functions/futimens.texi (futimens): Mention utimens
76225         module.
76226         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76227         Mention weakness with symlink timestamps.
76228         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
76229         to utimensat/futimens instead.
76230         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
76232         test-dup2: enhance test
76233         * tests/test-dup2.c (main): Also check AT_FDCWD.
76235         test-stat-time: avoid more spurious failures
76236         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
76237         xfs; and avoid race if the two timestamps cross quantization edge.
76239         relocatable: prefer 'file system' over 'filesystem'
76240         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
76241         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
76242         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
76243         * doc/relocatable.texi (Enabling Relocatability): Likewise.
76244         * lib/relocatable.c (compute_curr_prefix): Likewise.
76246 2009-10-10  Jim Meyering  <meyering@redhat.com>
76248         stat-time-tests: check for the usleep function
76249         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
76251 2009-10-10  Bruno Haible  <bruno@clisp.org>
76253         * modules/xnanosleep: Put the Link section after the Include section.
76255 2009-10-09  Eric Blake  <ebb9@byu.net>
76257         dup2: work around FreeBSD 6.1 bug
76258         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
76259         * doc/posix-functions/dup2.texi (dup2): Document it.
76260         Reported by Nelson H. F. Beebe and Jim Meyering.
76262         test-stat-time: port to buggy NFS clients
76263         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
76264         (test_ctime): Also skip test if mtime and ctime are skewed.
76266         maint: prefer 'file system' over 'filesystem'
76267         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76268         * doc/posix-functions/lstat.texi (lstat): Likewise.
76269         * lib/file-has-acl.c (file_has_acl): Likewise.
76270         * lib/fwriteerror.c [TEST]: Likewise.
76271         * tests/test-areadlink.h (test_areadlink): Likewise.
76272         * tests/test-areadlinkat-with-size.c (main): Likewise.
76273         * tests/test-areadlinkat.c (main): Likewise.
76274         * tests/test-canonicalize-lgpl.c (main): Likewise.
76275         * tests/test-canonicalize.c (main): Likewise.
76276         * tests/test-fstatat.c (main): Likewise.
76277         * tests/test-linkat.c (main): Likewise.
76278         * tests/test-lstat.h (test_lstat_func): Likewise.
76279         * tests/test-mkdir.h (test_mkdir): Likewise.
76280         * tests/test-readlink.h (test_readlink): Likewise.
76281         * tests/test-remove.c (main): Likewise.
76282         * tests/test-rename.h (test_rename): Likewise.
76283         * tests/test-renameat.c (main): Likewise.
76284         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76285         * tests/test-symlink.h (test_symlink): Likewise.
76286         * tests/test-symlinkat.c (main): Likewise.
76287         * tests/test-unlink.h (test_unlink_func): Likewise.
76288         * tests/test-unlinkat.c (main): Likewise.
76290         maint: make realtime library usage explicit
76291         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
76292         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
76293         * modules/settime (Link): Likewise.
76294         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
76296         test-stat-time: speed up execution
76297         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
76298         warning on mingw.
76299         (nap): New helper function.
76300         (prepare_test): Use it to reduce sleep time.
76301         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
76302         execution.
76303         * modules/stat-time-tests (configure.ac): Check for usleep.
76305 2009-10-09  Jim Meyering  <meyering@redhat.com>
76307         selinux-h: always use getfilecon wrappers
76308         * lib/getfilecon.c: New file.
76309         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
76310         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
76311         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
76312         (fgetfilecon): Provide a stub.
76313         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
76314         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
76315         file unconditionally.
76316         When <selinux/selinux.h> is found, arrange to use wrappers.
76317         * modules/selinux-h (Files): Add getfilecon.c.
76318         (Makefile.am): Substitute include-next-related bits
76319         into the now-always-generated selinux/selinux.h file.
76320         * doc/glibc-functions/lgetfilecon.texi: New file.
76321         * doc/glibc-functions/fgetfilecon.texi: New file.
76322         * doc/glibc-functions/getfilecon.texi: New file.
76323         * doc/glibc-functions/getfilecon-desc.texi: New file.
76324         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
76325         which to pull in the new files.
76326         * MODULES.html.sh (Misc): Add selinux-h.
76328 2009-10-08  Jim Meyering  <meyering@redhat.com>
76330         unistd: fix comment typo
76331         * lib/unistd.in.h (euidaccess): Fix a comment typo.
76333 2009-10-08  Eric Blake  <ebb9@byu.net>
76335         areadlink: use SIZE_MAX consistently
76336         * modules/areadlink (Depends-on): Add stdint.
76337         * modules/areadlink-with-size (Depends-on): Likewise.
76338         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
76339         gives NULL; drop sys/types, since unistd gives size_t; and add
76340         stdint for SIZE_MAX.
76341         (SIZE_MAX): Rely on headers.
76342         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
76343         and add stdint.
76344         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
76345         (SIZE_MAX): Likewise.
76346         (INITIAL_BUF_SIZE): Turn into enum.
76347         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
76349 2009-10-08  Jim Meyering  <meyering@redhat.com>
76351         areadlinkat: avoid compilation failure
76352         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
76353         Fix typo in comment.
76355 2009-10-07  Eric Blake  <ebb9@byu.net>
76357         areadlinkat-with-size: new module
76358         * modules/areadlinkat-with-size: New module.
76359         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
76360         * lib/areadlink.h (areadlinkat): Declare it.
76361         * MODULES.html.sh (File system functions): Mention it.
76362         * modules/areadlinkat-with-size-tests: New test.
76363         * tests/test-areadlinkat-with-size.c: New file.
76365         xreadlinkat: new module
76366         * modules/xreadlinkat: New module.
76367         * lib/xreadlinkat.c (xreadlinkat): New file.
76368         * lib/xreadlink.h (xreadlinkat): Declare it.
76369         * MODULES.html.sh (File system functions): Mention it.
76371         areadlinkat: new module
76372         * lib/at-func.c (FUNC_FAIL): New define.
76373         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
76374         * modules/areadlinkat: New module.
76375         * lib/linkat.c (areadlinkat): Move...
76376         * lib/areadlinkat.c (areadlinkat): ...to new file.
76377         * lib/areadlink.h (areadlinkat): Declare it.
76378         * modules/linkat (Depends-on): Add areadlinkat.
76379         * MODULES.html.sh (File system functions): Mention it.
76380         * modules/areadlinkat-tests: New test.
76381         * tests/test-areadlinkat.c: New file.
76383         areadlink, areadlink-with-size: add tests
76384         * modules/areadlink-tests: New test.
76385         * modules/areadlink-with-size-tests: Likewise.
76386         * tests/test-areadlink.h: New file.
76387         * tests/test-areadlink.c: Likewise.
76388         * tests/test-areadlink-with-size.c: Likewise.
76390         maint: minor cleanups
76391         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
76392         _UNUSED_PARAMETER_ instead.
76393         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
76394         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
76395         * modules/linkat-tests (Files): Distribute test-link.h.
76397         openat, utimens: whitespace cleanup
76398         * lib/openat.c: Prefer space throughout, rather than mix of 8
76399         spaces vs. tabs.
76400         * lib/at-func.c: Likewise.
76401         * lib/utimens.c: Likewise.
76403         openat: avoid using wrong fd
76404         * lib/openat.c (openat_permissive): Reject user's fd if saving the
76405         working directory chooses same fd.
76406         * lib/at-func.c (AT_FUNC_NAME): Likewise.
76408         mkdir, mkdirat: fix cygwin 1.5.x bug
76409         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
76410         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
76411         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
76412         bug.
76413         (gl_PREREQ_MKDIR): Delete unused macro.
76414         * modules/mkdir (Files): Track file rename.
76415         (configure.ac): Update macro name.
76416         * modules/openat (Depends-on): Add mkdir.
76417         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
76419         mkdir, mkdirat: add tests
76420         * modules/mkdir-tests: New test.
76421         * tests/test-mkdir.h: New file.
76422         * tests/test-mkdir.c: Likewise.
76423         * tests/test-mkdirat.c: Likewise.
76424         * modules/openat-tests (Files): Add new files.
76425         (Makefile.am): Run new test.
76427 2009-10-06  Eric Blake  <ebb9@byu.net>
76429         doc: tweak *at function documentation
76430         * doc/posix-functions/faccessat.texi (faccessat): Mention
76431         known issue with replacement.
76432         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
76433         * doc/posix-functions/linkat.texi (linkat): Likewise.
76434         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76435         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76436         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76437         * doc/posix-functions/renameat.texi (renameat): Likewise.
76438         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76440         openat: fix GNU/Hurd bug in unlinkat
76441         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
76442         broken.
76443         * doc/posix-functions/unlink.texi (unlink): Document this.
76444         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
76446         fdopendir: fix GNU/Hurd bug
76447         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
76448         allowing non-directory fds.
76449         * lib/fdopendir.c (rpl_fdopendir): Work around it.
76450         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
76451         * modules/dirent (Makefile.am): Substitute it.
76452         * lib/dirent.in.h (fdopendir): Declare replacement.
76453         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
76454         * tests/test-fdopendir.c (main): Test something other than
76455         /dev/null, since on Hurd that behaves like a directory.
76457         test-symlink: port to GNU/Hurd
76458         * tests/test-symlink.h (test_symlink): Relax expected errno.
76460         doc: tweak more cygwin information
76461         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
76462         now compatible with glibc.
76463         * doc/posix-functions/getopt.texi (getopt): Likewise.
76465         getopt-gnu: add another test
76466         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
76467         guarantee behavior relied on by m4.
76468         * tests/test-getopt.c (main): Use it.
76469         * modules/getopt-posix-tests (Depends-on): Add setenv.
76470         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
76472         getopt: fix compilation on darwin
76473         * lib/getopt.in.h (includes): Leave breadcrumbs during system
76474         include.
76475         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
76476         Reported by Ludovic Courtès.
76478 2009-10-06  Bruno Haible  <bruno@clisp.org>
76480         * modules/size_max (Description): Discourage its use.
76481         Reported by Simon Josefsson.
76483 2009-10-06  Jim Meyering  <meyering@redhat.com>
76485         linkat: avoid compilation failure
76486         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
76488 2009-10-05  Eric Blake  <ebb9@byu.net>
76490         linkat: support Linux 2.6.17
76491         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
76492         linkat on Linux, but allow cache variable override.
76493         * lib/linkat.c (rpl_linkat): Define override.
76494         * modules/linkat (Depends-on): Add symlinkat.
76495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
76496         * modules/unistd (Makefile.am): Substitute it.
76497         * lib/unistd.in.h (linkat): Declare replacement.
76498         Reported by Pádraig Brady.
76500         quotearg: port test to systems with C.UTF-8 locale
76501         * tests/test-quotearg.c (struct result_strings): Add another
76502         member, differentiating between C.ASCII and C.UTF-8 handling.
76503         (compare_strings): Add parameter.
76504         (main): Adjust all callers.
76506         getopt: avoid clash with FreeBSD _getopt_internal
76507         * lib/getopt.in.h (_getopt_internal): Override the name.
76508         * lib/getopt_int.h (includes): Pick up any overrides.
76509         Reported by Reuben Thomas.
76511         hash: allow C89 compilation
76512         * lib/hash.c (check_tuning): Move declaration before statement.
76513         Reported by Reuben Thomas.
76515 2009-10-05  Karl Berry  <karl@gnu.org>
76517         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
76519 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
76520             Bruno Haible  <bruno@clisp.org>
76522         * lib/uname.c (uname): Use a table-driven algorithm to compute
76523         Windows NT versions.
76525 2009-10-04  Bruno Haible  <bruno@clisp.org>
76527         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
76528         program_invocation_short_name.
76529         * modules/progname (configure.ac): Test for presence of
76530         program_invocation_short_name.
76531         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76533 2009-10-04  Bruno Haible  <bruno@clisp.org>
76535         * lib/progname.c (set_program_name): Fix comment.
76536         Reported by Jim Meyering.
76538 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76539             Bruno Haible  <bruno@clisp.org>
76541         * lib/uname.c: Include <string.h>.
76542         (uname): Do only one call to GetVersionEx in the common case.
76544 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76545             Bruno Haible  <bruno@clisp.org>
76547         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
76548         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
76549         (uname): Add support for Windows CE and various non-x86 CPU types.
76551 2009-10-03  Bruno Haible  <bruno@clisp.org>
76553         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
76554         invocation to tests/configure.ac.
76555         Reported by Ian Beckwith <ianb@erislabs.net>.
76557 2009-10-02  Eric Blake  <ebb9@byu.net>
76559         fchdir: avoid compiler warning
76560         * lib/fchdir.c (canonicalize_file_name)
76561         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
76563         test-open: support mingw errno values
76564         * tests/test-open.h (test_open): Relax test.
76565         * tests/test-fopen.h (test_fopen): Likewise.
76566         * tests/test-openat-safer.c (main): Likewise.
76568         open: fix opening directory on mingw
76569         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
76571         test-open: on GNU/Hurd, /dev/null is a directory
76572         * tests/test-fopen.h (main): Rename...
76573         (test_fopen): ...to this.  Use a guaranteed non-directory when
76574         confirming open behavior on trailing slash.
76575         * tests/test-openat-safer.c (main): Likewise.
76576         * tests/test-open.h (main): Likewise....
76577         (test_open): ...to this.
76578         * tests/test-fopen.c (main): Adjust caller.
76579         * tests/test-fopen-safer.c (main): Likewise.
76580         * tests/test-open.c (main): Likewise.
76581         * tests/test-fcntl-safer.c (main): Likewise.
76582         Reported by Samuel Thibault.
76584         rename, fchdir: don't ignore chdir failure
76585         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
76586         * lib/rename.c (rpl_rename) [W32]: Likewise.
76587         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76588         an empty destination directory if source cannot be renamed,
76589         although there is still possibility for failure.
76590         * doc/posix-functions/rename.texi (rename): Document the race.
76591         Reported by Jim Meyering.
76593         maint: cleanup whitespace in recent commits
76594         * lib/rename.c (rpl_rename): Remove tabs.
76595         * tests/test-link.h (test_link): Likewise.
76596         * lib/fchdir.c (get_name): Likewise.
76597         Reported by Jim Meyering.
76599 2009-10-02  Ben Pfaff  <blp@gnu.org>
76601         relocatable-prog-wrapper: Add missing dependency on
76602         double-slash-root.
76603         * modules/relocatable-prog-wrapper: Add dependency.
76604         Reported by Ian Beckwith <ianb@erislabs.net>.
76606 2009-10-02  Eric Blake  <ebb9@byu.net>
76608         renameat: fix Solaris bugs
76609         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76610         needed fixing.
76611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76612         * modules/stdio (Makefile.am): Substitute it.
76613         * lib/stdio.in.h (renameat): Declare replacement.
76614         * lib/renameat.c (rpl_renameat): Implement fix.
76616         renameat: new module
76617         * modules/renameat: New file.
76618         * lib/renameat.c (renameat): Likewise.
76619         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76621         * modules/stdio (Makefile.am): Substitute them.
76622         * lib/stdio.in.h (renameat): Declare it.
76623         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76624         * doc/posix-functions/renameat.texi (renameat): Likewise.
76625         * modules/renameat-tests: New test.
76626         * tests/test-renameat.c: Likewise.
76628         rename: fix mingw bugs
76629         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76630         directory overwrite bugs.
76632         rename: fix another cygwin 1.5 bug
76633         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76634         checks.
76635         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76636         unnecessary cygwin workarounds.  Also work around bug with moving
76637         full directory onto an empty one.
76638         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76640         rename-dest-slash: merge into rename module
76641         * modules/rename-dest-slash (Status): Mark obsolete.
76642         (Depends-on): Add rename.
76643         (Files): Let rename do it all.
76644         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76645         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76646         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76647         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76648         * lib/rename.c (rpl_rename): Update comments.
76650         rename: fix cygwin 1.5.x bugs
76651         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76652         * lib/rename.c (rpl_rename): Work around them.
76653         * modules/rename (Depends-on): Add same-inode.
76655         rename: fix Solaris 10 bug
76656         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76657         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76658         was the only bug.
76660         rename: fix Solaris 9 bug
76661         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76662         on non-directory.  Avoid calling exit.
76663         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76664         strdup.
76665         * modules/rename-tests (Depends-on): Drop lstat.
76666         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76667         (gl_PREREQ_RENAME): Delete unused macro.
76669         rename-dest-slash: fix NetBSD bug
76670         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76671         links.
76672         * modules/rename-dest-slash (Depends-on): Add same-inode.
76674         rename-tests: new test, exposes several platform bugs
76675         * modules/rename-tests: New file.
76676         * tests/test-rename.h: Likewise.
76677         * tests/test-rename.c: Likewise.
76678         * doc/posix-functions/rename.texi (rename): Improve documentation,
76679         including bugs that will eventually be fixed in gnulib.
76681 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76683         * lib/uname.c: Include <stdlib.h>
76684         (uname): Assume version info is available.
76686 2009-10-02  Jim Meyering  <meyering@redhat.com>
76688         gnu-web-doc-update: correct --help output
76689         * build-aux/gnu-web-doc-update: Make --help output relevant.
76691         gnu-web-doc-update: add standard options
76692         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76694         gnu-web-doc-update: New module.
76695         Use this script to automatically update the on-line web documentation
76696         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76697         * modules/gnu-web-doc-update: New file, from coreutils.
76698         * build-aux/gnu-web-doc-update: New script.
76700 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76702         link: LoadLibrary is not needed.
76703         * lib/link.c: Use GetModuleHandle.
76705 2009-10-01  Eric Blake  <ebb9@byu.net>
76707         getopt: bump serial number
76708         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76709         change.
76711         tests: tighten link, rmdir, and remove tests
76712         * tests/test-link.h (includes): No need to use <config.h> here.
76713         Clean up if directory hard link was created, otherwise test for
76714         trailing '.'.
76715         * tests/test-linkat.c (main): Simplify.
76716         * tests/test-remove.c (main): Enhance test for trailing '.'.
76717         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76719 2009-10-01  Jim Meyering  <meyering@redhat.com>
76721         maint.mk: requiring "make major" was annoying, for a "minor" release.
76722         What is intended is "stable", to contrast with alpha and beta,
76723         so require "make stable", not "make major".
76724         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76725         (get_tool_versions): Likewise.
76726         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76728 2009-09-30  Ben Pfaff  <blp@gnu.org>
76730         Fix broken build of replacement for Windows tmpfile().
76731         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76732         flags argument added along with the 'mkostemp' module.
76734 2009-09-28  Bruno Haible  <bruno@clisp.org>
76736         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76737         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76738         to 'remove_elt'.
76739         (gl_list_remove): Update.
76740         * lib/gl_list.c (gl_list_remove): Update.
76741         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76742         to 'remove_elt'.
76743         (gl_oset_remove): Update.
76744         * lib/gl_list.c (gl_oset_remove): Update.
76745         Reported by Eric Blake.
76747 2009-09-28  Eric Blake  <ebb9@byu.net>
76749         doc: mention yet more cygwin 1.7 status
76750         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76751         cygwin.
76752         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76753         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76755         argp: fix test failure
76756         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76757         that are not upper-case.  Pass correct range to tolower.
76759 2009-09-27  Jim Meyering  <meyering@redhat.com>
76761         test-yesno: work around sparc-dash here-document infelicity
76762         Without this change, the literal \177 byte in a here document
76763         would make dash 0.5.5.1-3 access uninitialized memory.
76764         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76765         Instead, use a marker, "@", and filter through tr to create the desired
76766         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76768 2009-09-27  Bruno Haible  <bruno@clisp.org>
76770         Disable untested support for new flavours of ACLs on AIX.
76771         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76772         progress.
76773         * lib/set-mode-acl.c (qset_acl): Likewise.
76775 2008-12-07  Bruno Haible  <bruno@clisp.org>
76777         Add support for new flavours of ACLs on AIX. (Untested.)
76778         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76779         (file_has_acl): Add support for newer AIX.
76780         * lib/set-mode-acl.c (qset_acl): Likewise.
76781         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76782         Rainer Tammer <tammer@tammer.net>.
76784 2009-09-26  Eric Blake  <ebb9@byu.net>
76786         argp: fix compilation of getopt
76787         * lib/getopt.in.h (includes): Use different guard than glibc.
76788         Reported by Sergey Poznyakoff.
76790         doc: mention more cygwin 1.7 status
76791         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76792         bug.
76793         * doc/posix-functions/execl.texi (execl): Likewise.
76794         * doc/posix-functions/execle.texi (execle): Likewise.
76795         * doc/posix-functions/execlp.texi (execlp): Likewise.
76796         * doc/posix-functions/execv.texi (execv): Likewise.
76797         * doc/posix-functions/execve.texi (execve): Likewise.
76798         * doc/posix-functions/execvp.texi (execvp): Likewise.
76799         * doc/glibc-functions/canonicalize_file_name.texi
76800         (canonicalize_file_name): Cygwin 1.7 now provides this.
76801         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76802         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76803         on AT_SYMLINK_NOFOLLOW.
76805 2009-09-24  Eric Blake  <ebb9@byu.net>
76807         test-linkat: make test more robust
76808         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76810         getopt: fix inclusion guards for cygwin
76811         * modules/getopt-posix (Depends-on): Add include-next.
76812         (Makefile.am): Substitute more items in replacement header.
76813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76814         <getopt.h>.
76815         * lib/getopt.in.h (includes): Use split inclusion guard, and
76816         prefer <getopt.h> over include <unistd.h> when one is present.
76817         (option): Also override name of 'struct option'.
76819         same-inode: revert prior change; it is not yet ready
76820         * NEWS: Undo mention of this change.
76821         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76822         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76823         * lib/cycle-check.c (cycle_check): Likewise.
76824         * lib/same.c (same_name): Likewise.
76825         * lib/at-func2.c (at_func2): Likewise.
76827 2009-09-23  Eric Blake  <ebb9@byu.net>
76829         linkat: new module
76830         * modules/linkat: New file.
76831         * lib/at-func2.c (at_func2): Likewise.
76832         * lib/linkat.c (linkat): Likewise.
76833         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76834         * lib/openat-priv.h (at_func2): Add declaration.
76835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76836         * modules/unistd (Makefile.am): Substitute them.
76837         * lib/unistd.in.h (linkat): Declare it.
76838         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76839         * doc/posix-functions/linkat.texi (linkat): Likewise.
76840         * doc/posix-functions/link.texi (link): Tweak wording.
76841         * tests/test-link.c (main): Move guts...
76842         * tests/test-link.h (test_link): ...into new file.
76843         * modules/linkat-tests: New test.
76844         * tests/test-linkat.c: Likewise.
76845         * modules/link-tests (Files): Ship new file.
76846         (Depends-on): Add stdbool.
76848         dirname: add library-safe mdir_name
76849         * lib/dirname.h (mdir_name): New prototype.
76850         * lib/dirname.c (dir_name): Move guts...
76851         (mdir_name): ...to new function that avoids xalloc_die.
76853         fchdir: another mingw fix
76854         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76855         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76856         on mingw (where it has not yet been ported), and make it optional
76857         elsewhere.
76858         (_gl_register_fd): Use it.
76860         same-inode: make SAME_INODE tri-state, to port to mingw
76861         * NEWS: Mention this change.
76862         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76863         st_ino always being 0.
76864         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76865         * lib/cycle-check.c (cycle_check): Likewise.
76866         * lib/same.c (same_name): Likewise.
76868         lstat: avoid mingw compilation error
76869         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76870         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76871         lstat ourselves.
76872         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76873         was adequate.
76874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76875         the checks for lstat.
76876         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76878         link: fix test failure on Solaris 9
76879         * lib/link.c (rpl_link): Don't assume link will catch bogus
76880         trailing slash on source.
76882         test-symlinkat: enhance test
76883         * tests/test-readlink.c (main): Move guts...
76884         * tests/test-readlink.h (test_readlink): ...into new file.
76885         * tests/test-symlink.c (main): Move guts...
76886         * tests/test-symlink.h (test_symlink): ...into new file.
76887         * tests/test-symlinkat.c (main): Use new files for further
76888         coverage.
76889         (do_symlink, do_readlink): New helper functions.
76890         * modules/symlink-tests (Files): Ship new file.
76891         (Depends-on): Add stdbool.
76892         * modules/readlink-tests (Files): Ship new file.
76893         (Depends-on): Add stdbool.
76894         * modules/symlinkat-tests (Files): Use new files.
76896 2009-09-23  Eric Blake  <ebb9@byu.net>
76898         readlink: document portability issue with symlink length
76899         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76900         systems have bogus st_size on symlinks, and mention the
76901         areadlink-with-size module.
76902         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76903         * doc/posix-functions/readlink.texi (readlink): Mention the
76904         areadlink module, and ERANGE failure.
76905         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76906         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76908         readlink: fix Solaris 9 bug with trailing slash
76909         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76910         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76911         * doc/posix-functions/readlink.texi (readlink): Document this.
76912         * modules/readlink-tests: New test.
76913         * tests/test-readlink.c: Likewise.
76915         readlink: fix cygwin 1.5.x bug with return type
76916         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76917         * lib/unistd.in.h (readlink): Use ssize_t.
76918         * lib/readlink.c (readlink): Likewise.
76919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76920         * modules/unistd (Makefile.am): Substitute it.
76921         * lib/unistd.in.h (readlink): Declare replacement.
76922         * doc/posix-functions/readlink.texi (readlink): Document this.
76924         symlink: use throughout gnulib
76925         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76926         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76927         symlink is not used.
76928         * modules/symlinkat (Depends-on): Add symlink.
76929         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76930         * modules/canonicalize-tests (Depends-on): Likewise.
76931         * modules/lstat-tests (Depends-on): Likewise.
76932         * modules/openat-tests (Depends-on): Likewise.
76933         * modules/remove-tests (Depends-on): Likewise.
76934         * modules/rmdir-tests (Depends-on): Likewise.
76935         * modules/unlink-tests (Depends-on): Likewise.
76936         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76937         * tests/test-canonicalize.c (symlink): Likewise.
76938         * tests/test-fstatat.c (symlink): Likewise.
76939         * tests/test-lstat.c (symlink): Likewise.
76940         * tests/test-remove.c (symlink): Likewise.
76941         * tests/test-rmdir.c (symlink): Likewise.
76942         * tests/test-unlink.c (symlink): Likewise.
76943         * tests/test-unlinkat.c (symlink): Likewise.
76945         symlink: new module, for Solaris 9 bug
76946         * modules/symlink: New file.
76947         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76948         * lib/symlink.c: Likewise.
76949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76950         * modules/unistd (Makefile.am): Substitute them.
76951         * lib/unistd.in.h (symlink): Declare replacement.
76952         * MODULES.html.sh (File system functions): Mention it.
76953         * doc/posix-functions/symlink.texi (symlink): Likewise.
76954         * modules/symlink-tests: New test.
76955         * tests/test-symlink.c: Likewise.
76957 2009-09-23  Bruno Haible  <bruno@clisp.org>
76959         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76960         when needed.
76961         Test case: gnulib-tool --import --with-tests atexit inttypes.
76962         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76964 2009-09-23  Bruno Haible  <bruno@clisp.org>
76966         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76967         subcommand, not in a subshell.
76969 2009-09-22  Eric Blake  <ebb9@byu.net>
76971         unistd: sort replacement declarations
76972         * lib/unistd.in.h: Sort declarations.
76974         open, openat: minor optimization
76975         * lib/open.c (open): If open succeeded, len is non-zero.
76976         * lib/openat.c (rpl_openat): Likewise.
76978         link-follow: ensure correct result
76979         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76980         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76981         distinguish between possible failures.
76983 2009-09-21  Eric Blake  <ebb9@byu.net>
76985         fts: avoid compiler warning
76986         * lib/fts.c (dirent_inode_sort_may_be_useful)
76987         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76989 2009-09-19  Bruno Haible  <bruno@clisp.org>
76991         * lib/progreloc.c (canonicalize_file_name): New declaration.
76993 2009-09-19  Eric Blake  <ebb9@byu.net>
76995         link: fix quoting
76996         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76998         openat: fix openat bugs on Solaris 9
76999         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
77000         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
77001         * modules/openat (Depends-on): Add open.
77002         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
77003         * modules/fcntl-h (Makefile.am): Substitute it.
77004         * lib/fcntl.in.h (openat): Declare replacement.
77005         * doc/posix-functions/openat.texi (openat): Document this.
77007         openat: move fstatat and unlinkat into correct files
77008         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
77009         compiled.
77010         * lib/openat.c (fstatat, unlinkat): Move...
77011         * lib/fstatat.c (fstatat): ...into correct files.
77012         * lib/unlinkat.c (unlinkat): Likewise.
77014         openat: fix unlinkat bugs on Solaris 9
77015         * lib/unlinkat.c (unlinkat): New file.
77016         * modules/openat (Depends-on): Add unlink.
77017         (Files): Distribute it.
77018         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
77019         trailing slash behavior is broken.
77020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77021         * modules/unistd (Makefile.am): Substitute it.
77022         * lib/unistd.in.h (unlinkat): Declare replacement.
77023         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
77025         openat: fix fstatat bugs on Solaris 9
77026         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
77027         stat.
77028         * doc/posix-functions/fstatat.texi (fstatat): Document this.
77030         test-unlinkat: enhance test, to expose Solaris 9 bug
77031         * tests/test-unlink.c (main): Factor guts...
77032         * tests/test-unlink.h (test_rmdir_func): ...into new file.
77033         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
77034         * tests/test-rmdir.c (main): Adjust caller.
77035         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
77036         (unlinker): New helper function.
77037         (rmdirat): Enhance check.
77038         * modules/rmdir-tests (Depends-on): Add stdbool.
77039         * modules/unlink-tests (Depends-on): Likewise.
77040         (Files): Add test-unlink.h.
77041         * modules/openat-tests (Files): Likewise.
77042         (Depends-on): Add unlinkdir.
77044         test-fstatat: new test, to expose Solaris 9 bugs
77045         * tests/test-stat.c (main): Factor guts...
77046         * tests/test-stat.h (test_stat_func): ...into new file.
77047         * tests/test-lstat.c (main): Factor guts...
77048         * tests/test-lstat.h (test_lstat_func): ...into new file.
77049         * tests/test-fstatat.c: New file.
77050         * modules/stat-tests (Files): Add test-stat.h.
77051         * modules/lstat-tests (Files): Add test-lstat.h.
77052         (Depends-on): Add stdbool.
77053         * modules/openat-tests (Depends-on): Add pathmax.
77054         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
77055         (Makefile.am): Run new test.
77057         remove: new module, for mingw and Solaris 9 bugs
77058         * modules/remove: New file.
77059         * lib/remove.c: Likewise.
77060         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
77061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
77062         * modules/stdio (Makefile.am): Use them.
77063         * lib/stdio.in.h (remove): Declare replacement.
77064         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77065         * doc/posix-functions/remove.texi (remove): Likewise.
77066         * modules/remove-tests: New test.
77067         * tests/test-remove.c: Likewise.
77069         unlink: new module, for Solaris 9 bug
77070         * modules/unlink: New file.
77071         * lib/unlink.c: Likewise.
77072         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
77073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77074         * modules/unistd (Makefile.am): Use them.
77075         * lib/unistd.in.h (stat): Declare replacement.
77076         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77077         * doc/posix-functions/unlink.texi (unlink): Likewise.
77078         * modules/unlink-tests: New test.
77079         * tests/test-unlink.c: Likewise.
77081         lstat: fix Solaris 9 bug
77082         * lib/lstat.c (lstat): Also check for trailing slash on
77083         non-symlink, non-directories.  Use stat module to simplify logic.
77084         * doc/posix-functions/lstat.texi (lstat): Document it.
77085         * modules/lstat-tests (Depends-on): Add errno, same-inode.
77086         (configure.ac): Check for symlink.
77087         * tests/test-lstat.c (main): Add more tests.
77089         stat: add as dependency to other modules
77090         * modules/chown (Depends-on): Add stat.
77091         * modules/euidaccess (Depends-on): Likewise.
77092         * modules/fchdir (Depends-on): Likewise.
77093         * modules/isdir (Depends-on): Likewise.
77094         * modules/link (Depends-on): Likewise.
77095         * modules/lstat (Depends-on): Likewise.
77096         * modules/mkdir-p (Depends-on): Likewise.
77097         * modules/modechange (Depends-on): Likewise.
77098         * modules/open (Depends-on): Likewise.
77099         * modules/readlink (Depends-on): Likewise.
77100         * modules/same (Depends-on): Likewise.
77102         stat: fix Solaris 9 bug
77103         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
77104         slash.
77105         * lib/stat.c (rpl_stat): Work around it.
77106         * doc/posix-functions/stat.texi (stat): Update documentation.
77108         stat: new module, for mingw bug
77109         * modules/stat: New file.
77110         * lib/stat.c: Likewise.
77111         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
77112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77113         * modules/sys_stat (Makefile.am): Use them.
77114         * lib/sys_stat.in.h (stat): Declare replacement.
77115         * lib/openat.c (fstatat): Deal with lstat and stat being function
77116         macros.
77117         * modules/openat (Depends-on): Add inline.
77118         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77119         * doc/posix-functions/stat.texi (stat): Likewise.
77120         * modules/stat-tests: New test.
77121         * tests/test-stat.c: Likewise.
77123 2009-09-19  Jim Meyering  <meyering@redhat.com>
77125         syntax-check: detect unnecessary inclusion of canonicalize.h
77126         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
77128 2009-09-19  Eric Blake  <ebb9@byu.net>
77130         canonicalize-lgpl: adjust clients to use correct header
77131         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77132         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
77133         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
77134         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
77135         * lib/progreloc.c (includes): Likewise.
77137 2009-09-19  Jim Meyering  <meyering@redhat.com>
77139         test-posixtm.c: correct a comment
77140         * tests/test-posixtm.c: Correct first-line comment.
77141         Spotted by Eric Blake.
77143 2009-09-16  Jim Meyering  <meyering@redhat.com>
77145         posixtm-tests: make T const-correct; add a test case
77146         * tests/test-posixtm.c (T): Declare const.
77147         Add a test for -(2^31+1).
77148         Remove useless can-succeed-only-in-2002 test.
77150         posixtm-tests: adjust the sole failing test
77151         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
77152         expected output matches what mktime now produces.  Cross-checked via
77153         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
77155         posixtm: move #ifdef'd tests into a new module
77156         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
77157         * tests/test-posixtm.c: ... this new file.
77158         * modules/posixtm-tests: New module.
77160 2009-09-19  Eric Blake  <ebb9@byu.net>
77162         openat: simplify use of at-func.c
77163         * lib/at-func.c (includes): Include prerequisites here, to
77164         simplify requirements on client files.
77165         * lib/openat-priv.h: Add double-inclusion guard.
77166         * lib/faccessat.c (includes): Simplify.
77167         * lib/fchmodat.c (includes): Likewise.
77168         * lib/fchownat.c (includes): Likewise.
77169         * lib/mkdirat.c (includes): Likewise.
77170         * lib/mkfifoat.c (includes): Likewise.
77171         * lib/symlinkat.c (includes): Likewise.
77173         openat: allow return of fd 0
77174         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
77175         * modules/save-cwd (Depends-on): Replace fcntl-safer with
77176         unistd-safer.
77177         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
77178         <fcntl.h>; this module does not leak fds.
77179         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
77180         must be allowed to return 0, leaving openat_safer to add the
77181         safety.
77182         (openat_permissive): Avoid writing to just-opened fd 2 if
77183         restoring the current directory fails.
77184         * lib/openat-die.c (openat_restore_fail): Add comment.
77185         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
77186         (save_cwd): Guarantee safe fd, but without use of open_safer.
77187         * tests/test-openat.c: New test.
77188         * modules/openat-tests (Files, Makefile.am): Distribute and build
77189         new file.
77191         relocatable-prog-wrapper: fix build
77192         * modules/relocatable-prog-wrapper (Files): Update name of
77193         canonicalize m4 file, broken on 2009-09-17.
77194         Reported by emad hajjar <aleppos@hotmail.com>.
77196 2009-09-19  Bruno Haible  <bruno@clisp.org>
77198         * lib/safe-alloc.h: Use the standard header with GPL copyright.
77199         * lib/safe-alloc.c: Likewise.
77200         Reported by Ian Beckwith <ianb@erislabs.net>.
77202 2009-09-18  Bruno Haible  <bruno@clisp.org>
77204         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
77205         Reported by <erobles@sensacd.com.mx>.
77207 2009-09-17  Eric Blake  <ebb9@byu.net>
77209         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
77210         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
77211         slashes when checking if last component is missing.
77212         * tests/test-canonicalize.c (main): Test this.
77214         canonicalize, canonicalize-lgpl: honor // if distinct from /
77215         * modules/canonicalize (Files): Add double-slash-root.m4.
77216         * modules/canonicalize-lgpl (Files): Likewise.
77217         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77218         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
77219         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
77220         fallback definition.
77221         (canonicalize_filename_mode): Use it to protect //.
77222         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
77223         (__realpath): Likewise.
77224         * tests/test-canonicalize.c (main): Test this.
77225         * tests/test-canonicalize-lgpl.c (main): Likewise.
77226         * modules/canonicalize-tests (Depends-on): Add same-inode.
77227         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
77229         canonicalize-lgpl: fix glibc bug with trailing slash
77230         * m4/canonicalize-lgpl.m4: Move contents...
77231         * m4/canonicalize.m4: ...here.
77232         (gl_CANONICALIZE_LGPL): Factor realpath check...
77233         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
77234         glibc 2.3.5 bug, fixed 2005-04-27.
77235         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
77236         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
77237         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
77238         * modules/canonicalize-lgpl (Files): Manage file rename.
77239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77240         * modules/stdlib (Makefile.am): Substitute witness.
77241         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
77242         is needed.
77243         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
77244         replacement is required.
77245         * lib/canonicalize.c (canonicalize_file_name): Likewise.
77246         * doc/glibc-functions/canonicalize_file_name.texi
77247         (canonicalize_file_name): Document this.
77248         * doc/posix-functions/realpath.texi (realpath): Likewise.
77250         canonicalize-lgpl: reject non-directory with trailing slash
77251         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
77252         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
77253         catches failures in glibc 2.3.5.
77254         * tests/test-canonicalize.c (main): Likewise.
77256         canonicalize-lgpl: use native realpath if it works
77257         * lib/canonicalize-lgpl.c (realpath): Guard with
77258         FUNC_REALPATH_WORKS.
77259         * lib/stdlib.in.h (realpath): Make declaration optional based on
77260         HAVE_REALPATH.
77261         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
77262         native realpath works.
77263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77264         * modules/stdlib (Makefile.am): Substitute witness.
77266         canonicalize, canonicalize-lgpl: use <stdlib.h>
77267         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
77268         (Include): Mention <stdlib.h>.
77269         (configure.ac): Mention functions we provide.
77270         * modules/canonicalize (configure.ac): Likewise.
77271         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
77272         realpath if canonicalize_file_name is missing.
77273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
77274         * modules/stdlib (Makefile.am): Substitute witnesses.
77275         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
77276         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
77277         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
77278         * NEWS: Document this.
77279         * doc/glibc-functions/canonicalize_file_name.texi
77280         (canonicalize_file_name): Likewise.
77281         * doc/posix-functions/realpath.texi (realpath): Likewise.
77282         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
77284         test-canonicalize: consolidate into single C program
77285         * tests/test-canonicalize.sh: Delete; move setup into...
77286         * tests/test-canonicalize.c (main): ...the program, making it
77287         easier to run in debugger.  Add some tests.
77288         * modules/canonicalize-tests (Files): Remove unused file.
77289         (Depends-on): Add progname.
77290         (configure.ac, Makefile.am): Simplify.
77292         test-canonicalize-lgpl: consolidate into single C program
77293         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
77294         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
77295         easier to run in debugger.  Add some tests.
77296         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
77297         (configure.ac, Makefile.am): Simplify.
77299         canonicalize: avoid resolvepath
77300         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
77301         unnecessary checks.
77302         * lib/canonicalize.c (includes): Simplify.
77303         (canonicalize_file_name): Drop resolvepath implementation.
77304         * modules/canonicalize (Depends-on): Drop filenamecat.
77306         canonicalize: don't lose errno
77307         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
77308         over calls to free.
77310         canonicalize: simplify errno handling
77311         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
77312         assignment.
77314         canonicalize, canonicalize-lgpl: update module dependencies
77315         * modules/canonicalize (Depends-on): Add extensions, lstat,
77316         pathmax, stdlib.
77317         (Files): Drop pathmax.h.
77318         (configure.ac): Adjust macro name.
77319         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
77320         lstat, stdlib, sys_stat.
77321         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
77322         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
77323         extensions.
77324         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
77325         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
77326         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
77327         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
77328         declaration, if available.
77329         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
77330         we can rely on the readlink module.
77331         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
77332         (includes): Use <unistd.h> unconditionally.
77334 2009-09-17  Eric Blake  <ebb9@byu.net>
77336         maint: make Include sections of modules consistent
77337         * modules/alloca: Use only header name; no need to list #include.
77338         * modules/alloca-opt: Likewise.
77339         * modules/arpa_inet: Likewise.
77340         * modules/canon-host: Likewise.
77341         * modules/configmake: Likewise.
77342         * modules/dirent: Likewise.
77343         * modules/eealloc: Likewise.
77344         * modules/environ: Likewise.
77345         * modules/fchdir: Likewise.
77346         * modules/fcntl: Likewise.
77347         * modules/fcntl-h: Likewise.
77348         * modules/gethrxtime: Likewise.
77349         * modules/gettime: Likewise.
77350         * modules/ignore-value: Likewise.
77351         * modules/inet_ntop: Likewise.
77352         * modules/inet_pton: Likewise.
77353         * modules/inttypes: Likewise.
77354         * modules/isnand-nolibm: Likewise.
77355         * modules/isnanf-nolibm: Likewise.
77356         * modules/mbchar: Likewise.
77357         * modules/mbfile: Likewise.
77358         * modules/mbiter: Likewise.
77359         * modules/mbuiter: Likewise.
77360         * modules/netdb: Likewise.
77361         * modules/netinet_in: Likewise.
77362         * modules/nproc: Likewise.
77363         * modules/pagealign_alloc: Likewise.
77364         * modules/poll: Likewise.
77365         * modules/printf-frexp: Likewise.
77366         * modules/pthread: Likewise.
77367         * modules/putenv: Likewise.
77368         * modules/random_r: Likewise.
77369         * modules/relocatable-prog: Likewise.
77370         * modules/search: Likewise.
77371         * modules/select: Likewise.
77372         * modules/selinux-h: Likewise.
77373         * modules/settime: Likewise.
77374         * modules/signal: Likewise.
77375         * modules/size_max: Likewise.
77376         * modules/socklen: Likewise.
77377         * modules/ssize_t: Likewise.
77378         * modules/stdarg: Likewise.
77379         * modules/stdbool: Likewise.
77380         * modules/stddef: Likewise.
77381         * modules/stdint: Likewise.
77382         * modules/stdio: Likewise.
77383         * modules/stdlib: Likewise.
77384         * modules/string: Likewise.
77385         * modules/strings: Likewise.
77386         * modules/sys_file: Likewise.
77387         * modules/sys_ioctl: Likewise.
77388         * modules/sys_select: Likewise.
77389         * modules/sys_socket: Likewise.
77390         * modules/sys_stat: Likewise.
77391         * modules/sys_time: Likewise.
77392         * modules/sys_times: Likewise.
77393         * modules/sys_utsname: Likewise.
77394         * modules/sys_wait: Likewise.
77395         * modules/sysexits: Likewise.
77396         * modules/time: Likewise.
77397         * modules/times: Likewise.
77398         * modules/tmpfile: Likewise.
77399         * modules/trim: Likewise.
77400         * modules/unistd: Likewise.
77401         * modules/wchar: Likewise.
77402         * modules/wctype: Likewise.
77404 2009-09-17  Bruno Haible  <bruno@clisp.org>
77406         Make getdate.y compile on QNX and NetBSD 5 / i386.
77407         * m4/getdate.m4 (gl_GETDATE): Conditionally define
77408         TIME_T_FITS_IN_LONG_INT.
77409         * lib/getdate.y (long_time_t): New type.
77410         (relative_time): Change type of 'seconds' field to long_time_t.
77411         (get_date): Update types of local variables. Check against overflow
77412         during conversion from long_time_t to time_t.
77413         Reported by Matt Kraai <kraai@ftbfs.org>
77414         and Hasso Tepper <hasso@netbsd.org>.
77416 2009-09-17  Bruno Haible  <bruno@clisp.org>
77418         * modules/COPYING: Update copyright years.
77419         * modules/README: Likeiwse.
77420         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
77421         Reported by Ian Beckwith <ianb@erislabs.net>.
77423 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77425         * users.txt: Update references for gnuit package.
77427 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77429         * m4/getdelim.m4: Fix typo in copyright line.
77431 2009-09-17  Bruno Haible  <bruno@clisp.org>
77433         * lib/atoll.c: Use the standard header with GPL copyright.
77434         * lib/argz.in.h: Likewise.
77435         * lib/glob.c: Likewise.
77436         * lib/glob-libc.h: Likewise.
77437         * lib/random_r.c: Likewise.
77438         * lib/siglist.h: Likewise.
77439         * lib/strsignal.c: Likewise.
77440         Reported by Ian Beckwith <ianb@erislabs.net>.
77442 2009-09-17  Eric Blake  <ebb9@byu.net>
77444         rmdir: ensure correct dependency order
77445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
77447 2009-09-17  Bruno Haible  <bruno@clisp.org>
77449         Disable assertion that fails on NetBSD 5 / i386.
77450         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
77451         Reported by Sam Steingold <sds@gnu.org>
77452         and Hasso Tepper <hasso@netbsd.org>.
77454 2009-09-16  Eric Blake  <ebb9@byu.net>
77456         unlinkdir: port to mingw
77457         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
77458         on which no one can unlink a directory.
77460         stdlib: sort witness names
77461         * modules/stdlib (Makefile.am): Sort replacements.
77462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77463         * lib/stdlib.in.h: Likewise.
77465         parse-duration-tests: avoid link failure
77466         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
77467         LIBINTL.
77468         Reported by Tom G. Christensen.
77470         openat-tests: ensure unlinkat behaves like rmdir
77471         * tests/test-rmdir.c (main): Factor guts...
77472         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
77473         * modules/rmdir-tests (Files): Ship new file.
77474         * modules/openat-tests: New test.
77475         * tests/test-unlinkat.c: Likewise.
77477         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
77478         * modules/rmdir-errno (Status, Notice): Now obsolete.
77480         rmdir: work around cygwin 1.5.x and mingw bugs
77481         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
77482         * lib/rmdir.c (rmdir): Work around it.
77483         * modules/rmdir (Status, Notice): No longer obsolete.
77484         (Files): Add dos.m4.
77485         (Depends-on): Add unistd.
77486         (configure.ac): Set witnesses.
77487         (License): Relax to LGPLv2+.
77488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
77489         * modules/unistd (Makefile.am): Substitute witnesses.
77490         * lib/unistd.in.h (rmdir): Declare replacement.
77491         * doc/posix-functions/rmdir.texi (rmdir): Document this.
77492         * modules/rmdir-tests: New tests.
77493         * tests/test-rmdir.c: Likewise.
77495 2009-09-15  Eric Blake  <ebb9@byu.net>
77497         fchdir: improve use of replacement functions
77498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
77499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
77500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
77501         REPLACE_CLOSEDIR.
77502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
77503         * modules/sys_stat (Makefile.am): Substitute correct witness.
77504         * modules/dirent (Makefile.am): Likewise.
77505         * modules/unistd (Makefile.am): Likewise.
77506         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
77507         * lib/unistd.in.h (dup): Likewise.
77508         * lib/sys_stat.in.h (fstat): Likewise.
77510         maint: ignore gnulib-tool temp files
77511         * .gitignore: Ignore files created during gnulib-tool --test.
77513 2009-09-13  Jim Meyering  <meyering@redhat.com>
77515         posixtm: don't reject a time that specify "60" as the number of seconds
77516         * lib/posixtm.c (posixtime): The code to reject invalid dates
77517         would also reject a time specified with the .60 suffix.
77518         But POSIX allows that, in order to accommodate leap seconds.
77519         So don't reject it.
77520         (main): Adjust tests accordingly.
77521         * modules/posixtm (Depends-on): Add stpcpy.
77523 2009-09-11  Jim Meyering  <meyering@redhat.com>
77525         announce-gen: include [$release_type] in emitted Subject:
77526         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
77527         e.g., [stable] in the emitted Subject: line.
77529 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77531         Remove obsolete macros from several modules.
77532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
77533         obsolete Autoconf macros with their modern counterparts.
77534         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
77535         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
77536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
77537         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77538         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
77539         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77541         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
77542         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
77543         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
77544         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
77545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
77546         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
77547         * m4/sockets.m4 (gl_SOCKETS): Likewise.
77548         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
77549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
77550         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
77551         * m4/time_r.m4 (gl_TIME_R): Likewise.
77552         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
77553         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
77554         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
77556         Fix copyright header in build-aux scripts.
77557         * build-aux/git-version-gen: Fix copyright header to match GPLv3
77558         recommendation.
77559         * build-aux/ncftpput-ftp: Likewise.
77560         * build-aux/update-copyright: Likewise.
77562 2009-09-09  Eric Blake  <ebb9@byu.net>
77564         test-link: allow Linux choice of errno
77565         * tests/test-link.c (main): Relax test for alternate error.
77567         strndup: fix improper m4 caching
77568         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
77569         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
77570         (gl_PREREQ_STRNDUP): Delete.
77571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
77572         * modules/string (Makefile.am): Substitute it.
77573         * lib/string.in.h (strndup): Modernize prototype.
77575         getcwd: port to mingw
77576         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
77577         different from the POSIX assumptions made throughout the getcwd
77578         module; fortunately, the mingw getcwd does not need replacement.
77579         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
77580         * modules/getcwd-tests: New test.
77581         * tests/test-getcwd.c: Likewise.
77583         link: fix platform bugs
77584         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
77585         * lib/link.c (link): Work around them.  Fix related mingw bug.
77586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77587         * modules/unistd (Makefile.am): Substitute it.
77588         * lib/unistd.in.h (link): Declare replacement.
77589         * doc/posix-functions/link.texi (link): Document this.
77590         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77592         test-link: consolidate into single C program, test more cases
77593         * tests/test-link.sh: Delete.
77594         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77595         at least Cygwin and Solaris.
77596         * modules/link-tests (Files): Remove unused file.
77597         (Depends-on): Add errno, sys_stat.
77598         (Makefile.am): Simplify.
77600 2009-09-08  Bruno Haible  <bruno@clisp.org>
77602         Work around towlower, towupper bug on mingw.
77603         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77604         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77605         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77606         * doc/posix-functions/towupper.texi: Likewise.
77607         Reported by Eric Blake.
77609 2009-09-08  Jim Meyering  <meyering@redhat.com>
77611         build: don't try to run autoheader if we don't use it
77612         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77613         is not used in configure.ac.
77615 2009-09-08  Eric Blake  <ebb9@byu.net>
77617         euidaccess: fix compilation error
77618         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77620         rawmemchr: relax license
77621         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77622         okay.
77623         Reported by Jim Meyering.
77625         mkfifoat: new module
77626         * modules/mkfifoat: New file.
77627         * lib/mkfifoat.c: Likewise.
77628         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77630         * modules/sys_stat (Makefile.am): Use them.
77631         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77632         * MODULES.html.sh (File system functions): Mention module.
77633         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77634         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77635         * modules/mkfifoat-tests: New test.
77636         * tests/test-mkfifoat.c: Likewise.
77638         strchrnul: relax license
77639         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77640         okay.
77641         Reported by Jim Meyering.
77643 2009-09-08  Eric Blake  <ebb9@byu.net>
77645         fstatat: fix compilation on Solaris
77646         * lib/fstatat.c (includes): Add fcntl.h.
77647         Reported by Pádraig Brady.
77649 2009-09-07  Eric Blake  <ebb9@byu.net>
77651         rename: modernize replacement
77652         * modules/rename (Depends-on): Add stdio.
77653         (configure.ac): Declare witness.
77654         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77655         stdio take care of replacement.
77656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77657         * modules/stdio (Makefile.am): Substitute them.
77658         * lib/stdio.in.h (rename): Declare replacement.
77659         * lib/rename.c (includes): Allow cross-compilation to non-windows
77660         machines.
77661         * doc/posix-functions/rename.texi (rename): Improve
77662         documentation.
77664         stdio: sort witness names
77665         * modules/stdio (Makefile.am): Sort replacements.
77666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77667         * lib/stdio.in.h: Likewise.
77669         getcwd: minor cleanups
77670         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77671         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77673         openat: provide more convenience names
77674         * modules/faccessat (configure.ac): Add C witness.
77675         * lib/unistd.in.h (readlinkat): Fix typo.
77676         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77677         convenience wrappers.
77678         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77679         wrappers in syntax checks.
77681 2009-09-06  Eric Blake  <ebb9@byu.net>
77683         doc: fix comments in recent patches
77684         * lib/faccessat.c: Mention correct function.
77685         * lib/fchmodat.c: Likewise.
77686         * lib/fchownat.c: Likewise.
77687         * lib/symlinkat.c: Likewise.
77688         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77689         constants.
77691         faccessat, symlinkat: continue cleanup of previous patch
77692         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77693         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77694         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77696         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77697         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77698         set.
77700 2009-09-06  Bruno Haible  <bruno@clisp.org>
77702         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77703         (fstatat): Declare if GNULIB_FSTATAT is set.
77704         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77705         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77706         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77707         * modules/fcntl-h (Files): Remove m4/openat.m4.
77708         * modules/sys_stat (Files): Remove m4/openat.m4.
77709         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77710         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77711         * modules/unistd (Files): Remove m4/openat.m4.
77712         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77713         GNULIB_OPENAT.
77714         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77715         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77717         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77718         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77719         gl_OPENAT_DEFAULTS.
77720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77721         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77722         Don't require gl_OPENAT_DEFAULTS.
77723         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77724         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77725         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77726         (gl_OPENAT_DEFAULTS): Remove macro.
77728 2009-09-06  Bruno Haible  <bruno@clisp.org>
77730         * modules/openat (configure.ac): Remove unneeded witness.
77732 2009-09-06  Bruno Haible  <bruno@clisp.org>
77734         Set errno to ENOSYS when a function is entirely unsupported.
77735         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77736         EOPNOTSUPP.
77737         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77738         * modules/chown (Depends-on): Remove errno.
77740 2009-09-06  Bruno Haible  <bruno@clisp.org>
77742         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77744 2009-09-06  Bruno Haible  <bruno@clisp.org>
77746         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77748 2009-09-06  Ben Pfaff  <blp@gnu.org>
77749             Bruno Haible  <bruno@clisp.org>
77751         Work around a glibc bug in strtok_r.
77752         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77753         Undefine if UNDEFINE_STRTOK_R is set.
77754         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77756         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77757         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77758         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77759         UNDEFINE_STRTOK_R.
77760         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77762 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77764         exclude: minor fix
77765         * lib/exclude.c: Include wctype.h
77767 2009-09-06  Akim Demaille  <demaille@gostai.com>
77769         bootstrap: improve error message
77770         * build-aux/bootstrap (find_tool): Upon failure, report the list
77771         of candidates.
77772         Honor the initial value of the envvar.
77774 2009-09-05  Eric Blake  <ebb9@byu.net>
77776         symlinkat: new module
77777         * modules/symlinkat: New file.
77778         * lib/symlinkat.c: Likewise.
77779         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77781         * modules/unistd (Makefile.am): Use them.
77782         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77783         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77784         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77785         * MODULES.html.sh (File system functions): Mention module.
77786         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77787         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77788         * modules/symlinkat-tests: New test.
77789         * tests/test-symlinkat.c: Likewise.
77791         test-openat-safer: add more checks
77792         * tests/test-openat-safer.c (main): Check more code paths.
77794 2009-09-05  Jim Meyering  <meyering@redhat.com>
77796         syntax-check: detect unnecessary inclusion of openat.h
77797         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77799 2009-09-05  Bruno Haible  <bruno@clisp.org>
77801         Support towlower, towupper.
77802         * doc/posix-functions/towlower.texi: Mention module wctype.
77803         * doc/posix-functions/towupper.texi: Likewise.
77804         * lib/wctype.in.h (towlower, towupper): New functions.
77805         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77806         (ASSERT): New macro.
77807         (e): New variable.
77808         (main): Test also towlower, towupper. Test WEOF argument.
77809         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77811 2009-09-05  Bruno Haible  <bruno@clisp.org>
77813         Fix conversion behaviour when the input is invalid.
77814         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77815         mark occurring in first pass of indirect conversion.
77816         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77817         input.
77818         Found by clang's static analyzer.
77820 2009-09-05  Bruno Haible  <bruno@clisp.org>
77822         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77823         where direct conversion is possible.
77825 2009-09-04  Eric Blake  <ebb9@byu.net>
77827         openat: fail with ENOENT on empty name
77828         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77829         buffer.
77831         link-follow: fix logic bug in prior patch
77832         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77833         reversed sense of yes and no in prior patch.  Avoid confusing
77834         compilation failure with desired semantics.
77836         link-follow: accommodate mingw and cross-compilation
77837         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77838         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77839         cross-compilation results to -1, to make linkat easier to
77840         implement when cross-compiling.  Trivially support mingw.
77841         * modules/link-follow (configure.ac): Call new name.
77842         * NEWS: Mention this.
77844 2009-09-03  Eric Blake  <ebb9@byu.net>
77846         faccessat: compile replacement
77847         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77848         needed.
77850         fts: fix compilation error
77851         * lib/fts.c (includes): Re-add "openat.h", for
77852         openat_needs_fchdir.
77854         faccessat: new module
77855         * modules/faccessat: New file.
77856         * lib/faccessat.c: Likewise.
77857         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77859         * modules/unistd (Makefile.am): Use it.
77860         * lib/unistd.in.h (faccessat): Declare it.
77861         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77862         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77863         * MODULES.html.sh (File system functions): Mention it.
77864         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77865         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77867         euidaccess: prefer POSIX over non-standard implementation
77868         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77869         * lib/euidaccess.c (euidaccess): Use it if available.
77871         openat: make template easier to use
77872         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77873         AT_FUNC_F2 to be undefined.
77874         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77875         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77876         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77877         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77878         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77879         Likewise.
77880         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77881         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77882         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77883         Likewise.
77885         openat: declare in POSIX headers
77886         * NEWS: Mention this.
77887         * modules/openat (configure.ac): Declare witnesses.
77888         (Depends-on): Add fcntl-h, sys_stat, unistd.
77889         (Include): Mention correct headers.
77890         * modules/fcntl-h (Depends-on): Add link-warning.
77891         (Files): Add openat.m4.
77892         (Makefile.am): Substitute witnesses.
77893         * modules/sys_stat (Files, Makefile.am): Likewise.
77894         * modules/unistd (Files, Makefile.am): Likewise.
77895         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77896         (gl_OPENAT_DEFAULTS): New macro.
77897         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77900         (SYS_STAT_H): Remove unused variable.
77901         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77902         * lib/fcntl--.h (includes): Remove unneeded header.
77903         * lib/openat-safer.c (includes): Likewise.
77904         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77905         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77906         appropriate headers.
77907         (__OPENAT_PREFIX): Delete.
77908         * lib/fcntl.in.h (openat): Provide declaration.
77909         (AT_FDCWD): Fix Solaris bug.
77910         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77911         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77912         * lib/fchmodat.c (includes):  Adjust to find declaration.
77913         * lib/fchownat.c (includes): Likewise.
77914         * lib/mkdirat.c (includes): Likewise.
77915         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77916         still visible.
77918 2009-09-02  Eric Blake  <ebb9@byu.net>
77920         errno: use consistently
77921         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77922         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77923         * lib/canonicalize.c (ELOOP): Likewise.
77924         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77925         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77926         * lib/lchown.c (EOPNOTSUPP): Likewise.
77927         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77928         * lib/savewd.c (ESTALE): Likewise.
77929         * lib/settime.c (ENOSYS): Likewise.
77930         * lib/utimens.c (ENOSYS): Likewise.
77931         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77932         * lib/chdir-safer.c (ELOOP): Likewise.
77933         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77934         * modules/c-stack (Depends-on): Add errno.
77935         * modules/canonicalize (Depends-on): Likewise.
77936         * modules/chdir-safer (Depends-on): Likewise.
77937         * modules/fdopendir (Depends-on): Likewise.
77938         * modules/inet_ntop (Depends-on): Likewise.
77939         * modules/inet_pton (Depends-on): Likewise.
77940         * modules/lchown (Depends-on): Likewise.
77941         * modules/openat (Depends-on): Likewise.
77942         * modules/savewd (Depends-on): Likewise.
77943         * modules/settime (Depends-on): Likewise.
77944         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77946         fts: avoid leaking fds
77947         * modules/fts (Depends-on): Add cloexec.
77948         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77949         flag.
77951         fts: make directory fds more robust
77952         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77953         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77955         backupfile, chdir-long, fts, savedir: make safer
77956         * lib/backupfile.c (includes): Use "dirent--.h", since
77957         numbered_backup can write to stderr during readdir.
77958         * lib/savedir.c (includes): Likewise.
77959         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77960         emulation can write to stderr on failure.
77961         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77962         * lib/getcwd.c: Document why opendir_safer is unused.
77963         * lib/glob.c: Likewise.
77964         * lib/scandir.c: Likewise.
77965         * lib/openat-proc.c: Likewise, for open_safer.
77966         * modules/backupfile (Depends-on): Add dirent-safer.
77967         * modules/savedir (Depends-on): Likewise.
77968         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77969         * modules/chdir-long (Depends-on): Add openat-safer.
77971         openat-safer: new module
77972         * modules/openat-safer: New file.
77973         * lib/openat-safer.c: Likewise.
77974         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77975         * lib/fcntl-safer.h (openat_safer): Declare.
77976         * lib/fcntl--.h (openat): Override.
77977         * MODULES.html.sh (File descriptor based I/O): Mention it.
77978         * lib/openat.h: Add double-inclusion guards.
77979         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77980         "fcntl--.h", so we can implement openat.
77981         * modules/openat-safer-tests: New test.
77982         * tests/test-openat-safer.c: New file.
77984         dirent-safer: new module
77985         * modules/dirent-safer: New file.
77986         * lib/dirent--.h: Likewise.
77987         * lib/dirent-safer.h: Likewise.
77988         * lib/opendir-safer.c: Likewise.
77989         * m4/dirent-safer.m4: Likewise.
77990         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77991         * modules/dirent-safer-tests: New test.
77992         * tests/test-dirent-safer.c: New file.
77993         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77995         fdopendir: optimize on mingw
77996         * lib/unistd.in.h (_gl_directory_name): New prototype.
77997         * lib/fchdir.c (_gl_directory_name): Implement it.
77998         (fchdir): Use it to simplify implementation.
77999         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
78000         fchdir, when available, to avoid calling [f]chdir().
78002         fdopendir: split into its own module
78003         * lib/openat.c (fdopendir): Move...
78004         * lib/fdopendir.c: ...into new file.
78005         * modules/fdopendir: New module.
78006         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
78007         * modules/openat (Depends-on): Add fdopendir.
78008         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
78009         fdopendir here.
78010         * modules/savedir (Depends-on): Only need fdopendir, not full
78011         openat.
78012         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
78013         * lib/openat.h (fdopendir): Drop prototype.
78014         * lib/dirent.in.h (fdopendir): Provide prototype.
78015         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
78016         * modules/dirent (Makefile.am): Substitute them.
78017         * MODULES.html.sh (File system functions): Mention it.
78018         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
78019         * modules/fdopendir-tests: New file.
78020         * tests/test-fdopendir.c: Likewise.
78022         fchdir: use more consistent macro convention
78023         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
78024         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
78025         REPLACE_FCHDIR, rather than relying on config.h macros.
78026         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
78027         inside a single make-time REPLACE_FCHDIR block, rather than using
78028         the config.h FCHDIR_REPLACEMENT.
78029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
78030         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
78031         Manage fstat replacement.
78032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
78033         REPLACE_FCHDIR.
78034         * modules/sys_stat (Files): Add m4/unistd_h.m4.
78035         (Makefile.am): Substitute REPLACE_FCHDIR.
78036         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
78037         FCHDIR_REPLACEMENT.
78038         * lib/dup-safer.c (dup_safer): Likewise.
78039         * lib/dup2.c (rpl_dup2): Likewise.
78040         * lib/dup3.c (rpl_dup3): Likewise.
78041         * lib/open.c (rpl_open): Likewise.
78043         fchdir: simplify error handling, and support dup3
78044         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
78045         stdbool, malloc-posix, realloc-posix.
78046         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
78047         (ensure_dirs_slot): Return false on allocation failure.
78048         (rpl_dup2): Delete.
78049         (_gl_register_dup): New function.
78050         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
78051         (_gl_register_fd): Close fd on allocation failure.
78052         * lib/fcntl.in.h (_gl_register_fd): Update signature.
78053         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
78054         prototype.
78055         (rpl_dup2_fchdir): Delete prototype.
78056         * lib/open.c (open): Update caller.
78057         * lib/dup2.c (dup2): Track fchdir metadata.
78058         * lib/dup3.c (dup3): Likewise.
78059         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
78060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
78062 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78064         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
78065         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
78066         don't pass arguments to AC_OUTPUT.
78068 2009-09-02  Bruno Haible  <bruno@clisp.org>
78070         * modules/mkdtemp (License): Relicense under LGPLv2+.
78071         Reported by Paolo Bonzini.
78073 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78075         Replace uses of obsolete autoconf macros in Jim's modules.
78076         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
78077         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
78078         can evoke a warning from autoconf when run with -Wobsolete
78079         enabled.  They were declared obsolete for good reasons (see
78080         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
78081         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
78082         should not continue using the deprecated macros.
78083         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
78084         obsolete Autoconf macros with modern counterparts.
78085         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78086         * m4/dos.m4 (gl_AC_DOS): Likewise.
78087         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
78088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
78089         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
78090         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
78091         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
78092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
78093         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
78094         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
78095         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78096         Likewise.
78097         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
78098         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78099         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
78100         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
78101         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
78102         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78104 2009-09-01  Eric Blake  <ebb9@byu.net>
78106         fchdir: fix off-by-one bug in previous patch
78107         * lib/fchdir.c (rpl_fstat): Use correct bounds.
78108         (_gl_unregister_fd): Delete useless if.
78110 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
78112         maint.mk: sort the list of syntax-check rules
78113         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
78114         easier to get a sense of progress when the rules are run sequentially
78115         and take a long time.
78117 2009-09-01  Simon Josefsson  <simon@josefsson.org>
78119         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
78120         * modules/netinet_in: Likewise.
78121         * modules/sys_file: Likewise.
78122         * modules/sys_ioctl: Likewise.
78123         * modules/sys_select: Likewise.
78124         * modules/sys_socket: Likewise.
78125         * modules/sys_stat: Likewise.
78126         * modules/sys_time: Likewise.
78127         * modules/sys_times: Likewise.
78128         * modules/sys_utsname: Likewise.
78129         * modules/sys_wait: Likewise.
78131 2009-09-01  Jim Meyering  <meyering@redhat.com>
78133         fts: help ensure that return values are not ignored
78134         * lib/fts_.h (__GNUC_PREREQ): Define.
78135         (__attribute_warn_unused_result__): Define.
78136         (fts_children, fts_close, fts_open, fts_read): Declare with
78137         __attribute_warn_unused_result__.
78139         fts: fts_close now fails also when closing a dir file descriptor fails
78140         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
78141         and propagate to caller, along with errno.
78143         announce-gen: correct formatting in --help output
78144         * build-aux/announce-gen (usage): Move the one-line description in
78145         --help output "up", to where it belongs, just after Usage:.
78147 2009-08-31  Eric Blake  <ebb9@byu.net>
78149         fchdir: port to mingw
78150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
78151         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
78152         opened, then use a substitute.
78153         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
78154         replacement.
78155         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
78156         (_gl_register_fd): No need to check stat if open already filters
78157         all directories.
78158         (fchdir): Fix error condition to match POSIX.
78159         * modules/fchdir (Depends-on): Add sys_stat.
78160         * doc/posix-functions/open.texi (open): Document the limitation.
78161         * modules/fchdir-tests: New file.
78162         * tests/test-fchdir.c: Likewise.
78164         canonicalize: allow cross-testing from cygwin to mingw
78165         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
78166         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
78167         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
78168         Likewise.
78169         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
78170         target does not support symlinks.
78171         * tests/test-canonicalize-lgpl.sh: Likewise.
78173         chown: avoid compilation warning on mingw
78174         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
78175         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
78176         mingw.
78177         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
78178         * modules/chown (Depends-on): Add errno.
78180 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
78182         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
78183         command.
78185 2009-08-31  Jim Meyering  <meyering@redhat.com>
78187         canonicalize: remove useless initialization
78188         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
78189         initialization of local, "end".
78191 2009-08-30  Bruno Haible  <bruno@clisp.org>
78193         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
78194         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
78195         ENOSYS.
78197 2009-08-30  Bruno Haible  <bruno@clisp.org>
78199         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
78200         /usr/xpg4/bin/tr when it exists.
78201         * tests/test-pipe-filter-gi1.sh: Likewise.
78203 2009-08-30  Bruno Haible  <bruno@clisp.org>
78205         Work around deficient /usr/bin/id program on Solaris.
78206         * tests/test-file-has-acl.sh (ID): New variable.
78207         * tests/test-set-mode-acl.sh (ID): Likewise.
78208         * tests/test-copy-acl.sh (ID): Likewise.
78209         * tests/test-copy-file.sh (ID): Likewise.
78211 2009-08-30  Bruno Haible  <bruno@clisp.org>
78213         New module 'xstriconveh'.
78214         * lib/xstriconveh.h: New file.
78215         * lib/xstriconveh.c: New file.
78216         * modules/xstriconveh: New file.
78218 2009-08-30  Bruno Haible  <bruno@clisp.org>
78220         Make it easier to use mem_cd_iconveh.
78221         * lib/striconveh.h (iconveh_t): New type.
78222         (iconveh_open, iconveh_close): New declarations.
78223         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78224         with a single 'const iconveh_t *' argument.
78225         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
78226         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78227         with a single 'const iconveh_t *' argument.
78228         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
78229         * tests/test-striconveh.c (main): Update.
78230         * NEWS: Mention the change.
78232 2009-08-30  Bruno Haible  <bruno@clisp.org>
78234         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
78235         problem.
78237 2009-08-30  Bruno Haible  <bruno@clisp.org>
78239         Work around iconv_open problem on Solaris.
78240         * lib/iconv_open-solaris.gperf: New file.
78241         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
78242         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
78243         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
78244         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
78245         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
78246         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
78248 2009-08-29  Jim Meyering  <meyering@redhat.com>
78250         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
78251         * top/maint.mk (cvs-check): Remove target; it was just an alias
78252         to the better-named vc-diff-check.
78253         (maintainer-distcheck): Remove rule.  It was used only from
78254         the (alpha/beta/major) target, and all of its commands but one
78255         were coreutils-specific.
78256         (vc-dist): Remove rule.
78257         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
78258         Run vc-diff-check, not vc-dist.
78259         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
78261 2009-08-27  Bruno Haible  <bruno@clisp.org>
78263         * tests/test-bitrotate.c (main): Remove test that uses a shift count
78264         of 0.
78266 2009-08-27  Bruno Haible  <bruno@clisp.org>
78268         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
78269         compilers.
78270         * doc/func.texi: Document the SunPRO C bug.
78272 2009-08-27  Bruno Haible  <bruno@clisp.org>
78274         Fix link error on Solaris.
78275         * tests/test-parse-duration.c (xstrdup): Remove function.
78277 2009-08-26  Pádraig Brady  <P@draigbrady.com>
78279         ignore-value: handle pointer types, too
78280         * lib/ignore-value.h (__attribute__): Remove definition.
78281         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
78282         of a more concise and more-often effective "(void) i" statement.
78283         (ignore_ptr): New function to suppress warnings from functions that
78284         return pointers, and to make it explicit that one function doesn't
78285         handle all cases.
78287 2009-08-25  Bruno Haible  <bruno@clisp.org>
78289         dup2: work around a Linux bug.
78290         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
78291         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
78292         * doc/posix-functions/dup2.texi: Mention the Linux bug.
78293         Reported by Simon Josefsson.
78295 2009-08-25  Jim Meyering  <meyering@redhat.com>
78297         libguestfs uses gnulib
78298         * users.txt: Add libguestfs.
78300 2009-08-24  Eric Blake  <ebb9@byu.net>
78302         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
78303         * lib/pipe2.c (includes): Add binary-io.h.
78304         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
78306 2009-08-24  Bruno Haible  <bruno@clisp.org>
78308         Tolerate declared but missing accept4 syscall.
78309         * lib/accept4.c (accept4): Invoke original accept4 function first, if
78310         available.
78311         * lib/sys_socket.in.h (accept4): If the function is already present,
78312         override it.
78313         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
78314         * modules/accept4 (Makefile.am): Compile accept4.c always.
78315         Reported by Paolo Bonzini and Eric Blake.
78317 2009-08-23  Bruno Haible  <bruno@clisp.org>
78319         New module 'accept4'.
78320         * lib/sys_socket.in.h (accept4): New declaration.
78321         * lib/accept4.c: New file.
78322         * m4/accept4.m4: New file.
78323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
78324         GNULIB_ACCEPT4, HAVE_ACCEPT4.
78325         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
78326         HAVE_ACCEPT4.
78327         * modules/accept4: New file.
78328         * doc/glibc-functions/accept4.texi: Mention the new module.
78330 2009-08-24  Jim Meyering  <meyering@redhat.com>
78332         progname: also set global program_invocation_name, when possible
78333         Before this change, a libtool-enabled program that calls glibc's
78334         error function would report the program name as
78335         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
78336         * modules/progname (configure.ac): Check for a declaration of
78337         program_invocation_name.
78338         * lib/progname.c:  Include <errno.h>.
78339         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
78340         Set program_invocation_name.
78342 2009-08-23  Bruno Haible  <bruno@clisp.org>
78344         * lib/dup3.c: Include <string.h>.
78346 2009-08-23  Bruno Haible  <bruno@clisp.org>
78348         * lib/dup3.c (dup3): Test only once whether the system actually exists.
78349         * lib/pipe2.c (pipe2): Likewise.
78350         Suggested by Eric Blake.
78352 2009-08-23  Bruno Haible  <bruno@clisp.org>
78354         Tolerate declared but missing dup3 syscall.
78355         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
78356         * lib/unistd.in.h (dup3): If the function is already present,
78357         override it.
78358         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
78359         * modules/dup3 (Makefile.am): Compile dup3.c always.
78360         Reported by Paolo Bonzini.
78362 2009-08-23  Bruno Haible  <bruno@clisp.org>
78364         Tolerate declared but missing pipe2 syscall.
78365         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
78366         available.
78367         * lib/unistd.in.h (pipe2): If the function is already present,
78368         override it.
78369         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
78370         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
78371         Reported by Paolo Bonzini.
78373 2009-08-23  Bruno Haible  <bruno@clisp.org>
78375         * lib/pipe2.c (pipe2): Move #ifs inside function.
78377 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78379         quotearg: document limitations of quote_these_too
78380         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
78381         those limitations are created.
78382         * lib/quotearg.h (set_char_quoting): Document that digits and
78383         letters that are special after backslash are not permitted.
78384         (quotearg_char): Cross-reference set_char_quoting documentation.
78386 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
78388         quotearg: implement custom_quoting_style
78389         * lib/quotearg.c: (struct quoting_options): Add left_quote and
78390         right_quote fields.
78391         (set_custom_quoting): New public function.
78392         (quotearg_buffer_restyled): Add left_quote and right_quote
78393         arguments, handle them very much like locale quoting, and update
78394         all uses.
78395         (quotearg_n_custom): New public function.
78396         (quotearg_n_custom_mem): New public function.
78397         (quotearg_custom): New public function.
78398         (quotearg_custom_mem): New public function.
78399         * lib/quotearg.h: Prototype and document new public functions.
78400         (enum quoting_style): For escape_quoting_style and
78401         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
78402         ignored even though they're otherwise like c_quoting_style.
78403         Add custom_quoting_style member and document with comparison to
78404         clocale_quoting_style.
78405         * tests/test-quotearg.c (custom_quotes): New array.
78406         (custom_results): New array.
78407         (main): Extend to test custom quoting.
78409 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78411         quotearg: fix right quote escaping when it's in quote_these_too
78412         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
78413         quote, be sure to prepend only one backslash.
78414         * tests/test-quotearg.c (use_quote_double_quotes): New function.
78415         (main): Test it.
78417 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78419         quotearg-tests: test escaping of embedded locale quotes
78420         * tests/test-quotearg.c (struct result_strings): Add member for
78421         new input.
78422         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
78423         (inputs): Add new input.
78424         (results_g): Add expected results.
78425         (flag_results): Likewise.
78426         (locale_results): Likewise.
78427         (compare_strings): Check those.
78429 2009-08-23  Bruno Haible  <bruno@clisp.org>
78431         Tests for module 'dup3'.
78432         * modules/dup3-tests: New file.
78433         * tests/test-dup3.c: New file.
78435         New module 'dup3'.
78436         * lib/unistd.in.h (dup3): New declaration.
78437         * lib/dup3.c: New file.
78438         * m4/dup3.m4: New file.
78439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
78440         HAVE_DUP3.
78441         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
78442         * modules/dup3: New file.
78443         * doc/glibc-functions/dup3.texi: Mention the new module.
78445 2009-08-23  Bruno Haible  <bruno@clisp.org>
78447         Tweak the dup2 test.
78448         * tests/test-dup2.c (main): Create the test file empty. Verify that an
78449         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
78450         the test file is still empty. Fix argument order of lseek.
78452 2009-08-23  Bruno Haible  <bruno@clisp.org>
78454         Avoid test link errors when the modules getopt-gnu, gettext are used.
78455         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
78456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78458 2009-08-23  Bruno Haible  <bruno@clisp.org>
78460         Fix getdtablesize() on mingw.
78461         * lib/getdtablesize.c (getdtablesize): Implement differently.
78462         * lib/unistd.in.h (getdtablesize): Improve comment.
78464 2009-08-23  Bruno Haible  <bruno@clisp.org>
78466         New module 'mkostemp'.
78467         Based on Ulrich Drepper's 2007-08-10 change in glibc.
78468         * lib/stdlib.in.h (mksotemp): New declaration.
78469         * lib/mkostemp.c: New file, from glibc with modifications.
78470         * lib/tempname.h (GT_FILE): Remove outdated comment.
78471         (gen_tempname): Add flags argument.
78472         * lib/tempname.c (__GT_BIGFILE): Remove macro.
78473         (__GT_FILE): Map to 1.
78474         (small_open, large_open): Remove macros.
78475         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
78476         * lib/mkstemp.c (mkstemp): Update.
78477         * lib/mkdtemp.c (mkdtemp): Likewise.
78478         * m4/mkostemp.m4: New file.
78479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
78480         HAVE_MKOSTEMP.
78481         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
78482         HAVE_MKOSTEMP.
78483         * modules/mkostemp: New file, based on modules/mkstemp.
78484         * doc/glibc-functions/mkostemp.texi: Mention the new module.
78485         * NEWS: Mention the change.
78487 2009-08-23  Bruno Haible  <bruno@clisp.org>
78489         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
78490         Reported by Eric Blake.
78492 2009-08-23  Bruno Haible  <bruno@clisp.org>
78494         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
78495         Reported by Eric Blake.
78497 2009-08-23  Bruno Haible  <bruno@clisp.org>
78499         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
78500         * modules/pipe2 (Depends-on): Likewise.
78502 2009-08-23  Eric Blake  <ebb9@byu.net>
78504         fcntl-h: add O_TTY_INIT support
78505         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
78506         * tests/test-fcntl-h.c (o): Test it.
78507         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78509         fcntl-h: rename from fcntl, in preparation for fcntl(2)
78510         * modules/fcntl: Move <fcntl.h> header replacement...
78511         * modules/fcntl-h: ...to new name, so as not to collide with
78512         like-named function.
78513         * tests/test-fcntl.c: Rename...
78514         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
78515         * modules/fcntl-tests: Rename...
78516         * modules/fcntl-h-tests: ...to this.  Update test file name.
78517         * modules/chdir-long (Depends-on): Update clients.
78518         * modules/chdir-safer (Depends-on): Likewise.
78519         * modules/fcntl-safer (Depends-on): Likewise.
78520         * modules/fts (Depends-on): Likewise.
78521         * modules/mkancesdirs (Depends-on): Likewise.
78522         * modules/mkdir-p (Depends-on): Likewise.
78523         * modules/open (Depends-on): Likewise.
78524         * modules/savewd (Depends-on): Likewise.
78525         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
78526         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78528 2009-08-22  Bruno Haible  <bruno@clisp.org>
78530         * modules/binary-io (License): Relicense under LGPL.
78531         * modules/pipe2 (License): Likewise.
78533 2009-08-22  Bruno Haible  <bruno@clisp.org>
78535         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
78536         return value.
78537         * lib/pipe-filter-gi.c (filter_init): Likewise.
78538         Reported by Eric Blake.
78540 2009-08-22  Bruno Haible  <bruno@clisp.org>
78542         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
78543         * modules/pipe (Depends-on): Add pipe2.
78545 2009-08-22  Bruno Haible  <bruno@clisp.org>
78547         Tests for module 'pipe2'.
78548         * modules/pipe2-tests: New file.
78549         * tests/test-pipe2.c: New file.
78551         New module 'pipe2'.
78552         * lib/unistd.in.h (pipe2): New declaration.
78553         * lib/pipe2.c: New file.
78554         * m4/pipe2.m4: New file.
78555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
78556         HAVE_PIPE2.
78557         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
78558         * modules/pipe2: New file.
78559         * doc/glibc-functions/pipe2.texi: Mention the new module.
78561 2009-08-22  Bruno Haible  <bruno@clisp.org>
78563         Reference some new glibc functions.
78564         * doc/glibc-functions/accept4.texi: New file.
78565         * doc/glibc-functions/dup3.texi: New file.
78566         * doc/glibc-functions/mkostemp.texi: New file.
78567         * doc/glibc-functions/pipe2.texi: New file.
78568         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
78569         (Glibc sys/socket.h): Refer to accept4.
78570         (Glibc unistd.h): Refer to dup3, pipe2.
78571         Reported by Eric Blake.
78573 2009-08-22  Jim Meyering  <meyering@redhat.com>
78574             Bruno Haible  <bruno@clisp.org>
78576         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
78577         This makes it so packages using automake-1.11's silent-rules option
78578         can print e.g., a single "GEN    configmake.h" line, rather than
78579         the 30+ statements that perform the job.  If you want to see the
78580         actual commands, you can still run "make V=1".
78581         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
78582         so that make output is abbreviated when those variables are defined
78583         appropriately.
78584         * modules/argz: Likewise.
78585         * modules/arpa_inet: Likewise.
78586         * modules/byteswap: Likewise.
78587         * modules/configmake: Likewise.
78588         * modules/dirent: Likewise.
78589         * modules/errno: Likewise.
78590         * modules/fcntl: Likewise.
78591         * modules/float: Likewise.
78592         * modules/fnmatch: Likewise.
78593         * modules/getopt-posix: Likewise.
78594         * modules/glob: Likewise.
78595         * modules/iconv_open: Likewise.
78596         * modules/inttypes: Likewise.
78597         * modules/localcharset: Likewise.
78598         * modules/locale: Likewise.
78599         * modules/math: Likewise.
78600         * modules/netdb: Likewise.
78601         * modules/netinet_in: Likewise.
78602         * modules/poll: Likewise.
78603         * modules/posix_spawnp-tests: Likewise.
78604         * modules/sched: Likewise.
78605         * modules/search: Likewise.
78606         * modules/selinux-h: Likewise.
78607         * modules/signal: Likewise.
78608         * modules/spawn: Likewise.
78609         * modules/stdarg: Likewise.
78610         * modules/stdbool: Likewise.
78611         * modules/stddef: Likewise.
78612         * modules/stdint: Likewise.
78613         * modules/stdio: Likewise.
78614         * modules/stdlib: Likewise.
78615         * modules/string: Likewise.
78616         * modules/strings: Likewise.
78617         * modules/sys_file: Likewise.
78618         * modules/sys_ioctl: Likewise.
78619         * modules/sys_select: Likewise.
78620         * modules/sys_socket: Likewise.
78621         * modules/sys_stat: Likewise.
78622         * modules/sys_time: Likewise.
78623         * modules/sys_times: Likewise.
78624         * modules/sys_utsname: Likewise.
78625         * modules/sys_wait: Likewise.
78626         * modules/sysexits: Likewise.
78627         * modules/time: Likewise.
78628         * modules/unistd: Likewise.
78629         * modules/wchar: Likewise.
78630         * modules/wctype: Likewise.
78632 2009-08-22  Jim Meyering  <meyering@redhat.com>
78634         announce-gen: detect write failure
78635         * build-aux/announce-gen: Add Coda at end.
78636         Remove equivalent-but-more-verbose block at top.
78638 2009-08-19  Akim Demaille  <demaille@gostai.com>
78640         bootstrap: --help to stdout.
78641         * bootstrap (usage): Don't send --help to stderr.
78642         Use a here doc instead of a long string.
78644 2009-08-21  Eric Blake  <ebb9@byu.net>
78646         test-popen-safer: split from test-popen
78647         * tests/test-popen.c (main): Move...
78648         * tests/test-popen.h: ...into new file.
78649         * tests/test-popen-safer2.c: New file.
78650         * modules/popen-tests (Files): Add test-popen.h.
78651         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78652         Suggested by Bruno Haible.
78654         test-fcntl-safer: split from test-open
78655         * tests/test-open.c (main): Move...
78656         * tests/test-open.h: ...into new file.
78657         * tests/test-fcntl-safer.c: New file.
78658         * modules/open-tests (Files): Add test-open.h.
78659         * modules/fcntl-safer-tests: New file.
78660         Suggested by Bruno Haible.
78662         test-fopen-safer: split from test-fopen
78663         * tests/test-fopen.c (main): Move...
78664         * tests/test-fopen.h: ...into new file.
78665         * tests/test-fopen-safer.c: New file.
78666         * modules/fopen-tests (Files): Add test-fopen.h.
78667         * modules/fopen-safer-tests: New file.
78668         Suggested by Bruno Haible.
78670 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78672         popen-safer: test O_CLOEXEC at run-time.
78673         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78675 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78677         fcntl: move more flags to the header
78678         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78679         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78680         * lib/fcntl.in.h: Do both things here.
78682 2009-08-21  Jim Meyering  <meyering@redhat.com>
78684         consistently remove $@-t before redirecting to it
78685         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78686         * modules/alloca-opt: Likewise.
78687         * modules/byteswap: Likewise.
78688         * modules/fnmatch: Likewise.
78689         * modules/getopt-posix: Likewise.
78690         * modules/glob: Likewise.
78691         * modules/poll: Likewise.
78692         * modules/posix_spawnp-tests: Likewise.
78693         * modules/sys_socket: Likewise.
78694         * modules/sysexits: Likewise.
78696 2009-08-21  Eric Blake  <ebb9@byu.net>
78698         popen: simplify access to original popen
78699         * lib/popen.c (rpl_popen): No need to worry about popen being a
78700         macro.
78701         Reported by Bruno Haible.
78703 2009-08-20  Eric Blake  <ebb9@byu.net>
78705         build: avoid some compiler warnings
78706         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78707         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78708         type.
78709         (new_exclude_segment, excluded_file_pattern_p)
78710         (excluded_file_name_p): Reduce scope.
78711         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78712         old-style declaration.
78714 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78716         * tests/test-exclude1.sh: Handle Windows EOL.
78717         * tests/test-exclude2.sh: Likewise.
78718         * tests/test-exclude3.sh: Likewise.
78719         * tests/test-exclude4.sh: Likewise.
78720         * tests/test-exclude5.sh: Likewise.
78721         * tests/test-exclude6.sh: Likewise.
78722         * tests/test-exclude7.sh: Likewise.
78724 2009-08-19  Akim Demaille  <demaille@gostai.com>
78726         bootstrap: find sha1sum when named gsha1sum.
78727         * bootstrap (find_tool): New.
78728         ($SHA1SUM): New.
78729         Use it.
78731 2009-08-20  Jim Meyering  <meyering@redhat.com>
78733         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78734         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78735         expression that converts "." in a file name to "\." in the resulting
78736         regexp.  Start with a dummy statement, so that prior shell variable
78737         definitions are expanded portably.  Reported by Simon Josefsson.
78739 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78741         Fix polling for writeability of a screen buffer.
78742         * lib/poll.c: Distinguish input and screen buffers for the
78743         Win32 implementation.
78744         * lib/select.c: Likewise.
78746 2009-08-19  Eric Blake  <ebb9@byu.net>
78748         popen-safer: prevent popen from clobbering std descriptors
78749         * modules/popen-safer: New file.
78750         * lib/popen-safer.c: Likewise.
78751         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78752         * lib/stdio--.h (popen): Provide override.
78753         * lib/stdio-safer.h (popen_safer): Provide declaration.
78754         * tests/test-popen.c (includes): Partially test this.
78755         * modules/popen-safer-tests: New file, for more tests.
78756         * tests/test-popen-safer.c: Likewise.
78757         * MODULES.html.sh (file stream based Input/Output): Mention it.
78759         tests: test some of the *-safer modules
78760         * modules/fopen-safer (Depends-on): Add fopen.
78761         * modules/fcntl-safer (Depends-on): Add fcntl.
78762         * modules/stdlib-safer (Depends-on): Add stdlib.
78763         (configure.ac): Set indicator.
78764         * modules/unistd-safer (configure.ac): Likewise.
78765         * modules/tmpfile-safer (configure.ac): Likewise.
78766         (Depends-on): Add tmpfile.
78767         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78768         active.
78769         * tests/test-fopen.c (includes): Test safer versions when they are
78770         in use.
78771         * tests/test-open.c (includes): Likewise.
78773         popen: fix cygwin 1.5 bug when stdin closed
78774         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78775         * modules/popen: New file.
78776         * modules/popen-tests: Likewise.
78777         * tests/test-popen.c: Likewise.
78778         * m4/popen.m4: Likewise.
78779         * lib/popen.c: Likewise.
78780         * lib/stdio.in.h (popen): New declaration.
78781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78782         * modules/stdio (Makefile.am): Likewise.
78783         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78785 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78787         maint.mk: give full control over update-copyright exclusions
78788         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78789         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78790         (update-copyright): Don't force inclusion of top-level
78791         ChangeLog.  Don't force exclusion of all COPYING files, but make
78792         them the default exclusion instead.
78794 2009-08-16  Bruno Haible  <bruno@clisp.org>
78796         Fix test failures on Solaris 10.
78797         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78798         tests when Solaris iconv() is used.
78799         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78800         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78801         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78802         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78803         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78805 2009-08-16  Bruno Haible  <bruno@clisp.org>
78807         Fix test failures on Solaris 10.
78808         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78809         'tr' program and pass it as first argument.
78810         * tests/test-pipe-filter-gi1.sh: Likewise.
78811         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78812         program as first argument.
78813         * tests/test-pipe-filter-gi1.c (main): Likewise.
78815 2009-08-16  Eric Blake  <ebb9@byu.net>
78817         fpurge: fix previous commits
78818         * modules/fpurge (Makefile.am): Make replacement conditional,
78819         partially reverting 2007-04-29 change; missed in previous
78820         attempt.
78821         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78822         is missing.
78824 2009-08-16  Bruno Haible  <bruno@clisp.org>
78826         Clarify fpurge's effect on the file position.
78827         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78828         * tests/test-fpurge.c (main): Make a second pass for checking the file
78829         position.
78831 2009-08-16  Bruno Haible  <bruno@clisp.org>
78833         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78834         declaration of fpurge is missing.
78835         * tests/test-fpurge.c (main): Check that the file has not more contents
78836         than expected. Close the file before removing it.
78838 2009-08-15  Eric Blake  <ebb9@byu.net>
78840         fpurge: don't wrap working cygwin implementation
78841         * lib/fpurge.c (fpurge): Fix comment typo.
78842         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78843         1.7 to avoid replacement.
78844         * tests/test-fpurge.c (main): Enhance test.
78846 2009-08-15  Eric Blake  <ebb9@byu.net>
78847         and Jim Meyering  <meyering@redhat.com>
78849         test-update-copyright: skip if perl is insufficient
78850         * tests/test-update-copyright.sh: Failure to run maintainer tool
78851         should not cause testsuite failure on cygwin 1.5.
78853 2009-08-14  Eric Blake  <ebb9@byu.net>
78855         doc: mention more functions added in cygwin 1.7.0
78856         * doc/posix-headers/limits.texi (limits.h): Update for recent
78857         cygwin additions.
78858         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78859         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78860         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78861         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78862         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78864 2009-08-14  Eric Blake  <ebb9@byu.net>
78866         maint.mk: simplify update-copyright rule
78867         * top/maint.mk (update-copyright-local): Delete, and document how
78868         to do it in cfg.mk instead.
78869         (update-copyright-exclude-regexp): Delete, and document how to do
78870         it in .x-update-copyright instead.
78871         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78872         exclude ChangeLog.
78874 2009-08-14  Bruno Haible  <bruno@clisp.org>
78876         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78878 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78880         maint.mk: support update-copyright-env
78881         * top/maint.mk (update-copyright-env): Define place-holder.
78882         (update-copyright): Expand $(update-copyright-env) before
78883         invoking update-copyright.
78885 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78887         update-copyright: implement forced reformatting
78888         * build-aux/update-copyright: Implement and document
78889         UPDATE_COPYRIGHT_FORCE.
78890         * tests/test-update-copyright.sh: Test it.
78892 2009-08-14  Eric Blake  <ebb9@byu.net>
78893         and Bruno Haible  <bruno@clisp.org>
78895         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78896         * tests/test-locale.c: Revert previous patch related to NULL.
78897         * tests/test-stdio.c: Likewise.
78898         * tests/test-stdlib.c: Likewise.
78899         * tests/test-string.c: Likewise.
78900         * tests/test-unistd.c: Likewise.
78901         * modules/time-tests (Depends-on): Add verify.
78902         * modules/wchar-tests (Depends-on): Likewise.
78903         * tests/test-time.c: Test for NULL compliance.
78904         * tests/test-wchar.c: Likewise.
78905         * modules/locale (Depends-on): Add stddef.
78906         * modules/stdio (Depends-on): Likewise.
78907         * modules/stdlib (Depends-on): Likewise.
78908         * modules/string (Depends-on): Likewise.
78909         * modules/time (Depends-on): Likewise.
78910         * modules/unistd (Depends-on): Likewise.
78911         * modules/wchar (Depends-on): Likewise.
78912         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78913         * lib/stdlib.in.h (includes): Likewise.
78914         * lib/string.in.h (includes): Likewise.
78915         * lib/time.in.h (includes): Likewise.
78916         * lib/unistd.in.h (includes): Likewise.
78917         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78918         replaced.
78919         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78920         * m4/stddef_h.m4: New file.
78921         * modules/stddef: Likewise.
78922         * lib/stddef.in.h: Likewise.
78923         * modules/stddef-tests: Likewise.
78924         * tests/test-stddef.c: Likewise.
78925         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78926         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78927         * doc/posix-headers/locale.texi (locale.h): Likewise.
78928         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78929         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78930         * doc/posix-headers/string.texi (string.h): Likewise.
78931         * doc/posix-headers/time.texi (time.h): Likewise.
78932         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78933         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78935 2009-08-14  Eric Blake  <ebb9@byu.net>
78937         doc: improve git diff of texinfo files
78938         * .gitattributes: Add rule for *.texi files, with hint on how to
78939         use it.
78940         Copied from m4, and based on a report by Bruno Haible.
78942 2009-08-14  Bruno Haible  <bruno@clisp.org>
78944         Disable multithread support by default on Cygwin 1.5.x for real.
78945         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78947 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78949         update-copyright: much ado about intervals
78950         * build-aux/update-copyright: Implement and document
78951         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78952         of copyright year intervals.
78953         Also, document UPDATE_COPYRIGHT_YEAR.
78954         * tests/test-update-copyright.sh: Test it.
78956         update-copyright: convert 2-digit to 4-digit years
78957         * build-aux/update-copyright: Implement and document.
78958         * tests/test-update-copyright.sh: Update.
78960 2009-08-14  Jim Meyering  <meyering@redhat.com>
78962         test-exclude: avoid coreutils "make check" failure
78963         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78964         just as in test-argmatch.c.
78966 2009-08-13  Eric Blake  <ebb9@byu.net>
78968         test-dup2: fix bad assumption
78969         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78970         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78972         test-version-etc: fix CRLF portability issue
78973         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78974         recognize \r.
78975         * tests/test-argp-version-etc-1.sh: Likewise.
78977         getopt: update client modules
78978         * modules/argp (Depends-on): Use getopt-gnu.
78979         * modules/git-merge-changelog (Depends-on): Likewise.
78980         * modules/long-options (Depends-on): Likewise.
78981         * modules/xstrtol (Depends-on): Likewise.
78983 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78985         * tests/test-version-etc.sh: Don't fail on different
78986         project/version.  Don't fail on CRLF differences.  Rewrite to use
78987         multiple -e instead of multiple sed forks, suggested by Eric Blake
78988         <ebb9@byu.net>.
78989         * tests/test-argp-version-etc-1.sh: Likewise.
78991 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78993         * tests/test-version-etc.sh: Don't fail on different
78994         project/version.
78996 2009-08-12  Bruno Haible  <bruno@clisp.org>
78998         Tests for modules 'getopt-posix', 'getopt-gnu'.
78999         * modules/getopt-posix-tests: New file.
79000         * tests/test-getopt.c: New file.
79001         * tests/test-getopt.h: New file.
79002         * tests/test-getopt_long.h: New file.
79004         New modules 'getopt-posix', 'getopt-gnu'.
79005         * modules/getopt-gnu: New file, renamed from modules/getopt.
79006         * modules/getopt-posix: New file.
79007         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
79008         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
79009         (gl_GETOPT): Remove macro.
79010         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
79011         Disable the test against BSD systems that declare optreset. Test
79012         against mingw bug. Test against lack of support of optional arguments
79013         on many platforms.
79014         * doc/glibc-headers/getopt.texi: Update module name and list of
79015         relevant platforms.
79016         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
79017         'getopt-gnu' and more portability problems.
79018         * NEWS: Mention the changes.
79020 2009-08-12  Bruno Haible  <bruno@clisp.org>
79022         Ensure that optarg etc. get declared by <unistd.h>.
79023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
79024         AC_USE_SYSTEM_EXTENSIONS.
79025         * modules/getopt (Depends-on): Add 'extensions'.
79027 2009-08-12  Bruno Haible  <bruno@clisp.org>
79029         Avoid test link errors.
79030         * modules/pipe-filter-ii-tests (Makefile.am): Define
79031         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
79032         * modules/pipe-filter-gi-tests (Makefile.am): Define
79033         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
79034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79036 2009-08-12  Bruno Haible  <bruno@clisp.org>
79038         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
79039         gl_GETOPT_SUBSTITUTE before.
79040         (gl_GETOPT): Use it.
79041         * m4/argp.m4 (gl_ARGP): Update.
79042         Reported by Sergey Poznyakoff.
79044         * m4/getopt.m4: Reorder macros.
79045         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
79046         (gl_GETOPT_SUBSTITUTE): Remove macro.
79048 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79050         Minor improvement in gitlog-to-changelog
79052         * build-aux/gitlog-to-changelog: New option `--format' makes
79053         output format string configurable.
79055 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79057         Optimize exclude: use hash tables for non-wildcard patterns.
79059         * lib/exclude.c: Include hash.h and mbuiter.h
79060         (struct exclude_pattern, exclude_segment): New data types.
79061         (struct exclude): Rewrite.
79062         (fnmatch_pattern_has_wildcards): New function.
79063         (new_exclude_segment, free_exclude_segment): New functions.
79064         (excluded_file_pattern_p, excluded_file_name_p): New functions.
79065         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
79066         * lib/exclude.h (is_fnmatch_pattern): New prototype.
79067         * modules/exclude: Depend on hash and mbuiter.
79069         * modules/exclude-tests: New file.
79070         * tests/test-exclude.c: New file.
79071         * tests/test-exclude1.sh: New file.
79072         * tests/test-exclude2.sh: New file.
79073         * tests/test-exclude3.sh: New file.
79074         * tests/test-exclude4.sh: New file.
79075         * tests/test-exclude5.sh: New file.
79076         * tests/test-exclude6.sh: New file.
79077         * tests/test-exclude7.sh: New file.
79079 2009-08-12  Bruno Haible  <bruno@clisp.org>
79081         Ensure that getopt() gets declared by <unistd.h>.
79082         * lib/unistd.in.h: Conditionally include getopt.h.
79083         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
79084         Set GNULIB_UNISTD_H_GETOPT.
79085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79086         GNULIB_UNISTD_H_GETOPT.
79087         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
79089 2009-08-12  Bruno Haible  <bruno@clisp.org>
79091         Clarify logic.
79092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
79093         gl_replace_getopt instead of GETOPT_H.
79095 2009-08-12  Bruno Haible  <bruno@clisp.org>
79097         * m4/getopt.m4: Add comments.
79099 2009-08-12  Bruno Haible  <bruno@clisp.org>
79101         Disable multithread support by default on Cygwin 1.5.x.
79102         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
79103         set gl_use_threads=no if not specified otherwise.
79105 2009-08-11  Bruno Haible  <bruno@clisp.org>
79107         Avoid compilation error on NetBSD 5.0.
79108         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
79109         * tests/test-stdio.c: Likewise.
79110         * tests/test-stdlib.c: Likewise.
79111         * tests/test-string.c: Likewise.
79112         * tests/test-unistd.c: Likewise.
79113         Reported by Greg Troxel <gdt@ir.bbn.com>
79114         at <https://savannah.gnu.org/support/?106973>.
79116 2009-08-11  Bruno Haible  <bruno@clisp.org>
79118         * modules/dup2-tests (Depends-on): Remove close.
79120         Undo 2009-07-19 commit.
79121         * modules/acl-tests (Depends-on): Remove close.
79122         * modules/binary-io-tests (Depends-on): Likewise.
79123         * modules/closein-tests (Depends-on): Likewise.
79124         * modules/flock-tests (Depends-on): Likewise.
79125         * modules/fsync-tests (Depends-on): Likewise.
79126         * modules/lseek-tests (Depends-on): Likewise.
79127         * modules/pipe-tests (Depends-on): Likewise.
79128         * modules/posix_spawn-tests (Depends-on): Likewise.
79129         * modules/posix_spawnp-tests (Depends-on): Likewise.
79130         * modules/stat-time-tests (Depends-on): Likewise.
79131         * modules/yesno-tests (Depends-on): Likewise.
79133 2009-08-10  Bruno Haible  <bruno@clisp.org>
79135         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
79137 2009-08-10  Bruno Haible  <bruno@clisp.org>
79139         Fix a gcc warning.
79140         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
79142 2009-08-10  Bruno Haible  <bruno@clisp.org>
79144         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
79145         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
79146         not only the first time.
79147         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
79148         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
79149         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
79150         is 1, not only the first time.
79152 2009-08-10  Bruno Haible  <bruno@clisp.org>
79154         Make it possible to use module 'gethostname' without module 'close'.
79155         * lib/unistd.in.h (close): Evoke a link error only if
79156         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79158         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79159         * modules/unistd (Makefile.am): Substitute
79160         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79161         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
79162         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
79164         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79165         * modules/sys_ioctl (Makefile.am): Substitute
79166         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79167         * modules/socket (configure.ac): On native Windows, set
79168         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
79169         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79170         Reported by Sam Steingold <sds@gnu.org>.
79172 2009-08-10  Bruno Haible  <bruno@clisp.org>
79174         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
79175         * modules/ioctl (configure.ac): Likewise.
79177 2009-08-10  Bruno Haible  <bruno@clisp.org>
79179         Avoid collision between gnulib wrapper and libintl wrapper.
79180         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
79181         already defined in intl/printf.c.
79182         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
79183         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
79185 2009-08-09  Bruno Haible  <bruno@clisp.org>
79187         Make <sys/select.h> really self-contained, also on Solaris 10.
79188         * lib/sys_select.in.h: Include <string.h>.
79189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
79190         Solaris 10 problem.
79191         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
79192         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
79193         Reported by Jim Meyering.
79195 2009-08-09  Bruno Haible  <bruno@clisp.org>
79197         Avoid warnings from 'aclocal' that are due to a use of macro name
79198         AM_XGETTEXT_OPTION that is not defined in automake.
79199         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
79200         automake.
79201         * modules/error (configure.ac): Likewise.
79202         * modules/propername (configure.ac): Likewise.
79203         * modules/vasprintf (configure.ac): Likewise.
79204         * modules/verror (configure.ac): Likewise.
79205         * modules/xprintf (configure.ac): Likewise.
79206         * modules/xvasprintf (configure.ac): Likewise.
79208 2009-08-08  Bruno Haible  <bruno@clisp.org>
79210         Avoid compilation error in C++ mode.
79211         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
79212         Reported by Sam Steingold <sds@gnu.org>.
79214 2009-08-08  Bruno Haible  <bruno@clisp.org>
79216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
79217         for the various Unix platforms.
79218         * doc/posix-headers/limits.texi: Update platforms list regarding
79219         HOST_NAME_MAX.
79220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79222 2009-08-07  Jim Meyering  <meyering@redhat.com>
79224         selinux-at: fix typo in a comment
79225         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
79226         Spotted by Paolo Bonzini.
79228         selinux-at: remove redundant m4 code, add documentation
79229         * modules/selinux-at (configure.ac): Remove redundant code.
79230         LIB_SELINUX is already set via the dependent module, selinux-h.
79231         (Include): Add quotes around selinux-at.h.
79232         * lib/selinux-at.h: Add documentation.
79233         Reported by Bruno Haible in
79234         http://marc.info/?l=gnulib-bug&m=124958988300749
79236 2009-08-07  Bruno Haible  <bruno@clisp.org>
79238         Avoid link error on MacOS X 10.3 and 10.4.
79239         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
79240         on non-ELF systems.
79241         * lib/argp-pv.c (argp_program_version): Likewise.
79242         Reported by Simon Josefsson.
79244 2009-08-07  Simon Josefsson  <simon@josefsson.org>
79246         * tests/test-version-etc.sh: Use $EXEEXT.
79248 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
79250         update-copyright: update documentation to point to maint.mk
79251         * build-aux/update-copyright: Here.
79253 2009-08-06  Jim Meyering  <meyering@redhat.com>
79255         maint.mk: support update-copyright-local
79256         * top/maint.mk (update-copyright-local): Define place-holder.
79257         (update-copyright): Depend on $(update-copyright-local).
79259 2009-08-06  Jim Meyering  <meyering@redhat.com>
79261         selinux-at: new module
79262         Initially written for coreutils, this module will soon be
79263         used by findutils, too.
79264         * MODULES.html.sh [Misc]: Add selinux-at.
79265         * lib/selinux-at.h: New file, from coreutils.
79266         * lib/selinux-at.c: Likewise.
79267         * modules/selinux-at: Likewise.
79268         (License): Change from LGPL to GPL, since it depends
79269         on the GPL'd openat module.
79271         doc: update README
79272         * README: Remove references to cogito.
79273         Remove cvs-repo-updating instructions from 2007.
79274         Don't imply that CVS is better if you have limited disk space.
79276 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79278         update-copyright: support C-style comments
79279         * build-aux/update-copyright: Implement and document.
79280         * tests/test-update-copyright.sh: Test.
79282 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79284         update-copyright: support omitted "(C)"
79285         * build-aux/update-copyright: Implement and document.  Also,
79286         allow variable whitespace before "(C)".
79287         * tests/test-update-copyright.sh: Test.
79289 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79291         update-copyright: don't trip on non-FSF copyright statements
79292         * build-aux/update-copyright: Fix so that the first correctly
79293         formatted FSF copyright statement is recognized no matter what
79294         appears before it.  Update documentation.
79295         * tests/test-update-copyright.sh: Test that.
79297 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79299         update-copyright: clean up code a little
79300         * build-aux/update-copyright: Append "_re" to the name of any
79301         variable holding a regular expression.
79302         Replace "old" and "new" with "stmt" in variable names.
79303         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
79304         handled correctly.
79305         Format code more consistently.
79307 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79309         update-copyright-tests: improve portability
79310         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
79311         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
79313 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79315         update-copyright: support @copyright{} and &copy;
79316         * build-aux/update-copyright: Implement and document.
79317         * tests/test-update-copyright.sh: Test.
79319 2009-08-04  Jim Meyering  <meyering@redhat.com>
79321         update-copyright-tests: correctly test EOL=\r\n handling
79322         * tests/test-update-copyright.sh: Put \r at the end of some lines
79323         for the dos-eol tests.  Based on a patch by Joel E. Denny.
79325         maint.mk: make update-copyright exclusion list more configurable
79326         * top/maint.mk (update-copyright): Default to excluding COPYING,
79327         but allow an override, in case someone does want to update that file.
79329         maint.mk: don't update copyright date in COPYING
79330         * top/maint.mk (update-copyright): Exclude COPYING.
79332         maint.mk: add a copyright-updating rule
79333         * top/maint.mk (update-copyright): New rule.
79334         Derived from coreutils/Makefile.am.
79336         update-copyright: rename some variables
79337         * build-aux/update-copyright: Rename a few variables for clarity.
79338         Tweak syntax.  List Joel E. Denny as coauthor.
79340 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79342         update-copyright: fix bug for 2-digit last year and add tests
79343         * build-aux/update-copyright: Fix bug.
79344         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
79345         specified.
79346         * modules/update-copyright-tests: New
79347         * tests/test-update-copyright.sh: New.
79349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79351         update-copyright: handle leading tabs in line prefix
79352         * build-aux/update-copyright: Count leading tabs as 8 spaces
79353         when computing margin.  This helps with the formatting of
79354         ChangeLogs, for example.
79355         Fix documentation a little.
79357 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79359         update-copyright: support EOL=\r\n
79360         * build-aux/update-copyright: Implement that.
79362 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79364         update-copyright: automatically format copyright statements
79365         * build-aux/update-copyright: Implement that.
79366         Also, be a little more predictable and safer by always failing
79367         when the full copyright format is not perfectly recognized as an
79368         unbroken whole.  Discussed at
79369         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
79370         Rewrite documentation.
79372 2009-08-03  Bruno Haible  <bruno@clisp.org>
79374         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
79376 2009-08-02  Bruno Haible  <bruno@clisp.org>
79378         Tests for module 'uname'.
79379         * modules/uname-tests: New file.
79380         * tests/test-uname.c: New file.
79382         New module 'uname'.
79383         * lib/uname.c: New file.
79384         * m4/uname.m4: New file.
79385         * modules/uname: New file.
79386         * doc/posix-functions/uname.texi: Mention the new module.
79388 2009-08-02  Bruno Haible  <bruno@clisp.org>
79390         Tests for module 'sys_utsname'.
79391         * modules/sys_utsname-tests: New file.
79392         * tests/test-sys_utsname.c: New file.
79394         New module 'sys_utsname'.
79395         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
79396         * m4/sys_utsname_h.m4: New file.
79397         * modules/sys_utsname: New file.
79398         * doc/posix-headers/sys_utsname.texi: Mention the new module.
79400 2009-08-02  Bruno Haible  <bruno@clisp.org>
79402         Implicitly initialize the sockets library.
79403         * lib/gethostname.c: Include sockets.h.
79404         (rpl_gethostname): Invoke gl_sockets_startup.
79405         * lib/socket.c: Include sockets.h.
79406         (rpl_socket): Invoke gl_sockets_startup.
79407         * modules/gethostname (Depends-on): Add sockets.
79408         * modules/socket (Depends-on): Likewise.
79409         * tests/test-poll.c: Don't include sockets.h.
79410         (main): Don't invoke gl_sockets_startup.
79411         * tests/test-select.c: Don't include sockets.h.
79412         (main): Don't invoke gl_sockets_startup.
79414 2009-08-02  Bruno Haible  <bruno@clisp.org>
79416         Allow multiple calls to gl_sockets_startup.
79417         * lib/sockets.c (initialized_sockets_version): New variable.
79418         (gl_sockets_startup): Do nothing if already called for this or a higher
79419         version.
79420         (gl_sockets_cleanup): Reset initialized_sockets_version.
79422 2009-08-03  Simon Josefsson  <simon@josefsson.org>
79424         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
79425         different project/version.
79427 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
79428             Bruno Haible  <bruno@clisp.org>
79430         Tests for module 'pipe-filter-gi'.
79431         * modules/pipe-filter-gi-tests: New file.
79432         * tests/test-pipe-filter-gi1.sh: New file.
79433         * tests/test-pipe-filter-gi1.c: New file.
79434         * tests/test-pipe-filter-gi2.sh: New file.
79435         * tests/test-pipe-filter-gi2-main.c: New file.
79436         * tests/test-pipe-filter-gi2-child.c: New file.
79438         New module 'pipe-filter-gi'.
79439         * lib/pipe-filter-gi.c: New file.
79440         * modules/pipe-filter-gi: New file.
79442 2009-08-02  Bruno Haible  <bruno@clisp.org>
79443             Paolo Bonzini  <bonzini@gnu.org>
79445         Tests for module 'pipe-filter-ii'.
79446         * modules/pipe-filter-ii-tests: New file.
79447         * tests/test-pipe-filter-ii1.sh: New file.
79448         * tests/test-pipe-filter-ii1.c: New file.
79449         * tests/test-pipe-filter-ii2.sh: New file.
79450         * tests/test-pipe-filter-ii2-main.c: New file.
79451         * tests/test-pipe-filter-ii2-child.c: New file.
79453         New module 'pipe-filter-ii'.
79454         * lib/pipe-filter.h: New file.
79455         * lib/pipe-filter-ii.c: New file.
79456         * lib/pipe-filter-aux.h: New file.
79457         * modules/pipe-filter-ii: New file.
79459 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79461         * lib/gc-libgcrypt.c: Change copyright to FSF.
79462         * lib/gc-gnulib.c: Likewise.
79464 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
79466         * lib/gethostname.c: Include limits.h.
79468 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79469             Bruno Haible  <bruno@clisp.org>
79471         Ensure HOST_NAME_MAX as part of the gethostname module.
79472         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
79473         define also HOST_NAME_MAX.
79474         * tests/test-gethostname.c: Include <limits.h>.
79475         (main): Check also HOST_NAME_MAX.
79476         * doc/posix-headers/limits.texi: Document the mingw problem.
79478 2009-08-02  Bruno Haible  <bruno@clisp.org>
79480         * lib/gethostname.c (gethostname): Fix handling of large len argument.
79481         Add comments.
79483 2009-03-31  Simon Josefsson  <simon@josefsson.org>
79485         * lib/gethostname.c: Add Windows wrapper.
79486         * m4/gethostname.m4: Look for gethostname in -lws2_32.
79487         * modules/gethostname: Depend on sys_socket & errno, for also
79488         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
79489         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
79491 2009-07-31  Jim Meyering  <meyering@redhat.com>
79493         getloadavg: fix symbol name in comment
79494         * lib/getloadavg.c: Correct a typo I introduced when adding
79495         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
79496         Matt Kraai spotted the problem.
79498 2009-07-29  Matt Kraai  <mkraai@beckman.com>
79500         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
79501         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
79502         code also if ! defined N_NAME_POINTER.
79503         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
79504         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
79505         but the n_name member is a 12-byte array.
79507 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
79509         update-copyright: generalize comment handling
79510         * build-aux/update-copyright: Handle copyright statements
79511         within more comment styles.
79512         Document usage.
79513         Report any file with an external copyright holder or parse failure.
79515 2009-07-29  Jim Meyering  <meyering@redhat.com>
79517         mktime: correct setting of REPLACE_MKTIME
79518         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
79520         update-copyright: new module
79521         * modules/update-copyright: New file.
79522         * build-aux/update-copyright: New file.
79523         * MODULES.html.sh (maint+release support): Add update-copyright.
79525 2009-07-27  Bruno Haible  <bruno@clisp.org>
79527         Fix compilation error when <ctime> is used and mktime is replaced.
79528         * lib/time.in.h (mktime): New declaration.
79529         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
79530         REPLACE_MKTIME instead of defining mktime in config.h.
79531         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
79532         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
79533         Reported by Ross McFarland <rwmcfa1@neces.com>.
79535 2009-07-27  Bruno Haible  <bruno@clisp.org>
79537         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
79538         Reported by Matt Kraai <mkraai@beckman.com>.
79540 2009-07-25  Jim Meyering  <meyering@redhat.com>
79542         maint.mk: avoid warnings about missing files
79543         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
79544         diagnostic when .prev-version does not exist.
79545         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
79546         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
79547         nonexistent cfg.mk.
79548         Suggestions from Simon Josefsson.
79550 2009-07-25  Bruno Haible  <bruno@clisp.org>
79552         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
79553         defined as macros. Needed on QNX 6.4.1.
79554         Reported by Matt Kraai <mkraai@beckman.com>.
79556 2009-07-23  Jim Meyering  <meyering@redhat.com>
79558         maint.mk: invoke "make dist" with a working value of XZ_OPT
79559         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
79561 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
79563         Make fseeko.c compile on QNX.
79564         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
79566 2009-07-22  Peter Simons  <simons@cryp.to>
79568         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
79569         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
79570         * lib/md4.h: Likewise.
79571         * lib/md5.h: Likewise.
79572         * lib/sha1.h: Likewise.
79573         * lib/sha256.h: Likewise.
79574         * lib/sha512.h: Likewise.
79576         tests-sha1: don't assign literal string to 'char *' variable
79577         * tests/test-sha1.c (main): Declare locals with "const" to match
79578         attributes of the right hand side.
79580 2009-07-21  Eric Blake  <ebb9@byu.net>
79582         dup2: fix more mingw problems
79583         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
79584         fd to itself.
79585         * doc/posix-functions/dup2.texi (dup2): Document the bug.
79586         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79587         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79588         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79589         care of mingw bugs.
79591 2009-07-21  Jim Meyering  <meyering@redhat.com>
79593         vc-list-files: avoid failure when /bin/sh is dash
79594         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79595         On some Debian based systems, /bin/sh is a symlink to dash, and running
79596         this command would omit the "/" following each 'tests' prefix:
79597           dash -x build-aux/vc-list-files -C . tests
79598         That is because bash and dash work differently:
79599           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79600           bash ok
79601           dash odd
79603 2009-07-21  Eric Blake  <ebb9@byu.net>
79605         dup2-tests: test previous patch
79606         * modules/dup2-tests: New file.
79607         * tests/test-dup2.c: Likewise.
79608         * tests/test-open.c (main): Avoid unspecified behavior.
79609         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79610         test.
79612         dup2: work around mingw and cygwin 1.5 bug
79613         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79615         * modules/unistd (Makefile.am): Substitute it.
79616         * lib/unistd.in.h (dup2): Declare the replacement.
79617         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79618         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79619         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79620         * modules/execute (Depends-on): Add dup2.
79621         * modules/fseterr (Depends-on): Likewise.
79622         * modules/pipe (Depends-on): Likewise.
79623         * modules/posix_spawn-internal (Depends-on): Likewise.
79625 2009-07-21  Bruno Haible  <bruno@clisp.org>
79627         * modules/.gitattributes: New file.
79629 2009-07-20  Bruno Haible  <bruno@clisp.org>
79631         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79632         (main): Use it.
79634 2009-07-20  Eric Blake  <ebb9@byu.net>
79636         test-pipe: make a bit more robust.
79637         * tests/test-pipe.c (myerr): Allow error messages regardless of
79638         what we do to stderr.
79639         (test_pipe): Rearrange to avoid deadlock.
79640         (child_main): Try a larger read, to ensure we avoided deadlock.
79641         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79642         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79643         if misused.
79645 2009-07-19  Jim Meyering  <meyering@redhat.com>
79647         fts: avoid false-positive cycle-detection
79648         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79649         for each new command line argument.
79651 2009-07-19  Bruno Haible  <bruno@clisp.org>
79653         Fix build error on mingw with the modules sys_select and unistd.
79654         * modules/acl-tests (Depends-on): Add close.
79655         * modules/binary-io-tests (Depends-on): Likewise.
79656         * modules/closein-tests (Depends-on): Likewise.
79657         * modules/flock-tests (Depends-on): Likewise.
79658         * modules/fsync-tests (Depends-on): Likewise.
79659         * modules/lseek-tests (Depends-on): Likewise.
79660         * modules/pipe-tests (Depends-on): Likewise.
79661         * modules/posix_spawn-tests (Depends-on): Likewise.
79662         * modules/posix_spawnp-tests (Depends-on): Likewise.
79663         * modules/stat-time-tests (Depends-on): Likewise.
79664         * modules/yesno-tests (Depends-on): Likewise.
79666 2009-07-19  Bruno Haible  <bruno@clisp.org>
79668         Unify conditionals.
79669         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79670         macros, not at the compiler macros.
79671         * lib/pipe.c: Likewise.
79672         * lib/execute.c: Likewise.
79673         * lib/spawni.c: Likewise.
79675 2009-07-19  Bruno Haible  <bruno@clisp.org>
79677         Fix handling of closed stdin/stdout/stderr on mingw.
79678         * lib/w32spawn.h: Include unistd.h.
79679         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79680         file descriptor with O_NOINHERIT flag.
79681         (fd_safer_noinherit): New function, based on fd-safer.c.
79682         (dup_safer_noinherit): New function, based on dup-safer.c.
79683         (undup_safer_noinherit): New function.
79684         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79685         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79686         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79687         instead of fd_safer.
79688         * tests/test-pipe.c: Include <windows.h>.
79689         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79690         result.
79692         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79693         from main.
79694         (test_pipe): Pass an extra argument for disambiguation.
79695         (main): Invoke parent_main or child_main.
79697         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79698         consistently.
79700 2009-07-18  Eric Blake  <ebb9@byu.net>
79702         test-pipe: fix mingw build
79703         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79705 2009-07-18  Bruno Haible  <bruno@clisp.org>
79707         * modules/pipe-tests (Makefile.am): Fix typo.
79709 2009-07-18  Eric Blake  <ebb9@byu.net>
79711         error: fix mingw build
79712         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79713         Reported by Bruno Haible.
79715         error: avoid undefined use of stdout
79716         * lib/error.c (error, error_at_line): Check that fd 1 is open
79717         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79718         is handling faults and the close_stdout module wants to report the
79719         detection of closed stdout as an error.
79721 2009-07-17  Eric Blake  <ebb9@byu.net>
79723         pipe: be robust in face of closed fds
79724         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79725         should cause child to misbehave.
79726         * modules/pipe-tests: New module.
79727         * tests/test-pipe.c: New file.
79728         * tests/test-pipe.sh: New file.
79729         Reported by Akim Demaille.
79731 2009-07-14  Bruno Haible  <bruno@clisp.org>
79733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79734         Reported by anonymous kc.
79736 2009-07-07  Jim Meyering  <meyering@redhat.com>
79738         maint.mk: don't look for translatable strings in *.m4 or *.mk
79739         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79740         when searching for translatable strings.
79742 2009-07-05  Jim Meyering  <meyering@redhat.com>
79744         remove superfluous parentheses in STREQ definition
79745         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79746         * lib/getugroups.c (STREQ): Likewise.
79747         * lib/fnmatch.c (STREQ): Likewise.
79748         Spotted by Bruno Haible.
79750 2009-07-04  Jim Meyering  <meyering@redhat.com>
79752         argv-iter: new module
79753         * MODULES.html.sh: Add argv-iter.
79754         * lib/argv-iter.c, lib/argv-iter.h: New files.
79755         * modules/argv-iter: New file.
79756         * modules/argv-iter-tests: New file.
79757         * tests/test-argv-iter.c: Test it.
79759 2009-07-04  Bruno Haible  <bruno@clisp.org>
79761         Fix assertion.
79762         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79763         contains more exact copies of a given entry than file2, leave the extra
79764         copies unpaired rather than aborting.
79765         Reported by Eric Blake.
79767 2009-07-02  Bruno Haible  <bruno@clisp.org>
79769         Speedup git-merge-changelog for git cherry-pick.
79770         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79771         (entries_mapping_get): New function, extracted from compute_mapping.
79772         (entries_mapping_reverse_get): New function.
79773         (compute_mapping): Add a 'full' argument. Return the result in a
79774         'struct entries_mapping'.
79775         (main): Update. Access the mappings through entries_mapping_get.
79776         Reported by Eric Blake.
79778 2009-07-02  Bruno Haible  <bruno@clisp.org>
79780         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79781         best_i.
79783 2009-07-02  Bruno Haible  <bruno@clisp.org>
79785         Speed up approximate search for matching ChangeLog entries.
79786         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79787         argument. Call fstrcmp_bounded instead of fstrcmp.
79788         (compute_mapping, try_split_merged_entry, main): Update callers.
79790 2009-07-02  Bruno Haible  <bruno@clisp.org>
79792         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79794 2009-06-30  Bruno Haible  <bruno@clisp.org>
79796         Reduce the number of uc_is_cased calls.
79797         * lib/unicase.h (casing_suffix_context_t): Add
79798         'first_char_except_ignorable' field.
79799         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79800         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79801         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79802         Update initializer.
79803         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79804         case-ignorable characters.
79805         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79806         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79807         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79808         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79809         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79811 2009-06-30  Bruno Haible  <bruno@clisp.org>
79813         Tests for module 'unicase/ignorable'.
79814         * modules/unicase/ignorable-tests: New file.
79815         * tests/unicase/test-ignorable.c: New file, generated by
79816         gen-uni-tables.
79818         Tests for module 'unicase/cased'.
79819         * modules/unicase/cased-tests: New file.
79820         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79821         * tests/unicase/test-predicate-part1.h: New file, derived from
79822         tests/unictype/test-predicate-part1.h.
79823         * tests/unicase/test-predicate-part2.h: New file, same as
79824         tests/unictype/test-predicate-part2.h.
79826         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79827         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79828         (output_casing_properties): New function.
79829         (main): Call it.
79830         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79831         * lib/unicase/cased.c: Include unictype/bitmap.h.
79832         (uc_is_cased): Define through a bitmap lookup.
79833         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79834         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79835         (uc_is_case_ignorable): Define through a bitmap lookup.
79836         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79837         lib/unictype/bitmap.h.
79838         (Depends-on): Add inline. Clean up.
79839         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79840         lib/unictype/bitmap.h.
79841         (Depends-on): Add inline. Clean up.
79842         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79843         recognition.
79844         * tests/unicase/test-u16-tolower.c (main): Likewise.
79845         * tests/unicase/test-u32-tolower.c (main): Likewise.
79847 2009-06-30  Bruno Haible  <bruno@clisp.org>
79849         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79850         * lib/unicase/u16-casemap.c: Likewise.
79851         * lib/unicase/u32-casemap.c: Likewise.
79853 2009-06-29  Bruno Haible  <bruno@clisp.org>
79855         Define u32_casefold as a wrapper around u32_ct_casefold.
79856         * lib/unicase/u32-casefold.c: Update.
79857         * modules/unicase/u32-casefold (Depends-on): Add
79858         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79859         unicase/empty-suffix-context. Clean up.
79861         Define u16_casefold as a wrapper around u16_ct_casefold.
79862         * lib/unicase/u16-casefold.c: Update.
79863         * modules/unicase/u16-casefold (Depends-on): Add
79864         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79865         unicase/empty-suffix-context. Clean up.
79867         Define u8_casefold as a wrapper around u8_ct_casefold.
79868         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79869         * lib/unicase/u8-casefold.c: Update.
79870         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79871         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79873         Define u32_totitle as a wrapper around u32_ct_totitle.
79874         * lib/unicase/u32-totitle.c: Update.
79875         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79876         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79878         Define u16_totitle as a wrapper around u16_ct_totitle.
79879         * lib/unicase/u16-totitle.c: Update.
79880         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79881         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79883         Define u8_totitle as a wrapper around u8_ct_totitle.
79884         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79885         functions.
79886         (FUNC): Delegate to U_CT_TOTITLE.
79887         * lib/unicase/u8-totitle.c: Update.
79888         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79889         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79891         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79892         invocation.
79893         * modules/unicase/u32-tolower (Depends-on): Add
79894         unicase/empty-prefix-context, unicase/empty-suffix-context.
79896         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79897         invocation.
79898         * modules/unicase/u16-tolower (Depends-on): Add
79899         unicase/empty-prefix-context, unicase/empty-suffix-context.
79901         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79902         * modules/unicase/u8-tolower (Depends-on): Add
79903         unicase/empty-prefix-context, unicase/empty-suffix-context.
79905         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79906         invocation.
79907         * modules/unicase/u32-toupper (Depends-on): Add
79908         unicase/empty-prefix-context, unicase/empty-suffix-context.
79910         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79911         invocation.
79912         * modules/unicase/u16-toupper (Depends-on): Add
79913         unicase/empty-prefix-context, unicase/empty-suffix-context.
79915         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79916         * modules/unicase/u8-toupper (Depends-on): Add
79917         unicase/empty-prefix-context, unicase/empty-suffix-context.
79919         New module 'unicase/u32-ct-casefold'.
79920         * lib/unicase/u32-ct-casefold.c: New file.
79921         * modules/unicase/u32-ct-casefold: New file.
79923         New module 'unicase/u16-ct-casefold'.
79924         * lib/unicase/u16-ct-casefold.c: New file.
79925         * modules/unicase/u16-ct-casefold: New file.
79927         New module 'unicase/u8-ct-casefold'.
79928         * lib/unicase/u8-ct-casefold.c: New file.
79929         * lib/unicase/u-ct-casefold.h: New file, derived from
79930         lib/unicase/u-casefold.h.
79931         * modules/unicase/u8-ct-casefold: New file.
79933         New module 'unicase/u32-ct-totitle'.
79934         * lib/unicase/u32-ct-totitle.c: New file.
79935         * modules/unicase/u32-ct-totitle: New file.
79937         New module 'unicase/u16-ct-totitle'.
79938         * lib/unicase/u16-ct-totitle.c: New file.
79939         * modules/unicase/u16-ct-totitle: New file.
79941         New module 'unicase/u8-ct-totitle'.
79942         * lib/unicase/u8-ct-totitle.c: New file.
79943         * lib/unicase/u-ct-totitle.h: New file, derived from
79944         lib/unicase/u-totitle.h.
79945         * modules/unicase/u8-ct-totitle: New file.
79947         New module 'unicase/u32-ct-tolower'.
79948         * lib/unicase/u32-ct-tolower.c: New file.
79949         * modules/unicase/u32-ct-tolower: New file.
79951         New module 'unicase/u16-ct-tolower'.
79952         * lib/unicase/u16-ct-tolower.c: New file.
79953         * modules/unicase/u16-ct-tolower: New file.
79955         New module 'unicase/u8-ct-tolower'.
79956         * lib/unicase/u8-ct-tolower.c: New file.
79957         * modules/unicase/u8-ct-tolower: New file.
79959         New module 'unicase/u32-ct-toupper'.
79960         * lib/unicase/u32-ct-toupper.c: New file.
79961         * modules/unicase/u32-ct-toupper: New file.
79963         New module 'unicase/u16-ct-toupper'.
79964         * lib/unicase/u16-ct-toupper.c: New file.
79965         * modules/unicase/u16-ct-toupper: New file.
79967         New module 'unicase/u8-ct-toupper'.
79968         * lib/unicase/u8-ct-toupper.c: New file.
79969         * modules/unicase/u8-ct-toupper: New file.
79971         Add context arguments to u*_casemap functions.
79972         * lib/unicase/unicasemap.h: Include unicase.h.
79973         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79974         suffix_context arguments.
79975         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79976         functions.
79977         (FUNC): Add prefix_context and suffix_context arguments. Use
79978         uc_is_cased and uc_is_case_ignorable.
79979         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79980         * lib/unicase/u16-casemap.c: Likewise.
79981         * lib/unicase/u32-casemap.c: Likewise.
79982         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79983         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79984         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79985         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79986         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79987         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79989         New module 'unicase/u32-suffix-context'.
79990         * lib/unicase/u32-suffix-context.c: New file.
79991         * modules/unicase/u32-suffix-context: New file.
79993         New module 'unicase/u16-suffix-context'.
79994         * lib/unicase/u16-suffix-context.c: New file.
79995         * modules/unicase/u16-suffix-context: New file.
79997         New module 'unicase/u8-suffix-context'.
79998         * lib/unicase/u8-suffix-context.c: New file.
79999         * lib/unicase/u-suffix-context.h: New file.
80000         * modules/unicase/u8-suffix-context: New file.
80002         New module 'unicase/empty-suffix-context'.
80003         * lib/unicase/empty-suffix-context.c: New file.
80004         * modules/unicase/empty-suffix-context: New file.
80006         New module 'unicase/u32-prefix-context'.
80007         * lib/unicase/u32-prefix-context.c: New file.
80008         * modules/unicase/u32-prefix-context: New file.
80010         New module 'unicase/u16-prefix-context'.
80011         * lib/unicase/u16-prefix-context.c: New file.
80012         * modules/unicase/u16-prefix-context: New file.
80014         New module 'unicase/u8-prefix-context'.
80015         * lib/unicase/u8-prefix-context.c: New file.
80016         * lib/unicase/u-prefix-context.h: New file.
80017         * lib/unicase/context.h: New file.
80018         * modules/unicase/u8-prefix-context: New file.
80020         New module 'unicase/empty-prefix-context'.
80021         * lib/unicase/empty-prefix-context.c: New file.
80022         * modules/unicase/empty-prefix-context: New file.
80024         New module 'unicase/ignorable'.
80025         * lib/unicase/ignorable.c: New file.
80026         * modules/unicase/ignorable: New file.
80028         New module 'unicase/cased'.
80029         * lib/unicase/caseprop.h: New file.
80030         * lib/unicase/cased.c: New file.
80031         * modules/unicase/cased: New file.
80033         New functions for case mapping of substrings.
80034         * lib/unicase.h (casing_prefix_context_t): New type.
80035         (unicase_empty_prefix_context): New variable.
80036         (u8_casing_prefix_context, u16_casing_prefix_context,
80037         u32_casing_prefix_context, u8_casing_prefixes_context,
80038         u16_casing_prefixes_context, u32_casing_prefixes_context): New
80039         declarations.
80040         (casing_suffix_context_t): New type.
80041         (unicase_empty_suffix_context): New variable.
80042         (u8_casing_suffix_context, u16_casing_suffix_context,
80043         u32_casing_suffix_context, u8_casing_suffixes_context,
80044         u16_casing_suffixes_context, u32_casing_suffixes_context,
80045         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
80046         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
80047         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
80048         declarations.
80050 2009-06-28  Jim Meyering  <meyering@redhat.com>
80052         boostrap: indent only with spaces
80053         * build-aux/bootstrap: Indent only with spaces, never TABs.
80055         bootstrap: split long lines
80056         * build-aux/bootstrap: Keep line length < 80.
80058         bootstrap: sync from coreutils
80059         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
80060         just as autoreconf does.  Verify a list of prerequisite
80061         package-name,version-number pairs if defined in bootstrap.conf.
80062         Refer to README-prereq, if prerequisites are not satisfied.
80064 2009-06-27  Eric Blake  <ebb9@byu.net>
80066         tests: add test for bogus NULL definition
80067         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
80068         * tests/test-stdlib.c: Likewise.
80069         * tests/test-string.c: Likewise.
80070         * tests/test-locale.c: Likewise.
80071         * tests/test-unistd.c: Likewise.
80072         * modules/stdio-tests (Depends-on): Add verify.
80073         * modules/stdlib-tests (Depends-on): Likewise.
80074         * modules/string-tests (Depends-on): Likewise.
80075         * modules/locale-tests (Depends-on): Likewise.
80076         * modules/unistd-tests (Depends-on): Likewise.
80078 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
80080         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
80081         self-explaining comment.
80082         * m4/selinux-selinux-h: Update serial.
80083         (gl_LIBSELINUX): New macro, adding a warning for missing development
80084         packages to code extracted from...
80085         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
80086         Add warning for missing development packages here, too.
80088 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
80090         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
80092 2009-06-25  Eric Blake  <ebb9@byu.net>
80094         version-etc: fix regression
80095         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
80096         gcc.
80097         (version_etc): Use it, to catch bugs with trailing NULL.
80098         * lib/version-etc.c (version_etc_arn): Delete unused argument.
80099         (version_etc_va): Fix logic bug.
80100         * modules/version-etc-tests: Add test.
80101         * tests/test-version-etc.c: New file.
80102         * tests/test-version-etc.sh: Likewise.
80104 2009-06-25  Sam Steingold  <sds@gnu.org>
80106         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
80107         mbtowc declaration.
80109 2009-06-25  Eric Blake  <ebb9@byu.net>
80111         fpurge: migrate into <stdio.h>
80112         * lib/fpurge.h: Delete...
80113         * lib/stdio.in.h (fpurge): ...and declare here, instead.
80114         * lib/fpurge.c (fpurge): Change declaring header.
80115         * modules/fpurge (Files): Drop deleted file.
80116         (Depends-on): Add stdio.
80117         (configure.ac): Set witness.
80118         * modules/stdio (Makefile.am): Support fpurge macros.
80119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80120         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
80121         * lib/fflush.c: Update client.
80122         * tests/test-fpurge.c: Likewise.
80123         * NEWS: Mention the change.
80125 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80127         * lib/argp-version-etc.c (program_authors): Add const
80128         qualifier.
80129         * lib/version-etc.c: Fix typos in the comments.
80130         * modules/argp-version-etc: Depends on version-etc.
80132 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80134         argp-version-etc: new module.
80136         * lib/argp-version-etc.c: New file.
80137         * lib/argp-version-etc.h: New file.
80138         * modules/argp-version-etc: New file.
80139         * modules/argp-version-etc-tests: New file.
80140         * tests/test-argp-version-etc.c: New test.
80141         * tests/test-argp-version-etc-1.sh: New test.
80143 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80145         Provide additional interfaces and documentation for version-etc
80146         module.
80148         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
80149         interfaces.
80150         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
80151         prototypes.
80153 2009-06-24  Bruno Haible  <bruno@clisp.org>
80155         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
80156         HAVE_LIB${NAME} macro.
80157         Reported by Sam Steingold <sds@gnu.org>.
80159 2009-06-23  Simon Josefsson  <simon@josefsson.org>
80161         * modules/hash-tests (test_hash_LDADD): Link to libintl when
80162         needed.
80164 2009-06-21  Bruno Haible  <bruno@clisp.org>
80166         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
80167         work.
80168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
80169         together with LIB${NAME}, LTLIB${NAME}.
80170         Reported by Sam Steingold <sds@gnu.org>.
80172 2009-06-20  Jim Meyering  <meyering@redhat.com>
80174         tests: make sc_require_test_exit_idiom more generic
80175         * top/maint.mk (Exit_witness_file): New overridable variable.
80176         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
80177         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
80179 2009-06-19  Jim Meyering  <meyering@redhat.com>
80181         hash: reverse order of src/dst parameters in an internal interface
80182         * lib/hash.c (transfer_entries): Reverse order of parameters to
80183         put DST before SRC.  Adjust callers.
80185         tests: test-hash: avoid wholesale duplication
80186         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
80187         Instead, use a loop and add a single conditional.
80189         tests: test-hash: allow seed selection via a command line argument
80190         * tests/test-hash.c (get_seed): New function.
80191         (main): Use it.
80193 2009-06-19  Eric Blake  <ebb9@byu.net>
80195         hash: avoid memory leak on allocation failure
80196         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
80197         failure.  Factor repeated algorithm...
80198         (transfer_entries): ...into new helper routine.
80199         (hash_delete): React to hash_rehash return value.
80201         hash: reduce memory pressure in hash_rehash no-op case
80202         * lib/hash.c (next_prime): Avoid overflow.
80203         (hash_initialize): Factor bucket size computation...
80204         (compute_bucket_size): ...into new helper function.
80205         (hash_rehash): Use new function and open coding to reduce memory
80206         pressure, and avoid a memory leak in USE_OBSTACK code.
80207         Reported by Jim Meyering.
80209 2009-06-18  Eric Blake  <ebb9@byu.net>
80211         hash: make rotation more obvious
80212         * modules/hash (Depends-on): Add bitrotate and stdint.
80213         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
80214         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
80215         (SIZE_MAX): Rely on headers for definition.
80216         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
80217         (raw_hasher): Use rotr_sz.
80218         Suggested by Jim Meyering.
80220         hash: fix memory leak in last patch
80221         * lib/hash.c (hash_rehash): Avoid memory leak.
80223         hash: avoid no-op rehashing
80224         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
80226         hash: provide default callback functions
80227         * lib/hash.c (raw_hasher, raw_comparator): New functions.
80228         (hash_initialize): Use them as defaults.
80229         * tests/test-hash.c (main): Test this.
80231         hash: minor optimization
80232         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
80233         when possible.
80234         (hash_initialize): Document this promise.
80235         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
80236         * tests/test-hash.c (hash_compare_strings): Test this.
80238 2009-06-18  Bruno Haible  <bruno@clisp.org>
80240         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
80241         going to be replaced anyway.
80243 2009-06-18  Bruno Haible  <bruno@clisp.org>
80245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
80246         in one place.
80247         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
80248         be replaced anyway.
80250 2009-06-18  Eric Blake  <ebb9@byu.net>
80252         hash: check for resize before insertion
80253         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
80254         threshold before insertion, so that a pathological hash_rehash
80255         that fills every bucket can still trigger another rehash.
80257 2009-06-18  Jim Meyering  <meyering@redhat.com>
80259         hash-tests: add a loop around the small tests
80260         * tests/test-hash.c (main): Repeat small tests with selected
80261         small initial table sizes.
80263 2009-06-17  Eric Blake  <ebb9@byu.net>
80265         hash: minor cleanups
80266         * lib/hash.h (hash_entry): Make opaque, by moving...
80267         * lib/hash.c (hash_entry): ...here.
80268         (hash_insert): Clarify restrictions on what can be inserted.
80269         (hash_get_next): Clarify when it is safe to remove an element
80270         during traversal.
80271         (check_tuning): Skip verification when tuning is known safe.
80272         (hash_initialize): Clarify restrictions on tuning.
80274 2009-06-17  Jim Meyering  <jim@meyering.net>
80275         and Eric Blake  <ebb9@byu.net>
80277         hash-tests: new module
80278         * modules/hash-tests: New file.
80279         * tests/test-hash.c: New file.
80281 2009-06-17  Eric Blake  <ebb9@byu.net>
80283         strstr-simple: document new module
80284         * MODULES.html.sh: Document new module.
80286         strstr, strcasestr: replace on platforms with broken memchr
80287         * modules/strstr: Split into...
80288         * modules/strstr-simple: ...new module that does not care about
80289         performance, but does care about glibc bug.
80290         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
80291         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
80292         if platform memchr is broken, per Debian bug 521737.
80293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
80294         memchr.
80295         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
80296         * doc/posix-functions/strstr.texi (strstr): Document the fix.
80297         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
80298         * modules/mountlist (Depends-on): Add strstr-simple.
80299         * modules/gen-uni-tables (Depends-on): Likewise.
80300         * modules/argz (Depends-on): Add strstr.
80302 2009-06-17  Bruno Haible  <bruno@clisp.org>
80304         * modules/posix_spawn-internal (Depends-on): Add errno.
80306 2009-06-17  Bruno Haible  <bruno@clisp.org>
80308         Define missing ESTALE on Interix 3.5.
80309         * lib/errno.in.h (ESTALE): Assign a value if missing.
80310         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
80311         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
80312         missing.
80313         * doc/posix-headers/errno.texi: Mention the Interix bug.
80314         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
80316 2009-06-15  Eric Blake  <ebb9@byu.net>
80318         memchr, memchr2: add valgrind exception
80319         * lib/memchr.valgrind: New file.
80320         * lib/memchr2.valgrind: New file.
80321         * modules/memchr (Files): Distribute valgrind file.
80322         * modules/memchr2 (Files): Likewise.
80324         docs: memchr is no longer obsolete
80325         * MODULES.html.sh: Move memchr from obsolete to string.h section.
80326         * lib/string.in.h (memchr): Simplify logic.
80328 2009-06-14  Jim Meyering  <meyering@redhat.com>
80330         link-follow: fix the "checking..." message to not mention trailing slash
80331         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
80332         never considered trailing slashes.
80334 2009-06-14  Bruno Haible  <bruno@clisp.org>
80336         * m4/memchr.m4: Mention also the bug on IA-64.
80337         * doc/posix-functions/memchr.texi: Likewise.
80339 2009-06-12  Eric Blake  <ebb9@byu.net>
80341         memchr: detect broken x86_64 and alpha implementations
80342         * modules/memchr-tests (Depends-on): Move mmap detection...
80343         * modules/memchr (Depends-on): ...here.
80344         (configure.ac): Set indicator.
80345         * lib/string.in.h (memchr): Declare replacement.
80346         * modules/string (Makefile.am): Trigger replacement.
80347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80348         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
80349         bugs.
80350         * doc/posix-functions/memchr.texi (memchr): Document the bug.
80351         * modules/getpagesize (License): Relax license.
80353 2009-06-11  Bruno Haible  <bruno@clisp.org>
80355         * lib/idpriv.h: Add more references.
80357 2009-06-08  Bruno Haible  <bruno@clisp.org>
80359         Tests for module 'idpriv-droptemp'.
80360         * modules/idpriv-droptemp-tests: New file.
80361         * tests/test-idpriv-droptemp.sh: New file.
80362         * tests/test-idpriv-droptemp.su.sh: New file.
80363         * tests/test-idpriv-droptemp.c: New file.
80365         New module 'idpriv-droptemp'.
80366         * lib/idpriv-droptemp.c: New file.
80367         * modules/idpriv-droptemp: New file.
80369 2009-06-08  Bruno Haible  <bruno@clisp.org>
80371         Tests for module 'idpriv-drop'.
80372         * modules/idpriv-drop-tests: New file.
80373         * tests/test-idpriv-drop.sh: New file.
80374         * tests/test-idpriv-drop.su.sh: New file.
80375         * tests/test-idpriv-drop.c: New file.
80377         New module 'idpriv-drop'.
80378         * lib/idpriv.h: New file.
80379         * lib-idpriv-drop.c: New file.
80380         * m4/idpriv.m4: New file.
80381         * modules/idpriv-drop: New file.
80383 2009-06-08  Bruno Haible  <bruno@clisp.org>
80385         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
80386         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80387         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80388         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80389         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80390         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80391         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80393 2009-06-08  Eric Blake  <ebb9@byu.net>
80395         test-strstr: use memory fence, when possible
80396         * tests/test-strstr.c (main): Use memory fence, in order to be
80397         more likely to trigger Debian bug 521737.
80398         * modules/strstr-tests (Files): Pull in additional files.
80400         memchr: no longer obsolete, for wider field testing
80401         * modules/memchr (Status, Notice): Delete, this module is no
80402         longer obsolete.
80403         * modules/vasnprintf (Depends-on): Add memchr.
80405 2009-06-07  Jim Meyering  <meyering@redhat.com>
80407         hash: declare some functions with the warn_unused_result attribute
80408         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
80410 2009-06-07  Bruno Haible  <bruno@clisp.org>
80412         * tests/test-alignof.c: Don't test int64_t if it does not exist.
80413         Reported by Eric Blake.
80415 2009-06-06  Eric Blake  <ebb9@byu.net>
80417         test-alignof: fix typo with long double
80418         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
80419         compiler error.
80421 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
80423         Escape non-texinfo { and }s.
80424         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
80425         markup error.
80427 2009-06-04  Jim Meyering  <meyering@redhat.com>
80429         gitlog-to-changelog: don't infloop on an empty commit log
80430         * build-aux/gitlog-to-changelog: Warn about an empty log message.
80431         Reported by Boris Petersen <transacid@centerim.org>.
80433 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
80435         version-etc: extend for packagers
80436         Add three new configure options, intended for packagers:
80437           --with-packager="packager name"
80438           --with-packager-version="packager-specific version"
80439           --with-packager-bug-reports="packager bug reporting"
80440         An example with coreutils:
80441           $ ./configure \
80442             --with-packager=Gentoo \
80443             --with-packager-bug-report=http://bugs.gentoo.org/ \
80444             --with-packager-version="patchset 1.6"
80445           $ ./src/ls --version | head -n2
80446           ls (GNU coreutils) 7.1-dirty
80447           Packaged by Gentoo (patchset 1.6)
80448         Note that the bug reporting info via --help doesn't show up because
80449         coreutils uses its own custom emit_bug_reporting_address() implementation
80450         in src/system.h.  If it didn't, it'd look like:
80451           $ ./src/ls --help | tail -n4
80452           Report bugs to <bug-coreutils@gnu.org>.
80453           Report Gentoo bugs to <http://bugs.gentoo.org/>.
80454           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
80455           General help using GNU software: <http://www.gnu.org/gethelp/>.
80456         * lib/version-etc.c: Print new information, if provided.
80457         * m4/version-etc.m4: New file.
80458         * modules/version-etc (Files): Add m4/version-etc.m4.
80459         (configure.ac): Add gl_VERSION_ETC.
80461 2009-05-31  Bruno Haible  <bruno@clisp.org>
80463         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
80464         and 'int64_t'.
80465         * modules/alignof-tests (Dependencies): Add stdint.
80466         Reported by Eric Blake.
80468 2009-05-31  Bruno Haible  <bruno@clisp.org>
80470         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
80471         restriction due to compiler bugs.
80472         Reported by Eric Blake.
80474 2009-05-31  Simon Josefsson  <simon@josefsson.org>
80475             Bruno Haible  <bruno@clisp.org>
80477         Fix test-alignof failure.
80478         * lib/alignof.h (alignof_slot): New macro.
80479         (alignof_type): New macro, with the same semantics as the previous
80480         'alignof'.
80481         (alignof): Alias to alignof_slot.
80482         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
80483         check that the results are usable as constant expressions.
80485 2009-05-31  Bruno Haible  <bruno@clisp.org>
80487         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
80488         * tests/test-memchr.c (main): Check that memchr does not read past the
80489         first occurrence of the byte.
80490         * tests/test-strstr.c (main): Update comment.
80491         Suggested by Eric Blake.
80493 2009-05-30  Bruno Haible  <bruno@clisp.org>
80495         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
80496         detail how to use dumpbin.
80497         Reported by David Byron <dbyron@dbyron.com>.
80499 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80501         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
80503 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80505         * m4/manywarnings.m4: Add GCC 4.4 warnings.
80507 2009-05-28  Bruno Haible  <bruno@clisp.org>
80509         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
80510         build-aux/ files.
80512 2009-05-28  Simon Josefsson  <simon@josefsson.org>
80514         * gnulib-tool (func_import): Transform license on build-aux/ files too.
80516 2009-05-27  Simon Josefsson  <simon@josefsson.org>
80518         * gnulib-tool (sed_transform_main_lib_file)
80519         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
80520         regexps.
80522 2009-05-26  Simon Josefsson  <simon@josefsson.org>
80524         * tests/test-strstr.c: Add another self-test.
80525         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
80526         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
80528 2009-05-23  Bruno Haible  <bruno@clisp.org>
80530         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
80531         change.
80533 2009-05-21  Bruno Haible  <bruno@clisp.org>
80535         Simplify use of mode_t varargs.
80536         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
80537         uses 'mode_t' or 'int'.
80538         * lib/openat.c (openat): Likewise.
80539         * lib/open-safer.c (open_safer): Likewise.
80540         * m4/mode_t.m4: New file.
80541         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
80542         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
80543         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
80544         * modules/open (Files): Add m4/mode_t.m4.
80545         * modules/openat (Files): Likewise.
80546         * modules/fcntl-safer (Files): Likewise.
80547         Suggested by Eric Blake.
80549 2009-05-21  Pádraig Brady  <P@draigbrady.com>
80551         * doc/glibc-functions/fallocate.texi: New file.
80552         * doc/gnulib.texi: Include it.
80554 2009-05-21  Eric Blake  <ebb9@byu.net>
80555             Bruno Haible  <bruno@clisp.org>
80557         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
80558         invocations.
80559         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80561 2009-05-21  Eric Blake  <ebb9@byu.net>
80562             Bruno Haible  <bruno@clisp.org>
80564         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
80565         include_next. Fix of 2008-11-20 commit.
80566         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
80567         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
80568         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
80569         NEXT_MATH_H.
80570         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
80571         instead of NEXT_MATH_H.
80573 2009-05-21  Bruno Haible  <bruno@clisp.org>
80575         Avoid redefinition warnings for SIZE_MAX.
80576         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
80577         Reported by Simon Josefsson.
80579 2009-05-21  Bruno Haible  <bruno@clisp.org>
80581         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
80582         AC_CACHE_VAL.
80584 2009-05-20  Bruno Haible  <bruno@clisp.org>
80586         Make zeroptr.h work on mingw.
80587         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80588         mprotect.
80589         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80590         * modules/memchr2-tests (configure.ac): Likewise.
80591         * modules/memcmp-tests (configure.ac): Likewise.
80592         * modules/memmem-tests (configure.ac): Likewise.
80593         * modules/memrchr-tests (configure.ac): Likewise.
80594         Reported by Simon Josefsson.
80596 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80598         * tests/test-glob.c: Include string.h for strcmp prototype.
80600 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80602         * modules/getdelim (Depends-on): Add explicit stdint, although it
80603         was implicitly already pulled in via realloc-posix.
80604         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80606 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80608         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80609         G. Christensen" <tgc@jupiterrise.com>.
80610         * m4/sys_socket_h.m4: Check for sa_family_t.
80611         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80612         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80613         * tests/test-sys_socket.c: Check that sa_family_t works.
80615 2009-05-18  Eric Blake  <ebb9@byu.net>
80617         maint.mk: allow gnulib_dir in VPATH build
80618         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80620 2009-05-15  Jim Meyering  <meyering@redhat.com>
80622         maint.mk: Give gnulib_dir a default definition.
80623         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80624         Thus, most packages no longer need to specify this variable in cfg.mk
80626 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80628         rename.m4: fix typos that would make non-mingw cross-configure fail
80629         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80631 2009-05-13  Eric Blake  <ebb9@byu.net>
80633         mmap-anon: avoid out-of-order autoconf expansion
80634         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80635         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80636         * modules/memchr-tests (Depends-on): Add extensions.
80637         * modules/memchr2-tests (Depends-on): Add extensions.
80638         * modules/memcmp-tests (Depends-on): Add extensions.
80639         * modules/memmem-tests (Depends-on): Add extensions.
80640         * modules/memrchr-tests (Depends-on): Add extensions.
80642 2009-05-13  Bruno Haible  <bruno@clisp.org>
80644         Make some tests ISO C 99 compliant.
80645         * tests/zerosize-ptr.h: New file.
80646         * tests/test-memchr.c: Include zerosize-ptr.h.
80647         (main): Use a zero-size object pointer instead of NULL.
80648         * tests/test-memchr2.c: Include zerosize-ptr.h.
80649         (main): Use a zero-size object pointer instead of NULL.
80650         * tests/test-memcmp.c: Include zerosize-ptr.h.
80651         (main): Use a zero-size object pointer instead of NULL.
80652         * tests/test-memmem.c: Include zerosize-ptr.h.
80653         (main): Use a zero-size object pointer instead of NULL.
80654         * tests/test-memrchr.c: Include zerosize-ptr.h.
80655         (main): Use a zero-size object pointer instead of NULL.
80656         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80657         m4/mmap-anon.m4.
80658         (Depends-on): Add getpagesize.
80659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80660         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80661         m4/mmap-anon.m4.
80662         (Depends-on): Add getpagesize.
80663         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80664         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80665         m4/mmap-anon.m4.
80666         (Depends-on): Add getpagesize.
80667         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80668         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80669         m4/mmap-anon.m4.
80670         (Depends-on): Add getpagesize.
80671         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80672         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80673         m4/mmap-anon.m4.
80674         (Depends-on): Add getpagesize.
80675         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80677 2009-05-12  Bruno Haible  <bruno@clisp.org>
80679         Tests for module 'alignof'.
80680         * modules/alignof-tests: New file.
80681         * tests/test-alignof.c: New file.
80683 2009-05-12  Bruno Haible  <bruno@clisp.org>
80685         Fix alignof macro.
80686         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80687         vendor compilers that are always correct.
80689 2009-05-12  Bruno Haible  <bruno@clisp.org>
80691         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80692         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80693         not whether its fully works.
80695 2009-05-12  Bruno Haible  <bruno@clisp.org>
80697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80699 2009-05-12  Jim Meyering  <meyering@redhat.com>
80701         * top/maint.mk: Adjust backslash alignment.
80703 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80705         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80707 2009-05-11  Eric Blake  <ebb9@byu.net>
80709         argp: avoid undefined behavior
80710         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80711         macros.
80713 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80715         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80716         user.name to prevent git commit from complaining.
80718 2009-05-10  Bruno Haible  <bruno@clisp.org>
80720         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80721         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80722         it rewrites every file name only once.
80723         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80725 2009-05-08  Bruno Haible  <bruno@clisp.org>
80727         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80728         instead of 'max'.
80730 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80732         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80733         sockaddr_storage test.
80735 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80737         * modules/sys_socket (Makefile.am): Substitute
80738         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80739         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80740         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80741         * tests/test-sys_socket.c: Check sockaddr_storage.
80743 2009-05-08  Bruno Haible  <bruno@clisp.org>
80745         New module 'alignof'.
80746         * lib/alignof.h: New file.
80747         * modules/alignof: New file.
80749 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80750             Bruno Haible  <bruno@clisp.org>
80752         Fix test-file-has-acl on FreeBSD.
80753         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80754         mask is implicitly added.
80755         * tests/test-file-has-acl.c: Include <signal.h>.
80756         (main): Terminate the test after 5 seconds.
80757         * modules/acl-tests (configure.ac): Check for alarm function.
80759 2009-05-04  Bruno Haible  <bruno@clisp.org>
80761         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80763         * modules/errno (configure.ac): Drop AC_REQUIRE.
80764         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80765         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80767 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80769         * modules/glob-tests: New module.
80770         * tests/test-glob.c: Add.
80772 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80774         * modules/fnmatch-tests: New module.
80775         * tests/test-fnmatch.c: Add.
80777 2009-05-04  Eric Blake  <ebb9@byu.net>
80779         maint: make the new no-submodule-changes rule VPATH-safe
80780         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80782 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80783             Bruno Haible  <bruno@clisp.org>
80785         acl: Fix infinite loop on FreeBSD.
80786         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80787         of return value from acl_get_entry.
80788         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80789         Likewise.
80791 2009-05-03  Bruno Haible  <bruno@clisp.org>
80793         * lib/acl-internal.h (acl_entries): Clarify return value.
80794         * lib/acl_entries.c (acl_entries): Likewise.
80796 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80798         Bug fix in acl module.
80799         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80801 2009-05-03  Bruno Haible  <bruno@clisp.org>
80803         Create gperf-generated file in the source dir, not in the build dir.
80804         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80805         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80806         * modules/unicase/locale-language (unicase/locale-languages.h):
80807         Likewise.
80808         * modules/unicase/special-casing (unicase/special-casing-table.h):
80809         Likewise.
80810         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80811         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80812         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80813         Reported by Ralf Wildenhues.
80815 2009-05-03  Bruno Haible  <bruno@clisp.org>
80817         * modules/fnmatch (Description, configure.ac): Taken from
80818         fnmatch-posix.
80819         * modules/fnmatch-posix: Turn into a symbolic reference to the
80820         'fnmatch' module, and deprecate.
80821         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80823 2009-05-03  Bruno Haible  <bruno@clisp.org>
80825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80826         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80827         Reported by Ralf Wildenhues.
80829 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80831         * m4/fnmatch.m4: Fix fnmatch re-define.
80833 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80835         priv-set: new module and tests; adapt write-any-file
80836         * lib/priv-set.c: New file.
80837         * lib/priv-set.h: New file.
80838         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80839         * lib/write-any-file.c: Simplify by using priv-set module.
80840         * m4/priv-set.m4: New file.
80841         * modules/priv-set: New file.
80842         * modules/unlinkdir: Add dependency on priv-set module.
80843         * modules/write-any-file: Likewise.
80845         Tests for module 'priv-set'.
80846         * modules/priv-set-tests: New file.
80847         * tests/test-priv-set.c: New file.
80849 2009-05-03  Jim Meyering  <meyering@redhat.com>
80850             Bruno Haible  <bruno@clisp.org>
80852         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80853         use the converted UTF-8 variant of the name instead.
80855 2009-05-03  Jim Meyering  <meyering@redhat.com>
80857         tests: tighten some getdate tests
80858         * tests/test-getdate.c (main): Tighten tests: require equality,
80859         not just greater than.  Set TZ envvar to UTC0.
80861 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80863         getdate: correctly interpret "next monday" when run on a Monday
80864         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80865         that e.g., "next tues" (when run on a tuesday) results in a date
80866         that is one week in the future, and not today's date.
80867         I.e., add a week when the wday is the same as the current one.
80868         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80869         and earlier by Martin Bernreuther and Jan Minář.
80870         * tests/test-getdate.c (main): Check that "next DAY" is always in
80871         the future and that "last DAY" is always in the past.
80873 2009-05-02  Jim Meyering  <meyering@redhat.com>
80875         build: ensure that a release build fails when a submodule is unclean
80876         * top/maint.mk (no-submodule-changes): New rule.
80877         (alpha beta major): Depend on it.
80879 2009-05-02  Bruno Haible  <bruno@clisp.org>
80881         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80882         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80883         shell variable gl_fnmatch_required to detect which variant is
80884         requested.
80885         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80886         gl_FUNC_FNMATCH_POSIX.
80887         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80888         exclude fnmatch-posix.
80890 2009-05-02  Bruno Haible  <bruno@clisp.org>
80892         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80893         * modules/mbsrtowcs (License): Change to LGPLv2+.
80894         * modules/strnlen1 (License): Likewise.
80895         Reported by Simon Josefsson.
80897 2009-05-02  Bruno Haible  <bruno@clisp.org>
80899         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80900         "cross".
80901         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80902         gnulib-tool was called with option --source-base=lib.
80904 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80906         Use automake *-local hooks without commands, for extensibility.
80907         * modules/localcharset (Makefile.am): Rename install-exec-local
80908         rule to install-exec-localcharset, and make it a prerequisite of
80909         install-exec-local.  Likewise, rename the uninstall-local rule to
80910         uninstall-localcharset, and make it a prerequisite of the former.
80912 2009-05-01  Bruno Haible  <bruno@clisp.org>
80914         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80915         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80916         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80918         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80919         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80920         m4/locale-zh.m4, m4/codeset.m4.
80922         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80923         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80924         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80925         m4/locale-zh.m4.
80927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80928         REPLACE_WCRTOMB if mbstate_t must be replaced.
80929         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80930         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80932 2009-05-01  Bruno Haible  <bruno@clisp.org>
80934         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80935         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80936         dngettext, dcngettext, textdomain, bindtextdomain,
80937         bind_textdomain_codeset): Undefine before redefining.
80939 2009-04-30  Bruno Haible  <bruno@clisp.org>
80941         Fix bug introduced on 2009-04-25.
80942         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80943         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80944         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80945         is defined.
80946         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80947         is defined.
80948         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80949         is defined.
80950         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80952 2009-04-28  Bruno Haible  <bruno@clisp.org>
80954         Comment tweaks.
80955         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80956         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80957         * lib/unicase.h (u*_casexfrm): Likewise.
80958         Reported by Paolo Bonzini.
80960 2009-04-28  Bruno Haible  <bruno@clisp.org>
80962         Fix a compilation error.
80963         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80964         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80965         Reported by Jim Meyering.
80967 2009-04-27  Bruno Haible  <bruno@clisp.org>
80969         New module 'libunistring'.
80970         * modules/libunistring: New file.
80971         * m4/libunistring.m4: New file.
80972         * MODULES.html.sh (Unicode string functions): Add it.
80974 2009-04-27  Eric Blake  <ebb9@byu.net>
80976         maint.mk: allow package-specific header to provide <config.h>
80977         * top/maint.mk (sc_require_config_h): New variable.
80978         (sc_require_config_h, sc_require_config_h_first): Use it.
80980 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80982         * top/maint.mk (sc_avoid_if_before_free): Except
80983         useless-if-before-free script.
80985 2009-04-27  Eric Blake  <ebb9@byu.net>
80987         maintainer-makefile: depend on all required helper scripts
80988         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80989         useless-if-before-free.
80990         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80991         version, rather than assuming gnulib checkout is available.
80992         Reported by Simen Josefsson.
80994 2009-04-26  Bruno Haible  <bruno@clisp.org>
80996         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80997         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80998         "../" or "..".
81000 2009-04-26  Bruno Haible  <bruno@clisp.org>
81002         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
81003         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
81004         AC_LIB_HAVE_LINKFLAGS.
81006 2009-04-26  Bruno Haible  <bruno@clisp.org>
81008         Simplify calling convention of u*_conv_from_encoding.
81009         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
81010         u32_conv_from_encoding): Expect a resultbuf argument and return the
81011         result directly as a pointer.
81012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
81013         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
81014         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
81015         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
81016         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
81017         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
81018         Update.
81019         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
81020         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
81021         * lib/vasnprintf.c (VASNPRINTF): Update.
81022         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
81023         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
81024         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
81025         * NEWS: Mention the change.
81027 2009-04-26  Bruno Haible  <bruno@clisp.org>
81029         Simplify calling convention of u*_conv_to_encoding.
81030         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
81031         u32_conv_to_encoding): Expect a resultbuf argument and return the
81032         result directly as a pointer.
81033         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
81034         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
81035         freeing scaled_offsets if mem_iconveha failed.
81036         * lib/unicase/u-casexfrm.h (FUNC): Update.
81037         * lib/uninorm/u-normxfrm.h (FUNC): Update.
81038         * lib/vasnprintf.c (VASNPRINTF): Update.
81039         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
81040         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
81041         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
81042         * NEWS: Mention the change.
81044 2009-04-26  Bruno Haible  <bruno@clisp.org>
81046         Avoid test failures on AIX and OSF/1.
81047         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
81048         malloc(0).
81049         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
81050         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
81051         Likewise.
81052         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
81053         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
81054         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
81055         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
81056         * doc/posix-functions/malloc.texi: Document the portability problem
81057         related to malloc(0).
81059 2009-04-26  Bruno Haible  <bruno@clisp.org>
81061         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
81062         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
81063         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
81065 2009-04-25  Bruno Haible  <bruno@clisp.org>
81067         Avoid link error when creating a namespace clean library.
81068         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
81069         as macro with arguments if already defined as an alias.
81070         * lib/signbitf.c (gl_signbitf): Don't undefine.
81071         * lib/signbitd.c (gl_signbitd): Don't undefine.
81072         * lib/signbitl.c (gl_signbitl): Don't undefine.
81074 2009-04-25  Jim Meyering  <meyering@redhat.com>
81076         vc-list-files: fix another quoting bug
81077         * build-aux/vc-list-files: Avoid sed backslash expansion
81078         of pathological directory names.
81080 2009-04-25  Eric Blake  <ebb9@byu.net>
81082         vc-list-files: fix shell quoting error
81083         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
81084         timestamp.
81086 2009-04-25  Jim Meyering  <meyering@redhat.com>
81088         vc-list-files: restore lost functionality with subdir argument
81089         * build-aux/vc-list-files: When given a non-"." sub-directory
81090         argument, substitute the $dir/ prefix back onto each resulting name.
81091         Otherwise, coreutils' root_tests check would fail.
81093 2009-04-24  Eric Blake  <ebb9@byu.net>
81095         vc-list-files: ignore git symlinks
81096         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
81097         than ls-files, to ignore git symlinks.
81099         maint.mk: import improvements from m4
81100         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
81101         (move_if_change): Delete unused macro.
81102         (news-date-check, vc-diff-check): Support VPATH builds.
81103         (announcement): Likewise.  Split --bootstrap-tools list...
81104         (boostrap-tools): ...into separate list, which can be overridden
81105         in cfg.mk.
81106         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
81107         requiring dependency on useless-if-before-free module.
81108         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
81109         Support VPATH builds.
81111 2009-04-24  Jim Meyering  <meyering@redhat.com>
81113         maint.mk: remove coreutils-specific rules and variables
81114         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
81115         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
81116         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
81118         maint.mk: remove obsolete rule
81119         * top/maint.mk (rel-check): Remove rule.
81120         (WGET, WGETFLAGS): Remove now-unused variables.
81122 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81124         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
81125         consistency.
81127         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
81128         '$(PATH_SEPARATOR)' instead of ':'.
81130 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81132         * lib/getopt1.c (main): Use 'const' for static array.
81134 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81136         * top/maint.mk: Sync with coreutils.
81137         * NEWS: Explain incompatibilities.
81139 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81140             Bruno Haible  <bruno@clisp.org>
81142         Fix cross-compilation results.
81143         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
81144         statement, as third argument of AC_TRY_RUN.
81145         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
81146         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
81147         Likewise.
81148         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
81149         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
81150         Likewise.
81151         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
81152         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
81153         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
81155 2009-04-20  Bruno Haible  <bruno@clisp.org>
81157         Avoid test failure on mingw.
81158         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
81160 2009-04-20  Bruno Haible  <bruno@clisp.org>
81162         Avoid compilation error on mingw.
81163         * modules/localename-tests (Depends-on): Add locale.
81165 2009-04-19  Bruno Haible  <bruno@clisp.org>
81167         Support for building a shared library on Windows platforms.
81168         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
81169         (main): Test the presence of UNINORM_NFC here.
81170         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
81171         (main): Test the presence of UNINORM_NFD here.
81172         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
81173         (main): Test the presence of UNINORM_NFKC here.
81174         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
81175         (main): Test the presence of UNINORM_NFKD here.
81177 2009-04-19  Bruno Haible  <bruno@clisp.org>
81179         Avoid a compiler warning.
81180         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
81181         Change type of variable 'sequence'.
81183 2009-04-19  Bruno Haible  <bruno@clisp.org>
81185         * modules/configmake (Makefile.am): When the contents of configmake.h
81186         does not change, arrange to preserve its modification time.
81188 2009-04-17  Simon Josefsson  <simon@josefsson.org>
81190         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
81191         gettext domain.
81193 2009-04-16  Jim Meyering  <meyering@redhat.com>
81195         useless-if-before-free: improve conversion code
81196         * build-aux/useless-if-before-free: Adjust code-in-comment to match
81197         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
81199 2009-04-14  Bruno Haible  <bruno@clisp.org>
81201         * modules/fcntl (Depends-on): Add extensions.
81202         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
81204 2009-04-12  Ben Pfaff  <blp@gnu.org>
81206         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
81207         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
81209 2009-03-20  Ben Pfaff  <blp@gnu.org>
81211         Make rename replace existing destinations on Windows.
81212         * m4/rename.m4: Add test for Mingw.
81213         * lib/rename.c: Add rename replacement that uses MoveFileEx with
81214         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
81215         * doc/posix-functions/rename.texi: Document.
81217 2009-04-10  Bruno Haible  <bruno@clisp.org>
81219         New include file "iconveh.h".
81220         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
81221         * lib/striconveh.h: Include it.
81222         (enum iconv_ilseq_handler): Remove definition.
81223         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
81224         striconveh.h.
81225         * lib/striconveha.c: Include striconveh.h.
81226         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
81227         * modules/striconveh (Files): Add lib/iconveh.h.
81228         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
81229         lib/striconveh.h.
81231 2009-04-10  Bruno Haible  <bruno@clisp.org>
81233         * lib/uniconv.h: Update comment.
81235 2009-04-10  Bruno Haible  <bruno@clisp.org>
81237         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
81238         always.
81239         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81240         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81241         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81242         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
81243         "unistring-notinline.h", so that the function gets defined always.
81244         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81245         * lib/unistr/u8-uctomb.c: Likewise.
81246         * lib/unistr/u16-mbtouc.c: Likewise.
81247         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81248         * lib/unistr/u16-uctomb.c: Likewise.
81249         * lib/unistr/u32-mbtouc.c: Likewise.
81250         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81251         * lib/unistr/u32-uctomb.c: Likewise.
81253 2009-04-10  Bruno Haible  <bruno@clisp.org>
81255         Mark 'utime' obsolete.
81256         * modules/utime (Status, Notice): New sections.
81257         Suggested by Jim Meyering.
81259         Fix cross-compile guess for utime test.
81260         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
81261         autoconf.
81262         * doc/posix-functions/utime.texi: Give more precisions.
81263         Reported by Jan <ipif@ymail.com>.
81265 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
81267         filevercmp: correct today's change
81268         * lib/filevercmp.c: Also handle coreutils' test inputs.
81269         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
81271         Fix regression in 'filevercmp' module. Thanks Sven Joachim
81272         for reporting it.
81273         * lib/filevercmp.c: Special handle for "", "." and "..".
81274         * tests/test-filevercmp.c: Enlarge the set suite.
81276 2009-04-07  Jim Meyering  <meyering@redhat.com>
81278         useless-if-before-free: show how to remove braced useless free, too
81279         * build-aux/useless-if-before-free: still only in a comment, though.
81281 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
81283         maint.mk: import changes to syntax-check macros from coreutils
81284         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
81285         Use them in the relevant macros.
81287 2009-04-06  Bruno Haible  <bruno@clisp.org>
81289         Fix unportable use of bit-fields.
81290         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
81291         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
81292         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
81294 2009-04-06  Bruno Haible  <bruno@clisp.org>
81296         Avoid test failures on AIX and OSF/1.
81297         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
81298         that malloc(0) = NULL.
81299         * tests/unicase/test-u8-tolower.c (check): Likewise.
81300         * tests/unicase/test-u8-totitle.c (check): Likewise.
81301         * tests/unicase/test-u8-toupper.c (check): Likewise.
81302         * tests/unicase/test-u16-casefold.c (check): Likewise.
81303         * tests/unicase/test-u16-tolower.c (check): Likewise.
81304         * tests/unicase/test-u16-totitle.c (check): Likewise.
81305         * tests/unicase/test-u16-toupper.c (check): Likewise.
81306         * tests/unicase/test-u32-casefold.c (check): Likewise.
81307         * tests/unicase/test-u32-tolower.c (check): Likewise.
81308         * tests/unicase/test-u32-totitle.c (check): Likewise.
81309         * tests/unicase/test-u32-toupper.c (check): Likewise.
81310         * tests/uninorm/test-u8-nfc.c (check): Likewise.
81311         * tests/uninorm/test-u8-nfd.c (check): Likewise.
81312         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
81313         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
81314         * tests/uninorm/test-u16-nfc.c (check): Likewise.
81315         * tests/uninorm/test-u16-nfd.c (check): Likewise.
81316         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
81317         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
81318         * tests/uninorm/test-u32-nfc.c (check): Likewise.
81319         * tests/uninorm/test-u32-nfd.c (check): Likewise.
81320         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
81321         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
81323 2009-04-05  Bruno Haible  <bruno@clisp.org>
81325         Work around an autoconf limitation.
81326         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
81327         comment line if it would be longer than 3 KB.
81329 2009-04-05  Bruno Haible  <bruno@clisp.org>
81331         Avoid test failure with libiconv-1.13.
81332         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
81333         of the expected test results.
81335 2009-04-05  Bruno Haible  <bruno@clisp.org>
81337         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
81338         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
81339         that it should be installed.
81341 2009-04-05  Bruno Haible  <bruno@clisp.org>
81343         * gnulib-tool: New option --copy-file.
81344         (func_usage): Document it.
81345         (func_dest_tmpfilename): Moved out of func_import.
81346         (func_add_file, func_update_file): New functions, extracted from
81347         func_import.
81348         (func_import): Update.
81350 2009-04-05  Karl Berry  <karl@gnu.org>
81352         * README: prominently mention gnulib-tool.
81353         Rearrange sections so getting the code is near the top.
81355 2009-04-05  Bruno Haible  <bruno@clisp.org>
81357         * lib/unicase.h: Mention u*_cmp2.
81358         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81359         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
81360         * lib/unicase/ulc-casecmp.c: Likewise.
81361         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
81362         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
81363         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
81364         unistr/u8-cmp.
81365         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
81366         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
81367         unistr/u16-cmp.
81368         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
81369         unistr/u32-cmp.
81371         * lib/uninorm.h: Mention u*_cmp2.
81372         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81373         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
81374         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
81375         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
81376         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
81377         unistr/u8-cmp.
81378         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
81379         unistr/u16-cmp.
81380         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
81381         unistr/u32-cmp.
81383         New module 'unistr/u32-cmp2'.
81384         * lib/unistr/u32-cmp2.c: New file.
81385         * modules/unistr/u32-cmp2: New file.
81387         New module 'unistr/u16-cmp2'.
81388         * lib/unistr/u16-cmp2.c: New file.
81389         * modules/unistr/u16-cmp2: New file.
81391         New module 'unistr/u8-cmp2'.
81392         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
81393         * lib/unistr/u8-cmp2.c: New file.
81394         * lib/unistr/u-cmp2.h: New file.
81395         * modules/unistr/u8-cmp2: New file.
81397 2009-04-05  Bruno Haible  <bruno@clisp.org>
81399         * lib/unictype.h (uc_property_is_valid): New macro.
81400         * tests/unictype/test-pr_byname.c (main): Use it.
81402         * lib/unistr.h: Doc fixes.
81403         * lib/uniconv.h: Doc fixes.
81404         * lib/unictype.h: Doc fixes.
81406 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
81408         Port coreutils 7.2 to Solaris 8.
81410         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
81411         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
81412         for Solaris 8.  This is a bit of a hack, as it means it's the
81413         caller's responsibility to add -lnsl if needed, but most likely it
81414         won't be needed since only getaddrinfo uses this and getaddrinfo
81415         isn't needed on Solaris 8.
81417         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
81418         problem to Solaris 8 encountered with coreutils 7.2, which
81419         resulted in a message "fnmatch.c:292: warning: passing argument 4
81420         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
81421         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
81423 2009-04-03  Simon Josefsson  <simon@josefsson.org>
81425         * m4/ld-version-script.m4: Add FIXME comment.
81427 2009-04-02  Simon Josefsson  <simon@josefsson.org>
81429         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
81430         SOVERSION variable.
81432 2009-04-02  Bruno Haible  <bruno@clisp.org>
81434         * Makefile (info, html, dvi, pdf): Combine the rules.
81435         Suggested by Jim Meyering.
81437 2009-04-01  Bruno Haible  <bruno@clisp.org>
81439         * Makefile (info, html, dvi, pdf): New targets.
81440         Reported by Reuben Thomas <rrt@sc3d.org>.
81442 2009-04-01  Bruno Haible  <bruno@clisp.org>
81444         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
81445         can be put into PATH.
81446         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
81448 2009-04-01  Bruno Haible  <bruno@clisp.org>
81450         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
81452 2009-04-01  Bruno Haible  <bruno@clisp.org>
81454         Rename module 'visibility'.
81455         * modules/lib-symbol-visibility: Renamed from modules/visibility.
81456         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
81457         * doc/gnulib.texi: Update.
81458         * MODULES.html.sh (Misc): Update.
81459         * NEWS: Mention the change.
81461 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81463         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
81464         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
81465         Eric Blake <ebb9@byu.net> for review.
81466         * MODULES.html.sh: Add lib-msvc-compat.
81467         * doc/gnulib.texi: Link to new section.
81468         * m4/ld-output-def.m4: New file.
81469         * doc/ld-output-def.texi: New file.
81471 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81473         Rename ld-version-script to lib-symbol-versions.  Suggested by
81474         Bruno Haible <bruno@clisp.org>.
81475         * modules/ld-version-script: Renamed to lib-symbol-versions.
81476         * doc/ld-version-script.texi: Fix module name.
81477         * MODULES.html.sh: Add lib-symbol-versions.
81479 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81481         * modules/u64-tests: New file.
81482         * tests/test-u64.c: New file.
81484 2009-03-04  Simon Josefsson  <simon@josefsson.org>
81486         * MODULES.html.sh: Mention u64.
81487         * modules/u64: New module.
81488         * modules/crypto/sha512: Depend on u64 module instead of providing
81489         u64.h.
81491 2009-03-27  Eric Blake  <ebb9@byu.net>
81493         test-strerror: make debugging EAI_SYSTEM easier
81494         * modules/getaddrinfo-tests (Depends-on): Add strerror.
81495         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
81496         failure was EAI_SYSTEM.
81498 2009-03-25  Bruno Haible  <bruno@clisp.org>
81500         Fix a problem with --enable-relocatable on Solaris 7.
81501         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
81502         since 2008-02-24.
81504 2009-03-25  Eric Blake  <ebb9@byu.net>
81506         test-sockets: avoid gcc warning
81507         * tests/test-sockets.c (main): Silence compiler warning.
81509 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81511         New modules nproc, pthread, contributed by Glen Lenker.
81513         * MODULES.html.sh: Add pthread, nproc.
81514         * lib/nproc.c: New file.
81515         * lib/nproc.h: New file.
81516         * lib/pthread.in.h: New file.
81517         * m4/pthread.m4: New file.
81518         * modules/nproc: New file.
81519         * modules/pthread: New file.
81521 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81523         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
81524         New variable.
81526 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
81528         filevercmp: handle simple~ and numbered.~3~ backup suffixes
81529         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
81530         * tests/test-filevercmp.c: Add tests for backup suffixes.
81532 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81534         * modules/stdlib (Depends-on): Add stdint, needed when defining
81535         struct random_data on, for example, HP-UX 10.20.  Reported by
81536         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81538 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81540         * lib/readline.c (readline): Call fflush on stdout after printing
81541         prompt.
81543 2009-03-20  Bruno Haible  <bruno@clisp.org>
81545         Remove dependency from 'close' module to -lws2_32 on native Windows.
81546         * lib/close-hook.h: New file.
81547         * lib/close-hook.c: New file.
81548         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
81549         w32sock.h.
81550         (_gl_close_fd_maybe_socket): Remove function.
81551         (rpl_close): Invoke execute_all_close_hooks instead of
81552         _gl_close_fd_maybe_socket.
81553         * lib/sockets.c: Include close-hook.h, w32sock.h.
81554         (close_fd_maybe_socket): New function, essentially from lib/close.c.
81555         (close_sockets_hook): New variable.
81556         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
81557         (gl_sockets_cleanup): Unregister it.
81558         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
81559         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
81560         * modules/close-hook: New file.
81561         * modules/close (Files): Remove lib/w32sock.h.
81562         (Depends-on): Add close-hook.
81563         (Link): Remove section.
81564         * modules/sockets (Files): Add lib/w32sock.h.
81565         (Depends-on): Add close-hook.
81566         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
81567         invocation.
81568         * NEWS: Mention that LIB_CLOSE is gone.
81570 2009-03-23  Eric Blake  <ebb9@byu.net>
81572         signal-tests: test previous patch
81573         * tests/test-signal.c: New file.
81574         * modules/signal-tests: Likewise.
81576         signal.h: always support 'volatile sig_atomic_t'
81577         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
81578         (gl_SIGNAL_H_DEFAULTS): Add a default.
81579         * modules/signal (Makefile.am): Substitute if needed.
81580         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
81581         users can blindly add volatile.
81582         * doc/posix-headers/signal.texi (signal.h): Document it.
81583         Reported by Matthew Woehlke.
81585 2009-03-23  Jim Meyering  <meyering@redhat.com>
81587         pathmax: PATH_MAX: use pathconf only when available
81588         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81589         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81590         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81591         This avoids a link failure in a PSP cross-compilation environment
81592         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81594         * lib/vasnprintf.c (divide): Fix typo in comment.
81596 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81598         * gnulib-tool (func_filter_filelist): Fix comment.
81600 2009-03-20  Bruno Haible  <bruno@clisp.org>
81602         Make sockets.h self-contained.
81603         * lib/sockets.c: Include sockets.h first.
81604         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81606 2009-03-19  Eric Blake  <ebb9@byu.net>
81608         doc: mention more functions added in cygwin 1.7.0
81609         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81610         addition.
81611         * doc/posix-functions/log2f.texi: Likewise.
81613 2009-03-19  Jim Meyering  <meyering@redhat.com>
81615         fsusage: avoid syntax error due to statement-before-declaration
81616         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81617         after all declarations.  Reported by Matthew Woehlke in
81618         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81620 2009-03-18  Eric Blake  <ebb9@byu.net>
81622         build-aux/compile: sync from automake
81623         * build-aux/compile: New file, from automake.
81624         * config/srclist.txt: Mention build-aux/compile.
81626 2009-03-17  Bruno Haible  <bruno@clisp.org>
81628         * lib/git-merge-changelog.c: Fix typo in comment.
81629         Reported by Reuben Thomas <rrt@sc3d.org>.
81631 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81633         * m4/regex.m4: update and improve help for
81634         --without-included-regex.
81636 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81638         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81639         failure on missing include files.
81641 2009-03-17  Eric Blake  <ebb9@byu.net>
81643         doc: mention more functions added in cygwin 1.7.0
81644         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81645         addition.
81646         * doc/posix-functions/fwscanf.texi: Likewise.
81647         * doc/posix-functions/swprintf.texi: Likewise.
81648         * doc/posix-functions/swscanf.texi: Likewise.
81649         * doc/posix-functions/vfwprintf.texi: Likewise.
81650         * doc/posix-functions/vfwscanf.texi: Likewise.
81651         * doc/posix-functions/vswprintf.texi: Likewise.
81652         * doc/posix-functions/vswscanf.texi: Likewise.
81653         * doc/posix-functions/vwprintf.texi: Likewise.
81654         * doc/posix-functions/vwscanf.texi: Likewise.
81655         * doc/posix-functions/wcscasecmp.texi: Likewise.
81656         * doc/posix-functions/wcsdup.texi: Likewise.
81657         * doc/posix-functions/wcsftime.texi: Likewise.
81658         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81659         * doc/posix-functions/wprintf.texi: Likewise.
81660         * doc/posix-functions/wscanf.texi: Likewise.
81661         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81663 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81665         maint.mk: really add $(AM_MAKEFLAGS)
81666         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81667         was inadvertently omitted in the last commit.
81668         Spotted by Bruno Haible.
81670         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81671         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81672         $(AM_MAKEFLAGS)' rather than plain `make'.
81674         gnulib-tool: execute $MAKE not make
81675         * gnulib-tool: Default $MAKE to 'make'.
81676         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81677         than make.  Initialize $MAKE in the do-autobuild script.
81679         gnulib-tool: use $MAKE not make in generated files
81680         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81681         make, in generated files.  Initialize $MAKE in the do-autobuild
81682         script.
81684         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81686         GNUmakefile: disable parallelism only for multiple, recursive targets
81687         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81688         additions in the Makefile.
81689         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81690         by Automake.
81691         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81692         are listed on the command line and at least one of them is
81693         listed in $(ALL_RECURSIVE_TARGETS).
81695 2009-03-14  Bruno Haible  <bruno@clisp.org>
81697         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81698         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81699         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81700         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81701         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81702         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81703         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81704         unistr/u8-uctomb.
81705         * modules/unistr/u8-strchr (Depends-on): Likewise.
81706         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81707         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81708         unistr/u16-uctomb.
81709         * modules/unistr/u16-strchr (Depends-on): Likewise.
81710         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81712 2009-03-12  Bruno Haible  <bruno@clisp.org>
81714         Work around select() bug on Interix 3.5.
81715         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81716         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81717         * m4/select.m4: New file.
81718         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81719         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81720         * modules/select (Files): Add m4/select.m4.
81721         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81722         * modules/nanosleep (Depends-on): Add select.
81723         * modules/poll (Depends-on): Likewise.
81724         * doc/posix-functions/select.texi: Mention the Interix bug.
81725         Reported by Markus Duft <mduft@gentoo.org>.
81727         * lib/select.c: Renamed from lib/winsock-select.c.
81728         * modules/select (Files): Add lib/select.c, remove
81729         lib/winsock-select.c.
81730         (configure.ac): Update.
81732 2009-03-12  Jim Meyering  <meyering@redhat.com>
81734         avoid gcc warnings about unused macro definitions
81735         * lib/readtokens.c (STREQ): Remove unused definition.
81736         * lib/xmalloc.c (SIZE_MAX): Likewise.
81737         * lib/openat-die.c (N_): Likewise.
81738         * lib/mountlist.c (SIZE_MAX): Remove definition.
81739         Instead, include <stdint.h>.
81740         * lib/readutmp.c: Likewise.
81741         * modules/readutmp (Depends-on): Add stdint.
81742         * modules/mountlist (Depends-on): Add stdint.
81743         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81745 2009-03-10  Bruno Haible  <bruno@clisp.org>
81747         Tests for module 'mbmemcasecoll'.
81748         * modules/mbmemcasecoll-tests: New file.
81749         * tests/test-mbmemcasecoll1.sh: New file.
81750         * tests/test-mbmemcasecoll2.sh: New file.
81751         * tests/test-mbmemcasecoll3.sh: New file.
81752         * tests/test-mbmemcasecoll.c: New file.
81754         New module 'mbmemcasecoll'.
81755         * lib/mbmemcasecoll.h: New file.
81756         * lib/mbmemcasecoll.c: New file.
81757         * modules/mbmemcasecoll: New file.
81759         * tests/test-mbmemcasecmp.h: New file, extracted from
81760         tests/test-mbmemcasecmp.c.
81761         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81762         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81763         (main): Update.
81764         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81766 2009-03-09  Bruno Haible  <bruno@clisp.org>
81768         Tests for module 'mbmemcasecmp'.
81769         * modules/mbmemcasecmp-tests: New file.
81770         * tests/test-mbmemcasecmp1.sh: New file.
81771         * tests/test-mbmemcasecmp2.sh: New file.
81772         * tests/test-mbmemcasecmp3.sh: New file.
81773         * tests/test-mbmemcasecmp.c: New file.
81775         New module 'mbmemcasecmp'.
81776         * lib/mbmemcasecmp.h: New file.
81777         * lib/mbmemcasecmp.c: New file.
81778         * modules/mbmemcasecmp: New file.
81780 2009-03-09  Bruno Haible  <bruno@clisp.org>
81782         Tests for module 'unicase/ulc-casecoll'.
81783         * modules/unicase/ulc-casecoll-tests: New file.
81784         * tests/unicase/test-ulc-casecoll1.sh: New file.
81785         * tests/unicase/test-ulc-casecoll2.sh: New file.
81786         * tests/unicase/test-ulc-casecoll.c: New file.
81788         New module 'unicase/ulc-casecoll'.
81789         * lib/unicase.h (ulc_casecoll): New declaration.
81790         * lib/unicase/ulc-casecoll.c: New file.
81791         * modules/unicase/ulc-casecoll: New file.
81793         New module 'unicase/ulc-casexfrm'.
81794         * lib/unicase.h (ulc_casexfrm): New declaration.
81795         * lib/unicase/ulc-casexfrm.c: New file.
81796         * modules/unicase/ulc-casexfrm: New file.
81798 2009-03-09  Bruno Haible  <bruno@clisp.org>
81800         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81801         invocations.
81803         * m4/mbscasecmp.m4: Remove file.
81804         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81805         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81807         * m4/mbscasestr.m4: Remove file.
81808         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81809         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81811         * m4/mbschr.m4: Remove file.
81812         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81813         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81815         * m4/mbscspn.m4: Remove file.
81816         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81817         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81819         * m4/mbslen.m4: Remove file.
81820         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81821         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81823         * m4/mbsncasecmp.m4: Remove file.
81824         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81825         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81827         * m4/mbsnlen.m4: Remove file.
81828         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81829         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81831         * m4/mbspbrk.m4: Remove file.
81832         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81833         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81835         * m4/mbspcasecmp.m4: Remove file.
81836         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81837         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81839         * m4/mbsrchr.m4: Remove file.
81840         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81841         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81843         * m4/mbssep.m4: Remove file.
81844         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81845         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81847         * m4/mbsspn.m4: Remove file.
81848         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81849         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81851         * m4/mbsstr.m4: Remove file.
81852         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81853         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81855         * m4/mbstok_r.m4: Remove file.
81856         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81857         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81859         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81861         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81862         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81864         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81866 2009-03-08  Bruno Haible  <bruno@clisp.org>
81868         Tests for module 'unicase/ulc-casecmp'.
81869         * modules/unicase/ulc-casecmp-tests: New file.
81870         * tests/unicase/test-ulc-casecmp1.sh: New file.
81871         * tests/unicase/test-ulc-casecmp2.sh: New file.
81872         * tests/unicase/test-ulc-casecmp.c: New file.
81874         New module 'unicase/ulc-casecmp'.
81875         * lib/unicase.h (ulc_casecmp): New declaration.
81876         * lib/unicase/ulc-casecmp.c: New file.
81877         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81878         'const SRC_UNIT *'.
81879         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81880         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81881         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81882         * modules/unicase/ulc-casecmp: New file.
81884         Tests for module 'unicase/u32-is-cased'.
81885         * modules/unicase/u32-is-cased-tests: New file.
81886         * tests/unicase/test-u32-is-cased.c: New file.
81888         Tests for module 'unicase/u16-is-cased'.
81889         * modules/unicase/u16-is-cased-tests: New file.
81890         * tests/unicase/test-u16-is-cased.c: New file.
81892         Tests for module 'unicase/u8-is-cased'.
81893         * modules/unicase/u8-is-cased-tests: New file.
81894         * tests/unicase/test-u8-is-cased.c: New file.
81895         * tests/unicase/test-is-cased.h: New file.
81897         New module 'unicase/u32-is-cased'.
81898         * lib/unicase/u32-is-cased.c: New file.
81899         * modules/unicase/u32-is-cased: New file.
81901         New module 'unicase/u16-is-cased'.
81902         * lib/unicase/u16-is-cased.c: New file.
81903         * modules/unicase/u16-is-cased: New file.
81905         New module 'unicase/u8-is-cased'.
81906         * lib/unicase/u8-is-cased.c: New file.
81907         * lib/unicase/u-is-cased.h: New file.
81908         * modules/unicase/u8-is-cased: New file.
81910         Tests for module 'unicase/u32-is-casefolded'.
81911         * modules/unicase/u32-is-casefolded-tests: New file.
81912         * tests/unicase/test-u32-is-casefolded.c: New file.
81914         Tests for module 'unicase/u16-is-casefolded'.
81915         * modules/unicase/u16-is-casefolded-tests: New file.
81916         * tests/unicase/test-u16-is-casefolded.c: New file.
81918         Tests for module 'unicase/u8-is-casefolded'.
81919         * modules/unicase/u8-is-casefolded-tests: New file.
81920         * tests/unicase/test-u8-is-casefolded.c: New file.
81921         * tests/unicase/test-is-casefolded.h: New file.
81923         New module 'unicase/u32-is-casefolded'.
81924         * lib/unicase/u32-is-casefolded.c: New file.
81925         * modules/unicase/u32-is-casefolded: New file.
81927         New module 'unicase/u16-is-casefolded'.
81928         * lib/unicase/u16-is-casefolded.c: New file.
81929         * modules/unicase/u16-is-casefolded: New file.
81931         New module 'unicase/u8-is-casefolded'.
81932         * lib/unicase/u8-is-casefolded.c: New file.
81933         * modules/unicase/u8-is-casefolded: New file.
81935         Tests for module 'unicase/u32-is-titlecase'.
81936         * modules/unicase/u32-is-titlecase-tests: New file.
81937         * tests/unicase/test-u32-is-titlecase.c: New file.
81939         Tests for module 'unicase/u16-is-titlecase'.
81940         * modules/unicase/u16-is-titlecase-tests: New file.
81941         * tests/unicase/test-u16-is-titlecase.c: New file.
81943         Tests for module 'unicase/u8-is-titlecase'.
81944         * modules/unicase/u8-is-titlecase-tests: New file.
81945         * tests/unicase/test-u8-is-titlecase.c: New file.
81946         * tests/unicase/test-is-titlecase.h: New file.
81948         New module 'unicase/u32-is-titlecase'.
81949         * lib/unicase/u32-is-titlecase.c: New file.
81950         * modules/unicase/u32-is-titlecase: New file.
81952         New module 'unicase/u16-is-titlecase'.
81953         * lib/unicase/u16-is-titlecase.c: New file.
81954         * modules/unicase/u16-is-titlecase: New file.
81956         New module 'unicase/u8-is-titlecase'.
81957         * lib/unicase/u8-is-titlecase.c: New file.
81958         * modules/unicase/u8-is-titlecase: New file.
81960         Tests for module 'unicase/u32-is-lowercase'.
81961         * modules/unicase/u32-is-lowercase-tests: New file.
81962         * tests/unicase/test-u32-is-lowercase.c: New file.
81964         Tests for module 'unicase/u16-is-lowercase'.
81965         * modules/unicase/u16-is-lowercase-tests: New file.
81966         * tests/unicase/test-u16-is-lowercase.c: New file.
81968         Tests for module 'unicase/u8-is-lowercase'.
81969         * modules/unicase/u8-is-lowercase-tests: New file.
81970         * tests/unicase/test-u8-is-lowercase.c: New file.
81971         * tests/unicase/test-is-lowercase.h: New file.
81973         New module 'unicase/u32-is-lowercase'.
81974         * lib/unicase/u32-is-lowercase.c: New file.
81975         * modules/unicase/u32-is-lowercase: New file.
81977         New module 'unicase/u16-is-lowercase'.
81978         * lib/unicase/u16-is-lowercase.c: New file.
81979         * modules/unicase/u16-is-lowercase: New file.
81981         New module 'unicase/u8-is-lowercase'.
81982         * lib/unicase/u8-is-lowercase.c: New file.
81983         * modules/unicase/u8-is-lowercase: New file.
81985         Tests for module 'unicase/u32-is-uppercase'.
81986         * modules/unicase/u32-is-uppercase-tests: New file.
81987         * tests/unicase/test-u32-is-uppercase.c: New file.
81989         Tests for module 'unicase/u16-is-uppercase'.
81990         * modules/unicase/u16-is-uppercase-tests: New file.
81991         * tests/unicase/test-u16-is-uppercase.c: New file.
81993         Tests for module 'unicase/u8-is-uppercase'.
81994         * modules/unicase/u8-is-uppercase-tests: New file.
81995         * tests/unicase/test-u8-is-uppercase.c: New file.
81996         * tests/unicase/test-is-uppercase.h: New file.
81998         New module 'unicase/u32-is-uppercase'.
81999         * lib/unicase/u32-is-uppercase.c: New file.
82000         * modules/unicase/u32-is-uppercase: New file.
82002         New module 'unicase/u16-is-uppercase'.
82003         * lib/unicase/u16-is-uppercase.c: New file.
82004         * modules/unicase/u16-is-uppercase: New file.
82006         New module 'unicase/u8-is-uppercase'.
82007         * lib/unicase/u8-is-uppercase.c: New file.
82008         * modules/unicase/u8-is-uppercase: New file.
82010         New module 'unicase/u32-is-invariant'.
82011         * lib/unicase/u32-is-invariant.c: New file.
82012         * modules/unicase/u32-is-invariant: New file.
82014         New module 'unicase/u16-is-invariant'.
82015         * lib/unicase/u16-is-invariant.c: New file.
82016         * modules/unicase/u16-is-invariant: New file.
82018         New module 'unicase/u8-is-invariant'.
82019         * lib/unicase/u8-is-invariant.c: New file.
82020         * lib/unicase/invariant.h: New file.
82021         * lib/unicase/u-is-invariant.h: New file.
82022         * modules/unicase/u8-is-invariant: New file.
82024         Tests for module 'unicase/u32-casecoll'.
82025         * modules/unicase/u32-casecoll-tests: New file.
82026         * tests/unicase/test-u32-casecoll.c: New file.
82028         Tests for module 'unicase/u16-casecoll'.
82029         * modules/unicase/u16-casecoll-tests: New file.
82030         * tests/unicase/test-u16-casecoll.c: New file.
82032         Tests for module 'unicase/u8-casecoll'.
82033         * modules/unicase/u8-casecoll-tests: New file.
82034         * tests/unicase/test-u8-casecoll.c: New file.
82036         New module 'unicase/u32-casecoll'.
82037         * lib/unicase/u32-casecoll.c: New file.
82038         * modules/unicase/u32-casecoll: New file.
82040         New module 'unicase/u16-casecoll'.
82041         * lib/unicase/u16-casecoll.c: New file.
82042         * modules/unicase/u16-casecoll: New file.
82044         New module 'unicase/u8-casecoll'.
82045         * lib/unicase/u8-casecoll.c: New file.
82046         * lib/unicase/u-casecoll.h: New file.
82047         * modules/unicase/u8-casecoll: New file.
82049         New module 'unicase/u32-casexfrm'.
82050         * lib/unicase/u32-casexfrm.c: New file.
82051         * modules/unicase/u32-casexfrm: New file.
82053         New module 'unicase/u16-casexfrm'.
82054         * lib/unicase/u16-casexfrm.c: New file.
82055         * modules/unicase/u16-casexfrm: New file.
82057         New module 'unicase/u8-casexfrm'.
82058         * lib/unicase/u8-casexfrm.c: New file.
82059         * lib/unicase/u-casexfrm.h: New file.
82060         * modules/unicase/u8-casexfrm: New file.
82062         Tests for module 'unicase/u32-casecmp'.
82063         * modules/unicase/u32-casecmp-tests: New file.
82064         * tests/unicase/test-u32-casecmp.c: New file.
82066         Tests for module 'unicase/u16-casecmp'.
82067         * modules/unicase/u16-casecmp-tests: New file.
82068         * tests/unicase/test-u16-casecmp.c: New file.
82070         Tests for module 'unicase/u8-casecmp'.
82071         * modules/unicase/u8-casecmp-tests: New file.
82072         * tests/unicase/test-u8-casecmp.c: New file.
82073         * tests/unicase/test-casecmp.h: New file.
82075         New module 'unicase/u32-casecmp'.
82076         * lib/unicase/u32-casecmp.c: New file.
82077         * modules/unicase/u32-casecmp: New file.
82079         New module 'unicase/u16-casecmp'.
82080         * lib/unicase/u16-casecmp.c: New file.
82081         * modules/unicase/u16-casecmp: New file.
82083         New module 'unicase/u8-casecmp'.
82084         * lib/unicase/u8-casecmp.c: New file.
82085         * lib/unicase/u-casecmp.h: New file.
82086         * modules/unicase/u8-casecmp: New file.
82088         Tests for module 'unicase/u32-casefold'.
82089         * modules/unicase/u32-casefold-tests: New file.
82090         * tests/unicase/test-u32-casefold.c: New file.
82092         Tests for module 'unicase/u16-casefold'.
82093         * modules/unicase/u16-casefold-tests: New file.
82094         * tests/unicase/test-u16-casefold.c: New file.
82096         Tests for module 'unicase/u8-casefold'.
82097         * modules/unicase/u8-casefold-tests: New file.
82098         * tests/unicase/test-u8-casefold.c: New file.
82100         New module 'unicase/u32-casefold'.
82101         * lib/unicase/u32-casefold.c: New file.
82102         * modules/unicase/u32-casefold: New file.
82104         New module 'unicase/u16-casefold'.
82105         * lib/unicase/u16-casefold.c: New file.
82106         * modules/unicase/u16-casefold: New file.
82108         New module 'unicase/u8-casefold'.
82109         * lib/unicase/u8-casefold.c: New file.
82110         * lib/unicase/u-casefold.h: New file.
82111         * modules/unicase/u8-casefold: New file.
82113         New module 'unicase/tocasefold'.
82114         * lib/unicase/casefold.h: New file.
82115         * lib/unicase/tocasefold.c: New file.
82116         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
82117         * modules/unicase/tocasefold: New file.
82119         Tests for module 'unicase/u32-totitle'.
82120         * modules/unicase/u32-totitle-tests: New file.
82121         * tests/unicase/test-u32-totitle.c: New file.
82123         Tests for module 'unicase/u16-totitle'.
82124         * modules/unicase/u16-totitle-tests: New file.
82125         * tests/unicase/test-u16-totitle.c: New file.
82127         Tests for module 'unicase/u8-totitle'.
82128         * modules/unicase/u8-totitle-tests: New file.
82129         * tests/unicase/test-u8-totitle.c: New file.
82131         New module 'unicase/u32-totitle'.
82132         * lib/unicase/u32-totitle.c: New file.
82133         * modules/unicase/u32-totitle: New file.
82135         New module 'unicase/u16-totitle'.
82136         * lib/unicase/u16-totitle.c: New file.
82137         * modules/unicase/u16-totitle: New file.
82139         New module 'unicase/u8-totitle'.
82140         * lib/unicase/u8-totitle.c: New file.
82141         * lib/unicase/u-totitle.h: New file.
82142         * modules/unicase/u8-totitle: New file.
82144         Tests for module 'unicase/u32-tolower'.
82145         * modules/unicase/u32-tolower-tests: New file.
82146         * tests/unicase/test-u32-tolower.c: New file.
82148         Tests for module 'unicase/u16-tolower'.
82149         * modules/unicase/u16-tolower-tests: New file.
82150         * tests/unicase/test-u16-tolower.c: New file.
82152         Tests for module 'unicase/u8-tolower'.
82153         * modules/unicase/u8-tolower-tests: New file.
82154         * tests/unicase/test-u8-tolower.c: New file.
82156         New module 'unicase/u32-tolower'.
82157         * lib/unicase/u32-tolower.c: New file.
82158         * modules/unicase/u32-tolower: New file.
82160         New module 'unicase/u16-tolower'.
82161         * lib/unicase/u16-tolower.c: New file.
82162         * modules/unicase/u16-tolower: New file.
82164         New module 'unicase/u8-tolower'.
82165         * lib/unicase/u8-tolower.c: New file.
82166         * modules/unicase/u8-tolower: New file.
82168         Tests for module 'unicase/u32-toupper'.
82169         * modules/unicase/u32-toupper-tests: New file.
82170         * tests/unicase/test-u32-toupper.c: New file.
82172         Tests for module 'unicase/u16-toupper'.
82173         * modules/unicase/u16-toupper-tests: New file.
82174         * tests/unicase/test-u16-toupper.c: New file.
82176         Tests for module 'unicase/u8-toupper'.
82177         * modules/unicase/u8-toupper-tests: New file.
82178         * tests/unicase/test-u8-toupper.c: New file.
82180         New module 'unicase/u32-toupper'.
82181         * lib/unicase/u32-toupper.c: New file.
82182         * modules/unicase/u32-toupper: New file.
82184         New module 'unicase/u16-toupper'.
82185         * lib/unicase/u16-toupper.c: New file.
82186         * modules/unicase/u16-toupper: New file.
82188         New module 'unicase/u8-toupper'.
82189         * lib/unicase/u8-toupper.c: New file.
82190         * modules/unicase/u8-toupper: New file.
82192         New module 'unicase/u32-casemap'.
82193         * lib/unicase/u32-casemap.c: New file.
82194         * modules/unicase/u32-casemap: New file.
82196         New module 'unicase/u16-casemap'.
82197         * lib/unicase/u16-casemap.c: New file.
82198         * modules/unicase/u16-casemap: New file.
82200         New module 'unicase/u8-casemap'.
82201         * lib/unicase/unicasemap.h: New file.
82202         * lib/unicase/u8-casemap.c: New file.
82203         * lib/unicase/u-casemap.h: New file.
82204         * modules/unicase/u8-casemap: New file.
82206         New module 'unicase/special-casing'.
82207         * lib/unicase/special-casing.h: New file.
82208         * lib/unicase/special-casing.c: New file.
82209         * lib/unicase/special-casing-table.gperf: New file, generated by
82210         gen-uni-tables.c.
82211         * modules/unicase/special-casing: New file.
82213         Tests for module 'unicase/locale-language'.
82214         * modules/unicase/locale-language-tests: New file.
82215         * tests/unicase/test-locale-language.sh: New file.
82216         * tests/unicase/test-locale-language.c: New file.
82218         New module 'unicase/locale-language'.
82219         * lib/unicase/locale-language.c: New file.
82220         * lib/unicase/locale-languages.gperf: New file.
82221         * modules/unicase/locale-language: New file.
82223         Generate more tables for case conversion and case folding.
82224         * lib/gen-uni-tables.c (SCC_*): New enum items.
82225         (struct special_casing_rule): New type.
82226         (casing_rules, num_casing_rules, allocated_casing_rules): New
82227         variables.
82228         (add_casing_rule, fill_casing_rules): New functions.
82229         (struct casefold_rule): New type.
82230         (casefolding_rules, num_casefolding_rules,
82231         allocated_casefolding_rules): New variables.
82232         (fill_casefolding_rules): New function.
82233         (unicode_casefold): New variable.
82234         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
82235         sort_casing_rules, output_casing_rules): New functions.
82236         (main): Accept to more arguments: SpecialCasing.txt and
82237         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
82238         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
82239         Output mapping for casefolding.
82241         * lib/unicase.h: Include stdbool.h, uninorm.h.
82242         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
82243         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
82244         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
82245         arguments.
82246         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
82247         resultp arguments.
82248         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
82249         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
82250         resultp arguments.
82251         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
82252         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
82253         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
82254         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
82255         declarations.
82256         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
82258 2009-03-08  Bruno Haible  <bruno@clisp.org>
82260         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82261         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
82262         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
82263         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82265 2009-03-07  Bruno Haible  <bruno@clisp.org>
82267         Adjust u*_normcmp, u*_normcoll API.
82268         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82269         u16_normcoll, u32_normcoll): Change failure conventions.
82270         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
82271         errno and return -1.
82272         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82274 2009-03-07  Bruno Haible  <bruno@clisp.org>
82276         Tests for module 'uninorm/u32-normcoll'.
82277         * modules/uninorm/u32-normcoll-tests: New file.
82278         * tests/uninorm/test-u32-normcoll.c: New file.
82280         Tests for module 'uninorm/u16-normcoll'.
82281         * modules/uninorm/u16-normcoll-tests: New file.
82282         * tests/uninorm/test-u16-normcoll.c: New file.
82284         Tests for module 'uninorm/u8-normcoll'.
82285         * modules/uninorm/u8-normcoll-tests: New file.
82286         * tests/uninorm/test-u8-normcoll.c: New file.
82288 2009-03-07  Bruno Haible  <bruno@clisp.org>
82290         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
82291         tests/uninorm/test-u32-normcmp.c.
82292         * tests/uninorm/test-u32-normcmp.c: Include it.
82293         (test_nonascii): New function, extracted from main. Add some more
82294         tests.
82295         (main): Invoke test_ascii and test_nonascii.
82296         * modules/uninorm/u32-normcmp-tests (Files): Add
82297         tests/uninorm/test-u32-normcmp.h.
82298         (Depends-on): Remove uninorm/u32-normcmp.
82300         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
82301         tests/uninorm/test-u16-normcmp.c.
82302         * tests/uninorm/test-u16-normcmp.c: Include it.
82303         (test_nonascii): New function, extracted from main. Add some more
82304         tests.
82305         (main): Invoke test_ascii and test_nonascii.
82306         * modules/uninorm/u16-normcmp-tests (Files): Add
82307         tests/uninorm/test-u16-normcmp.h.
82308         (Depends-on): Remove uninorm/u16-normcmp.
82310         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
82311         tests/uninorm/test-u8-normcmp.c.
82312         * tests/uninorm/test-u8-normcmp.c: Include it.
82313         (test_nonascii): New function, extracted from main. Add some more
82314         tests.
82315         (main): Invoke test_ascii and test_nonascii.
82316         * modules/uninorm/u8-normcmp-tests (Files): Add
82317         tests/uninorm/test-u8-normcmp.h.
82318         (Depends-on): Remove uninorm/u8-normcmp.
82320 2009-03-07  Bruno Haible  <bruno@clisp.org>
82322         New module 'uninorm/u32-normcoll'.
82323         * lib/uninorm/u32-normcoll.c: New file.
82324         * modules/uninorm/u32-normcoll: New file.
82326         New module 'uninorm/u16-normcoll'.
82327         * lib/uninorm/u16-normcoll.c: New file.
82328         * modules/uninorm/u16-normcoll: New file.
82330         New module 'uninorm/u8-normcoll'.
82331         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
82332         declarations.
82333         * lib/uninorm/u8-normcoll.c: New file.
82334         * lib/uninorm/u-normcoll.h: New file.
82335         * modules/uninorm/u8-normcoll: New file.
82337         New module 'uninorm/u32-normxfrm'.
82338         * lib/uninorm/u32-normxfrm.c: New file.
82339         * modules/uninorm/u32-normxfrm: New file.
82341         New module 'uninorm/u16-normxfrm'.
82342         * lib/uninorm/u16-normxfrm.c: New file.
82343         * modules/uninorm/u16-normxfrm: New file.
82345         New module 'uninorm/u8-normxfrm'.
82346         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
82347         declarations.
82348         * lib/uninorm/u8-normxfrm.c: New file.
82349         * lib/uninorm/u-normxfrm.h: New file.
82350         * modules/uninorm/u8-normxfrm: New file.
82352 2009-03-07  Bruno Haible  <bruno@clisp.org>
82354         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
82355         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
82356         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
82358 2009-03-07  Bruno Haible  <bruno@clisp.org>
82360         New module 'memxfrm'.
82361         * lib/memxfrm.h: New file.
82362         * lib/memxfrm.c: New file.
82363         * modules/memxfrm: New file.
82365 2009-03-07  Bruno Haible  <bruno@clisp.org>
82367         New module 'memcmp2'.
82368         * lib/memcmp2.h: New file.
82369         * lib/memcmp2.c: New file.
82370         * modules/memcmp2: New file.
82372 2009-03-07  Bruno Haible  <bruno@clisp.org>
82374         Tests for module 'uninorm/decomposing-form'.
82375         * modules/uninorm/decomposing-form-tests: New file.
82376         * tests/uninorm/test-decomposing-form.c: New file.
82378         New module 'uninorm/decomposing-form'.
82379         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
82380         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
82381         Add 'decomposing_variant' field.
82382         * lib/uninorm/decomposing-form.c: New file.
82383         * lib/uninorm/nfc.c (uninorm_nfc): Update.
82384         * lib/uninorm/nfd.c (uninorm_nfd): Update.
82385         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
82386         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
82387         * modules/uninorm/decomposing-form: New file.
82388         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
82389         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
82391 2009-03-07  Bruno Haible  <bruno@clisp.org>
82393         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
82394         strings.
82396 2009-03-06  Bruno Haible  <bruno@clisp.org>
82398         Tests for module 'uninorm/u32-normcmp'.
82399         * tests/uninorm/test-u32-normcmp.c: New file.
82400         * modules/uninorm/u32-normcmp-tests: New file.
82402         Tests for module 'uninorm/u16-normcmp'.
82403         * tests/uninorm/test-u16-normcmp.c: New file.
82404         * modules/uninorm/u16-normcmp-tests: New file.
82406         Tests for module 'uninorm/u8-normcmp'.
82407         * tests/uninorm/test-u8-normcmp.c: New file.
82408         * modules/uninorm/u8-normcmp-tests: New file.
82410         New module 'uninorm/u32-normcmp'.
82411         * lib/uninorm/u32-normcmp.c: New file.
82412         * modules/uninorm/u32-normcmp: New file.
82414         New module 'uninorm/u16-normcmp'.
82415         * lib/uninorm/u16-normcmp.c: New file.
82416         * modules/uninorm/u16-normcmp: New file.
82418         New module 'uninorm/u8-normcmp'.
82419         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
82420         declarations.
82421         * lib/uninorm/u8-normcmp.c: New file.
82422         * lib/uninorm/u-normcmp.h: New file.
82423         * modules/uninorm/u8-normcmp: New file.
82425 2009-03-06  Bruno Haible  <bruno@clisp.org>
82427         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
82428         Reported by Eric Blake.
82430 2009-03-06  Eric Blake  <ebb9@byu.net>
82431             Bruno Haible  <bruno@clisp.org>
82433         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
82434         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
82435         condition.
82436         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82437         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
82438         condition.
82439         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82441 2009-03-06  Eric Blake  <ebb9@byu.net>
82443         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
82444         to avoid compiler warnings.
82445         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
82447 2009-03-05  Bruno Haible  <bruno@clisp.org>
82449         * tests/test-ftell.c (main): Disable test beyond end of file on
82450         FreeMiNT.
82451         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82453 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
82455         * lib/filevercmp.c: Move hidden files up in ordering.
82456         * tests/test-filevercmp.c: Add tests for hidden files.
82458 2009-03-04  Bruno Haible  <bruno@clisp.org>
82460         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
82461         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
82462         AM_CFLAGS.
82463         Reported by Simon Josefsson.
82465 2009-03-03  Bruno Haible  <bruno@clisp.org>
82467         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
82468         Reported by Simon Josefsson.
82470         * doc/ld-version-script.texi: Update node reference.
82472 2009-03-03  Bruno Haible  <bruno@clisp.org>
82474         * modules/visibility (License): Change to 'unlimited'.
82475         Suggested by Simon Josefsson.
82477 2009-03-03  Jim Meyering  <meyering@redhat.com>
82479         unlinkdir: cannot_unlink_dir may modify process state
82480         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
82481         it's neither thread-safe nor appropriate for use in a library.
82483 2009-03-03  Eric Blake  <ebb9@byu.net>
82485         test-closein: silence test under Darwin
82486         * tests/test-closein.sh: Ignore stderr from cat, since we don't
82487         care if it dies from EPIPE or EBADF.
82489 2009-03-03  Bruno Haible  <bruno@clisp.org>
82491         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
82492         earlier.
82493         * doc/visibility.texi: Fix @node and @section.
82495 2009-03-03  Simon Josefsson  <simon@josefsson.org>
82497         * doc/gnulib.texi: Link to sections for ld version script and
82498         visibility.
82499         * doc/visibility.texi: Add @node and @section.
82500         * modules/ld-version-script: New module.
82501         * m4/ld-version-script.m4: New file.
82502         * doc/ld-version-script.texi: New file.
82504 2009-03-02  David Lutterkort  <lutter@redhat.com>
82506         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
82507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82509 2009-03-02  Bruno Haible  <bruno@clisp.org>
82511         * doc/visibility.texi: Mention libtool's -export-symbols option.
82513 2009-03-02  Jim Meyering  <meyering@redhat.com>
82515         announce-gen: new option: --no-print-checksums
82516         * build-aux/announce-gen (usage): Describe it.
82517         (print_checksums): Print a newline here, not in the [*] footnote.
82518         (main): Honor it.
82520 2009-03-01  Bruno Haible  <bruno@clisp.org>
82522         Use socklen_t in the native Windows replacements prototypes.
82523         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
82524         instead of 'int'.
82525         * lib/getsockopt.c (rpl_getsockopt): Likewise.
82526         * lib/setsockopt.c (rpl_setsockopt): Likewise.
82527         * modules/getsockopt (Depends-on): Add socklen.
82528         * modules/setsockopt (Depends-on): Add socklen.
82530 2009-03-01  Bruno Haible  <bruno@clisp.org>
82532         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
82533         least 4.2.
82535 2009-03-01  Eric Blake  <ebb9@byu.net>
82536             Bruno Haible  <bruno@clisp.org>
82538         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
82539         error messages.
82540         * lib/wait-process.c (wait_subprocess): Omit error message about
82541         deadly signal sent to the child of termsigp != NULL.
82543 2009-03-01  Eric Blake  <ebb9@byu.net>
82545         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
82547 2009-03-01  Bruno Haible  <bruno@clisp.org>
82549         Avoid a gcc warning.
82550         * tests/test-sched.c (b): Make global.
82551         Reported by Eric Blake.
82553 2009-01-19  Martin Lambers  <marlam@marlam.de>
82555         Provide POSIX semantics for socket timeout options on W32.
82556         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
82557         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
82558         * modules/setsockopt: Depend on sys_time module for struct timeval.
82559         * modules/getsockopt: Depend on sys_time module for struct timeval.
82561 2009-03-01  Simon Josefsson  <simon@josefsson.org>
82563         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
82564         __USE_GNU, for consistency with netdb.in.h.
82565         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82567 2009-03-01  Bruno Haible  <bruno@clisp.org>
82569         More support for FreeMiNT.
82570         * lib/fseeko.c (rpl_fseeko): Complete last commit.
82571         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82573 2009-03-01  Bruno Haible  <bruno@clisp.org>
82575         More support for FreeMiNT.
82576         * lib/fpurge.c (fpurge): Correct last commit.
82577         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82579 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82581         Fix unportable awk script in vc-list-files.
82582         * build-aux/vc-list-files: In the replacement awk script, use
82583         substr with a second argument of 1, not zero.
82584         Report by Simon Josefsson.
82586 2009-02-28  Bruno Haible  <bruno@clisp.org>
82588         More support for FreeMiNT.
82589         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82590         to FreeMiNT today.
82591         * lib/fwriting.c (fwriting): Likewise.
82592         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82594 2009-02-28  Bruno Haible  <bruno@clisp.org>
82596         * tests/test-freadseek.c (main): Disable test beyond end of file on
82597         FreeMiNT.
82598         * tests/test-ftello.c (main): Likewise.
82599         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82601 2009-02-28  Bruno Haible  <bruno@clisp.org>
82603         Add tentative support for FreeMiNT.
82604         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82605         * lib/fpurge.c (fpurge): Likewise.
82606         * lib/freadable.c (freadable): Likewise.
82607         * lib/freading.c (freading): Likewise.
82608         * lib/freadptr.c (freadptr): Likewise.
82609         * lib/freadseek.c (freadptrinc): Likewise.
82610         * lib/fseeko.c (rpl_fseeko): Likewise.
82611         * lib/fseterr.c (fseterr): Likewise.
82612         * lib/fwritable.c (fwritable): Likewise.
82613         * lib/fwriting.c (fwriting): Likewise.
82614         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82615         Hourihane.
82616         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82618 2009-02-28  Bruno Haible  <bruno@clisp.org>
82620         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82621         SIGCHLD.
82622         Reported by Jim Meyering.
82624 2009-02-28  Bruno Haible  <bruno@clisp.org>
82626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82627         Mention the results of these tests on various platforms.
82628         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82629         order.
82630         * doc/posix-functions/printf.texi: Likewise.
82631         * doc/posix-functions/snprintf.texi: Likewise.
82632         * doc/posix-functions/sprintf.texi: Likewise.
82633         * doc/posix-functions/vfprintf.texi: Likewise.
82634         * doc/posix-functions/vprintf.texi: Likewise.
82635         * doc/posix-functions/vsnprintf.texi: Likewise.
82636         * doc/posix-functions/vsprintf.texi: Likewise.
82637         * doc/glibc-functions/obstack_printf.texi: Likewise.
82638         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82640 2009-02-28  Bruno Haible  <bruno@clisp.org>
82642         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82643         Reported by Loïc Minier <lool@dooz.org>.
82645 2009-02-27  Bruno Haible  <bruno@clisp.org>
82647         * gnulib-tool (func_import): Make the sed expression used to create the
82648         sed script for updating the .gitignore file POSIX compliant.
82649         Reported by Eric Blake.
82651 2009-02-27  Bruno Haible  <bruno@clisp.org>
82653         * gnulib-tool (sed): Don't alias as "sed --posix".
82654         Reported by Eric Blake.
82656 2009-02-27  Bruno Haible  <bruno@clisp.org>
82658         Avoid test link errors.
82659         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82660         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82661         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82662         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82665 2009-02-27  Bruno Haible  <bruno@clisp.org>
82667         Avoid spurious "(cached)" in configure output.
82668         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82669         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82670         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82671         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82672         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82673         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82675         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82676         Reported by Eric Blake.
82678 2009-02-27  Eric Blake  <ebb9@byu.net>
82680         printf: fix regression in previous patch
82681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82683 2009-02-27  Bruno Haible  <bruno@clisp.org>
82685         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82686         value.
82687         * lib/stdint.in.h: Likewise.
82688         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82690 2009-02-27  Eric Blake  <ebb9@byu.net>
82692         doc: mention more functions added in cygwin 1.7.0
82693         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82694         addition.
82695         * doc/posix-functions/open_wmemstream.texi: Likewise.
82696         * doc/posix-functions/wcsnlen.texi: Likewise.
82697         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82698         * doc/posix-functions/wcstod.texi: Likewise.
82699         * doc/posix-functions/wcstof.texi: Likewise.
82700         * doc/posix-functions/wcstoimax.texi: Likewise.
82701         * doc/posix-functions/wcstok.texi: Likewise.
82702         * doc/posix-functions/wcstoumax.texi: Likewise.
82704         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82706         * doc/posix-functions/fprintf.texi: Update.
82707         * doc/posix-functions/printf.texi: Update.
82708         * doc/posix-functions/snprintf.texi: Update.
82709         * doc/posix-functions/sprintf.texi: Update.
82710         * doc/posix-functions/vfprintf.texi: Update.
82711         * doc/posix-functions/vprintf.texi: Update.
82712         * doc/posix-functions/vsnprintf.texi: Update.
82713         * doc/posix-functions/vsprintf.texi: Update.
82714         * doc/glibc-functions/obstack_printf.texi: Update.
82715         * doc/glibc-functions/obstack_vprintf.texi: Update.
82717 2009-02-26  Eric Blake  <ebb9@byu.net>
82719         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82720         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82721         compilation bug by using runtime conversion.
82722         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82723         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82724         * modules/ceill-tests (Files): Use nan.h.
82725         * modules/floorl-tests (Files): Likewise.
82726         * modules/frexpl-tests (Files): Likewise.
82727         * modules/isnanl-tests (Files): Likewise.
82728         * modules/ldexpl-tests (Files): Likewise.
82729         * modules/roundl-tests (Files): Likewise.
82730         * modules/truncl-tests (Files): Likewise.
82731         * tests/test-ceill.c (main): Use a working NaN.
82732         * tests/test-floorl.c (main): Likewise.
82733         * tests/test-frexpl.c (main): Likewise.
82734         * tests/test-isnan.c (test_long_double): Likewise.
82735         * tests/test-isnanl.h (main): Likewise.
82736         * tests/test-ldexpl.h (main): Likewise.
82737         * tests/test-roundl.h (main): Likewise.
82738         * tests/test-truncl.h (main): Likewise.
82739         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82741 2009-02-26  Eric Blake  <ebb9@byu.net>
82742             Bruno Haible  <bruno@clisp.org>
82744         Work around a *printf bug with %ls on Solaris.
82745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82746         precision is specified, sprintf stops converting the wide string
82747         argument when the number of bytes that have been produced by this
82748         conversion equals or exceeds the precision.
82749         * doc/posix-functions/fprintf.texi: Update.
82750         * doc/posix-functions/printf.texi: Update.
82751         * doc/posix-functions/snprintf.texi: Update.
82752         * doc/posix-functions/sprintf.texi: Update.
82753         * doc/posix-functions/vfprintf.texi: Update.
82754         * doc/posix-functions/vprintf.texi: Update.
82755         * doc/posix-functions/vsnprintf.texi: Update.
82756         * doc/posix-functions/vsprintf.texi: Update.
82757         * doc/glibc-functions/obstack_printf.texi: Update.
82758         * doc/glibc-functions/obstack_vprintf.texi: Update.
82760 2009-02-26  Eric Blake  <ebb9@byu.net>
82762         stdlib: favor compiler check of random.h
82763         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82764         to avoid an ObjC random.h installed by Swarm.
82766 2009-02-26  Bruno Haible  <bruno@clisp.org>
82768         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82769         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82770         Reported by Gary V. Vaughan <gary@gnu.org>.
82772 2009-02-26  Bruno Haible  <bruno@clisp.org>
82774         Fix *printf behaviour regarding the %ls directive.
82775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82776         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82777         NEED_PRINTF_DIRECTIVE_LS.
82778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82779         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82781         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82782         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82783         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82784         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82789         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82793         * doc/posix-functions/fprintf.texi: Update.
82794         * doc/posix-functions/printf.texi: Update.
82795         * doc/posix-functions/snprintf.texi: Update.
82796         * doc/posix-functions/sprintf.texi: Update.
82797         * doc/posix-functions/vfprintf.texi: Update.
82798         * doc/posix-functions/vprintf.texi: Update.
82799         * doc/posix-functions/vsnprintf.texi: Update.
82800         * doc/posix-functions/vsprintf.texi: Update.
82801         * doc/glibc-functions/obstack_printf.texi: Update.
82802         * doc/glibc-functions/obstack_vprintf.texi: Update.
82803         Reported by Eric Blake.
82805 2009-02-25  Bruno Haible  <bruno@clisp.org>
82807         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82808         with known value.
82809         Reported by Gary V. Vaughan <gary@gnu.org>.
82811 2009-02-25  Bruno Haible  <bruno@clisp.org>
82813         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82814         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82815         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82816         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82817         Reported by Gary V. Vaughan <gary@gnu.org>.
82819 2009-02-25  Bruno Haible  <bruno@clisp.org>
82821         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82822         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82823         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82824         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82825         Reported by Gary V. Vaughan <gary@gnu.org>.
82827 2009-02-25  Eric Blake  <ebb9@byu.net>
82829         tests: skip fseek/ftell tests if ungetc is broken
82830         * m4/ungetc.m4: New file.
82831         * modules/fseek-tests: Split test, so ungetc dependency is
82832         separate from rest of test.
82833         * modules/fseeko-tests: Likewise.
82834         * modules/ftell-tests: Likewise.
82835         * modules/ftello-tests: Likewise.
82836         * tests/test-fseek.c (main): Isolate ungetc dependency.
82837         * tests/test-fseeko.c (main): Likewise.
82838         * tests/test-ftell.c (main): Likewise.
82839         * tests/test-ftello.c (main): Likewise.
82840         * tests/test-fseek2.sh: New file.
82841         * tests/test-fseeko2.sh: Likewise.
82842         * tests/test-ftell2.sh: Likewise.
82843         * tests/test-ftello2.sh: Likewise.
82845 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82847         test-getaddrinfo: fix usage of skip return code 77
82848         * tests/test-gettaddrinfo.c: Return skip code 77 only
82849         for first occurrence of skip (4x77 is not 77)
82851 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82853         strtod: avoid C99 decl-after-statement
82854         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82856 2009-02-24  Eric Blake  <ebb9@byu.net>
82858         strtod: detect HP-UX 11.31 bug
82859         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82860         Reported by Gary V. Vaughan.
82862 2009-02-23  Bruno Haible  <bruno@clisp.org>
82864         Fix invalid read past end of memory block.
82865         * lib/vasnprintf.c (DCHAR_SET): Define.
82866         (local_wcslen): Define only when needed.
82867         (local_strnlen, local_wcsnlen): New functions.
82868         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82869         directives that involve a conversion ourselves.
82870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82871         wcsnlen, mbrtowc, wcrtomb.
82872         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82873         * tests/test-vasprintf-posix.c (test_function): Likewise.
82874         * tests/test-snprintf-posix.h (test_function): Likewise.
82875         * tests/test-sprintf-posix.h (test_function): Likewise.
82876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82878 2009-02-22  Bruno Haible  <bruno@clisp.org>
82880         Implement new clarified decomposition of Hangul syllables.
82881         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82882         of type LTV, return only a pairwise decomposition.
82883         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82884         Likewise.
82885         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82886         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82887         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82889 2009-02-22  Bruno Haible  <bruno@clisp.org>
82891         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82892         zero-length results and shrink excess allocated memory.
82893         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82894         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82895         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82896         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82897         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82898         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82899         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82900         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82901         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82902         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82903         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82904         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82906 2009-02-21  Bruno Haible  <bruno@clisp.org>
82908         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82909         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82910         spaces after a period. Put a space between a macro name and its
82911         argument list. Trivial rewordings.
82912         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82913         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82914         (main): Return 0 explicitly.
82916 2009-02-21  Bruno Haible  <bruno@clisp.org>
82918         Tests for module 'uninorm/filter'.
82919         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82920         * modules/uninorm/filter-tests: New file.
82922         New module 'uninorm/filter'.
82923         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82924         uninorm_filter_flush, uninorm_filter_free): New declarations.
82925         * lib/uninorm/uninorm-filter.c: New file.
82926         * modules/uninorm/filter: New file.
82928 2009-02-21  Bruno Haible  <bruno@clisp.org>
82930         Tests for module 'uninorm/nfkc'.
82931         * tests/uninorm/test-nfkc.c: New file.
82932         * tests/uninorm/test-u8-nfkc.c: New file.
82933         * tests/uninorm/test-u16-nfkc.c: New file.
82934         * tests/uninorm/test-u32-nfkc.c: New file.
82935         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82936         * tests/uninorm/test-u32-nfkc-big.c: New file.
82937         * modules/uninorm/nfkc-tests: New file.
82939         New module 'uninorm/nfkc'.
82940         * lib/uninorm/nfkc.c: New file.
82941         * modules/uninorm/nfkc: New file.
82943         Tests for module 'uninorm/nfkd'.
82944         * tests/uninorm/test-nfkd.c: New file.
82945         * tests/uninorm/test-u8-nfkd.c: New file.
82946         * tests/uninorm/test-u16-nfkd.c: New file.
82947         * tests/uninorm/test-u32-nfkd.c: New file.
82948         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82949         * tests/uninorm/test-u32-nfkd-big.c: New file.
82950         * modules/uninorm/nfkd-tests: New file.
82952         New module 'uninorm/nfkd'.
82953         * lib/uninorm/nfkd.c: New file.
82954         * modules/uninorm/nfkd: New file.
82956         Tests for module 'uninorm/nfc'.
82957         * tests/uninorm/test-nfc.c: New file.
82958         * tests/uninorm/test-u8-nfc.c: New file.
82959         * tests/uninorm/test-u16-nfc.c: New file.
82960         * tests/uninorm/test-u32-nfc.c: New file.
82961         * tests/uninorm/test-u32-nfc-big.sh: New file.
82962         * tests/uninorm/test-u32-nfc-big.c: New file.
82963         * modules/uninorm/nfc-tests: New file.
82965         New module 'uninorm/nfc'.
82966         * lib/uninorm/nfc.c: New file.
82967         * modules/uninorm/nfc: New file.
82969         Tests for module 'uninorm/nfd'.
82970         * tests/uninorm/test-nfd.c: New file.
82971         * tests/uninorm/test-u8-nfd.c: New file.
82972         * tests/uninorm/test-u16-nfd.c: New file.
82973         * tests/uninorm/test-u32-nfd.c: New file.
82974         * tests/uninorm/test-u32-nfd-big.sh: New file.
82975         * tests/uninorm/test-u32-nfd-big.c: New file.
82976         * tests/uninorm/test-u32-normalize-big.h: New file.
82977         * tests/uninorm/test-u32-normalize-big.c: New file.
82978         * tests/uninorm/NormalizationTest.txt: New file, created from
82979         Unicode 5.1.0 NormalizationTest.txt.
82980         * modules/uninorm/nfd-tests: New file.
82982         New module 'uninorm/nfd'.
82983         * lib/uninorm/nfd.c: New file.
82984         * modules/uninorm/nfd: New file.
82986         New module 'uninorm/u32-normalize'.
82987         * lib/uninorm/u32-normalize.c: New file.
82988         * modules/uninorm/u32-normalize: New file.
82990         New module 'uninorm/u16-normalize'.
82991         * lib/uninorm/u16-normalize.c: New file.
82992         * modules/uninorm/u16-normalize: New file.
82994         New module 'uninorm/u8-normalize'.
82995         * lib/uninorm/u8-normalize.c: New file.
82996         * lib/uninorm/normalize-internal.h: New file.
82997         * lib/uninorm/u-normalize-internal.h: New file.
82998         * modules/uninorm/u8-normalize: New file.
83000         New module 'uninorm/decompose-internal'.
83001         * lib/uninorm/decompose-internal.c: New file.
83002         * modules/uninorm/decompose-internal: New file.
83004         Tests for module 'uninorm/composition'.
83005         * tests/uninorm/test-composition.c: New file.
83006         * modules/uninorm/composition-tests: New file.
83008         New module 'uninorm/composition'.
83009         * lib/uninorm/composition.c: New file.
83010         * lib/uninorm/composition-table.gperf: New file, generated by
83011         gen-uni-tables.
83012         * modules/uninorm/composition: New file.
83014         Tests for module 'uninorm/compat-decomposition'.
83015         * tests/uninorm/test-compat-decomposition.c: New file.
83016         * modules/uninorm/compat-decomposition-tests: New file.
83018         New module 'uninorm/compat-decomposition'.
83019         * lib/uninorm/decompose-internal.h: New file.
83020         * lib/uninorm/compat-decomposition.c: New file.
83021         * modules/uninorm/compat-decomposition: New file.
83023         Tests for module 'uninorm/canonical-decomposition'.
83024         * tests/uninorm/test-canonical-decomposition.c: New file.
83025         * modules/uninorm/canonical-decomposition-tests: New file.
83027         New module 'uninorm/canonical-decomposition'.
83028         * lib/uninorm/canonical-decomposition.c: New file.
83029         * modules/uninorm/canonical-decomposition: New file.
83031         Tests for module 'uninorm/decomposition'.
83032         * tests/uninorm/test-decomposition.c: New file.
83033         * modules/uninorm/decomposition-tests: New file.
83035         New module 'uninorm/decomposition'.
83036         * lib/uninorm/decomposition.c: New file.
83037         * modules/uninorm/decomposition: New file.
83039         New module 'uninorm/decomposition-table'.
83040         * lib/uninorm/decomposition-table.h: New file.
83041         * lib/uninorm/decomposition-table.c: New file.
83042         * lib/uninorm/decomposition-table1.h: New file, generated by
83043         gen-uni-tables.
83044         * lib/uninorm/decomposition-table2.h: New file, generated by
83045         gen-uni-tables.
83046         * modules/uninorm/decomposition-table: New file.
83048         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
83049         (UC_DECOMP_*): New enumeration items.
83050         (get_decomposition): New function.
83051         (struct decomp_table): New type.
83052         (output_decomposition, output_decomposition_tables): New functions.
83053         (unicode_composition_exclusions): New variable.
83054         (fill_composition_exclusions, debug_output_composition_tables): New
83055         functions.
83056         (main): Accept one more argument. Invoke fill_composition_exclusions.
83057         Output decomposition and composition tables.
83059         New module 'uninorm/base'.
83060         * lib/uninorm.h: New file.
83061         * lib/unictype.h: Update comment.
83062         * modules/uninorm/base: New file.
83064 2009-02-21  David Lutterkort  <lutter@redhat.com>
83066         Tests for module 'safe-alloc'.
83067         * tests/test-safe-alloc.c: New file.
83068         * modules/safe-alloc-tests: New file.
83070         New module 'safe-alloc'.
83071         * lib/safe-alloc.h: New file.
83072         * lib/safe-alloc.c: New file.
83073         * m4/safe-alloc.m4: New file.
83074         * modules/safe-alloc: New file.
83075         * doc/safe-alloc.texi: New file.
83076         * doc/gnulib.texi: Include it.
83077         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
83078         safe-alloc.
83080 2009-02-18  Bruno Haible  <bruno@clisp.org>
83082         Fix link error on non-glibc systems.
83083         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
83084         variable.
83085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83087 2009-02-18  Jim Meyering  <meyering@redhat.com>
83089         fts: avoid used-uninitialized error due to recent change
83090         * lib/fts.c (fts_read): Guard uses of the new member,
83091         parent->fts_n_dirs_remaining, since it's not relevant for
83092         the parent of a directory specified on the command-line.
83094 2009-02-17  James Youngman  <jay@gnu.org>
83095             Bruno Haible  <bruno@clisp.org>
83097         * m4/include_next.m4: Reformulate comment.
83099 2009-02-16  Jim Meyering  <meyering@redhat.com>
83101         fts: add #if guards so that the fts_lgpl module still builds
83102         * lib/fts.c: Guard just-added hash-table-using parts with
83103         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
83104         Reported by Simon Josefsson.
83106 2009-02-15  Bruno Haible  <bruno@clisp.org>
83108         * modules/array-mergesort-tests: New file.
83109         * tests/test-array-mergesort.c: New file.
83111         New module 'array-mergesort'.
83112         * modules/array-mergesort: New file.
83113         * lib/array-mergesort.h: New file.
83115 2009-02-15  Bruno Haible  <bruno@clisp.org>
83117         Fix 2009-02-07 commit.
83118         * lib/gen-uni-tables.c (output_predicate, output_category,
83119         output_combclass, output_bidi_category, output_decimal_digit,
83120         output_digit, output_numeric, output_mirror, output_scripts,
83121         output_ident_category, output_simple_mapping): Fix format directives.
83122         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
83124 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
83126         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
83127         fixes are available from IBM.
83129 2009-02-13  Jim Meyering  <meyering@redhat.com>
83131         fts: arrange not to stat non-directories in more cases
83132         This makes GNU find (when it doesn't need to stat each file)
83133         *much* more efficient at traversing reiserfs file systems.
83134         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
83135         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
83136         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
83137         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
83138         (leaf_optimization_applies): New function.
83139         (LCO_hash, LCO_compare): New helper functions.
83140         (link_count_optimize_ok): New function.
83141         (fts_stat): Initialize new member (if dir).
83142         (fts_read): Decrement parent's fts_n_dirs_remaining count if
83143         we've just stat'ed a directory.  Skip the stat call when possible.
83144         ---
83145         Note this AFS-related exchange:
83146         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
83147         and note find's pioctl call in find/fstype.c.
83148         But that is necessary only if you want to enable the
83149         optimization for AFS, and for now, I don't.
83151         fts: move a function definition "up" (no semantic change)
83152         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
83153         "up" to precede upcoming use of a related function.
83155 2009-02-11  Jim Meyering  <meyering@redhat.com>
83157         fts: correct internal computation of nlinks (optimization-related)
83158         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
83159         whether the current entry is a directory, so don't test it.
83161 2009-02-10  Bruno Haible  <bruno@clisp.org>
83163         Tests for module 'uniwbrk/ulc-wordbreaks'.
83164         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
83165         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
83166         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
83168         Tests for module 'uniwbrk/u32-wordbreaks'.
83169         * modules/uniwbrk/u32-wordbreaks-tests: New file.
83170         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
83172         Tests for module 'uniwbrk/u16-wordbreaks'.
83173         * modules/uniwbrk/u16-wordbreaks-tests: New file.
83174         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
83176         Tests for module 'uniwbrk/u8-wordbreaks'.
83177         * modules/uniwbrk/u8-wordbreaks-tests: New file.
83178         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
83180 2009-02-10  Bruno Haible  <bruno@clisp.org>
83182         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
83183         property.
83184         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
83185         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
83186         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
83188 2009-02-10  Simon Josefsson  <simon@josefsson.org>
83190         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
83191         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
83193 2009-02-10  Bruno Haible  <bruno@clisp.org>
83195         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
83196         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
83197         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
83198         * lib/unilbrk/u8-possible-linebreaks.c: Update.
83199         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
83200         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
83202 2009-02-09  Simon Josefsson  <simon@josefsson.org>
83204         * lib/sockets.h (gl_fd_to_handle): New function.
83206         * tests/test-sockets.c: Call gl_fd_to_handle.
83208 2009-02-09  Bruno Haible  <bruno@clisp.org>
83210         * doc/havelib.texi: Document the conventions on bi-arch systems.
83212 2009-02-08  Bruno Haible  <bruno@clisp.org>
83214         Document the AC_LIB_LINKFLAGS macro.
83215         * doc/havelib.texi: New file, mostly written on 2005-05-24.
83216         * doc/gnulib.texi: Include it.
83218 2009-02-08  Bruno Haible  <bruno@clisp.org>
83220         Fix wrong order of sections, compared to TOC.
83221         * doc/gnulib.texi: Include relocatable-maint.texi after the
83222         "Regular expressions" node, not before.
83224 2009-02-08  Bruno Haible  <bruno@clisp.org>
83226         Tests for module 'unicase/totitle'.
83227         * modules/unicase/totitle-tests: New file.
83229         Tests for module 'unicase/tolower'.
83230         * modules/unicase/tolower-tests: New file.
83232         Tests for module 'unicase/toupper'.
83233         * modules/unicase/toupper-tests: New file.
83234         * tests/unicase/test-mapping-part1.h: New file.
83235         * tests/unicase/test-mapping-part2.h: New file.
83237         New module 'unicase/totitle'.
83238         * modules/unicase/totitle: New file.
83239         * lib/unicase/totitle.c: New file.
83241         New module 'unicase/tolower'.
83242         * modules/unicase/tolower: New file.
83243         * lib/unicase/tolower.c: New file.
83245         New module 'unicase/toupper'.
83246         * modules/unicase/toupper: New file.
83247         * lib/unicase/toupper.c: New file.
83248         * lib/unicase/simple-mapping.h: New file.
83250         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
83251         (mapping_table): New structure.
83252         (output_simple_mapping): New function.
83253         (main): Invoke output_simple_mapping_test and output_simple_mapping.
83254         * modules/gen-uni-tables (Description): Update.
83255         * lib/unicase/toupper.h: New file, automatically generated by
83256         gen-uni-tables.
83257         * lib/unicase/tolower.h: New file, automatically generated by
83258         gen-uni-tables.
83259         * lib/unicase/totitle.h: New file, automatically generated by
83260         gen-uni-tables.
83261         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
83262         gen-uni-tables.
83263         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
83264         gen-uni-tables.
83265         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
83266         gen-uni-tables.
83268         New module 'unicase/base'.
83269         * modules/unicase/base: New file.
83270         * lib/unicase.h: New file.
83272 2009-02-08  Bruno Haible  <bruno@clisp.org>
83274         New module 'uniwbrk/ulc-wordbreaks'.
83275         * modules/uniwbrk/ulc-wordbreaks: New file.
83276         * lib/uniwbrk/ulc-wordbreaks.c: New file.
83278         New module 'uniwbrk/u32-wordbreaks'.
83279         * modules/uniwbrk/u32-wordbreaks: New file.
83280         * lib/uniwbrk/u32-wordbreaks.c: New file.
83282         New module 'uniwbrk/u16-wordbreaks'.
83283         * modules/uniwbrk/u16-wordbreaks: New file.
83284         * lib/uniwbrk/u16-wordbreaks.c: New file.
83286         New module 'uniwbrk/u8-wordbreaks'.
83287         * modules/uniwbrk/u8-wordbreaks: New file.
83288         * lib/uniwbrk/u8-wordbreaks.c: New file.
83289         * lib/uniwbrk/u-wordbreaks.h: New file.
83291         New module 'uniwbrk/table'.
83292         * modules/uniwbrk/table: New file.
83293         * lib/uniwbrk/wbrktable.h: New file.
83294         * lib/uniwbrk/wbrktable.c: New file.
83296         New module 'uniwbrk/wordbreak-property'.
83297         * modules/uniwbrk/wordbreak-property: New file.
83298         * lib/uniwbrk/wordbreak-property.c: New file.
83300         * lib/gen-uni-tables.c (WBP_*): New enum items.
83301         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
83302         (unicode_org_wbp): New variable.
83303         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
83304         New functions.
83305         (wbp_table): New structure.
83306         (output_wbp, output_wbrk_tables): New functions.
83307         (main): Accept additional argument. Invoke fill_org_wbp,
83308         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
83309         output_wbrk_tables.
83310         * modules/gen-uni-tables (Description): Update.
83311         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
83312         gen-uni-tables.
83314         New module 'uniwbrk/base'.
83315         * modules/uniwbrk/base: New file.
83316         * lib/uniwbrk.h: New file.
83318 2009-02-08  Bruno Haible  <bruno@clisp.org>
83320         Update to Unicode 5.1.0.
83321         * lib/gen-uni-tables.c (is_property_alphabetic): Include
83322         U+2185..U+2188.
83323         (is_property_default_ignorable_code_point): Don't include characters
83324         of category Cc or Cs and not-a-characters.
83325         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
83326         U+0D79, U+109E, U+109F, U+A60C.
83327         * lib/unictype/bidi_of.h: Regenerated.
83328         * lib/unictype/blocks.h: Regenerated.
83329         * lib/unictype/categ_C.h: Regenerated.
83330         * lib/unictype/categ_Cf.h: Regenerated.
83331         * lib/unictype/categ_Cn.h: Regenerated.
83332         * lib/unictype/categ_L.h: Regenerated.
83333         * lib/unictype/categ_Ll.h: Regenerated.
83334         * lib/unictype/categ_Lm.h: Regenerated.
83335         * lib/unictype/categ_Lo.h: Regenerated.
83336         * lib/unictype/categ_Lu.h: Regenerated.
83337         * lib/unictype/categ_M.h: Regenerated.
83338         * lib/unictype/categ_Mc.h: Regenerated.
83339         * lib/unictype/categ_Me.h: Regenerated.
83340         * lib/unictype/categ_Mn.h: Regenerated.
83341         * lib/unictype/categ_N.h: Regenerated.
83342         * lib/unictype/categ_Nd.h: Regenerated.
83343         * lib/unictype/categ_Nl.h: Regenerated.
83344         * lib/unictype/categ_No.h: Regenerated.
83345         * lib/unictype/categ_P.h: Regenerated.
83346         * lib/unictype/categ_Pd.h: Regenerated.
83347         * lib/unictype/categ_Pe.h: Regenerated.
83348         * lib/unictype/categ_Pf.h: Regenerated.
83349         * lib/unictype/categ_Pi.h: Regenerated.
83350         * lib/unictype/categ_Po.h: Regenerated.
83351         * lib/unictype/categ_Ps.h: Regenerated.
83352         * lib/unictype/categ_S.h: Regenerated.
83353         * lib/unictype/categ_Sk.h: Regenerated.
83354         * lib/unictype/categ_Sm.h: Regenerated.
83355         * lib/unictype/categ_So.h: Regenerated.
83356         * lib/unictype/categ_of.h: Regenerated.
83357         * lib/unictype/combining.h: Regenerated.
83358         * lib/unictype/ctype_alnum.h: Regenerated.
83359         * lib/unictype/ctype_alpha.h: Regenerated.
83360         * lib/unictype/ctype_graph.h: Regenerated.
83361         * lib/unictype/ctype_lower.h: Regenerated.
83362         * lib/unictype/ctype_print.h: Regenerated.
83363         * lib/unictype/ctype_punct.h: Regenerated.
83364         * lib/unictype/ctype_upper.h: Regenerated.
83365         * lib/unictype/decdigit.h: Regenerated.
83366         * lib/unictype/digit.h: Regenerated.
83367         * lib/unictype/mirror.h: Regenerated.
83368         * lib/unictype/numeric.h: Regenerated.
83369         * lib/unictype/pr_alphabetic.h: Regenerated.
83370         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
83371         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
83372         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
83373         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
83374         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
83375         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
83376         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
83377         * lib/unictype/pr_combining.h: Regenerated.
83378         * lib/unictype/pr_dash.h: Regenerated.
83379         * lib/unictype/pr_decimal_digit.h: Regenerated.
83380         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
83381         * lib/unictype/pr_deprecated.h: Regenerated.
83382         * lib/unictype/pr_diacritic.h: Regenerated.
83383         * lib/unictype/pr_extender.h: Regenerated.
83384         * lib/unictype/pr_format_control.h: Regenerated.
83385         * lib/unictype/pr_grapheme_base.h: Regenerated.
83386         * lib/unictype/pr_grapheme_extend.h: Regenerated.
83387         * lib/unictype/pr_grapheme_link.h: Regenerated.
83388         * lib/unictype/pr_id_continue.h: Regenerated.
83389         * lib/unictype/pr_id_start.h: Regenerated.
83390         * lib/unictype/pr_ideographic.h: Regenerated.
83391         * lib/unictype/pr_ignorable_control.h: Regenerated.
83392         * lib/unictype/pr_lowercase.h: Regenerated.
83393         * lib/unictype/pr_math.h: Regenerated.
83394         * lib/unictype/pr_numeric.h: Regenerated.
83395         * lib/unictype/pr_other_alphabetic.h: Regenerated.
83396         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
83397         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
83398         * lib/unictype/pr_other_id_continue.h: Regenerated.
83399         * lib/unictype/pr_other_lowercase.h: Regenerated.
83400         * lib/unictype/pr_other_math.h: Regenerated.
83401         * lib/unictype/pr_punctuation.h: Regenerated.
83402         * lib/unictype/pr_sentence_terminal.h: Regenerated.
83403         * lib/unictype/pr_soft_dotted.h: Regenerated.
83404         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
83405         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
83406         * lib/unictype/pr_unified_ideograph.h: Regenerated.
83407         * lib/unictype/pr_uppercase.h: Regenerated.
83408         * lib/unictype/pr_xid_continue.h: Regenerated.
83409         * lib/unictype/pr_xid_start.h: Regenerated.
83410         * lib/unictype/pr_zero_width.h: Regenerated.
83411         * lib/unictype/scripts.h: Regenerated.
83412         * lib/unictype/scripts_byname.gperf: Regenerated.
83413         * lib/unictype/sy_java_ident.h: Regenerated.
83414         * lib/unilbrk/lbrkprop1.h: Regenerated.
83415         * lib/unilbrk/lbrkprop2.h: Regenerated.
83416         * tests/unictype/test-categ_C.c: Regenerated.
83417         * tests/unictype/test-categ_Cf.c: Regenerated.
83418         * tests/unictype/test-categ_Cn.c: Regenerated.
83419         * tests/unictype/test-categ_L.c: Regenerated.
83420         * tests/unictype/test-categ_Ll.c: Regenerated.
83421         * tests/unictype/test-categ_Lm.c: Regenerated.
83422         * tests/unictype/test-categ_Lo.c: Regenerated.
83423         * tests/unictype/test-categ_Lu.c: Regenerated.
83424         * tests/unictype/test-categ_M.c: Regenerated.
83425         * tests/unictype/test-categ_Mc.c: Regenerated.
83426         * tests/unictype/test-categ_Me.c: Regenerated.
83427         * tests/unictype/test-categ_Mn.c: Regenerated.
83428         * tests/unictype/test-categ_N.c: Regenerated.
83429         * tests/unictype/test-categ_Nd.c: Regenerated.
83430         * tests/unictype/test-categ_Nl.c: Regenerated.
83431         * tests/unictype/test-categ_No.c: Regenerated.
83432         * tests/unictype/test-categ_P.c: Regenerated.
83433         * tests/unictype/test-categ_Pd.c: Regenerated.
83434         * tests/unictype/test-categ_Pe.c: Regenerated.
83435         * tests/unictype/test-categ_Pf.c: Regenerated.
83436         * tests/unictype/test-categ_Pi.c: Regenerated.
83437         * tests/unictype/test-categ_Po.c: Regenerated.
83438         * tests/unictype/test-categ_Ps.c: Regenerated.
83439         * tests/unictype/test-categ_S.c: Regenerated.
83440         * tests/unictype/test-categ_Sk.c: Regenerated.
83441         * tests/unictype/test-categ_Sm.c: Regenerated.
83442         * tests/unictype/test-categ_So.c: Regenerated.
83443         * tests/unictype/test-ctype_alnum.c: Regenerated.
83444         * tests/unictype/test-ctype_alpha.c: Regenerated.
83445         * tests/unictype/test-ctype_graph.c: Regenerated.
83446         * tests/unictype/test-ctype_lower.c: Regenerated.
83447         * tests/unictype/test-ctype_print.c: Regenerated.
83448         * tests/unictype/test-ctype_punct.c: Regenerated.
83449         * tests/unictype/test-ctype_upper.c: Regenerated.
83450         * tests/unictype/test-decdigit.h: Regenerated.
83451         * tests/unictype/test-digit.h: Regenerated.
83452         * tests/unictype/test-numeric.h: Regenerated.
83453         * tests/unictype/test-pr_alphabetic.c: Regenerated.
83454         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
83455         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
83456         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
83457         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
83458         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
83459         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
83460         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
83461         * tests/unictype/test-pr_combining.c: Regenerated.
83462         * tests/unictype/test-pr_dash.c: Regenerated.
83463         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
83464         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
83465         * tests/unictype/test-pr_deprecated.c: Regenerated.
83466         * tests/unictype/test-pr_diacritic.c: Regenerated.
83467         * tests/unictype/test-pr_extender.c: Regenerated.
83468         * tests/unictype/test-pr_format_control.c: Regenerated.
83469         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
83470         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
83471         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
83472         * tests/unictype/test-pr_id_continue.c: Regenerated.
83473         * tests/unictype/test-pr_id_start.c: Regenerated.
83474         * tests/unictype/test-pr_ideographic.c: Regenerated.
83475         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
83476         * tests/unictype/test-pr_lowercase.c: Regenerated.
83477         * tests/unictype/test-pr_math.c: Regenerated.
83478         * tests/unictype/test-pr_numeric.c: Regenerated.
83479         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
83480         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
83481         Regenerated.
83482         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
83483         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
83484         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
83485         * tests/unictype/test-pr_other_math.c: Regenerated.
83486         * tests/unictype/test-pr_punctuation.c: Regenerated.
83487         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
83488         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
83489         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
83490         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
83491         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
83492         * tests/unictype/test-pr_uppercase.c: Regenerated.
83493         * tests/unictype/test-pr_xid_continue.c: Regenerated.
83494         * tests/unictype/test-pr_xid_start.c: Regenerated.
83495         * tests/unictype/test-pr_zero_width.c: Regenerated.
83497         Update to Unicode 5.1.0.
83498         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
83499         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
83500         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
83501         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
83502         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
83503         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
83504         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
83505         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
83506         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
83507         (nonspacing_table_ind): Update.
83508         * tests/uniwidth/test-uc_width2.sh: Update expected result.
83510         Update to Unicode 5.1.0.
83511         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
83512         code transform.
83513         * lib/uniname/uniname.c (unicode_character_name,
83514         unicode_name_character): Add the range 0x1Fxxx to the code transform.
83515         * lib/uniname/uninames.h: Regenerated.
83516         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
83518 2009-02-07  Bruno Haible  <bruno@clisp.org>
83520         Merge gen-ctype and gen-lbrk into a single program.
83521         * lib/gen-uni-tables.c: New file, incorporating
83522         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
83523         Add directory prefixes to the names of the generated files.
83524         * lib/unictype/gen-ctype.c: Remove file.
83525         * lib/unilbrk/gen-lbrk.c: Remove file.
83526         * modules/gen-uni-tables: New file.
83527         * modules/unictype/gen-ctype: Remove file.
83528         * modules/unilbrk/gen-lbrk: Remove file.
83530 2009-02-07  Bruno Haible  <bruno@clisp.org>
83532         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
83534         New module 'unistr/u32-strcoll'.
83535         * modules/unistr/u32-strcoll: New file.
83536         * lib/unistr/u32-strcoll.c: New file.
83538         New module 'unistr/u16-strcoll'.
83539         * modules/unistr/u16-strcoll: New file.
83540         * lib/unistr/u16-strcoll.c: New file.
83542         New module 'unistr/u8-strcoll'.
83543         * modules/unistr/u8-strcoll: New file.
83544         * lib/unistr/u8-strcoll.c: New file.
83545         * lib/unistr/u-strcoll.h: New file.
83547 2009-02-07  Bruno Haible  <bruno@clisp.org>
83549         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
83550         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83551         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83552         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
83553         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
83554         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
83556 2009-02-07  Bruno Haible  <bruno@clisp.org>
83558         Make 64-bit clean.
83559         * lib/unictype/gen-ctype.c (output_predicate, output_category,
83560         output_combclass, output_bidi_category, output_decimal_digit,
83561         output_digit, output_numeric, output_mirror, output_scripts,
83562         output_ident_category): Use proper width specifier in format strings.
83564 2009-02-07  Bruno Haible  <bruno@clisp.org>
83566         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
83567         failure behaviour.
83569 2009-02-07  Jim Meyering  <meyering@redhat.com>
83571         regex: avoid compilation failure with upcoming gcc-4.4
83572         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
83573         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
83574         "... error: integer overflow in preprocessor expression".
83576 2009-02-05  Ben Pfaff  <blp@gnu.org>
83578         Fix link errors on Windows when close module is used.
83579         * modules/close: Add $(LIB_CLOSE) to Link section.
83580         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
83581         $(LIB_CLOSE) on Windows.
83583 2009-02-05  Jim Meyering  <meyering@redhat.com>
83585         still avoid unused-parameter warnings, but do it cleanly
83586         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83587         (get_fs_usage): Cast to void instead.
83588         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83589         (dev_from_mount_options, read_file_system_list): Cast to void.
83590         Prompted by Bruno Haible.
83592 2009-02-04  Jim Meyering  <meyering@redhat.com>
83594         fsusage.c: correct copyright year
83595         * lib/fsusage.c: Reflect year in which the change is pushed into
83597         avoid misc. warnings
83598         * lib/fsusage.c (UNUSED_PARAM): Define.
83599         (get_fs_usage): Mark parameter "disk" as unused.
83600         * lib/getugroups.c (getgrent): Use "void" in prototype.
83601         * lib/mountlist.c: Mark unused parameters.
83602         (read_file_system_list): Declare a local with "const".
83603         * lib/nanosleep.c (getnow): Declare static.
83604         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83606         dirfd: set errno upon failure
83607         * lib/dirfd.c: Include <errno.h>.
83608         Set errno to ENOTSUP when returning -1.
83609         * modules/dirfd (Depends-on): Add errno.
83610         Suggested by John Kodis <kodis@comcast.net>.
83612 2009-02-01  Bruno Haible  <bruno@clisp.org>
83614         Don't assume sizeof (long) >= sizeof (void *).
83615         * lib/memcmp.c: Include stdint.h.
83616         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83617         srcp2 to 'const byte *'.
83618         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83619         types to uintptr_t.
83620         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83621         * modules/memcmp (Depends-on): Add stdint.
83622         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83624 2009-01-30  Eric Blake  <ebb9@byu.net>
83626         fix more require-before-expand issues
83627         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83628         expand, AC_PROG_AWK.
83629         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83631 2009-01-28  Eric Blake  <ebb9@byu.net>
83633         version-etc: use consistent URL formatting
83634         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83635         Improve formatting.  Use fputs for string without %.
83637 2009-01-28  Jim Meyering  <meyering@redhat.com>
83639         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83640         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83641         "underquoted definition of NAME" from autoconf-2.59.
83643 2009-01-28  Bruno Haible  <bruno@clisp.org>
83645         * doc/gnulib.texi: Add "Obsolete modules" to index.
83647 2009-01-28  Jim Meyering  <meyering@redhat.com>
83649         useless-if-before-free: recognize more variants
83650         * build-aux/useless-if-before-free: Also recognize e.g.,
83651         if (NULL != p) free (p);
83653 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83655         test-getaddrinfo: skip (don't fail) this test when there's no network
83656         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83657         on the presumption that it means you lack network access.
83659 2009-01-26  Jim Meyering  <meyering@redhat.com>
83661         fflush: avoid warnings on modern systems
83662         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83663         pos and result, into scopes where they're used.
83665 2009-01-26  Eric Blake  <ebb9@byu.net>
83667         Silence warning reintroduced by recent extensions patch.
83668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83669         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83670         autoconf.
83672         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83673         * m4/00gnulib.m4: New file.
83674         * gnulib-tool (func_get_filelist): Always use it.
83675         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83676         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83678 2009-01-25  Bruno Haible  <bruno@clisp.org>
83680         Make test-quotearg work on MacOS X and AIX.
83681         * tests/test-quotearg.sh: New file.
83682         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83683         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83684         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83685         include <libintl.h>.
83686         (fake_locale): Remove variable.
83687         (gettext, dgettext, dcgettext): Remove functions.
83688         (main): Instead of setting a fake locale, set a real locale. Call
83689         textdomain and bindtextdomain.
83690         * modules/quotearg-tests (Files): Add the new files.
83691         (Depends-on): Add gettext, setenv, unsetenv.
83692         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83693         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83694         Augment TESTS_ENVIRONMENT.
83696 2009-01-25  Bruno Haible  <bruno@clisp.org>
83698         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83699         fr_FR.ISO8859-1 locale on MacOS X.
83700         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83701         ja_JP.eucJP locale on MacOS X.
83702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83703         zh_CN.GB18030 locale on MacOS X.
83705 2009-01-25  Bruno Haible  <bruno@clisp.org>
83707         Avoid link errors on MacOS X 10.3.
83708         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83709         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83711 2009-01-25  Bruno Haible  <bruno@clisp.org>
83713         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83714         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83715         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83716         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83717         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83718         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83719         posix_spawnattr_init, posix_spawnattr_setsigmask,
83720         posix_spawnattr_setflags, posix_spawnattr_destroy.
83722         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83723         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83724         * modules/execute (Files): Remove m4/posix_spawn.m4.
83725         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83726         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83727         posix_spawnattr_init, posix_spawnattr_setsigmask,
83728         posix_spawnattr_setflags, posix_spawnattr_destroy.
83730 2009-01-25  Bruno Haible  <bruno@clisp.org>
83732         * lib/glthread/threadlib.c: Include <stdlib.h>.
83734 2009-01-25  Bruno Haible  <bruno@clisp.org>
83736         * lib/glthread/threadlib.c (dummy): New declaration.
83738 2009-01-25  Bruno Haible  <bruno@clisp.org>
83740         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83741         multibyte characters also for the GB18030 encoding. Don't crash when
83742         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83744 2009-01-25  Bruno Haible  <bruno@clisp.org>
83746         Avoid redefining 'struct random_data' on OSF/1 5.1.
83747         * lib/stdlib.in.h: Include <random.h> if it exists.
83748         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83749         HAVE_RANDOM_H. Include <random.h> when testing whether
83750         'struct random_data' exists.
83751         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83753 2009-01-25  Bruno Haible  <bruno@clisp.org>
83755         Don't install charset.alias on MacOS X >= 10.3.
83756         * lib/localcharset.c (DARWIN7): New macro.
83757         (get_charset_aliases): Hardcode the result for Darwin7.
83758         * modules/localcharset (install-exec-local): Don't install
83759         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83761 2009-01-25  Bruno Haible  <bruno@clisp.org>
83763         Don't install charset.alias on mingw and Cygwin.
83764         * modules/localcharset (install-exec-local): Don't install
83765         charset.alias on mingw and Cygwin, if the file does not yet exist.
83766         The result for these platforms is hardcoded in localcharset.c.
83768 2009-01-25  Bruno Haible  <bruno@clisp.org>
83770         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83772         before requiring AC_USE_SYSTEM_EXTENSIONS.
83774 2009-01-25  Jim Meyering  <meyering@redhat.com>
83776         c-strtod: avoid warnings
83777         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83778         "assignment discards qualifiers from pointer target type" warnings.
83780 2009-01-24  Bruno Haible  <bruno@clisp.org>
83782         Add support for non-UTF-8 locales on MacOS X.
83783         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83784         canonical encodings. For Darwin 7 and newer, don't map traditional
83785         encodings to UTF-8.
83786         Reported by Vincent Lefevre <vincent@vinc17.org>
83787         at <http://savannah.gnu.org/bugs/?25235>.
83789 2009-01-24  Bruno Haible  <bruno@clisp.org>
83791         * doc/gnulib.texi (Obsolete modules): New section.
83792         Reported by Mike Frysinger <vapier@gentoo.org>.
83794 2009-01-24  Bruno Haible  <bruno@clisp.org>
83796         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83797         (%.dvi): New rule.
83799 2009-01-24  Bruno Haible  <bruno@clisp.org>
83801         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83802         Reported by Eric Blake.
83804 2009-01-24  Bruno Haible  <bruno@clisp.org>
83806         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83807         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83808         Reported by Gary V. Vaughan <gary@gnu.org>.
83810 2009-01-24  Bruno Haible  <bruno@clisp.org>
83812         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83814 2009-01-23  Bruno Haible  <bruno@clisp.org>
83816         Make c-strtod, c-strtold usable in libraries.
83817         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83818         (C_STRTOD): Call strdup instead of xstrdup.
83819         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83820         * modules/c-strtold (Depends-on): Likewise.
83821         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83822         * NEWS: Mention the change.
83823         Reported by Michael Gold <mgold@ncf.ca>.
83825 2009-01-23  Jim Meyering  <meyering@redhat.com>
83827         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83828         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83829         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83831 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83833         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83834         GNU CoreUtils.
83835         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83836         * modules/version-etc (Description): Update.
83838 2009-01-22  Bruno Haible  <bruno@clisp.org>
83840         Cache the C locale object.
83841         * lib/c-strtod.c (c_locale_cache): New variable.
83842         (c_locale): New function.
83843         (C_STRTOD): Use it, and don't call freelocale.
83844         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83845         Suggested by Paolo Bonzini.
83847 2009-01-21  Bruno Haible  <bruno@clisp.org>
83849         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83850         conditions other than overflow.
83852 2009-01-21  Bruno Haible  <bruno@clisp.org>
83854         * lib/c-strtod.c: Include errno.h.
83855         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83856         value from STRTOD_L and STRTOD.
83858 2009-01-21  Bruno Haible  <bruno@clisp.org>
83859         and Jim Meyering  <meyering@redhat.com>
83861         nanosleep: skip configure test (fail it) for apple universal builds
83862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83863         universal builds, assume that nanosleep does not work.
83864         * modules/nanosleep (Depends-on): Add multiarch.
83866         mktime: skip configure test (fail it) for apple universal builds
83867         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83868         universal builds, assume that mktime does not work.
83869         * modules/mktime (Depends-on): Add multiarch.
83871 2009-01-21  Eric Blake  <ebb9@byu.net>
83873         multiarch: avoid expand-before-require warning
83874         * modules/multiarch (configure.ac): Require, rather than expand,
83875         gl_MULTIARCH.
83876         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83877         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83878         enforce that all clients require it.  Partial reversion of
83879         2008-12-29 patch.
83881         error: avoid expand-before-require warning
83882         * modules/errno (configure.ac): Require, rather than expand,
83883         gl_HEADER_ERRNO_H.
83884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83885         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83886         enforce that all clients require it.
83888         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83889         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83890         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83891         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83893 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83895         Revert:
83896         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83898         regex: do not depend on obsolete modules.
83899         * modules/regex: Remove memcmp and memmove.
83901 2009-01-20  Bruno Haible  <bruno@clisp.org>
83903         Make the 'link' module link on Windows NT 4.
83904         * lib/link.c (_WIN32_WINNT): Don't define.
83905         (CreateHardLinkFuncType): New type.
83906         (CreateHardLinkFunc, initialized): New variables.
83907         (initialize): New function.
83908         (link): Invoke CreateHardLink indirectly through the function pointer.
83910 2009-01-20  Bruno Haible  <bruno@clisp.org>
83912         Fix compilation failure on mingw.
83913         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83915 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83917         * doc/c-strtod.texi: Mention a couple of restrictions.
83919 2009-01-20  Jim Meyering  <meyering@redhat.com>
83921         gettimeofday: move more declarations out of functions
83922         * lib/gettimeofday.c: Move extern declarations of tzset and
83923         gmtime out of containing functions.  Prompted by Bruno Haible.
83925 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83927         regex: do not depend on obsolete modules.
83928         * modules/regex: Remove memcmp and memmove.
83930 2009-01-19  Bruno Haible  <bruno@clisp.org>
83932         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83933         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83934         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83935         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83936         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83938 2009-01-19  Bruno Haible  <bruno@clisp.org>
83940         * tests/test-link.c: Include <errno.h>.
83941         (main): Exit with code 77 when a hard link cannot be created due to
83942         the file system.
83943         * tests/test-link.sh: Skip test when a hard link cannot be created due
83944         to the file system.
83945         Suggested by Eric Blake.
83947 2009-01-19  Martin Lambers  <marlam@marlam.de>
83949         * modules/link-tests: New file.
83950         * tests/test-link.sh: New file.
83951         * tests/test-link.c: New file.
83953 2009-01-19  Eric Blake  <ebb9@byu.net>
83955         doc: mention another function added in cygwin 1.7.0
83956         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83957         Another new function in cygwin 1.7.
83959 2009-01-19  Bruno Haible  <bruno@clisp.org>
83961         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83962         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83963         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83964         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83965         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83966         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83968         * m4/md4.m4 (gl_MD4): Likewise.
83969         * m4/md5.m4 (gl_MD5): Likewise.
83970         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83971         * m4/sha1.m4 (gl_SHA1): Likewise.
83972         * m4/sha256.m4 (gl_SHA256): Likewise.
83973         * m4/sha512.m4 (gl_SHA512): Likewise.
83975 2009-01-19  Bruno Haible  <bruno@clisp.org>
83977         * modules/uniname/uniname-tests (Depends-on): Add progname.
83978         * tests/uniname/test-uninames.c: Include progname.h.
83979         (main): Call set_program_name.
83981         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83982         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83983         (main): Call set_program_name.
83985         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83986         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83987         (main): Call set_program_name.
83989         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83990         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83991         (main): Call set_program_name.
83993         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83994         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83995         (main): Call set_program_name.
83997         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83998         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83999         (main): Call set_program_name.
84001         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
84002         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
84003         (main): Call set_program_name.
84005         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
84006         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
84007         (main): Call set_program_name.
84009         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
84010         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
84011         (main): Call set_program_name.
84013 2009-01-19  Eric Blake  <ebb9@byu.net>
84015         test-unistd: test previous patch
84016         * tests/test-unistd.c: Test *_FILENO macros.
84018         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
84019         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84020         Guarantee a definition.
84021         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
84022         * modules/unistd-safer (Depends-on): Add dependency on unistd.
84023         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
84024         * lib/dup-safer.c (STDERR_FILENO): Likewise.
84025         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84026         Likewise.
84027         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
84028         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
84029         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84030         Likewise.
84031         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
84032         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
84033         (STDERR_FILENO): Likewise.
84034         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
84035         (STDERR_FILENO): Likewise.
84036         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
84037         (STDERR_FILENO): Likewise.
84038         Reported by Elbert Pol.
84040 2009-01-19  Eric Blake  <ebb9@byu.net>
84042         doc: mention more functions added in cygwin 1.7.0
84043         * doc/posix-functions/abort.texi (abort): Update wording related
84044         to cygwin.
84045         * doc/posix-functions/daylight.texi (daylight): Likewise.
84046         * doc/posix-functions/optarg.texi (optarg): Likewise.
84047         * doc/posix-functions/optarg.texi (opterr): Likewise.
84048         * doc/posix-functions/optarg.texi (optind): Likewise.
84049         * doc/posix-functions/optarg.texi (optopt): Likewise.
84050         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
84051         worked in 1.5.x, and was withdrawn in 1.7.
84052         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
84053         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
84054         cygwin versions.
84055         * doc/posix-functions/perror.texi (perror): Likewise.
84056         * doc/posix-functions/printf.texi (printf): Likewise.
84057         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
84058         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
84059         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
84060         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
84061         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
84062         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
84063         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
84064         Likewise.
84065         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
84066         Likewise.
84067         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
84068         this function.
84069         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
84070         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
84071         Likewise.
84072         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
84073         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
84074         * doc/posix-functions/confstr.texi (confstr): Likewise.
84075         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
84076         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
84077         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
84078         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
84079         * doc/posix-functions/fputws.texi (fputws): Likewise.
84080         * doc/posix-functions/fwide.texi (fwide): Likewise.
84081         * doc/posix-functions/getwc.texi (getwc): Likewise.
84082         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
84083         * doc/posix-functions/putwc.texi (putwc): Likewise.
84084         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
84085         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
84086         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
84087         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
84088         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
84089         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
84090         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
84091         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
84092         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
84093         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
84094         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
84096 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
84098         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
84099         * lib/ioctl.c: Include <sys/ioctl.h>.
84101 2009-01-19  Simon Josefsson  <simon@josefsson.org>
84103         * modules/getdate-tests (Depends-on): Add progname.
84104         * tests/test-getdate.c: Use progname module, to avoid link errors
84105         on non-glibc systems.
84107 2009-01-18  Simon Josefsson  <simon@josefsson.org>
84109         * modules/filenamecat-tests (Depends-on): Add progname.
84110         * modules/fstrcmp-tests (Depends-on): Likewise.
84112         * tests/test-filenamecat.c: Use progname module, to avoid link
84113         errors on non-glibc systems.
84114         * tests/test-fstrcmp.c: Likewise.
84116 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
84118         gettimeofday: avoid warning: nested extern declaration of 'localtime'
84119         * lib/gettimeofday.c: Move extern declaration out of function.
84121 2009-01-18  Bruno Haible  <bruno@clisp.org>
84123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
84124         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
84125         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
84127 2009-01-18  Bruno Haible  <bruno@clisp.org>
84129         * lib/strftime.c (MEMPCPY): Remove unused macro.
84130         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
84132 2009-01-18  Martin Lambers  <marlam@marlam.de>
84134         New module 'link'.
84135         * lib/unistd.in.h (link): New declaration.
84136         * lib/link.c: New file.
84137         * m4/link.m4: New file.
84138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
84139         HAVE_LINK.
84140         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
84141         * modules/link: New file.
84142         * doc/posix-functions/link.texi: Mention the new module.
84144 2009-01-18  Bruno Haible  <bruno@clisp.org>
84146         * tests/test-avltree_list.c (main): Call set_program_name.
84147         * tests/test-avltree_oset.c (main): Likewise.
84148         * tests/test-obstack-printf.c: Include progname.h.
84149         (main): Call set_program_name.
84150         * tests/test-quotearg.c: Include progname.h.
84151         (main): Call set_program_name.
84152         * tests/test-xmemdup0.c: Include progname.h.
84153         (main): Call set_program_name.
84155 2009-01-18  Bruno Haible  <bruno@clisp.org>
84157         New module 'alphasort'.
84158         * lib/dirent.in.h (alphasort): New declaration.
84159         * lib/alphasort.c: New file, from glibc with modifications.
84160         * m4/alphasort.m4: New file.
84161         * modules/alphasort: New file.
84162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
84163         HAVE_ALPHASORT.
84164         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
84165         HAVE_ALPHASORT.
84166         * doc/posix-functions/alphasort.texi: Mention the new module and the
84167         portability problems.
84169 2009-01-18  Bruno Haible  <bruno@clisp.org>
84171         New module 'scandir'.
84172         * lib/dirent.in.h (scandir): New declaration.
84173         * lib/scandir.c: New file, from glibc with modifications.
84174         * m4/scandir.m4: New file.
84175         * modules/scandir: New file.
84176         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
84177         HAVE_SCANDIR.
84178         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
84179         HAVE_SCANDIR.
84180         * doc/posix-functions/scandir.texi: Mention the new module and the
84181         portability problems.
84183 2009-01-17  Bruno Haible  <bruno@clisp.org>
84185         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
84186         Update documentation.
84187         (func_remove_suffix): Escape all dots in the suffix. Update
84188         documentation.
84189         (func_filter_filelist): Update documentation.
84190         Reported by Ralf Wildenhues.
84192 2009-01-17  Bruno Haible  <bruno@clisp.org>
84194         * modules/dprintf-posix-tests: New file.
84195         * tests/test-dprintf-posix.sh: New file.
84196         * tests/test-dprintf-posix.c: New file.
84198         New modules 'dprintf', 'dprintf-posix'.
84199         * lib/stdio.in.h (dprintf): New declaration.
84200         * lib/dprintf.c: New file.
84201         * m4/dprintf.m4: New file.
84202         * m4/dprintf-posix.m4: New file.
84203         * modules/dprintf: New file.
84204         * modules/dprintf-posix: New file.
84205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
84206         HAVE_DPRINTF, REPLACE_DPRINTF.
84207         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
84208         HAVE_DPRINTF, REPLACE_DPRINTF.
84209         * doc/posix-functions/dprintf.texi: Mention the new modules.
84211 2009-01-17  Bruno Haible  <bruno@clisp.org>
84213         * modules/vdprintf-posix-tests: New file.
84214         * tests/test-vdprintf-posix.sh: New file.
84215         * tests/test-vdprintf-posix.c: New file.
84217         New modules 'vdprintf', 'vdprintf-posix'.
84218         * lib/stdio.in.h (vdprintf): New declaration.
84219         * lib/vdprintf.c: New file.
84220         * m4/vdprintf.m4: New file.
84221         * m4/vdprintf-posix.m4: New file.
84222         * modules/vdprintf: New file.
84223         * modules/vdprintf-posix: New file.
84224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
84225         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84226         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
84227         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84228         * doc/posix-functions/vdprintf.texi: Mention the new modules.
84230 2009-01-17  Bruno Haible  <bruno@clisp.org>
84232         Fix replacement of fopen on mingw.
84233         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
84234         mingw.
84236 2009-01-17  Bruno Haible  <bruno@clisp.org>
84238         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
84239         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
84241 2009-01-17  Bruno Haible  <bruno@clisp.org>
84243         Avoid test-fflush2.sh failure on mingw.
84244         * tests/test-fflush2.c: Include binary-io.h.
84245         (main): Put standard input into binary mode.
84246         * modules/fflush-tests (Depends-on): Add binary-io.
84248 2009-01-17  Bruno Haible  <bruno@clisp.org>
84250         * lib/wchar.in.h: In another particular situation, include only the
84251         system's <wchar.h> file.
84252         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
84253         Reported by Albert Chin-A-Young <china@thewrittenword.com>
84254         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
84256 2009-01-17  Bruno Haible  <bruno@clisp.org>
84258         Support for stripping executables in --enable-relocatable.
84259         * build-aux/install-reloc: Expect one more argument, or an environment
84260         variable RELOC_STRIP_PROG. If set, strip the destination program and
84261         its wrapper.
84262         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
84263         RELOC_STRIP_PROG.
84264         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
84265         to set RELOCATABLE_STRIP.
84266         * NEWS: Mention the new Makefile requirement.
84268 2009-01-17  Bruno Haible  <bruno@clisp.org>
84270         * build-aux/install-reloc: Remove debugging information left over by
84271         C compiler on MacOS X.
84273 2009-01-17  Bruno Haible  <bruno@clisp.org>
84275         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
84276         * lib/progreloc.c (find_executable): Fix type of pointer passed to
84277         _NSGetExecutablePath.
84279 2009-01-16  Jim Meyering  <meyering@redhat.com>
84281         strerror: avoid warnings about discarding "const"
84282         * lib/strerror.c (rpl_strerror): Instead of returning a const
84283         string from each and every "case", use a variable, and add a single
84284         cast after the switch.
84286 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
84288         * lib/arpa_inet.in.h: Add extern "C" block for C++.
84290 2009-01-16  Bruno Haible  <bruno@clisp.org>
84292         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
84293         array initializer syntax that also works in C++ mode.
84294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84296 2009-01-16  Jim Meyering  <meyering@redhat.com>
84298         poll: suppress a warning
84299         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
84300         to ignore "...unsigned expression < 0 is always false" warnings.
84302 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
84304         poll: remove declarations of unused variables
84305         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
84306         sockbuf and optlen.
84308 2009-01-15  Bruno Haible  <bruno@clisp.org>
84310         Make fflush-after-ungetc POSIX compliant on BSD systems.
84311         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
84312         (clear_ungetc_buffer): Implement also for other systems.
84313         (rpl_fflush): On glibc systems, invoke
84314         clear_ungetc_buffer_preserving_position. Otherwise, invoke
84315         clear_ungetc_buffer after fetching the stream's position, not before.
84317 2009-01-15  Bruno Haible  <bruno@clisp.org>
84319         Make fflush-after-ungetc POSIX compliant on glibc systems.
84320         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
84321         after ungetc.
84322         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
84323         (rpl_fflush): On glibc systems, simply call the system's fflush
84324         function after clearing the ungetc buffer.
84325         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
84326         Instead, lseek only to the end of file, then use the system's fseeko
84327         for the rest. On glibc systems, reset the EOF indicator bit.
84329 2009-01-15  Jim Meyering  <meyering@redhat.com>
84331         openmp.m4: revert quote-adding change, for portability to older autoconf
84332         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
84333         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
84334         Simon Josefsson noticed the problem when using autoconf-2.61.
84336 2009-01-15  Bruno Haible  <bruno@clisp.org>
84338         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
84339         * tests/test-fflush2.c (ASSERT): Always fail.
84340         (main): Add two tests for fflush() after ungetc(), taking into account
84341         the Austin Group's clarification.
84342         Suggested by Eric Blake.
84344 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
84346         mktime.m4: remove K&R-style function prototypes
84347         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
84348         for the Sun C++ compiler.
84350 2009-01-14  Bruno Haible  <bruno@clisp.org>
84352         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
84353         while including <wchar.h>.
84354         * lib/wchar.in.h: In two particular situations on HP-UX, include only
84355         the system's <wchar.h> file.
84356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84358 2009-01-14  Bruno Haible  <bruno@clisp.org>
84360         * m4/csharp.m4: Don't mention gettext on the serial number line.
84361         * m4/csharpexec.m4: Likewise.
84362         * m4/eaccess.m4: Likewise.
84363         * m4/javaexec.m4: Likewise.
84364         * m4/sig_atomic_t.m4: Likewise.
84365         * m4/tmpdir.m4: Likewise.
84366         * m4/intldir.m4: Bump gettext version.
84367         * m4/lib-ld.m4: Likewise.
84369 2009-01-14  Bruno Haible  <bruno@clisp.org>
84371         * lib/progname.c (set_program_name): Add more comments.
84372         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
84374 2009-01-14  Simon Josefsson  <simon@josefsson.org>
84376         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
84377         were sys/stat.h does not define it.
84379 2009-01-14  Jim Meyering  <meyering@redhat.com>
84381         many *.m4 files: improve m4 quoting
84382         99% of this change was performed by running the following commands:
84383         git ls-files | grep '\.m4$' | xargs perl -pi \
84384           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
84385           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84386           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84387           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
84388         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
84389         The remainder were to add Copyright dates, increment serial numbers,
84390         undo some changes in comments, exclude m4/intl.m4, and add quotes
84391         around the "1" in ",1" where the unusual spacing prohibited the
84392         above regexps from doing the job.  For more details, see
84393         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
84394         * m4/acl.m4: Modified.
84395         * m4/afs.m4: Likewise.
84396         * m4/alloca.m4: Likewise.
84397         * m4/argp.m4: Likewise.
84398         * m4/argz.m4: Likewise.
84399         * m4/atexit.m4: Likewise.
84400         * m4/bison-i18n.m4: Likewise.
84401         * m4/bison.m4: Likewise.
84402         * m4/byteswap.m4: Likewise.
84403         * m4/c-stack.m4: Likewise.
84404         * m4/c-strtod.m4: Likewise.
84405         * m4/calloc.m4: Likewise.
84406         * m4/canonicalize-lgpl.m4: Likewise.
84407         * m4/chown.m4: Likewise.
84408         * m4/clock_time.m4: Likewise.
84409         * m4/codeset.m4: Likewise.
84410         * m4/copy-file.m4: Likewise.
84411         * m4/csharp.m4: Likewise.
84412         * m4/csharpcomp.m4: Likewise.
84413         * m4/csharpexec.m4: Likewise.
84414         * m4/d-ino.m4: Likewise.
84415         * m4/d-type.m4: Likewise.
84416         * m4/dirfd.m4: Likewise.
84417         * m4/double-slash-root.m4: Likewise.
84418         * m4/eaccess.m4: Likewise.
84419         * m4/eealloc.m4: Likewise.
84420         * m4/environ.m4: Likewise.
84421         * m4/errno_h.m4: Likewise.
84422         * m4/euidaccess.m4: Likewise.
84423         * m4/execute.m4: Likewise.
84424         * m4/fatal-signal.m4: Likewise.
84425         * m4/fchdir.m4: Likewise.
84426         * m4/fcntl_h.m4: Likewise.
84427         * m4/fileblocks.m4: Likewise.
84428         * m4/filenamecat.m4: Likewise.
84429         * m4/findprog.m4: Likewise.
84430         * m4/flexmember.m4: Likewise.
84431         * m4/fnmatch.m4: Likewise.
84432         * m4/fopen.m4: Likewise.
84433         * m4/fpending.m4: Likewise.
84434         * m4/fprintf-posix.m4: Likewise.
84435         * m4/free.m4: Likewise.
84436         * m4/frexp.m4: Likewise.
84437         * m4/frexpl.m4: Likewise.
84438         * m4/fsusage.m4: Likewise.
84439         * m4/ftruncate.m4: Likewise.
84440         * m4/gc-camellia.m4: Likewise.
84441         * m4/gc-random.m4: Likewise.
84442         * m4/gc.m4: Likewise.
84443         * m4/getaddrinfo.m4: Likewise.
84444         * m4/getcwd-abort-bug.m4: Likewise.
84445         * m4/getcwd-path-max.m4: Likewise.
84446         * m4/getdate.m4: Likewise.
84447         * m4/getdomainname.m4: Likewise.
84448         * m4/getgroups.m4: Likewise.
84449         * m4/gethostname.m4: Likewise.
84450         * m4/gethrxtime.m4: Likewise.
84451         * m4/getline.m4: Likewise.
84452         * m4/getloadavg.m4: Likewise.
84453         * m4/getndelim2.m4: Likewise.
84454         * m4/getpass.m4: Likewise.
84455         * m4/gettext.m4: Likewise.
84456         * m4/gettime.m4: Likewise.
84457         * m4/gettimeofday.m4: Likewise.
84458         * m4/gnulib-common.m4: Likewise.
84459         * m4/group-member.m4: Likewise.
84460         * m4/host-os.m4: Likewise.
84461         * m4/iconv.m4: Likewise.
84462         * m4/iconv_open.m4: Likewise.
84463         * m4/inet_ntop.m4: Likewise.
84464         * m4/inet_pton.m4: Likewise.
84465         * m4/inline.m4: Likewise.
84466         * m4/intldir.m4: Likewise.
84467         * m4/intlmacosx.m4: Likewise.
84468         * m4/intmax.m4: Likewise.
84469         * m4/intmax_t.m4: Likewise.
84470         * m4/inttypes.m4: Likewise.
84471         * m4/inttypes_h.m4: Likewise.
84472         * m4/inttypes-pri.m4: Likewise.
84473         * m4/isapipe.m4: Likewise.
84474         * m4/isnand.m4: Likewise.
84475         * m4/isnanf.m4: Likewise.
84476         * m4/isnanl.m4: Likewise.
84477         * m4/javacomp.m4: Likewise.
84478         * m4/javaexec.m4: Likewise.
84479         * m4/jm-winsz1.m4: Likewise.
84480         * m4/jm-winsz2.m4: Likewise.
84481         * m4/lchown.m4: Likewise.
84482         * m4/lcmessage.m4: Likewise.
84483         * m4/ldexpl.m4: Likewise.
84484         * m4/lib-ld.m4: Likewise.
84485         * m4/lib-link.m4: Likewise.
84486         * m4/libsigsegv.m4: Likewise.
84487         * m4/link-follow.m4: Likewise.
84488         * m4/localcharset.m4: Likewise.
84489         * m4/locale-fr.m4: Likewise.
84490         * m4/locale-ja.m4: Likewise.
84491         * m4/locale-tr.m4: Likewise.
84492         * m4/locale-zh.m4: Likewise.
84493         * m4/lock.m4: Likewise.
84494         * m4/longlong.m4: Likewise.
84495         * m4/ls-mntd-fs.m4: Likewise.
84496         * m4/lstat.m4: Likewise.
84497         * m4/malloc.m4: Likewise.
84498         * m4/mathl.m4: Likewise.
84499         * m4/mbrtowc.m4: Likewise.
84500         * m4/mbstate_t.m4: Likewise.
84501         * m4/mbswidth.m4: Likewise.
84502         * m4/memchr.m4: Likewise.
84503         * m4/memcmp.m4: Likewise.
84504         * m4/memcpy.m4: Likewise.
84505         * m4/memmem.m4: Likewise.
84506         * m4/memmove.m4: Likewise.
84507         * m4/mempcpy.m4: Likewise.
84508         * m4/memrchr.m4: Likewise.
84509         * m4/memset.m4: Likewise.
84510         * m4/minmax.m4: Likewise.
84511         * m4/mkdir-slash.m4: Likewise.
84512         * m4/mkdtemp.m4: Likewise.
84513         * m4/mktime.m4: Likewise.
84514         * m4/mmap-anon.m4: Likewise.
84515         * m4/mountlist.m4: Likewise.
84516         * m4/nanosleep.m4: Likewise.
84517         * m4/nls.m4: Likewise.
84518         * m4/nocrash.m4: Likewise.
84519         * m4/open.m4: Likewise.
84520         * m4/openat.m4: Likewise.
84521         * m4/openmp.m4: Likewise.
84522         * m4/pathmax.m4: Likewise.
84523         * m4/perl.m4: Likewise.
84524         * m4/physmem.m4: Likewise.
84525         * m4/pipe.m4: Likewise.
84526         * m4/po.m4: Likewise.
84527         * m4/poll.m4: Likewise.
84528         * m4/posixtm.m4: Likewise.
84529         * m4/posixver.m4: Likewise.
84530         * m4/printf-frexp.m4: Likewise.
84531         * m4/printf-frexpl.m4: Likewise.
84532         * m4/printf-posix.m4: Likewise.
84533         * m4/printf-posix-rpl.m4: Likewise.
84534         * m4/printf.m4: Likewise.
84535         * m4/progtest.m4: Likewise.
84536         * m4/putenv.m4: Likewise.
84537         * m4/readline.m4: Likewise.
84538         * m4/readlink.m4: Likewise.
84539         * m4/readutmp.m4: Likewise.
84540         * m4/realloc.m4: Likewise.
84541         * m4/regex.m4: Likewise.
84542         * m4/relocatable.m4: Likewise.
84543         * m4/relocatable-lib.m4: Likewise.
84544         * m4/rename-dest-slash.m4: Likewise.
84545         * m4/rename.m4: Likewise.
84546         * m4/rmdir-errno.m4: Likewise.
84547         * m4/rmdir.m4: Likewise.
84548         * m4/roundf.m4: Likewise.
84549         * m4/roundl.m4: Likewise.
84550         * m4/rpmatch.m4: Likewise.
84551         * m4/save-cwd.m4: Likewise.
84552         * m4/selinux-selinux-h.m4: Likewise.
84553         * m4/setenv.m4: Likewise.
84554         * m4/settime.m4: Likewise.
84555         * m4/sig2str.m4: Likewise.
84556         * m4/sig_atomic_t.m4: Likewise.
84557         * m4/signalblocking.m4: Likewise.
84558         * m4/signbit.m4: Likewise.
84559         * m4/sigpipe.m4: Likewise.
84560         * m4/sockets.m4: Likewise.
84561         * m4/sockpfaf.m4: Likewise.
84562         * m4/st_dm_mode.m4: Likewise.
84563         * m4/stat-time.m4: Likewise.
84564         * m4/stdbool.m4: Likewise.
84565         * m4/stdint.m4: Likewise.
84566         * m4/stdint_h.m4: Likewise.
84567         * m4/stpcpy.m4: Likewise.
84568         * m4/stpncpy.m4: Likewise.
84569         * m4/strcase.m4: Likewise.
84570         * m4/strchrnul.m4: Likewise.
84571         * m4/strcspn.m4: Likewise.
84572         * m4/strdup.m4: Likewise.
84573         * m4/strftime.m4: Likewise.
84574         * m4/strndup.m4: Likewise.
84575         * m4/strnlen.m4: Likewise.
84576         * m4/strpbrk.m4: Likewise.
84577         * m4/strptime.m4: Likewise.
84578         * m4/strsep.m4: Likewise.
84579         * m4/strtod.m4: Likewise.
84580         * m4/strtoimax.m4: Likewise.
84581         * m4/strtok_r.m4: Likewise.
84582         * m4/strtol.m4: Likewise.
84583         * m4/strtoll.m4: Likewise.
84584         * m4/strtoul.m4: Likewise.
84585         * m4/strtoull.m4: Likewise.
84586         * m4/strtoumax.m4: Likewise.
84587         * m4/strverscmp.m4: Likewise.
84588         * m4/threadlib.m4: Likewise.
84589         * m4/timegm.m4: Likewise.
84590         * m4/tm_gmtoff.m4: Likewise.
84591         * m4/tmpdir.m4: Likewise.
84592         * m4/tmpfile.m4: Likewise.
84593         * m4/tzset.m4: Likewise.
84594         * m4/uintmax_t.m4: Likewise.
84595         * m4/unlinkdir.m4: Likewise.
84596         * m4/unlocked-io.m4: Likewise.
84597         * m4/uptime.m4: Likewise.
84598         * m4/userspec.m4: Likewise.
84599         * m4/utimbuf.m4: Likewise.
84600         * m4/utime.m4: Likewise.
84601         * m4/utimes-null.m4: Likewise.
84602         * m4/utimes.m4: Likewise.
84603         * m4/vararrays.m4: Likewise.
84604         * m4/vasnprintf.m4: Likewise.
84605         * m4/vfprintf-posix.m4: Likewise.
84606         * m4/vprintf-posix.m4: Likewise.
84607         * m4/wait-process.m4: Likewise.
84608         * m4/wchar_t.m4: Likewise.
84609         * m4/wint_t.m4: Likewise.
84610         * m4/write-any-file.m4: Likewise.
84611         * m4/yield.m4: Likewise.
84613 2009-01-13  Bruno Haible  <bruno@clisp.org>
84615         Avoid test-copy-file.sh failures when ACL support insufficient.
84616         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84617         TESTS_ENVIRONMENT.
84618         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84619         Reported by Jim Meyering.
84621 2009-01-13  Bruno Haible  <bruno@clisp.org>
84623         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84624         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84625         * modules/unistdio/u8-printf-parse (Files): Likewise.
84626         * modules/unistdio/u32-printf-parse (Files): Likewise.
84627         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84629 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84631         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84632         and m4/inttypes_h.m4 too.
84634 2009-01-12  Eric Blake  <ebb9@byu.net>
84636         tests: IRIX 6.2 cc can't compile -0.0 into .data
84637         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84638         rather than at compile-time.
84639         * tests/test-floorl.c (minus_zero): Likewise.
84640         * tests/test-frexpl.c (minus_zero): Likewise.
84641         * tests/test-isnan.c (minus_zerol): Likewise.
84642         * tests/test-isnanl.h (minus_zero): Likewise.
84643         * tests/test-ldexpl.c (minus_zero): Likewise.
84644         * tests/test-roundl.c (minus_zero): Likewise.
84645         * tests/test-signbit.c (minus_zerol): Likewise.
84646         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84647         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84648         * tests/test-truncl.c (minus_zero): Likewise.
84649         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84650         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84651         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84653 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84655         regex: fix glibc bug 9697
84656         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84657         handling.
84659 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84661         regex: fix glibc bug 697
84662         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84663         being NULL also if there are no backreferences.
84665 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84667         regex: merge glibc changes
84668         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84669         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84670         re_string_skip_chars, re_string_reconstruct): Likewise.
84671         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84673 2009-01-07  Jim Meyering  <meyering@redhat.com>
84675         poll: filter through cppi
84676         * lib/poll.c: Indent cpp directives to reflect nesting.
84678 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84680         poll: don't return uninitialized
84681         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84683 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84685         avoid compile failure on AIX 6.1
84686         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84687         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84689 2009-01-04  Jim Meyering  <meyering@redhat.com>
84691         remove duplicate inclusion of <stdio.h>
84692         * tests/test-fprintf-posix.c: Likewise.
84693         * tests/test-printf-posix.c: Likewise.
84694         * tests/test-snprintf-posix.c: Likewise.
84695         * tests/test-sprintf-posix.c: Likewise.
84696         * tests/test-vasprintf-posix.c: Likewise.
84697         * tests/test-vfprintf-posix.c: Likewise.
84698         * tests/test-vprintf-posix.c: Likewise.
84699         * tests/test-vsnprintf-posix.c: Likewise.
84700         * tests/test-vsprintf-posix.c: Likewise.
84702 2009-01-03  Jim Meyering  <meyering@redhat.com>
84704         gnulib-tool: fix sed-based filtering
84705         * gnulib-tool (func_filter_filelist): Remove extra backslash
84706         in sed_fff_filter definition.
84708 2009-01-02  Jim Meyering  <meyering@redhat.com>
84710         strftime: avoid compilation failure on Solaris 2.6
84711         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84712         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84713         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84714         be available.  Reported by Tom G. Christensen.  Details in
84715         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84717 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84718             Bruno Haible  <bruno@clisp.org>
84720         Speed up gnulib-tool by doing more string processing through shell
84721         built-ins.
84722         * gnulib-tool (fast_func_append): New variable.
84723         (func_remove_prefix, func_remove_suffix): New functions.
84724         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84725         (func_filter_filelist): New function.
84726         (func_get_dependencies): Use func_remove_suffix instead of sed.
84727         (func_get_automake_snippet): Use func_filter_filelist instead of a
84728         subshell and sed invocation.
84730 2009-01-01  Bruno Haible  <bruno@clisp.org>
84732         Fix a security bug.
84733         * gnulib-tool (func_import, import, update): Don't allow the characters
84734         '"', '$', '`', '\' in macro arguments that become part of commands that
84735         are evaluated.
84737 2009-01-01  Bruno Haible  <bruno@clisp.org>
84739         * gnulib-tool (func_reset_sigpipe): Add more comments.
84741 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84743         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84744         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84745         already know the answer.
84747 2009-01-01  Jim Meyering  <meyering@redhat.com>
84749         * lib/version-etc.c (version_etc_va): Update copyright year.
84751 2008-12-30  Bruno Haible  <bruno@clisp.org>
84753         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84754         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84755         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84757 2008-12-29  Eric Blake  <ebb9@byu.net>
84759         multiarch: avoid autoconf AC_REQUIRE bug
84760         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84761         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84762         2.63 and older.
84763         Reported by Bruno Haible, and analyzed in
84764         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84766 2008-12-29  Bruno Haible  <bruno@clisp.org>
84768         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84769         files in subdirectories correctly.
84770         Reported by Ralf Wildenhues.
84772 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84774         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84775         rather than 'join FILE -', for Solaris join.
84777 2008-12-29  Bruno Haible  <bruno@clisp.org>
84779         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84780         quoting.
84781         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84782         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84783         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84784         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84785         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84786         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84787         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84788         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84789         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84790         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84791         * m4/nls.m4 (AM_NLS): Likewise.
84792         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84793         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84794         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84795         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84796         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84798         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84799         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84800         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84801         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84802         * m4/xsize.m4 (gl_XSIZE): Likewise.
84803         Suggested by Jim Meyering.
84805 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84807         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84808         * lib/parse-duration.c: use a switch instead of cascading if's.
84810 2008-12-29  Eric Blake  <ebb9@byu.net>
84812         wchar.h: supply WEOF on Irix 5.3
84813         * lib/wchar.in.h (wint_t): Also supply WEOF.
84814         * lib/wctype.in.h (wint_t): Likewise.
84815         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84816         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84817         Reported by Tom G. Christensen.
84819 2008-12-26  Bruno Haible  <bruno@clisp.org>
84821         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84822         i486, i586, i686.
84824 2008-12-26  Bruno Haible  <bruno@clisp.org>
84826         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84828 2008-12-26  Bruno Haible  <bruno@clisp.org>
84830         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84831         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84832         not __STDC_CONSTANT_MACROS.
84833         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84835 2008-12-25  Bruno Haible  <bruno@clisp.org>
84837         Add support for universal builds to vasnprintf.
84838         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84839         universal builds, guess no.
84840         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84841         * modules/vasprintf-posix (Depends-on): Likewise.
84842         * modules/fprintf-posix (Depends-on): Likewise.
84843         * modules/vfprintf-posix (Depends-on): Likewise.
84844         * modules/snprintf-posix (Depends-on): Likewise.
84845         * modules/vsnprintf-posix (Depends-on): Likewise.
84846         * modules/sprintf-posix (Depends-on): Likewise.
84847         * modules/vsprintf-posix (Depends-on): Likewise.
84848         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84849         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84850         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84851         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84852         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84856         Add support for universal builds to <inttypes.h>.
84857         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84858         _SCNu64_PREFIX): In Apple
84859         universal builds, define directly, using _LP64.
84860         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84861         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84862         * modules/inttypes (Depends-on): Add multiarch.
84863         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84865         Add support for universal builds to <stdint.h>.
84866         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84867         universal builds, define directly, using _LP64.
84868         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84869         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84870         and size_t.
84871         * modules/stdint (Depends-on): Add multiarch.
84872         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84874         New module 'multiarch'.
84875         * modules/multiarch: New file.
84876         * m4/multiarch.m4: New file.
84878 2008-12-25  Bruno Haible  <bruno@clisp.org>
84880         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84882 2008-12-25  Bruno Haible  <bruno@clisp.org>
84884         * modules/btowc (License): Relicense under LGPLv2+.
84885         * modules/mbsinit (License): Likewise.
84886         * modules/mbrtowc (License): Likewise.
84887         * modules/wcrtomb (License): Likewise.
84888         * modules/streq (License): Likewise.
84889         Reported by David Lutterkort <lutter@redhat.com>.
84891 2008-12-23  Bruno Haible  <bruno@clisp.org>
84893         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84895 2008-12-23  Bruno Haible  <bruno@clisp.org>
84897         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84899         GETADDRINFO_LIB, not in LIBS.
84900         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84901         * modules/canon-host (Link): Likewise.
84902         * NEWS: Mention the change.
84903         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84904         GETADDRINFO_LIB.
84906 2008-12-22  Bruno Haible  <bruno@clisp.org>
84908         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84909         * doc/posix-functions/iswalpha_l.texi: Likewise.
84910         * doc/posix-functions/iswblank_l.texi: Likewise.
84911         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84912         * doc/posix-functions/iswctype_l.texi: Likewise.
84913         * doc/posix-functions/iswdigit_l.texi: Likewise.
84914         * doc/posix-functions/iswgraph_l.texi: Likewise.
84915         * doc/posix-functions/iswlower_l.texi: Likewise.
84916         * doc/posix-functions/iswprint_l.texi: Likewise.
84917         * doc/posix-functions/iswpunct_l.texi: Likewise.
84918         * doc/posix-functions/iswspace_l.texi: Likewise.
84919         * doc/posix-functions/iswupper_l.texi: Likewise.
84920         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84921         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84922         * doc/posix-functions/open_wmemstream.texi: Likewise.
84923         * doc/posix-functions/swscanf.texi: Likewise.
84924         * doc/posix-functions/towctrans_l.texi: Likewise.
84925         * doc/posix-functions/towlower.texi: Likewise.
84926         * doc/posix-functions/towlower_l.texi: Likewise.
84927         * doc/posix-functions/towupper.texi: Likewise.
84928         * doc/posix-functions/towupper_l.texi: Likewise.
84929         * doc/posix-functions/vfwprintf.texi: Likewise.
84930         * doc/posix-functions/vfwscanf.texi: Likewise.
84931         * doc/posix-functions/vswscanf.texi: Likewise.
84932         * doc/posix-functions/vwprintf.texi: Likewise.
84933         * doc/posix-functions/vwscanf.texi: Likewise.
84934         * doc/posix-functions/wcpcpy.texi: Likewise.
84935         * doc/posix-functions/wcpncpy.texi: Likewise.
84936         * doc/posix-functions/wcscasecmp.texi: Likewise.
84937         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84938         * doc/posix-functions/wcscoll_l.texi: Likewise.
84939         * doc/posix-functions/wcsdup.texi: Likewise.
84940         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84941         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84942         * doc/posix-functions/wcsnlen.texi: Likewise.
84943         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84944         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84945         * doc/posix-functions/wctrans_l.texi: Likewise.
84946         * doc/posix-functions/wctype_l.texi: Likewise.
84947         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84948         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84949         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84950         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84951         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84952         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84953         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84954         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84955         * doc/glibc-functions/wcschrnul.texi: Likewise.
84956         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84957         * doc/glibc-functions/wcstod_l.texi: Likewise.
84958         * doc/glibc-functions/wcstof_l.texi: Likewise.
84959         * doc/glibc-functions/wcstol_l.texi: Likewise.
84960         * doc/glibc-functions/wcstold_l.texi: Likewise.
84961         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84962         * doc/glibc-functions/wcstoq.texi: Likewise.
84963         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84964         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84965         * doc/glibc-functions/wcstouq.texi: Likewise.
84966         * doc/glibc-functions/wmempcpy.texi: Likewise.
84968 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84969             Eric Blake  <ebb9@byu.net>
84970             Paolo Bonzini  <bonzini@gnu.org>
84971             Bruno Haible  <bruno@clisp.org>
84973         Make c-stack work on Haiku.
84974         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84975         (c_stack_action): Use SA_ONSTACK flag.
84977 2008-12-22  Bruno Haible  <bruno@clisp.org>
84979         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84981 2008-12-22  Bruno Haible  <bruno@clisp.org>
84983         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84984         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84985         being overridden.
84986         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84987         New macros.
84988         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84990         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84991         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84993 2008-12-22  Bruno Haible  <bruno@clisp.org>
84995         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84996         from test code.
84998 2008-12-22  Eric Blake  <ebb9@byu.net>
85000         Avoid gcc warnings on cygwin.
85001         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
85002         Avoid unused variable.
85003         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
85004         Likewise.
85006 2008-12-22  Bruno Haible  <bruno@clisp.org>
85008         Remove HAVE_MBRTOWC conditionals.
85009         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
85010         (mbscasecmp): Assume mbrtowc function.
85011         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
85012         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
85013         * lib/mbschr.c: Include mbuiter.h unconditionally.
85014         (mbschr): Assume mbrtowc function.
85015         * lib/mbscspn.c: Include mbuiter.h unconditionally.
85016         (mbscspn): Assume mbrtowc function.
85017         * lib/mbslen.c: Include mbuiter.h unconditionally.
85018         (mbslen): Assume mbrtowc function.
85019         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
85020         (mbsncasecmp): Assume mbrtowc function.
85021         * lib/mbsnlen.c: Include mbiter.h unconditionally.
85022         (mbsnlen): Assume mbrtowc function.
85023         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
85024         (mbspbrk): Assume mbrtowc function.
85025         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
85026         (mbspcasecmp): Assume mbrtowc function.
85027         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
85028         (mbsrchr): Assume mbrtowc function.
85029         * lib/mbssep.c: Include mbuiter.h unconditionally.
85030         (mbssep): Assume mbrtowc function.
85031         * lib/mbsspn.c: Include mbuiter.h unconditionally.
85032         (mbsspn): Assume mbrtowc function.
85033         * lib/mbsstr.c: Include mbuiter.h unconditionally.
85034         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
85035         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
85036         (mbstok_r): Assume mbrtowc function.
85037         * lib/propername.c: Include mbuiter.h unconditionally.
85038         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
85039         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
85040         (trim2): Assume mbrtowc function.
85041         * lib/mbswidth.c (mbsinit): Remove fallback definition.
85042         (mbsnwidth): Assume mbrtowc function.
85043         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
85044         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
85045         fallback definitions.
85046         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
85048 2008-12-22  Bruno Haible  <bruno@clisp.org>
85050         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
85052 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
85054         * modules/regex: Request emulations for the mb*/wc* functions we need.
85055         * m4/regex.m4: Don't look for those functions here.
85056         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
85058 2008-12-22  Bruno Haible  <bruno@clisp.org>
85060         * modules/fnmatch (Depends-on): Remove duplicated dependency.
85062 2008-12-21  Bruno Haible  <bruno@clisp.org>
85064         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
85065         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
85066         (Include): Remove conditionalization.
85067         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
85068         (Include): Remove conditionalization.
85069         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
85070         (Include): Remove conditionalization.
85071         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
85072         * m4/mbfile.m4 (gl_MBFILE): Likewise.
85073         * NEWS: Mention the change.
85074         Reported by Alan Hourihane <alanh@fairlite.co.uk>
85075         via Sergey Poznyakoff <gray@gnu.org.ua>.
85077 2008-12-21  Bruno Haible  <bruno@clisp.org>
85079         * MODULES.html.sh (Extended multibyte and wide character utilities
85080         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
85081         wcrtomb, wcsrtombs.
85082         (Support for systems lacking POSIX:2008): Add accept, bind, close,
85083         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
85084         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
85085         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
85087 2008-12-21  Bruno Haible  <bruno@clisp.org>
85089         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
85091 2008-12-21  Bruno Haible  <bruno@clisp.org>
85093         * modules/wcsnrtombs-tests: New file.
85094         * tests/test-wcsnrtombs1.sh: New file.
85095         * tests/test-wcsnrtombs2.sh: New file.
85096         * tests/test-wcsnrtombs3.sh: New file.
85097         * tests/test-wcsnrtombs4.sh: New file.
85098         * tests/test-wcsnrtombs.c: New file.
85100         New module 'wcsnrtombs'.
85101         * lib/wchar.in.h (wcsnrtombs): New declaration.
85102         * lib/wcsnrtombs.c: New file.
85103         * lib/wcsrtombs-state.c: New file.
85104         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
85105         (internal_state): Remove variable.
85106         * m4/wcsnrtombs.m4: New file.
85107         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
85108         compilation units.
85109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
85110         HAVE_WCSNRTOMBS.
85111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
85112         HAVE_WCSNRTOMBS.
85113         * modules/wcsnrtombs: New file.
85114         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
85115         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
85117 2008-12-21  Bruno Haible  <bruno@clisp.org>
85119         * modules/wcsrtombs-tests: New file.
85120         * tests/test-wcsrtombs1.sh: New file.
85121         * tests/test-wcsrtombs2.sh: New file.
85122         * tests/test-wcsrtombs3.sh: New file.
85123         * tests/test-wcsrtombs4.sh: New file.
85124         * tests/test-wcsrtombs.c: New file.
85126         New module 'wcsrtombs'.
85127         * lib/wchar.in.h (wcsrtombs): New declaration.
85128         * lib/wcsrtombs.c: New file.
85129         * m4/wcsrtombs.m4: New file.
85130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
85131         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
85133         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85134         * modules/wcsrtombs: New file.
85135         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
85136         bugs.
85138 2008-12-21  Bruno Haible  <bruno@clisp.org>
85140         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
85141         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
85142         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
85143         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
85144         if not correct.
85145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
85146         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
85147         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85148         m4/locale-zh.m4, m4/codeset.m4.
85149         * doc/posix-functions/wcrtomb.texi: Document the bug.
85151 2008-12-21  Bruno Haible  <bruno@clisp.org>
85153         Work around a btowc() bug on IRIX 6.5.
85154         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
85155         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
85156         REPLACE_WTOBC if not.
85157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
85158         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
85159         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
85161 2008-12-21  Bruno Haible  <bruno@clisp.org>
85163         * modules/wcrtomb-tests: New file.
85164         * tests/test-wcrtomb.sh: New file.
85165         * tests/test-wcrtomb.c: New file.
85167         New module 'wcrtomb'.
85168         * lib/wchar.in.h (wcrtomb): New declaration.
85169         * lib/wcrtomb.c: New file.
85170         * m4/wcrtomb.m4: New file.
85171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
85172         HAVE_WCRTOMB.
85173         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
85174         HAVE_WCRTOMB.
85175         * modules/wcrtomb: New file.
85176         * doc/posix-functions/wcrtomb.texi: Mention the new module.
85178 2008-12-21  Bruno Haible  <bruno@clisp.org>
85180         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
85181         * modules/mbsrtowcs (Files): Likewise.
85182         * modules/wctob (Files): Likewise.
85183         * modules/c-strcase-tests (Files): Likewise.
85184         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
85185         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
85186         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
85187         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
85188         * modules/vasnprintf-posix-tests (Files): Likewise.
85190 2008-12-21  William Pursell  <bill.pursell@gmail.com>
85192         gitlog-to-changelog: pass all command-line arguments to git-log
85193         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
85194         it is sometimes convenient to filter the commits in various ways.
85195         gitlog-to-changelog only allows --since to specify a start date,
85196         but git-log itself supports many other filtering mechanisms.
85197         At the moment, I want to filter by branch name.  Rather than
85198         adding a --branch option to gitlog-to-changelog, it seems more
85199         flexible to simply pass all options directly to git-log and let
85200         git do the work.  Notice that this effectively makes --since a
85201         redundant option for gitlog-to-changelog, but removing it would
85202         require current usage to change since calls would then require
85203         an additional '--'.
85205 2008-12-21  Bruno Haible  <bruno@clisp.org>
85207         * modules/mbsnrtowcs-tests: New file.
85208         * tests/test-mbsnrtowcs1.sh: New file.
85209         * tests/test-mbsnrtowcs2.sh: New file.
85210         * tests/test-mbsnrtowcs3.sh: New file.
85211         * tests/test-mbsnrtowcs4.sh: New file.
85212         * tests/test-mbsnrtowcs.c: New file.
85214         New module 'mbsnrtowcs'.
85215         * lib/wchar.in.h (mbsnrtowcs): New declaration.
85216         * lib/mbsnrtowcs.c: New file.
85217         * lib/mbsrtowcs-state.c: New file.
85218         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
85219         (internal_state): Remove variable.
85220         * m4/mbsnrtowcs.m4: New file.
85221         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
85222         compilation units.
85223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
85224         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85225         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
85226         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85227         * modules/mbsnrtowcs: New file.
85228         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
85229         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
85230         portability problem.
85232 2008-12-21  Bruno Haible  <bruno@clisp.org>
85234         Work around mbsrtowcs bug.
85235         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
85236         (gl_FUNC_MBSRTOWCS): Invoke it.
85237         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85238         m4/locale-zh.m4.
85239         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
85241 2008-12-21  Bruno Haible  <bruno@clisp.org>
85243         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
85245 2008-12-21  Bruno Haible  <bruno@clisp.org>
85247         Update doc for AIX.
85248         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
85249         16-bit wchar_t type.
85250         * doc/posix-functions/btowc.texi: Likewise.
85251         * doc/posix-functions/fgetwc.texi: Likewise.
85252         * doc/posix-functions/fgetws.texi: Likewise.
85253         * doc/posix-functions/fputwc.texi: Likewise.
85254         * doc/posix-functions/fputws.texi: Likewise.
85255         * doc/posix-functions/fwide.texi: Likewise.
85256         * doc/posix-functions/fwprintf.texi: Likewise.
85257         * doc/posix-functions/fwscanf.texi: Likewise.
85258         * doc/posix-functions/getwchar.texi: Likewise.
85259         * doc/posix-functions/getwc.texi: Likewise.
85260         * doc/posix-functions/iswalnum.texi: Likewise.
85261         * doc/posix-functions/iswalpha.texi: Likewise.
85262         * doc/posix-functions/iswblank.texi: Likewise.
85263         * doc/posix-functions/iswcntrl.texi: Likewise.
85264         * doc/posix-functions/iswctype.texi: Likewise.
85265         * doc/posix-functions/iswdigit.texi: Likewise.
85266         * doc/posix-functions/iswgraph.texi: Likewise.
85267         * doc/posix-functions/iswlower.texi: Likewise.
85268         * doc/posix-functions/iswprint.texi: Likewise.
85269         * doc/posix-functions/iswpunct.texi: Likewise.
85270         * doc/posix-functions/iswspace.texi: Likewise.
85271         * doc/posix-functions/iswupper.texi: Likewise.
85272         * doc/posix-functions/iswxdigit.texi: Likewise.
85273         * doc/posix-functions/mbrtowc.texi: Likewise.
85274         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85275         * doc/posix-functions/mbstowcs.texi: Likewise.
85276         * doc/posix-functions/mbtowc.texi: Likewise.
85277         * doc/posix-functions/putwchar.texi: Likewise.
85278         * doc/posix-functions/putwc.texi: Likewise.
85279         * doc/posix-functions/swprintf.texi: Likewise.
85280         * doc/posix-functions/tolower.texi: Likewise.
85281         * doc/posix-functions/toupper.texi: Likewise.
85282         * doc/posix-functions/towctrans.texi: Likewise.
85283         * doc/posix-functions/ungetwc.texi: Likewise.
85284         * doc/posix-functions/vswprintf.texi: Likewise.
85285         * doc/posix-functions/wcrtomb.texi: Likewise.
85286         * doc/posix-functions/wcscat.texi: Likewise.
85287         * doc/posix-functions/wcschr.texi: Likewise.
85288         * doc/posix-functions/wcscmp.texi: Likewise.
85289         * doc/posix-functions/wcscoll.texi: Likewise.
85290         * doc/posix-functions/wcscpy.texi: Likewise.
85291         * doc/posix-functions/wcscspn.texi: Likewise.
85292         * doc/posix-functions/wcsftime.texi: Likewise.
85293         * doc/posix-functions/wcslen.texi: Likewise.
85294         * doc/posix-functions/wcsncat.texi: Likewise.
85295         * doc/posix-functions/wcsncmp.texi: Likewise.
85296         * doc/posix-functions/wcsncpy.texi: Likewise.
85297         * doc/posix-functions/wcspbrk.texi: Likewise.
85298         * doc/posix-functions/wcsrchr.texi: Likewise.
85299         * doc/posix-functions/wcsrtombs.texi: Likewise.
85300         * doc/posix-functions/wcsspn.texi: Likewise.
85301         * doc/posix-functions/wcsstr.texi: Likewise.
85302         * doc/posix-functions/wcstod.texi: Likewise.
85303         * doc/posix-functions/wcstof.texi: Likewise.
85304         * doc/posix-functions/wcstoimax.texi: Likewise.
85305         * doc/posix-functions/wcstok.texi: Likewise.
85306         * doc/posix-functions/wcstold.texi: Likewise.
85307         * doc/posix-functions/wcstoll.texi: Likewise.
85308         * doc/posix-functions/wcstol.texi: Likewise.
85309         * doc/posix-functions/wcstombs.texi: Likewise.
85310         * doc/posix-functions/wcstoull.texi: Likewise.
85311         * doc/posix-functions/wcstoul.texi: Likewise.
85312         * doc/posix-functions/wcstoumax.texi: Likewise.
85313         * doc/posix-functions/wcswidth.texi: Likewise.
85314         * doc/posix-functions/wcsxfrm.texi: Likewise.
85315         * doc/posix-functions/wctob.texi: Likewise.
85316         * doc/posix-functions/wctomb.texi: Likewise.
85317         * doc/posix-functions/wctrans.texi: Likewise.
85318         * doc/posix-functions/wctype.texi: Likewise.
85319         * doc/posix-functions/wcwidth.texi: Likewise.
85320         * doc/posix-functions/wmemchr.texi: Likewise.
85321         * doc/posix-functions/wmemcmp.texi: Likewise.
85322         * doc/posix-functions/wmemcpy.texi: Likewise.
85323         * doc/posix-functions/wmemmove.texi: Likewise.
85324         * doc/posix-functions/wmemset.texi: Likewise.
85325         * doc/posix-functions/wprintf.texi: Likewise.
85326         * doc/posix-functions/wscanf.texi: Likewise.
85328 2008-12-21  Bruno Haible  <bruno@clisp.org>
85330         Update doc for HP-UX 11.11.
85331         * doc/posix-functions/btowc.texi: Clarify that the function is missing
85332         in HP-UX version 11.00, not in all versions of HP-UX 11.
85333         * doc/posix-functions/fwide.texi: Likewise.
85334         * doc/posix-functions/fwprintf.texi: Likewise.
85335         * doc/posix-functions/fwscanf.texi: Likewise.
85336         * doc/posix-functions/inet_ntop.texi: Likewise.
85337         * doc/posix-functions/inet_pton.texi: Likewise.
85338         * doc/posix-functions/mbrlen.texi: Likewise.
85339         * doc/posix-functions/mbrtowc.texi: Likewise.
85340         * doc/posix-functions/mbsinit.texi: Likewise.
85341         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85342         * doc/posix-functions/swprintf.texi: Likewise.
85343         * doc/posix-functions/swscanf.texi: Likewise.
85344         * doc/posix-functions/towctrans.texi: Likewise.
85345         * doc/posix-functions/vfwprintf.texi: Likewise.
85346         * doc/posix-functions/vswprintf.texi: Likewise.
85347         * doc/posix-functions/vwprintf.texi: Likewise.
85348         * doc/posix-functions/wcrtomb.texi: Likewise.
85349         * doc/posix-functions/wcsrtombs.texi: Likewise.
85350         * doc/posix-functions/wcsstr.texi: Likewise.
85351         * doc/posix-functions/wctob.texi: Likewise.
85352         * doc/posix-functions/wctrans.texi: Likewise.
85353         * doc/posix-functions/wmemchr.texi: Likewise.
85354         * doc/posix-functions/wmemcmp.texi: Likewise.
85355         * doc/posix-functions/wmemcpy.texi: Likewise.
85356         * doc/posix-functions/wmemmove.texi: Likewise.
85357         * doc/posix-functions/wmemset.texi: Likewise.
85358         * doc/posix-functions/wprintf.texi: Likewise.
85359         * doc/posix-functions/wscanf.texi: Likewise.
85361 2008-12-21  Bruno Haible  <bruno@clisp.org>
85363         Work around a portability problem.
85364         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
85365         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
85367 2008-12-20  Bruno Haible  <bruno@clisp.org>
85369         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
85370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
85371         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
85372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
85373         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
85375         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
85376         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
85377         set.
85378         (GNULIB_defined_mbstate_t): New macro.
85379         (mbsinit): Redefine if REPLACE_MBSINIT is set.
85380         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
85381         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
85382         reuses the system's mbrtowc function but works around the bugs.
85383         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
85384         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
85385         macros.
85386         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
85387         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
85388         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
85389         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
85390         REPLACE_MBSINIT if mbsinit needs to be overridden.
85391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
85392         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85393         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
85394         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85395         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85396         m4/locale-zh.m4.
85397         (Depends): Add mbsinit.
85398         * modules/mbsinit (Depends): Add mbrtowc.
85399         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
85401 2008-12-20  Bruno Haible  <bruno@clisp.org>
85403         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
85404         so that there are no conversion errors on AIX.
85405         * tests/test-mbsrtowcs.c (main): LIkewise.
85407 2008-12-20  Bruno Haible  <bruno@clisp.org>
85409         Work around wctob bug on Solaris <= 9.
85410         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
85411         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
85412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
85413         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
85414         * modules/wctob (Files): Add m4/locale-fr.m4.
85415         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
85417 2008-12-20  Bruno Haible  <bruno@clisp.org>
85419         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
85420         /dev/null.
85421         * tests/test-select-in.sh: Likewise.
85422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85424 2008-12-20  Bruno Haible  <bruno@clisp.org>
85426         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
85427         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
85428         Cygwin 1.5.x.
85430 2008-12-20  Bruno Haible  <bruno@clisp.org>
85432         Ensure mbstate_t is defined on HP-UX 11.11.
85433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
85434         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
85435         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
85436         AC_USE_SYSTEM_EXTENSIONS.
85437         * modules/fnmatch (Depends-on): Add extensions.
85438         * modules/mbrlen (Depends-on): Likewise.
85439         * modules/mbrtowc (Depends-on): Likewise.
85440         * modules/mbsinit (Depends-on): Likewise.
85441         * modules/mbsrtowcs (Depends-on): Likewise.
85442         * modules/mbswidth (Depends-on): Likewise.
85443         * modules/quotearg (Depends-on): Likewise.
85444         * modules/strftime (Depends-on): Likewise.
85446 2008-12-20  Bruno Haible  <bruno@clisp.org>
85448         Ensure wctob is declared on IRIX 6.5.
85449         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
85450         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
85451         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
85452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
85453         of HAVE_WCTOB.
85454         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
85455         HAVE_WCTOB.
85456         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
85458 2008-12-19  Bruno Haible  <bruno@clisp.org>
85460         * modules/mbsrtowcs-tests: New file.
85461         * tests/test-mbsrtowcs1.sh: New file.
85462         * tests/test-mbsrtowcs2.sh: New file.
85463         * tests/test-mbsrtowcs3.sh: New file.
85464         * tests/test-mbsrtowcs4.sh: New file.
85465         * tests/test-mbsrtowcs.c: New file.
85467         New module 'mbsrtowcs'.
85468         * lib/wchar.in.h (mbsrtowcs): New declaration.
85469         * lib/mbsrtowcs.c: New file.
85470         * m4/mbsrtowcs.m4: New file.
85471         * modules/mbsrtowcs: New file.
85472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
85473         HAVE_MBSRTOWCS.
85474         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
85475         HAVE_MBSRTOWCS.
85476         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
85478 2008-12-19  Bruno Haible  <bruno@clisp.org>
85480         New module 'mbrlen'.
85481         * lib/wchar.in.h (mbrlen): New declaration.
85482         * lib/mbrlen.c: New file.
85483         * m4/mbrlen.m4: New file.
85484         * modules/mbrlen: New file.
85485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
85486         HAVE_MBRLEN.
85487         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
85488         HAVE_MBRLEN.
85489         * doc/posix-functions/mbrlen.texi: Document the new module.
85491 2008-12-19  Bruno Haible  <bruno@clisp.org>
85493         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
85494         * modules/mbrtowc (Depends-on): Add verify.
85495         Suggested by Paul Eggert.
85497 2008-12-18  Bruno Haible  <bruno@clisp.org>
85499         * modules/mbsinit-tests: New file.
85500         * tests/test-mbsinit.sh: New file.
85501         * tests/test-mbsinit.c: New file.
85503 2008-12-18  Bruno Haible  <bruno@clisp.org>
85505         * modules/mbrtowc-tests: New file.
85506         * tests/test-mbrtowc1.sh: New file.
85507         * tests/test-mbrtowc2.sh: New file.
85508         * tests/test-mbrtowc3.sh: New file.
85509         * tests/test-mbrtowc4.sh: New file.
85510         * tests/test-mbrtowc.c: New file.
85512         New module 'mbrtowc'.
85513         * lib/wchar.in.h (mbstate_t): Override when the system does not have
85514         mbsinit and mbrtowc.
85515         (mbrtowc): New declaration.
85516         * lib/mbrtowc.c: New file.
85517         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
85518         * modules/mbrtowc: New file.
85519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
85520         HAVE_MBRTOWC.
85521         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
85522         HAVE_MBRTOWC.
85523         * doc/posix-functions/mbrtowc.texi: Document the new module.
85525 2008-12-18  Bruno Haible  <bruno@clisp.org>
85527         New module 'wctob'.
85528         * lib/wchar.in.h (wctob): New declaration.
85529         * lib/wctob.c: New file.
85530         * m4/wctob.m4: New file.
85531         * modules/wctob: New file.
85532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
85533         HAVE_WCTOB.
85534         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
85535         * doc/posix-functions/wctob.texi: Document the new module.
85537 2008-12-18  Bruno Haible  <bruno@clisp.org>
85539         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
85540         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
85542 2008-12-18  Simon Josefsson  <simon@josefsson.org>
85544         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
85545         G. Christensen" <tgc@jupiterrise.com>.
85547         * lib/flock.c: Need to include errno.h.  Reported by "Tom
85548         G. Christensen" <tgc@jupiterrise.com>.
85550         * lib/flock.c: Need to include string.h.  Reported by "Tom
85551         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
85552         <ebb9@byu.net>.
85554 2008-12-18  Bruno Haible  <bruno@clisp.org>
85556         * m4/locale-ja.m4: New file, from GNU gettext.
85558 2008-12-17  Bruno Haible  <bruno@clisp.org>
85560         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
85561         Suggested by Eric Blake.
85563 2008-12-17  Bruno Haible  <bruno@clisp.org>
85565         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
85567 2008-12-17  Bruno Haible  <bruno@clisp.org>
85569         * lib/mbsinit.c: Include verify.h. Verify an assumption.
85570         * modules/mbsinit (Depends-on): Add verify.
85571         Suggested by Paul Eggert.
85573 2008-12-17  Bruno Haible  <bruno@clisp.org>
85575         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
85576         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
85577         gl_FUNC_MBRTOWC.
85578         * m4/mbiter.m4 (gl_MBITER): LIkewise.
85579         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
85580         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
85581         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
85582         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
85583         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
85584         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
85585         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
85586         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85587         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85588         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85589         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85590         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85591         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85592         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85593         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85594         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85595         * modules/trim (configure.ac): Likewise.
85597 2008-12-17  Bruno Haible  <bruno@clisp.org>
85599         * modules/btowc-tests: New file.
85600         * tests/test-btowc1.sh: New file.
85601         * tests/test-btowc2.sh: New file.
85602         * tests/test-btowc.c: New file.
85604         New module 'btowc'.
85605         * lib/wchar.in.h (btowc): New declaration.
85606         * lib/btowc.c: New file.
85607         * m4/btowc.m4: New file.
85608         * modules/btowc: New file.
85609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85610         HAVE_BTOWC.
85611         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85612         * doc/posix-functions/btowc.texi: Document the new module.
85614 2008-12-17  Bruno Haible  <bruno@clisp.org>
85616         New module 'mbsinit'.
85617         * lib/wchar.in.h (mbsinit): New declaration.
85618         * lib/mbsinit.c: New file.
85619         * m4/mbsinit.m4: New file.
85620         * modules/mbsinit: New file.
85621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85622         HAVE_MBSINIT.
85623         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85624         HAVE_MBSINIT.
85625         * doc/posix-functions/mbsinit.texi: Document the new module.
85627 2008-12-16  Bruno Haible  <bruno@clisp.org>
85629         * lib/unistd.in.h: Add comment.
85630         * tests/test-environ.c: Don't include <stdlib.h>.
85632 2008-12-16  Bruno Haible  <bruno@clisp.org>
85634         * lib/parse-duration.h (parse_duration): Document return value
85635         convention.
85636         * lib/parse-duration.c: Include specification header first. Add
85637         comments.
85638         (_): Remove macro.
85639         (parse_year_month_day, parse_hour_minute_second): Move side effects
85640         outside of strchr call.
85641         (parse_non_iso8601): Move side effects outside of isspace call.
85642         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85643         call.
85645 2008-12-16  Bruno Haible  <bruno@clisp.org>
85647         * tests/test-parse-duration.sh: Produce no output when the test
85648         succeeds.
85650 2008-12-16  Bruno Haible  <bruno@clisp.org>
85652         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85653         expressions.
85655 2008-12-15  Bruno Haible  <bruno@clisp.org>
85657         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85658         * doc/glibc-functions/flistxattr.texi: Likewise.
85659         * doc/glibc-functions/fopencookie.texi: Likewise.
85660         * doc/glibc-functions/fremovexattr.texi: Likewise.
85661         * doc/glibc-functions/fsetxattr.texi: Likewise.
85662         * doc/glibc-functions/getxattr.texi: Likewise.
85663         * doc/glibc-functions/lgetxattr.texi: Likewise.
85664         * doc/glibc-functions/listxattr.texi: Likewise.
85665         * doc/glibc-functions/llistxattr.texi: Likewise.
85666         * doc/glibc-functions/lremovexattr.texi: Likewise.
85667         * doc/glibc-functions/lsetxattr.texi: Likewise.
85668         * doc/glibc-functions/removexattr.texi: Likewise.
85669         * doc/glibc-functions/setxattr.texi: Likewise.
85670         * doc/posix-functions/open_memstream.texi: Likewise.
85672 2008-12-15  Eric Blake  <ebb9@byu.net>
85674         Update doc for cygwin 1.7.
85675         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85676         functions.
85677         * doc/posix-functions/fchmodat.texi: Likewise.
85678         * doc/posix-functions/fchownat.texi: Likewise.
85679         * doc/posix-functions/fdopendir.texi: Likewise.
85680         * doc/posix-functions/fmemopen.texi: Likewise.
85681         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85682         * doc/posix-functions/fstatat.texi: Likewise.
85683         * doc/posix-functions/futimens.texi: Likewise.
85684         * doc/posix-functions/gai_strerror.texi: Likewise.
85685         * doc/posix-functions/getaddrinfo.texi: Likewise.
85686         * doc/posix-functions/getnameinfo.texi: Likewise.
85687         * doc/posix-functions/if_freenameindex.texi: Likewise.
85688         * doc/posix-functions/if_indextoname.texi: Likewise.
85689         * doc/posix-functions/if_nameindex.texi: Likewise.
85690         * doc/posix-functions/if_nametoindex.texi: Likewise.
85691         * doc/posix-functions/insque.texi: Likewise.
85692         * doc/posix-functions/linkat.texi: Likewise.
85693         * doc/posix-functions/llrint.texi: Likewise.
85694         * doc/posix-functions/llrintf.texi: Likewise.
85695         * doc/posix-functions/llrintl.texi: Likewise.
85696         * doc/posix-functions/lockf.texi: Likewise.
85697         * doc/posix-functions/lrintl.texi: Likewise.
85698         * doc/posix-functions/mkdirat.texi: Likewise.
85699         * doc/posix-functions/mkfifoat.texi: Likewise.
85700         * doc/posix-functions/mknodat.texi: Likewise.
85701         * doc/posix-functions/mq_close.texi: Likewise.
85702         * doc/posix-functions/mq_getattr.texi: Likewise.
85703         * doc/posix-functions/mq_notify.texi: Likewise.
85704         * doc/posix-functions/mq_open.texi: Likewise.
85705         * doc/posix-functions/mq_receive.texi: Likewise.
85706         * doc/posix-functions/mq_send.texi: Likewise.
85707         * doc/posix-functions/mq_setattr.texi: Likewise.
85708         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85709         * doc/posix-functions/mq_timedsend.texi: Likewise.
85710         * doc/posix-functions/mq_unlink.texi: Likewise.
85711         * doc/posix-functions/open_memstream.texi: Likewise.
85712         * doc/posix-functions/openat.texi: Likewise.
85713         * doc/posix-functions/posix_fadvise.texi: Likewise.
85714         * doc/posix-functions/posix_fallocate.texi: Likewise.
85715         * doc/posix-functions/posix_madvise.texi: Likewise.
85716         * doc/posix-functions/posix_memalign.texi: Likewise.
85717         * doc/posix-functions/posix_openpt.texi: Likewise.
85718         * doc/posix-functions/readlinkat.texi: Likewise.
85719         * doc/posix-functions/remque.texi: Likewise.
85720         * doc/posix-functions/renameat.texi: Likewise.
85721         * doc/posix-functions/rintl.texi: Likewise.
85722         * doc/posix-functions/sem_unlink.texi: Likewise.
85723         * doc/posix-functions/shm_open.texi: Likewise.
85724         * doc/posix-functions/shm_unlink.texi: Likewise.
85725         * doc/posix-functions/signgam.texi: Likewise.
85726         * doc/posix-functions/sigset.texi: Likewise.
85727         * doc/posix-functions/stpcpy.texi: Likewise.
85728         * doc/posix-functions/stpncpy.texi: Likewise.
85729         * doc/posix-functions/strerror.texi: Likewise.
85730         * doc/posix-functions/strtod.texi: Likewise.
85731         * doc/posix-functions/symlinkat.texi: Likewise.
85732         * doc/posix-functions/unlinkat.texi: Likewise.
85733         * doc/posix-functions/utimensat.texi: Likewise.
85734         * doc/glibc-functions/bindresvport.texi: Likewise.
85735         * doc/glibc-functions/dn_expand.texi: Likewise.
85736         * doc/glibc-functions/exp10.texi: Likewise.
85737         * doc/glibc-functions/exp10f.texi: Likewise.
85738         * doc/glibc-functions/fgetxattr.texi: Likewise.
85739         * doc/glibc-functions/flistxattr.texi: Likewise.
85740         * doc/glibc-functions/fopencookie.texi: Likewise.
85741         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85742         * doc/glibc-functions/fremovexattr.texi: Likewise.
85743         * doc/glibc-functions/fsetxattr.texi: Likewise.
85744         * doc/glibc-functions/getifaddrs.texi: Likewise.
85745         * doc/glibc-functions/getxattr.texi: Likewise.
85746         * doc/glibc-functions/lgetxattr.texi: Likewise.
85747         * doc/glibc-functions/listxattr.texi: Likewise.
85748         * doc/glibc-functions/llistxattr.texi: Likewise.
85749         * doc/glibc-functions/lremovexattr.texi: Likewise.
85750         * doc/glibc-functions/lsetxattr.texi: Likewise.
85751         * doc/glibc-functions/pow10.texi: Likewise.
85752         * doc/glibc-functions/pow10f.texi: Likewise.
85753         * doc/glibc-functions/rcmd_af.texi: Likewise.
85754         * doc/glibc-functions/removexattr.texi: Likewise.
85755         * doc/glibc-functions/res_init.texi: Likewise.
85756         * doc/glibc-functions/res_mkquery.texi: Likewise.
85757         * doc/glibc-functions/res_query.texi: Likewise.
85758         * doc/glibc-functions/res_querydomain.texi: Likewise.
85759         * doc/glibc-functions/res_send.texi: Likewise.
85760         * doc/glibc-functions/rresvport_af.texi: Likewise.
85761         * doc/glibc-functions/setxattr.texi: Likewise.
85762         * doc/glibc-functions/strcasestr.texi: Likewise.
85764 2008-12-15  Bruno Haible  <bruno@clisp.org>
85766         Fix compilation error on OSF/1 4.0.
85767         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85768         <sys/time.h>, simply delegate to the system header.
85769         Reported by Daniel Richard G. <oss@teragram.com>.
85771 2008-12-15  Bruno Haible  <bruno@clisp.org>
85773         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85774         * doc/posix-functions/fchmodat.texi: Likewise.
85775         * doc/posix-functions/fchownat.texi: Likewise.
85776         * doc/posix-functions/fdopendir.texi: Likewise.
85777         * doc/posix-functions/fstatat.texi: Likewise.
85778         * doc/posix-functions/mkdirat.texi: Likewise.
85779         * doc/posix-functions/unlinkat.texi: Likewise.
85781 2008-12-14  Bruno Haible  <bruno@clisp.org>
85783         Update doc for POSIX:2008.
85784         * doc/posix-functions/faccessat.texi: New file.
85785         * doc/posix-functions/fchmodat.texi: New file.
85786         * doc/posix-functions/fchownat.texi: New file.
85787         * doc/posix-functions/fdopendir.texi: New file.
85788         * doc/posix-functions/fstatat.texi: New file.
85789         * doc/posix-functions/futimens.texi: New file.
85790         * doc/posix-functions/linkat.texi: New file.
85791         * doc/posix-functions/mkdirat.texi: New file.
85792         * doc/posix-functions/mkfifoat.texi: New file.
85793         * doc/posix-functions/mknodat.texi: New file.
85794         * doc/posix-functions/open_wmemstream.texi: New file.
85795         * doc/posix-functions/openat.texi: New file.
85796         * doc/posix-functions/psiginfo.texi: New file.
85797         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85798         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85799         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85800         * doc/posix-functions/readlinkat.texi: New file.
85801         * doc/posix-functions/renameat.texi: New file.
85802         * doc/posix-functions/strerror_l.texi: New file.
85803         * doc/posix-functions/symlinkat.texi: New file.
85804         * doc/posix-functions/unlinkat.texi: New file.
85805         * doc/posix-functions/utimensat.texi: New file.
85806         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85808 2008-12-14  Bruno Haible  <bruno@clisp.org>
85810         Update doc for POSIX:2008.
85811         * doc/posix-functions/alphasort.texi: Renamed from
85812         doc/glibc-functions/alphasort.texi.
85813         * doc/posix-functions/dirfd.texi: Renamed from
85814         doc/glibc-functions/dirfd.texi.
85815         * doc/posix-functions/dprintf.texi: Renamed from
85816         doc/glibc-functions/dprintf.texi.
85817         * doc/posix-functions/duplocale.texi: Renamed from
85818         doc/glibc-functions/duplocale.texi.
85819         * doc/posix-functions/fexecve.texi: Renamed from
85820         doc/glibc-functions/fexecve.texi.
85821         * doc/posix-functions/fmemopen.texi: Renamed from
85822         doc/glibc-functions/fmemopen.texi.
85823         * doc/posix-functions/freelocale.texi: Renamed from
85824         doc/glibc-functions/freelocale.texi.
85825         * doc/posix-functions/getdate_err.texi: Renamed from
85826         doc/glibc-functions/getdate_err.texi.
85827         * doc/posix-functions/isalnum_l.texi: Renamed from
85828         doc/glibc-functions/isalnum_l.texi.
85829         * doc/posix-functions/isalpha_l.texi: Renamed from
85830         doc/glibc-functions/isalpha_l.texi.
85831         * doc/posix-functions/isblank_l.texi: Renamed from
85832         doc/glibc-functions/isblank_l.texi.
85833         * doc/posix-functions/iscntrl_l.texi: Renamed from
85834         doc/glibc-functions/iscntrl_l.texi.
85835         * doc/posix-functions/isdigit_l.texi: Renamed from
85836         doc/glibc-functions/isdigit_l.texi.
85837         * doc/posix-functions/isgraph_l.texi: Renamed from
85838         doc/glibc-functions/isgraph_l.texi.
85839         * doc/posix-functions/islower_l.texi: Renamed from
85840         doc/glibc-functions/islower_l.texi.
85841         * doc/posix-functions/isprint_l.texi: Renamed from
85842         doc/glibc-functions/isprint_l.texi.
85843         * doc/posix-functions/ispunct_l.texi: Renamed from
85844         doc/glibc-functions/ispunct_l.texi.
85845         * doc/posix-functions/isspace_l.texi: Renamed from
85846         doc/glibc-functions/isspace_l.texi.
85847         * doc/posix-functions/isupper_l.texi: Renamed from
85848         doc/glibc-functions/isupper_l.texi.
85849         * doc/posix-functions/iswalnum_l.texi: Renamed from
85850         doc/glibc-functions/iswalnum_l.texi.
85851         * doc/posix-functions/iswalpha_l.texi: Renamed from
85852         doc/glibc-functions/iswalpha_l.texi.
85853         * doc/posix-functions/iswblank_l.texi: Renamed from
85854         doc/glibc-functions/iswblank_l.texi.
85855         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85856         doc/glibc-functions/iswcntrl_l.texi.
85857         * doc/posix-functions/iswctype_l.texi: Renamed from
85858         doc/glibc-functions/iswctype_l.texi.
85859         * doc/posix-functions/iswdigit_l.texi: Renamed from
85860         doc/glibc-functions/iswdigit_l.texi.
85861         * doc/posix-functions/iswgraph_l.texi: Renamed from
85862         doc/glibc-functions/iswgraph_l.texi.
85863         * doc/posix-functions/iswlower_l.texi: Renamed from
85864         doc/glibc-functions/iswlower_l.texi.
85865         * doc/posix-functions/iswprint_l.texi: Renamed from
85866         doc/glibc-functions/iswprint_l.texi.
85867         * doc/posix-functions/iswpunct_l.texi: Renamed from
85868         doc/glibc-functions/iswpunct_l.texi.
85869         * doc/posix-functions/iswspace_l.texi: Renamed from
85870         doc/glibc-functions/iswspace_l.texi.
85871         * doc/posix-functions/iswupper_l.texi: Renamed from
85872         doc/glibc-functions/iswupper_l.texi.
85873         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85874         doc/glibc-functions/iswxdigit_l.texi.
85875         * doc/posix-functions/isxdigit_l.texi: Renamed from
85876         doc/glibc-functions/isxdigit_l.texi.
85877         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85878         doc/glibc-functions/mbsnrtowcs.texi.
85879         * doc/posix-functions/mkdtemp.texi: Renamed from
85880         doc/glibc-functions/mkdtemp.texi.
85881         * doc/posix-functions/newlocale.texi: Renamed from
85882         doc/glibc-functions/newlocale.texi.
85883         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85884         doc/glibc-functions/nl_langinfo_l.texi.
85885         * doc/posix-functions/open_memstream.texi: Renamed from
85886         doc/glibc-functions/open_memstream.texi.
85887         * doc/posix-functions/opterr.texi: Renamed from
85888         doc/glibc-functions/opterr.texi.
85889         * doc/posix-functions/optind.texi: Renamed from
85890         doc/glibc-functions/optind.texi.
85891         * doc/posix-functions/optopt.texi: Renamed from
85892         doc/glibc-functions/optopt.texi.
85893         * doc/posix-functions/psignal.texi: Renamed from
85894         doc/glibc-functions/psignal.texi.
85895         * doc/posix-functions/scandir.texi: Renamed from
85896         doc/glibc-functions/scandir.texi.
85897         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85898         doc/glibc-functions/sched_get_priority_min.texi.
85899         * doc/posix-functions/signgam.texi: Renamed from
85900         doc/glibc-functions/signgam.texi.
85901         * doc/posix-functions/stpcpy.texi: Renamed from
85902         doc/glibc-functions/stpcpy.texi.
85903         * doc/posix-functions/stpncpy.texi: Renamed from
85904         doc/glibc-functions/stpncpy.texi.
85905         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85906         doc/glibc-functions/strcasecmp_l.texi.
85907         * doc/posix-functions/strcoll_l.texi: Renamed from
85908         doc/glibc-functions/strcoll_l.texi.
85909         * doc/posix-functions/strfmon_l.texi: Renamed from
85910         doc/glibc-functions/strfmon_l.texi.
85911         * doc/posix-functions/strftime_l.texi: Renamed from
85912         doc/glibc-functions/strftime_l.texi.
85913         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85914         doc/glibc-functions/strncasecmp_l.texi.
85915         * doc/posix-functions/strndup.texi: Renamed from
85916         doc/glibc-functions/strndup.texi.
85917         * doc/posix-functions/strnlen.texi: Renamed from
85918         doc/glibc-functions/strnlen.texi.
85919         * doc/posix-functions/strsignal.texi: Renamed from
85920         doc/glibc-functions/strsignal.texi.
85921         * doc/posix-functions/strxfrm_l.texi: Renamed from
85922         doc/glibc-functions/strxfrm_l.texi.
85923         * doc/posix-functions/timer_gettime.texi: Renamed from
85924         doc/glibc-functions/timer_gettime.texi.
85925         * doc/posix-functions/tolower_l.texi: Renamed from
85926         doc/glibc-functions/tolower_l.texi.
85927         * doc/posix-functions/toupper_l.texi: Renamed from
85928         doc/glibc-functions/toupper_l.texi.
85929         * doc/posix-functions/towctrans_l.texi: Renamed from
85930         doc/glibc-functions/towctrans_l.texi.
85931         * doc/posix-functions/towlower_l.texi: Renamed from
85932         doc/glibc-functions/towlower_l.texi.
85933         * doc/posix-functions/towupper_l.texi: Renamed from
85934         doc/glibc-functions/towupper_l.texi.
85935         * doc/posix-functions/uselocale.texi: Renamed from
85936         doc/glibc-functions/uselocale.texi.
85937         * doc/posix-functions/vdprintf.texi: Renamed from
85938         doc/glibc-functions/vdprintf.texi.
85939         * doc/posix-functions/wcpcpy.texi:
85940         Renamed from doc/glibc-functions/wcpcpy.texi.
85941         * doc/posix-functions/wcpncpy.texi: Renamed from
85942         doc/glibc-functions/wcpncpy.texi.
85943         * doc/posix-functions/wcscasecmp.texi: Renamed from
85944         doc/glibc-functions/wcscasecmp.texi.
85945         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85946         doc/glibc-functions/wcscasecmp_l.texi.
85947         * doc/posix-functions/wcscoll_l.texi: Renamed from
85948         doc/glibc-functions/wcscoll_l.texi.
85949         * doc/posix-functions/wcsdup.texi: Renamed from
85950         doc/glibc-functions/wcsdup.texi.
85951         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85952         doc/glibc-functions/wcsncasecmp.texi.
85953         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85954         doc/glibc-functions/wcsncasecmp_l.texi.
85955         * doc/posix-functions/wcsnlen.texi: Renamed from
85956         doc/glibc-functions/wcsnlen.texi.
85957         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85958         doc/glibc-functions/wcsnrtombs.texi.
85959         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85960         doc/glibc-functions/wcsxfrm_l.texi.
85961         * doc/posix-functions/wctrans_l.texi: Renamed from
85962         doc/glibc-functions/wctrans_l.texi.
85963         * doc/posix-functions/wctype_l.texi: Renamed from
85964         doc/glibc-functions/wctype_l.texi.
85965         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85966         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85967         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85968         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85969         these subsections.
85970         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85971         Remove sections.
85973 2008-12-14  Bruno Haible  <bruno@clisp.org>
85975         Update doc for POSIX:2008.
85976         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85978 2008-12-14  Bruno Haible  <bruno@clisp.org>
85980         Update doc for POSIX:2008.
85981         * doc/pastposix-functions/bcmp.texi: Renamed from
85982         doc/posix-functions/bcmp.texi.
85983         * doc/pastposix-functions/bcopy.texi: Renamed from
85984         doc/posix-functions/bcopy.texi.
85985         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85986         doc/posix-functions/bsd_signal.texi.
85987         * doc/pastposix-functions/bzero.texi: Renamed from
85988         doc/posix-functions/bzero.texi.
85989         * doc/pastposix-functions/ecvt.texi: Renamed from
85990         doc/posix-functions/ecvt.texi.
85991         * doc/pastposix-functions/fcvt.texi: Renamed from
85992         doc/posix-functions/fcvt.texi.
85993         * doc/pastposix-functions/ftime.texi: Renamed from
85994         doc/posix-functions/ftime.texi.
85995         * doc/pastposix-functions/gcvt.texi: Renamed from
85996         doc/posix-functions/gcvt.texi.
85997         * doc/pastposix-functions/getcontext.texi: Renamed from
85998         doc/posix-functions/getcontext.texi.
85999         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
86000         doc/posix-functions/gethostbyaddr.texi.
86001         * doc/pastposix-functions/gethostbyname.texi: Renamed from
86002         doc/posix-functions/gethostbyname.texi.
86003         * doc/pastposix-functions/getwd.texi: Renamed from
86004         doc/posix-functions/getwd.texi.
86005         * doc/pastposix-functions/h_errno.texi: Renamed from
86006         doc/posix-functions/h_errno.texi.
86007         * doc/pastposix-functions/index.texi: Renamed from
86008         doc/posix-functions/index.texi.
86009         * doc/pastposix-functions/makecontext.texi: Renamed from
86010         doc/posix-functions/makecontext.texi.
86011         * doc/pastposix-functions/mktemp.texi: Renamed from
86012         doc/posix-functions/mktemp.texi.
86013         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
86014         doc/posix-functions/pthread_attr_getstackaddr.texi.
86015         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
86016         doc/posix-functions/pthread_attr_setstackaddr.texi.
86017         * doc/pastposix-functions/rindex.texi: Renamed from
86018         doc/posix-functions/rindex.texi.
86019         * doc/pastposix-functions/scalb.texi: Renamed from
86020         doc/posix-functions/scalb.texi.
86021         * doc/pastposix-functions/setcontext.texi: Renamed from
86022         doc/posix-functions/setcontext.texi.
86023         * doc/pastposix-functions/swapcontext.texi: Renamed from
86024         doc/posix-functions/swapcontext.texi.
86025         * doc/pastposix-functions/ualarm.texi: Renamed from
86026         doc/posix-functions/ualarm.texi.
86027         * doc/pastposix-functions/usleep.texi: Renamed from
86028         doc/posix-functions/usleep.texi.
86029         * doc/pastposix-functions/vfork.texi: Renamed from
86030         doc/posix-functions/vfork.texi.
86031         * doc/pastposix-functions/wcswcs.texi: Renamed from
86032         doc/posix-functions/wcswcs.texi.
86033         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
86034         (Function Substitutes): Update.
86036 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86038         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
86039         m4/strerror.m4.
86041 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86042             Bruno Haible  <bruno@clisp.org>
86044         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
86046 2008-12-13  Bruno Haible  <bruno@clisp.org>
86048         * modules/strtoull (Depends-on): Remove unistd.
86050 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86052         * modules/strtoull (Depends-on): Add stdlib.
86054 2008-12-11  Simon Josefsson  <simon@josefsson.org>
86056         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
86058 2008-12-10  Jim Meyering  <meyering@redhat.com>
86060         gl_ASSERT: don't say assertions are disabled when they're not
86061         * m4/assert.m4 (gl_ASSERT): Do not make configure report
86062         "checking whether to enable assertions... no", when they are in
86063         fact enabled.  This is solely a bug in the output of configure.
86064         In spite of saying "no", NDEBUG was not defined in that case.
86065         Also, as noted by Eric Blake, leave assertions enabled upon
86066         --enable-assert=INVALID.
86068 2008-12-10  Bruno Haible  <bruno@clisp.org>
86070         Change MODULES.html to refer to POSIX:2008 where possible.
86071         * MODULES.html.sh (POSIX2008_URL): New variable.
86072         (posix_headers): Remove sys/timeb, ucontext.
86073         (posix2001_headers): New variable.
86074         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
86075         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
86076         index, makecontext, mktemp, pthread_attr_getstackaddr,
86077         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
86078         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
86079         (posix2001_functions): New variable.
86080         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
86081         otherwise.
86083 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86085         add missing include to parse-duration.c
86086         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
86087         * modules/parse-duration (Depends-on): Add xalloc.
86089         fix sed script reading maint.mk
86090         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
86091         (syntax-check-rules): Use it.
86093 2008-12-09  Bruno Haible  <bruno@clisp.org>
86095         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
86096         MacOS X 10.4/PowerPC.
86097         Reported by Simon Josefsson.
86099 2008-12-08  Jim Meyering  <meyering@redhat.com>
86101         work around mingw's lack of some S_IF definitions
86102         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
86103         Reported by Simon Josefsson.
86105 2008-12-08  Bruno Haible  <bruno@clisp.org>
86107         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
86108         applied to variables. Needed on MacOS X 10.4/PowerPC.
86109         Reported by Simon Josefsson.
86111 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
86112         and Eric Blake  <ebb9@byu.net>
86114         assert: honor --enable-assert
86115         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
86116         order to honor --enable-assert, rather than treating it as a
86117         synonym for --disable-assert.
86119 2008-12-08  Jim Meyering  <meyering@redhat.com>
86121         * lib/posixtm.c: Remove now-useless declaration of mktime.
86123         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
86125 2008-12-07  Bruno Haible  <bruno@clisp.org>
86127         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
86128         test_once): Mark functions as static.
86129         * tests/test-tls.c (test_tls): Likewise.
86131 2008-12-07  Bruno Haible  <bruno@clisp.org>
86133         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
86134         iconv_register_autodetect.
86136 2008-12-07  Jim Meyering  <meyering@redhat.com>
86138         posixtm.c: avoid a warning
86139         * lib/posixtm.c (posixtime): Don't initialize tm0.
86140         It's no longer needed to placate gcc4's -Wuninitialized,
86141         and the attempt to placate would elicit a new warning.
86143         unicodeio.c: mark unused parameters
86144         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86145         (fallback_failure_callback): Likewise.
86147 2008-12-07  Bruno Haible  <bruno@clisp.org>
86149         * gnulib-tool (func_create_testdir): When building the tests
86150         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
86151         Reported by Simon Josefsson.
86153 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86155         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
86157 2008-12-06  Bruno Haible  <bruno@clisp.org>
86159         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
86160         Suggested by Eric Blake.
86162 2008-12-06  Bruno Haible  <bruno@clisp.org>
86164         Fix a c-stack test failure on MacOS X.
86165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
86166         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
86167         handler for SIGBUS as well.
86168         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
86169         install a signal handler for SIGBUS as well.
86170         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
86172 2008-12-06  Bruno Haible  <bruno@clisp.org>
86174         Advocacy documentation.
86175         * doc/gnulib-intro.texi (Benefits): New section.
86176         * doc/gnulib.texi: Update.
86178 2008-12-06  Bruno Haible  <bruno@clisp.org>
86180         Document the 'manywarnings' module.
86181         * doc/manywarnings.texi: New file.
86182         * doc/gnulib.texi: Include it.
86184 2008-12-05  Eric Blake  <ebb9@byu.net>
86186         tests: silence some gcc warnings
86187         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
86188         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
86189         type mismatches.
86191 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86192             Bruno Haible  <bruno@clisp.org>
86194         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
86196 2008-11-29  Jim Meyering  <meyering@redhat.com>
86198         unicodeio.c: mark unused parameters
86199         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86200         (fallback_failure_callback): Likewise.
86202         fts: fix a thinko
86203         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
86204         (set_stat_type): Return S_IF*-valued "type" directly.
86205         Prompted by James Youngman's spotting a related bug.
86206         Confirmed by further testing through find.
86208         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
86209         * lib/fts.c (D_TYPE): Define.
86210         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
86211         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
86212         (s_ifmt_shift_bits): New function.
86213         (set_stat_type): New function.
86214         (fts_build): When not calling fts_stat, call set_stat_type
86215         to propagate dirent.d_type info to fts_read caller.
86216         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
86217         fts_statp->st_mode type information may be valid.
86219 2008-11-28  Simon Josefsson  <simon@josefsson.org>
86221         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
86222         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
86223         <sds@gnu.org>.
86225 2008-11-20  Bruno Haible  <bruno@clisp.org>
86227         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
86228         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
86229         INCLUDE_NEXT.
86230         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
86231         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
86232         * modules/math (Makefile.am): Substitute
86233         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
86234         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86236 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
86237             Bruno Haible  <bruno@clisp.org>
86239         * lib/stdint.in.h: Define all type macros so that their expansion is
86240         a single typedef'ed token. Fixes a compilation failure in Boost which
86241         does "using ::int8_t;".
86243 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86245         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
86246         gl_MANYWARN_ALL_GCC.
86247         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
86248         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
86249         * modules/manywarnings: New file.
86250         * MODULES.html.sh: Mention manywarnings module.
86252 2008-11-18  Bruno Haible  <bruno@clisp.org>
86254         * doc/gnulib-tool.texi (Unit tests): New section.
86256 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86258         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
86259         paths like 'lib/po/foo.po'.
86261 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86263         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
86264         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
86266 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86268         * m4/warnings.m4: Use CPPFLAGS to really check whether the
86269         parameter works.
86271 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86273         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
86275 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86277         * modules/parse-duration-tests: New file.
86278         * tests/test-parse-duration.sh: New file.
86279         * tests/test-parse-duration.c: New file.
86281         New module 'parse-duration'.
86282         * lib/parse-duration.h: New file.
86283         * lib/parse-duration.c: New file.
86284         * modules/parse-duration: New file.
86286 2008-11-17  Bruno Haible  <bruno@clisp.org>
86288         * tests/test-select-out.sh: Comment out the first pipe test.
86289         Reported by Simon Josefsson.
86291 2008-11-17  Bruno Haible  <bruno@clisp.org>
86293         * modules/getaddrinfo (Depends-on): Add servent, hostent.
86294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
86295         gl_HOSTENT.
86297 2008-11-17  Bruno Haible  <bruno@clisp.org>
86299         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
86300         -lnetwork and -lnet. Needed for Haiku and BeOS.
86302 2008-11-16  Bruno Haible  <bruno@clisp.org>
86304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
86306 2008-11-16  Bruno Haible  <bruno@clisp.org>
86308         Avoid test failure on Haiku.
86309         * tests/test-fsync.c: Include <errno.h>.
86310         (main): Don't require that fsync (0) fails.
86312 2008-11-15  Bruno Haible  <bruno@clisp.org>
86314         New module 'hostent'.
86315         * modules/hostent: New file.
86316         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
86318 2008-11-15  Bruno Haible  <bruno@clisp.org>
86320         New module 'servent'.
86321         * modules/servent: New file.
86322         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
86324 2008-11-15  Bruno Haible  <bruno@clisp.org>
86326         Avoid generating same test program with two different rules.
86327         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
86328         test-frexp to test-frexp-nolibm.
86329         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
86330         test-frexpl to test-frexpl-nolibm.
86332 2008-11-15  Bruno Haible  <bruno@clisp.org>
86334         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
86335         $(FREXPL_LIBM).
86337 2008-11-15  Bruno Haible  <bruno@clisp.org>
86339         * lib/netdb.in.h: Activate the definitions also when the system's
86340         <netdb.h> has 'struct addrinfo'.
86341         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
86342         EAI_OVERFLOW or AI_NUMERICSERV.
86343         * doc/posix-headers/netdb.texi: Document the problem.
86345 2008-11-15  Bruno Haible  <bruno@clisp.org>
86347         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
86349         Make the 'sched' module work on platforms where <sched.h> exists but
86350         is incomplete (such as Haiku).
86351         * lib/sched.in.h; Include the system's <sched.h> if it exists.
86352         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
86353         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
86354         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
86355         HAVE_STRUCT_SCHED_PARAM.
86356         * modules/sched (Depends-on): Add include_next.
86357         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
86358         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
86359         * doc/posix-headers/sched.texi: Document the issue.
86361 2008-11-13  Jim Meyering  <meyering@redhat.com>
86363         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
86364         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
86365         test would fail due to the difference in the Report bugs to ...
86366         line.  The expected address is empty, "<>", while the actual
86367         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
86369 2008-11-12  Bruno Haible  <bruno@clisp.org>
86371         lstat: don't compile lstat.c on systems lacking lstat
86372         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
86373         which don't have lstat; this is handled by lib/sys_stat.in.h already.
86374         Reported by Daniel P. Berrange via Jim Meyering.
86376 2008-11-12  Jim Meyering  <meyering@redhat.com>
86378         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
86380 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86382         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
86383         instead.
86385 2008-11-12  Bruno Haible  <bruno@clisp.org>
86387         * lib/unicodeio.c: Include unistr.h.
86388         (utf8_wctomb): Remove function.
86389         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
86391 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86393         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
86394         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
86395         <bruno@clisp.org>.
86396         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
86398 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86400         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
86401         * doc/gnulib.texi: Add section for warnings.
86403 2008-11-11  Bruno Haible  <bruno@clisp.org>
86405         * lib/sockets.h: Add a comment.
86407 2008-11-11  Karl Berry  <karl@gnu.org>
86409         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
86411 2008-11-11  Eric Blake  <ebb9@byu.net>
86413         fdl.texi: avoid git symlinks
86414         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
86416 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86418         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
86420 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86422         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
86423         (gl_WARN_ADD): Substitute $2 if literal.
86425 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86427         * m4/warning.m4: Remove.
86429 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86431         * m4/warnings.m4: Almost complete rewrite. :-)
86433 2008-11-10  Simon Josefsson  <simon@josefsson.org>
86435         * modules/warnings: New module.
86436         * m4/warnings.m4: New file.
86437         * MODULES.html.sh: Mention warnings module.
86438         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
86439         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86441 2008-11-10  Eric Blake  <ebb9@byu.net>
86443         fdl.texi: make a symlink to the latest version
86444         * doc/standards.texi: Revert today's earlier change.
86445         * doc/fdl-1.2.texi: Rename from old fdl.texi...
86446         * doc/fdl.texi: ...and replace this with a symlink to the newer
86447         fdl-1.3.texi.
86449 2008-11-10  Bruno Haible  <bruno@clisp.org>
86451         * tests/test-select-fd.c (main): Accept the result file name as fourth
86452         argument.
86453         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
86454         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
86456 2008-11-10  Bruno Haible  <bruno@clisp.org>
86458         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
86459         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
86460         as autoconf-substituted macros.
86461         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
86462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
86463         gl_NETDB_H_DEFAULTS. Set these variables.
86464         * modules/netdb (Makefile.am): Substitute these variables.
86466 2008-11-10  Eric Blake  <ebb9@byu.net>
86468         standards.texi: include correct file for FDL 1.3
86469         * doc/standards.texi (GNU Free Documentation License): Change
86470         include file to pull in FDL 1.3, not 1.2.
86472         fdl.texi: revert accidental change to license
86473         * doc/fdl.texi: This is FDL 1.2, not 1.3.
86475 2008-11-10  Bruno Haible  <bruno@clisp.org>
86477         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
86478         cross-compiling guesses also when the native compile gives no result.
86480 2008-11-10  Bruno Haible  <bruno@clisp.org>
86482         * lib/spawni.c (__spawni): Force variable into the stack.
86484 2008-11-10  Bruno Haible  <bruno@clisp.org>
86486         Add support for Haiku.
86487         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
86488         glibc and BeOS, but also on Haiku.
86489         * lib/fpurge.c (fpurge): Likewise.
86490         * lib/freadable.c (freadable): Likewise.
86491         * lib/freadahead.c (freadahead): Likewise.
86492         * lib/freading.c (freading): Likewise.
86493         * lib/freadptr.c (freadptr): Likewise.
86494         * lib/freadseek.c (freadptrinc): Likewise.
86495         * lib/fseeko.c (rpl_fseeko): Likewise.
86496         * lib/fseterr.c (fseterr): Likewise.
86497         * lib/fwritable.c (fwritable): Likewise.
86498         * lib/fwriting.c (fwriting): Likewise.
86499         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
86501 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86503         * lib/config.charset: Treat Haiku like BeOS.
86505 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86507         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
86508         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
86510 2008-11-08  Bruno Haible  <bruno@clisp.org>
86512         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
86513         AC_CACHE_CHECK.
86515 2008-11-08  Bruno Haible  <bruno@clisp.org>
86517         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
86519 2008-11-08  Bruno Haible  <bruno@clisp.org>
86521         * tests/test-select-fd.c: New file.
86522         * tests/test-select-in.sh: New file.
86523         * tests/test-select-out.sh: New file.
86524         * tests/test-select-stdin.c: New file.
86525         * modules/select-tests (Files): Add the new files.
86526         (Depends-on): Add gettimeofday.
86527         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
86528         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
86529         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
86531 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
86532             Bruno Haible  <bruno@clisp.org>
86534         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
86536 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
86538         * build-aux/pmccabe2html: Added support for C++ source files.
86540 2008-11-05  Ben Pfaff  <blp@gnu.org>
86542         Fix lib/close.c build on Windows.
86543         * modules/close (Files): Add lib/w32sock.h.
86545 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
86547         Accept Bison's NEWS format.
86548         * build-aux/announce-gen (print_news_deltas): Tweak
86549         $re_prefix.
86551 2008-11-04  Bruno Haible  <bruno@clisp.org>
86553         * modules/random_r (Maintainer): Add glibc.
86555 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86557         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
86558         by karl@freefriends.org (Karl Berry).
86559         * doc/alloca.texi: Likewise.
86560         * doc/c-ctype.texi: Likewise.
86561         * doc/c-strcase.texi: Likewise.
86562         * doc/c-strcaseeq.texi: Likewise.
86563         * doc/c-strcasestr.texi: Likewise.
86564         * doc/c-strstr.texi: Likewise.
86565         * doc/c-strtod.texi: Likewise.
86566         * doc/c-strtold.texi: Likewise.
86567         * doc/ctime.texi: Likewise.
86568         * doc/error.texi: Likewise.
86569         * doc/fdl.texi: Likewise.
86570         * doc/gcd.texi: Likewise.
86571         * doc/getdate.texi: Likewise.
86572         * doc/gnulib-intro.texi: Likewise.
86573         * doc/gnulib-tool.texi: Likewise.
86574         * doc/gnulib.texi: Likewise.
86575         * doc/inet_ntoa.texi: Likewise.
86576         * doc/maintain.texi: Likewise.
86577         * doc/make-stds.texi: Likewise.
86578         * doc/quote.texi: Likewise.
86579         * doc/regexprops-generic.texi: Likewise.
86580         * doc/standards.texi: Likewise.
86581         * doc/verify.texi: Likewise.
86582         * doc/visibility.texi: Likewise.
86583         * doc/gnulib.texi (GNU Free Documentation License): Include
86584         fdl-1.3.texi instead of fdl.texi.
86586 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86588         * doc/fdl-1.3.texi: New file, from
86589         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86590         * modules/fdl-1.3: Add.
86591         * MODULES.html.sh: Add fdl-1.3.
86593 2008-11-03  Bruno Haible  <bruno@clisp.org>
86595         Make determination of absolute name of header file work with AIX xlc.
86596         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86597         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86598         preprocessing.
86599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86600         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86602 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86604         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86605         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86606         <ludo@gnu.org>.
86608 2008-11-02  Bruno Haible  <bruno@clisp.org>
86610         Mark 'strpbrk' obsolete.
86611         * modules/strpbrk (Status, Notice): New sections.
86612         * modules/strtok_r (Depends-on): Add strpbrk.
86614 2008-11-02  Bruno Haible  <bruno@clisp.org>
86616         Mark 'strdup' obsolete.
86617         * modules/strdup (Status, Notice): New sections.
86618         * modules/findprog (Depends-on): Add strdup.
86619         * modules/getaddrinfo (Depends-on): Likewise.
86620         * modules/localename (Depends-on): Likewise.
86621         * modules/relocatable-lib (Depends-on): Likewise.
86622         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86623         * modules/relocatable-prog (Depends-on): Likewise.
86624         * modules/trim (Depends-on): Likewise.
86625         * modules/unictype/gen-ctype (Depends-on): Likewise.
86626         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86628 2008-11-02  Bruno Haible  <bruno@clisp.org>
86630         Mark 'strcspn' obsolete.
86631         * modules/strcspn (Status, Notice): New sections.
86633 2008-11-02  Bruno Haible  <bruno@clisp.org>
86635         Mark 'rmdir' obsolete.
86636         * modules/rmdir (Status, Notice): New sections.
86637         * modules/clean-temp (Depends-on): Add rmdir.
86638         * modules/openat (Depends-on): Likewise.
86640 2008-11-02  Bruno Haible  <bruno@clisp.org>
86642         Mark 'raise' obsolete.
86643         * modules/raise (Status, Notice): New sections.
86644         (Include): Specify <signal.h>.
86645         * modules/stdio (Depends-on): Add raise.
86646         * modules/write (Depends-on): Likewise.
86648 2008-11-02  Bruno Haible  <bruno@clisp.org>
86650         Mark 'memset' obsolete.
86651         * modules/memset (Status, Notice): New sections.
86653 2008-11-02  Bruno Haible  <bruno@clisp.org>
86655         Mark 'memmove' obsolete.
86656         * modules/memmove (Status, Notice): New sections.
86657         * modules/argp (Depends-on): Add memmove.
86658         * modules/argz (Depends-on): Likewise.
86659         * modules/canonicalize (Depends-on): Likewise.
86660         * modules/canonicalize-lgpl (Depends-on): Likewise.
86661         * modules/fts (Depends-on): Likewise.
86662         * modules/getcwd (Depends-on): Likewise.
86663         * modules/human (Depends-on): Likewise.
86664         * modules/regex (Depends-on): Likewise.
86665         * modules/striconveh (Depends-on): Likewise.
86666         * modules/trim (Depends-on): Likewise.
86667         * modules/unistr/u8-move (Depends-on): Likewise.
86668         * modules/unistr/u16-move (Depends-on): Likewise.
86669         * modules/unistr/u32-move (Depends-on): Likewise.
86671 2008-11-02  Bruno Haible  <bruno@clisp.org>
86673         Mark 'memcpy' obsolete.
86674         * modules/memcpy (Status, Notice): New sections.
86676 2008-11-02  Bruno Haible  <bruno@clisp.org>
86678         Mark 'memcmp' obsolete.
86679         * modules/memcmp (Status, Notice): New sections.
86680         * modules/argmatch (Depends-on): Add memchr.
86681         * modules/backupfile (Depends-on): Likewise.
86682         * modules/c-strcasestr (Depends-on): Likewise.
86683         * modules/crypto/des (Depends-on): Likewise.
86684         * modules/csharpcomp (Depends-on): Likewise.
86685         * modules/fnmatch (Depends-on): Likewise.
86686         * modules/git-merge-changelog (Depends-on): Likewise.
86687         * modules/isnand (Depends-on): Likewise.
86688         * modules/isnand-nolibm (Depends-on): Likewise.
86689         * modules/isnanf (Depends-on): Likewise.
86690         * modules/isnanf-nolibm (Depends-on): Likewise.
86691         * modules/isnanl (Depends-on): Likewise.
86692         * modules/isnanl-nolibm (Depends-on): Likewise.
86693         * modules/mbchar (Depends-on): Likewise.
86694         * modules/memcoll (Depends-on): Likewise.
86695         * modules/quotearg (Depends-on): Likewise.
86696         * modules/regex (Depends-on): Likewise.
86697         * modules/relocatable-prog (Depends-on): Likewise.
86698         * modules/same (Depends-on): Likewise.
86699         * modules/signbit (Depends-on): Likewise.
86700         * modules/strcasestr-simple (Depends-on): Likewise.
86701         * modules/unictype/gen-ctype (Depends-on): Likewise.
86702         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86703         * modules/uniname/uniname (Depends-on): Likewise.
86704         * modules/unistr/u8-cmp (Depends-on): Likewise.
86706 2008-11-02  Bruno Haible  <bruno@clisp.org>
86708         Mark 'memchr' obsolete.
86709         * modules/memchr (Status, Notice): New sections.
86710         * modules/argp (Depends-on): Add memchr.
86711         * modules/base64 (Depends-on): Likewise.
86712         * modules/c-strcasestr (Depends-on): Likewise.
86713         * modules/chdir-long (Depends-on): Likewise.
86714         * modules/fnmatch (Depends-on): Likewise.
86715         * modules/getsubopt (Depends-on): Likewise.
86716         * modules/git-merge-changelog (Depends-on): Likewise.
86717         * modules/glob (Depends-on): Likewise.
86718         * modules/strcasestr-simple (Depends-on): Likewise.
86719         * modules/strnlen (Depends-on): Likewise.
86721 2008-11-02  Bruno Haible  <bruno@clisp.org>
86723         Mark 'atexit' obsolete.
86724         * modules/atexit (Status, Notice): New sections.
86725         * modules/chdir-long (Depends-on): Add atexit.
86726         * modules/wait-process (Depends-on): Likewise.
86728 2008-11-02  Bruno Haible  <bruno@clisp.org>
86730         * gnulib-tool: New option --with-obsolete.
86731         (func_usage): Document it.
86732         (func_modules_transitive_closure): Drop obsolete dependencies if
86733         incobsolete is not true.
86734         (func_import): Read and save the incobsolete variable to the cache.
86736 2008-11-02  Bruno Haible  <bruno@clisp.org>
86738         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86739         * gnulib-tool: New option --extract-status.
86740         (func_usage): Document it.
86741         (sed_extract_prog): Recognize it.
86742         (func_get_status): New function.
86744 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86746         * modules/sockets (License): Change from LGPL to LGPLv2+.
86748 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86750         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86752 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86754         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86755         Mention times and sys_times.
86756         * modules/sys_times, modules/sys_times-tests: New modules.
86757         * modules/times, modules/times-tests: Likewise
86758         * m4/sys_times_h.m4: New file.
86759         * lib/sys_times.in.h: Likewise
86760         * lib/times.c: Likewise.
86761         * tests/test-sys_times.c: Likewise.
86762         * tests/test-times.c: Likewise.
86763         * doc/posix-headers/sys_times.texi: Update.
86764         * doc/posix-functions/times.texi: Update.
86766 2008-10-28  Jim Meyering  <meyering@redhat.com>
86768         * modules/tempname (Depends-on): Add lstat.
86770         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86772 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86774         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86775         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86776         using idiom used elsewhere in gnulib.
86778 2008-10-27  Jim Meyering  <meyering@redhat.com>
86780         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86782 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86784         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86785         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86786         programs.
86787         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86789 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86791         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86793 2008-10-27  Bruno Haible  <bruno@clisp.org>
86795         * tests/test-lstat.c: Include <stdio.h>.
86797 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86799         * modules/lstat-tests: New module.
86800         * tests/test-lstat.c: New file.
86802 2008-10-26  Jim Meyering  <meyering@redhat.com>
86804         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86806 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86807             Bruno Haible  <bruno@clisp.org>
86809         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86810         * modules/configmake (Include): Add a note that the include must come
86811         after all system headers.
86812         * lib/javaversion.c: Include configmake.h after all other includes.
86814 2008-10-26  Bruno Haible  <bruno@clisp.org>
86816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86817         HAVE_STRUCT_RANDOM_DATA to 1.
86818         (gl_STDLIB_H): Simplify.
86820 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86822         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86823         substitute HAVE_STRUCT_RANDOM_DATA.
86824         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86825         random_data.
86826         * modules/stdlib (Makefile.am): Substitute
86827         HAVE_STRUCT_RANDOM_DATA.
86829 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86831         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86832         * doc/gnulib-intro.texi (Copyright): Likewise.
86834 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86836         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86837         findings.
86839 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86840             Bruno Haible  <bruno@clisp.org>
86842         * lib/unistd.in.h: Include <winsock2.h>.
86843         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86844         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86845         Provide dummy declarations.
86846         (gethostname): Override.
86847         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86849         gl_PREREQ_SYS_H_WINSOCK2.
86850         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86851         * doc/posix-functions/gethostname.texi: More details.
86853 2008-10-25  Bruno Haible  <bruno@clisp.org>
86855         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86856         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86857         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86859         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86860         here ...
86861         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86862         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86863         gl_UNISTD_H_DEFAULTS.
86865 2008-10-25  Eric Blake  <ebb9@byu.net>
86867         signbit: avoid spurious compiler failure
86868         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86869         declarations inside function.
86871 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86872             Bruno Haible  <bruno@clisp.org>
86874         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86875         * modules/random_r (Depends-on): Add stdint.
86877 2008-10-24  Bruno Haible  <bruno@clisp.org>
86879         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86880         Eggert.
86881         * modules/strerror (License): Likewise.
86883 2008-10-24  Jim Meyering  <meyering@redhat.com>
86885         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86886         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86888 2008-10-24  Eric Blake  <ebb9@byu.net>
86890         getgroups: fix compilation when getgroups is available
86891         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86892         but with <config.h> override of getgroups disabled.
86894 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86896         * doc/gnulib.texi (Header files): Add note about C++ problems.
86897         Explained by Bruno Haible <bruno@clisp.org>.
86899 2008-10-23  Bruno Haible  <bruno@clisp.org>
86901         Define a dummy SA_NODEFER macro on Interix.
86902         * lib/signal.in.h (SA_NODEFER): Define fallback.
86903         Reported by Aleksey Cheusov <cheusov@tut.by> via
86904         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86906 2008-10-23  Bruno Haible  <bruno@clisp.org>
86908         * modules/freadahead (License): Change to LGPLv2+.
86909         Suggested by Simon Josefsson.
86911 2008-10-23  Jim Meyering  <meyering@redhat.com>
86913         random_r: new module
86914         * modules/random_r: New file.
86915         * m4/random_r.m4: New file.
86916         * lib/random_r.c: New file, from glibc.
86917         * modules/random_r-tests: New file.
86918         * tests/test-random_r.c: New file.
86919         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86920          Declare.
86921         (RAND_MAX): Define.
86922         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86923         * modules/stdlib: Substitute them, too.
86924         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86925         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86926         * doc/glibc-functions/random_r.texi: Likewise.
86927         * doc/glibc-functions/setstate_r.texi: Likewise.
86928         * doc/glibc-functions/srandom_r.texi: Likewise.
86929         * config/srclist.txt: Mention it.
86931 2008-10-23  David Lutterkort  <lutter@redhat.com>
86933         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86934         link requirement
86936 2008-10-23  Jim Meyering  <meyering@redhat.com>
86938         selinux-h: mark parameters of stub functions as intentionally unused
86939         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86940         * lib/se-context.in.h: Likewise.
86942 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86944         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86946 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86948         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86950 2008-10-22  Eric Blake  <ebb9@byu.net>
86952         glthread/thread: avoid compiler warning
86953         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86954         Add unreachable abort to silence compiler.
86956 2008-10-22  Eric Blake  <ebb9@byu.net>
86958         netdb: also supply struct addrinfo for cygwin 1.5.x
86959         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86960         older cygwin.
86961         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86962         cygwin.
86963         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86965 2008-10-22  Bruno Haible  <bruno@clisp.org>
86967         * users.txt: Update entry about pspp.
86969 2008-10-21  Bruno Haible  <bruno@clisp.org>
86971         Simplification.
86972         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86973         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86975         Simplification.
86976         * lib/ioctl.c (ioctl): Don't undefine.
86977         * lib/socket.c (socket): Don't undefine.
86979         Remove unused module indicator macros.
86980         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86981         GNULIB_$1 as a C macro.
86983         * doc/posix-functions/close.texi: Undo last change.
86984         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86985         Windows platforms.
86987 2008-10-21  Bruno Haible  <bruno@clisp.org>
86989         Add gethostname() declaration to <unistd.h>.
86990         * lib/unistd.in.h (gethostname): New declaration.
86991         * lib/gethostname.c: Include <unistd.h>.
86992         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86993         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86995         and HAVE_GETHOSTNAME.
86996         * modules/gethostname (Depends-on): Add unistd.
86997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86998         (Include): Specify <unistd.h>.
86999         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
87000         HAVE_GETHOSTNAME.
87001         * tests/test-gethostname.c: Include <unistd.h> first.
87003 2008-10-21  Bruno Haible  <bruno@clisp.org>
87005         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
87006         * modules/select-tests (Depends-on): Likewise.
87007         Reported by Simon Josefsson.
87009 2008-10-21  Simon Josefsson  <simon@josefsson.org>
87011         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
87012         * lib/accept.c: New file, based on winsock.c.
87013         * lib/bind.c: New file, based on winsock.c.
87014         * lib/connect.c: New file, based on winsock.c.
87015         * lib/getpeername.c: New file, based on winsock.c.
87016         * lib/getsockname.c: New file, based on winsock.c.
87017         * lib/getsockopt.c: New file, based on winsock.c.
87018         * lib/ioctl.c: New file, based on winsock.c.
87019         * lib/listen.c: New file, based on winsock.c.
87020         * lib/recv.c: New file, based on winsock.c.
87021         * lib/recvfrom.c: New file, based on winsock.c.
87022         * lib/send.c: New file, based on winsock.c.
87023         * lib/sendto.c: New file, based on winsock.c.
87024         * lib/setsockopt.c: New file, based on winsock.c.
87025         * lib/shutdown.c: New file, based on winsock.c.
87026         * lib/socket.c: New file, based on winsock.c.
87027         * lib/w32sock.h: New file, based on winsock.c.
87028         * lib/winsock.c: Remove file.
87029         * modules/accept: Likewise.
87030         * modules/bind: Likewise.
87031         * modules/connect: Likewise.
87032         * modules/getpeername: Likewise.
87033         * modules/getsockname: Likewise.
87034         * modules/getsockopt: Likewise.
87035         * modules/ioctl: Likewise.
87036         * modules/listen: Likewise.
87037         * modules/recv: Likewise.
87038         * modules/recvfrom: Likewise.
87039         * modules/send: Likewise.
87040         * modules/sendto: Likewise.
87041         * modules/setsockopt: Likewise.
87042         * modules/shutdown: Likewise.
87043         * modules/socket: Use socket.c instead of winsock.c.
87044         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
87045         * doc/posix-functions/accept.texi: Doc fix.
87046         * doc/posix-functions/bind.texi: Doc fix.
87047         * doc/posix-functions/close.texi: Doc fix.
87048         * doc/posix-functions/connect.texi: Doc fix.
87049         * doc/posix-functions/getpeername.texi: Doc fix.
87050         * doc/posix-functions/getsockname.texi: Doc fix.
87051         * doc/posix-functions/getsockopt.texi: Doc fix.
87052         * doc/posix-functions/ioctl.texi: Doc fix.
87053         * doc/posix-functions/listen.texi: Doc fix.
87054         * doc/posix-functions/recv.texi: Doc fix.
87055         * doc/posix-functions/recvfrom.texi: Doc fix.
87056         * doc/posix-functions/send.texi: Doc fix.
87057         * doc/posix-functions/sendto.texi: Doc fix.
87058         * doc/posix-functions/setsockopt.texi: Doc fix.
87059         * doc/posix-functions/shutdown.texi: Doc fix.
87060         * doc/posix-functions/socket.texi: Doc fix.
87062 2008-10-20  Bruno Haible  <bruno@clisp.org>
87064         Take into account the role of SIGABRT_COMPAT on Windows 2008.
87065         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
87066         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
87067         as an alias for SIGABRT.
87068         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
87069         (sigaction): Map it to SIGABRT.
87070         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
87072 2008-10-20  Bruno Haible  <bruno@clisp.org>
87074         * lib/fts.c: Don't include lstat.h.
87075         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
87077         Move the lstat() declaration to <sys/stat.h>.
87078         * lib/lstat.h: Remove file.
87079         * lib/sys_stat.in.h: Add special invocation convention.
87080         (lstat): New declaration.
87081         * lib/lstat.c (orig_lstat): New function.
87082         (rpl_lstat): Use orig_lstat instead of lstat.
87083         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
87084         AC_C_INLINE. Set REPLACE_LSTAT.
87085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
87086         and REPLACE_LSTAT.
87087         * modules/lstat (Files): Remove lib/lstat.h.
87088         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87089         (Include): Specify <sys/stat.h> instead of lstat.h.
87090         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
87091         REPLACE_LSTAT.
87092         * NEWS: Mention the change.
87094 2008-10-20  Bruno Haible  <bruno@clisp.org>
87096         * modules/posix_spawn-tests: New file.
87097         * tests/test-posix_spawn3.c: New file.
87099 2008-10-20  Bruno Haible  <bruno@clisp.org>
87101         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
87102         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
87103         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
87104         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
87105         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
87107 2008-10-20  Bruno Haible  <bruno@clisp.org>
87109         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
87110         of posix_spawn on AIX 5.3.
87112 2008-10-20  Bruno Haible  <bruno@clisp.org>
87114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
87116 2008-10-20  Bruno Haible  <bruno@clisp.org>
87118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
87119         of AC_LANG_PROGRAM.
87121 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87123         * lib/netdb.in.h: Don't define GNU specific constants until they
87124         are supported or needed.  Reported by Bruno Haible
87125         <bruno@clisp.org>.
87127 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87129         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
87131 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87133         * lib/getaddrinfo.h: Remove file.
87134         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
87135         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
87136         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
87137         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
87138         * modules/netdb: Substitute GNULIB_GETADDRINFO.
87139         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
87140         * tests/test-getaddrinfo.c: Likewise.
87141         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
87142         * NEWS: Mention change.
87144 2008-10-19  Bruno Haible  <bruno@clisp.org>
87146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
87148 2008-10-19  Bruno Haible  <bruno@clisp.org>
87150         * lib/wait-process.c: Include simply <sys/wait.h>.
87151         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
87152         WIFSTOPPED): Remove fallback definitions.
87153         * modules/wait-process (Depends-on): Add sys_wait.
87155         New module 'sys_wait'.
87156         * modules/sys_wait: New file.
87157         * lib/sys_wait.in.h: New file, partially copied from
87158         lib/wait-process.c.
87159         * m4/sys_wait_h.m4: New file.
87160         * doc/posix-headers/sys_wait.texi: Mention the new module.
87162 2008-10-19  Bruno Haible  <bruno@clisp.org>
87164         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
87166 2008-10-19  Bruno Haible  <bruno@clisp.org>
87168         Assume that waitpid() fills an 'int' status, not a 'union wait'.
87169         * lib/wait-process.c (WAIT_T): Remove type.
87170         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
87171         (wait_subprocess): Update.
87173 2008-10-19  Bruno Haible  <bruno@clisp.org>
87175         New module 'atoll'.
87176         * modules/atoll: New file.
87177         * lib/stdlib.in.h (atoll): New declaration.
87178         * lib/atoll.c: New file, from glibc with modifications.
87179         * m4/atoll.m4: New file.
87180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
87181         HAVE_ATOLL.
87182         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
87183         * doc/posix-functions/atoll.texi: Mention the new module.
87185 2008-10-19  Bruno Haible  <bruno@clisp.org>
87187         Add strtoull() declaration to <stdlib.h>.
87188         * lib/stdlib.in.h (strtoull): New declaration.
87189         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87190         Set HAVE_STRTOULL.
87191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
87192         HAVE_STRTOULL.
87193         * modules/strtoull (Depends-on): Add stdlib.
87194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87195         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
87196         HAVE_STRTOULL.
87198 2008-10-19  Bruno Haible  <bruno@clisp.org>
87200         Add strtoll() declaration to <stdlib.h>.
87201         * lib/stdlib.in.h (strtoll): New declaration.
87202         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87203         Set HAVE_STRTOLL.
87204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
87205         HAVE_STRTOLL.
87206         * modules/strtoll (Depends-on): Add stdlib.
87207         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87208         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
87210 2008-10-19  Bruno Haible  <bruno@clisp.org>
87212         * modules/bcopy (Depends-on): Add strings.
87213         (Include): Specify <strings.h>.
87215 2008-10-19  Bruno Haible  <bruno@clisp.org>
87217         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
87219 2008-10-19  Bruno Haible  <bruno@clisp.org>
87221         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
87222         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
87223         mingw.
87225 2008-10-19  Bruno Haible  <bruno@clisp.org>
87227         * lib/atanl.c: Don't include isnanl.h.
87228         * lib/cosl.c: Likewise.
87229         * lib/ldexpl.c: Likewise.
87230         * lib/logl.c: Likewise.
87231         * lib/sinl.c: Likewise.
87232         * lib/sqrtl.c: Likewise.
87233         * lib/tanl.c: Likewise.
87235         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
87236         * lib/isnanf.h: Remove file.
87237         * lib/isnand.h: Remove file.
87238         * lib/isnanl.h: Remove file.
87239         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
87240         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
87241         macros.
87242         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
87243         HAVE_ISNANF, don't define it as a C macro.
87244         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
87245         HAVE_ISNAND, don't define it as a C macro.
87246         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
87247         HAVE_ISNANL, don't define it as a C macro.
87248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
87249         HAVE_ISNAN[FDL].
87250         * modules/isnanf (Files): Remove lib/isnanf.h.
87251         (Depends-on): Add math.
87252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87253         (Include): Specify <math.h> instead of isnanf.h.
87254         * modules/isnand (Files): Remove lib/isnand.h.
87255         (Depends-on): Add math.
87256         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87257         (Include): Specify <math.h> instead of isnand.h.
87258         * modules/isnanl (Files): Remove lib/isnanl.h.
87259         (Depends-on): Add math.
87260         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87261         (Include): Specify <math.h> instead of isnanl.h.
87262         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
87263         HAVE_ISNAN[FDL].
87264         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
87265         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
87266         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
87267         * NEWS: Mention the change.
87269 2008-10-18  Bruno Haible  <bruno@clisp.org>
87271         Add getusershell(), setusershell(), endusershell() declarations to
87272         <unistd.h>.
87273         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
87274         declarations.
87275         * lib/getusershell.c: Include unistd.h.
87276         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
87277         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87278         HAVE_GETUSERSHELL.
87279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
87280         and HAVE_GETUSERSHELL.
87281         * modules/getusershell (Depends-on): Add unistd, extensions.
87282         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87283         (Include): Specify <unistd.h>.
87284         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
87285         HAVE_GETUSERSHELL.
87287 2008-10-18  Bruno Haible  <bruno@clisp.org>
87289         Add a getloadavg() declaration to <stdlib.h>.
87290         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
87291         getloadavg declaration.
87292         (getloadavg): New declaration.
87293         * lib/getloadavg.c: Include <stdlib.h> first.
87294         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
87295         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
87296         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
87297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
87298         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87299         * modules/getloadavg (Depends-on): Add stdlib, extensions.
87300         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87301         (Include): Specify <stdlib.h>.
87302         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
87303         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87305 2008-10-18  Bruno Haible  <bruno@clisp.org>
87307         * lib/dirchownmod.c: Don't include lchmod.h.
87309         Move the lchmod() declaration to <sys/stat.h>.
87310         * lib/lchmod.h: Remove file.
87311         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
87312         (lchmod): New declaration, moved here from lib/lchown.h.
87313         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
87314         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
87315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
87316         and HAVE_LCHMOD.
87317         * modules/lchmod (Files): Remove lib/lchmod.h.
87318         (Depends-on): Add sys_stat, extensions.
87319         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87320         (Include): Specify <sys/stat.h> instead of lchmod.h.
87321         * modules/sys_stat (Depends-on): Add link-warning.
87322         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
87323         definition of GL_LINK_WARNING.
87324         * NEWS: Mention the change.
87326 2008-10-18  Bruno Haible  <bruno@clisp.org>
87328         * lib/fchdir.c: Don't include dirfd.h.
87329         * lib/fts.c: Likewise.
87330         * lib/getcwd.c: Likewise.
87331         * lib/glob.c: Likewise.
87333         Move the dirfd() declaration to <dirent.h>.
87334         * lib/dirfd.h: Remove file.
87335         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
87336         (dirfd): New declaration.
87337         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
87338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
87339         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
87340         HAVE_DECL_DIRFD.
87341         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
87342         HAVE_DECL_DIRFD.
87343         * modules/dirfd (Files): Remove lib/dirfd.h.
87344         (Depends-on): Add dirent, extensions.
87345         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
87346         (Include): Specify <dirent.h> instead of dirfd.h.
87347         * modules/dirent (Depends-on): Add link-warning.
87348         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
87349         definition of GL_LINK_WARNING.
87350         * NEWS: Mention the change.
87352 2008-10-18  Bruno Haible  <bruno@clisp.org>
87354         Move the euidaccess() declaration to <unistd.h>.
87355         * lib/euidaccess.h: Remove file.
87356         * lib/unistd.in.h (euidaccess): New declaration.
87357         * lib/euidaccess.c: Don't include euidaccess.h.
87358         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
87359         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
87360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
87361         and HAVE_EUIDACCESS.
87362         * modules/euidaccess (Files): Remove lib/euidaccess.h.
87363         (Depends-on): Add unistd.
87364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87365         (Include): Specify <unistd.h> instead of euidaccess.h.
87366         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
87367         HAVE_EUIDACCESS.
87368         * NEWS: Mention the change.
87370 2008-10-18  Bruno Haible  <bruno@clisp.org>
87372         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
87374         Move the getdomainname() declaration to <unistd.h>.
87375         * lib/getdomainname.h: Remove file.
87376         * lib/unistd.in.h (getdomainname): New declaration.
87377         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
87378         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
87379         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87380         HAVE_GETDOMAINNAME.
87381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87382         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
87383         * modules/getdomainname (Files): Remove lib/getdomainname.h.
87384         (Depends-on): Add unistd, extensions.
87385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87386         (Includes): Specify <unistd.h> instead of getdomainname.h.
87387         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
87388         HAVE_GETDOMAINNAME.
87389         * NEWS: Mention the change.
87391 2008-10-18  Bruno Haible  <bruno@clisp.org>
87393         * modules/dirent: New file.
87394         * m4/dirent_h.m4: New file.
87395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
87396         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
87397         * modules/fchdir (Files): Remove lib/dirent.in.h.
87398         (Depends-on): Add dirent.
87399         (Makefile.am): Move rules to modules/dirent.
87400         * doc/posix-headers/dirent.texi: Mention the new module.
87402 2008-10-18  Bruno Haible  <bruno@clisp.org>
87404         Avoid -Wunused-parameter warnings in public gnulib header files.
87405         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
87406         macro.
87407         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
87409 2008-10-18  Bruno Haible  <bruno@clisp.org>
87411         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
87412         * doc/glibc-functions/error.texi: Mention the module 'error'.
87413         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
87414         * doc/glibc-functions/getdomainname.texi: Mention the module
87415         'getdomainname'.
87416         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
87417         * doc/glibc-functions/getpagesize.texi: Mention the module
87418         'getpagesize'.
87419         * doc/glibc-functions/getusershell.texi: Mention the module
87420         'getusershell'.
87421         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
87422         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
87423         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
87424         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
87425         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
87426         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
87427         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
87428         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
87429         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
87430         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
87431         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
87432         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
87433         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
87434         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
87436 2008-10-17  Bruno Haible  <bruno@clisp.org>
87438         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
87439         HP-UX and IRIX, use -0.0L.
87440         * tests/test-ceill.c (minus_zero): Likewise.
87441         * tests/test-floorl.c (minus_zero): Likewise.
87442         * tests/test-frexpl.c (minus_zero): Likewise.
87443         * tests/test-isnan.c (minus_zerol): Likewise.
87444         * tests/test-isnanl.h (minus_zero): Likewise.
87445         * tests/test-ldexpl.c (minus_zero): Likewise.
87446         * tests/test-roundl.c (minus_zero): Likewise.
87447         * tests/test-signbit.c (minus_zerol): Likewise.
87448         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87449         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87450         * tests/test-truncl.c (minus_zero): Likewise.
87451         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87452         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87453         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
87454         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87456 2008-10-17  Bruno Haible  <bruno@clisp.org>
87458         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
87459         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
87460         that it gets activated only for gcc >= 3.0.
87461         * lib/dirent.in.h: Likewise.
87462         * lib/errno.in.h: Likewise.
87463         * lib/fcntl.in.h: Likewise.
87464         * lib/float.in.h: Likewise.
87465         * lib/iconv.in.h: Likewise.
87466         * lib/inttypes.in.h: Likewise.
87467         * lib/locale.in.h: Likewise.
87468         * lib/math.in.h: Likewise.
87469         * lib/netdb.in.h: Likewise.
87470         * lib/netinet_in.in.h: Likewise.
87471         * lib/search.in.h: Likewise.
87472         * lib/signal.in.h: Likewise.
87473         * lib/spawn.in.h: Likewise.
87474         * lib/stdarg.in.h: Likewise.
87475         * lib/stdint.in.h: Likewise.
87476         * lib/stdio.in.h: Likewise.
87477         * lib/stdlib.in.h: Likewise.
87478         * lib/string.in.h: Likewise.
87479         * lib/strings.in.h: Likewise.
87480         * lib/sys_file.in.h: Likewise.
87481         * lib/sys_ioctl.in.h: Likewise.
87482         * lib/sys_select.in.h: Likewise.
87483         * lib/sys_socket.in.h: Likewise.
87484         * lib/sys_stat.in.h: Likewise.
87485         * lib/sys_time.in.h: Likewise.
87486         * lib/sysexits.in.h: Likewise.
87487         * lib/time.in.h: Likewise.
87488         * lib/unistd.in.h: Likewise.
87489         * lib/wchar.in.h: Likewise.
87490         * lib/wctype.in.h: Likewise.
87491         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87493 2008-10-17  Jim Meyering  <meyering@redhat.com>
87495         ignore-value: don't depend on inline module
87496         * modules/ignore-value (Depends-on): Remove 'inline'.
87497         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
87498         Suggestion from Bruno Haible.
87500 2008-10-17  Bruno Haible  <bruno@clisp.org>
87502         New implementation of condition variables for Win32.
87503         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
87504         (gl_linked_waitqueue_t): New type.
87505         (gl_cond_t): Use it.
87506         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
87507         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
87508         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
87509         (glthread_cond_init_func, glthread_cond_wait_func,
87510         glthread_cond_timedwait_func, glthread_cond_signal_func,
87511         glthread_cond_broadcast_func, glthread_cond_destroy_func):
87512         Reimplemented on the basis of gl_linked_waitqueue_t.
87513         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
87514         gl_waitqueue_t.
87515         (gl_rwlock_t): Update.
87516         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
87518 2008-10-17  Simon Josefsson  <simon@josefsson.org>
87520         * modules/recvfrom (Depends-on): Add dependency on getpeername.
87521         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87523 2008-10-17  Jim Meyering  <meyering@redhat.com>
87525         ignore-value: new module
87526         * modules/ignore-value: New file.
87527         * lib/ignore-value.h: New file.
87528         * MODULES.html.sh (Compiler warning management): New section,
87529         just for this module.  More to come.
87531 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87533         open-safer.c: avoid 'signed and unsigned in conditional...' warning
87534         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
87535         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
87537 2008-10-16  Jim Meyering  <meyering@redhat.com>
87539         openat-die.c: avoid 'no previous prototype' warning
87540         * lib/openat-die.c: Include "openat.h".
87541         Reported by Reuben Thomas <rrt@sc3d.org>.
87543 2008-10-16  Simon Josefsson  <simon@josefsson.org>
87545         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
87546         * lib/netdb.in.h: Fix typo.
87547         Reported by Bruno Haible  <bruno@clisp.org>
87549         * lib/netdb.in.h: Include sys/socket.h for platforms without
87550         netdb.h, to get structures like hostent on MinGW.
87551         * modules/netdb (Depends-on): Add sys_socket.
87553 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87555         * modules/netdb, modules/netdb-tests: New file.
87556         * m4/netdb_h.m4: New file.
87557         * lib/netdb.in.h: Add, currently just an empty file pending
87558         definitions.
87559         * tests/test-netdb.c: New file.
87560         * doc/posix-headers/netdb.texi: Mention that we replace it if
87561         needed.
87562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87563         netdb.
87565 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87567         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
87568         with code.
87570 2008-10-13  Bruno Haible  <bruno@clisp.org>
87572         * lib/glthread/cond.c (glthread_cond_wait_func,
87573         glthread_cond_timedwait_func): Add a comment.
87575 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87577         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
87578         * tests/test-select.c: Likewise,
87580 2008-10-13  Bruno Haible  <bruno@clisp.org>
87582         * lib/glthread/cond.c (glthread_cond_wait_func,
87583         glthread_cond_timedwait_func): Fix variable name.
87584         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87586 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87588         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87589         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87590         struct sockaddr.sa_len.
87591         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87593 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87595         * build-aux/pmccabe2html: Add css and css_url parameters.
87597 2008-10-12  Bruno Haible  <bruno@clisp.org>
87599         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87600         calling aclx_get.
87601         Reported by Rainer Tammer <tammer@tammer.net>.
87603 2008-10-12  Bruno Haible  <bruno@clisp.org>
87605         Use msvcrt aware primitives for creation/termination of Win32 threads.
87606         * lib/glthread/thread.c: Include <process.h>.
87607         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87608         (wrapper_func): Update signature.
87609         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87611 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87612             Bruno Haible  <bruno@clisp.org>
87614         Provide a Win32 implementation of the 'cond' module.
87615         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87616         * lib/glthread/cond.c (glthread_cond_init_func,
87617         glthread_cond_wait_func, glthread_cond_timedwait_func,
87618         glthread_cond_signal_func, glthread_cond_broadcast_func,
87619         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87620         * modules/cond (Dependencies): Add gettimeofday.
87622 2008-10-11  Bruno Haible  <bruno@clisp.org>
87624         Make sleep work on older versions of mingw.
87625         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87626         only whether it exists.
87627         * doc/posix-functions/sleep.texi: Mention the problem with older
87628         versions of mingw.
87630 2008-10-11  Bruno Haible  <bruno@clisp.org>
87632         New module 'shutdown'.
87633         * modules/shutdown: New file.
87634         * lib/sys_socket.in.h (shutdown): New declaration.
87635         * lib/winsock.c (shutdown): New function.
87636         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87637         GNULIB_SHUTDOWN.
87638         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87639         * doc/posix-functions/shutdown.texi: Document the new module.
87641 2008-10-11  Jim Meyering  <meyering@redhat.com>
87643         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87645 2008-10-11  Bruno Haible  <bruno@clisp.org>
87647         New module 'fclose'.
87648         * modules/fclose: New file.
87649         * lib/stdio.in.h (fclose): New declaration.
87650         * lib/fclose.c: New file.
87651         * m4/fclose.m4: New file.
87652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87653         REPLACE_FCLOSE.
87654         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87655         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87656         REPLACE_FCLOSE.
87657         * modules/close (Depends-on): fclose.
87658         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87660 2008-10-11  Bruno Haible  <bruno@clisp.org>
87662         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87663         set errno and don't call _close.
87665 2008-10-10  Bruno Haible  <bruno@clisp.org>
87667         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87668         ACL, not afterwards. Fixes test failure on Cygwin.
87670 2008-10-09  Ben Pfaff  <blp@gnu.org>
87672         * build-aux/announce-gen: Fix gnulib version related part of usage
87673         message.  Die with a useful error message if no tarballs are
87674         found.
87676 2008-10-10  Jim Meyering  <meyering@redhat.com>
87678         bootstrap: use git's --depth=N option only if it's supported
87679         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87680         recognize the --depth option.  Reported by Pádraig Brady.
87682 2008-10-09  Bruno Haible  <bruno@clisp.org>
87684         New module 'ioctl'.
87685         * modules/ioctl: New file.
87686         * lib/sys_socket.in.h (ioctl): Remove declaration.
87687         * lib/winsock.c: Include <sys/ioctl.h>.
87688         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87689         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87690         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87691         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87692         * doc/posix-functions/ioctl.texi: Mention the new module.
87694 2008-10-09  Bruno Haible  <bruno@clisp.org>
87696         New module 'sys_ioctl'.
87697         * lib/sys_ioctl.in.h: New file.
87698         * m4/sys_ioctl_h.m4: New file.
87699         * modules/sys_ioctl: New file.
87700         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87702 2008-10-09  Bruno Haible  <bruno@clisp.org>
87704         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87705         * lib/winsock.c: Include <stdarg.h>.
87706         (rpl_ioctl): Change to second argument 'int' and then varargs.
87708 2008-10-09  Bruno Haible  <bruno@clisp.org>
87710         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87711         when the sys_socket module is present and the system has <winsock2.h>.
87713 2008-10-09  Bruno Haible  <bruno@clisp.org>
87715         * doc/posix-functions/close.texi: Mention module 'close' instead of
87716         module 'sys_socket'.
87718 2008-10-09  Bruno Haible  <bruno@clisp.org>
87720         * doc/glibc-headers/sys_ioctl.texi: New file.
87721         * doc/gnulib.texi: Include it.
87723 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87724             Bruno Haible  <bruno@clisp.org>
87726         Combine the two replacements of 'close'.
87727         * lib/sys_socket.in.h (close): Define to a reminder to include
87728         <unistd.h>.
87729         (_gl_close_fd_maybe_socket): New declaration.
87730         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87731         * lib/winsock.c (close): Remove undefinition.
87732         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87733         needed for the gnulib module 'close'.
87734         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87735         define to an error symbol or to a warning, if suitable.
87736         * lib/close.c: Include <sys/socket.h>.
87737         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87738         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87739         UNISTD_H_HAVE_WINSOCK2_H.
87740         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87742         UNISTD_H_HAVE_WINSOCK2_H.
87743         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87744         (configure.ac): Set a module indicator.
87745         (Makefile.am): Substitute GNULIB_CLOSE.
87746         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87747         * modules/poll-tests (Depends-on): Add close.
87748         * modules/select-tests (Depends-on): Likewise.
87750 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87751             Bruno Haible  <bruno@clisp.org>
87753         New module 'close'.
87754         * modules/close: New file.
87755         * lib/unistd.in.h (close): Move declaration out of the
87756         FCHDIR_REPLACEMENT scope.
87757         (_gl_unregister_fd): New declaration.
87758         * lib/close.c: New file.
87759         * lib/fchdir.c (rpl_close): Remove function.
87760         * m4/close.m4: New file.
87761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87762         close.
87763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87764         REPLACE_CLOSE.
87765         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87766         REPLACE_CLOSE.
87767         * modules/fchdir (Depends-on): Add close.
87769 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87770             Bruno Haible  <bruno@clisp.org>
87772         * lib/fcntl.in.h (open): Simplify conditionals.
87773         (_gl_register_fd): New declaration.
87774         * lib/fchdir.c (rpl_open): Remove function.
87775         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87776         also.
87777         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87779         open.
87781 2008-10-09  Jim Meyering  <meyering@redhat.com>
87783         GNUmakefile: use the more name-space-friendly "_version"
87784         * top/GNUmakefile (_dummy): Update.
87785         (_version): Rename from "version".
87787 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87788             Bruno Haible  <bruno@clisp.org>
87790         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87791         rpl_close.
87792         (_gl_register_fd): New function, extracted from rpl_open.
87793         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87794         (rpl_open, rpl_opendir): Use _gl_register_fd.
87796 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87798         Fix organization of 'open' replacement.
87799         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87800         (gl_FUNC_OPEN): Use it.
87801         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87803 2008-10-08  Bruno Haible  <bruno@clisp.org>
87805         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87807 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87809         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87810         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87811         listen).
87813 2008-10-08  Eric Blake  <ebb9@byu.net>
87815         GNUmakefile: add 'make version' target
87816         * top/GNUmakefile (_curr-ver): Split version update rules...
87817         (version): ...into a target.
87819 2008-10-07  Bruno Haible  <bruno@clisp.org>
87821         Use a more portable replacement expression for -0.0L.
87822         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87823         instead of -0.0L. Fix m4 quotation.
87825         * tests/test-signbit.c: Include <float.h>.
87826         (minus_zero): New variable.
87827         (test_signbitl): Use minus_zero instead of -zero.
87828         * modules/signbit-tests (Depends-on): Add float.
87830         * tests/test-ceill.c: Include <float.h>.
87831         (zero): Remove variable.
87832         (minus_zero): New variable.
87833         (main): Use minus_zero instead of -zero.
87834         * modules/ceill-tests (Depends-on): Add float.
87836         * tests/test-floorl.c: Include <float.h>.
87837         (zero): Remove variable.
87838         (minus_zero): New variable.
87839         (main): Use minus_zero instead of -zero.
87840         * modules/floorl-tests (Depends-on): Add float.
87842         * tests/test-roundl.c: Include <float.h>.
87843         (zero): Remove variable.
87844         (minus_zero): New variable.
87845         (main): Use minus_zero instead of -zero.
87846         * modules/roundl-tests (Depends-on): Add float.
87848         * tests/test-truncl.c: Include <float.h>.
87849         (zero): Remove variable.
87850         (minus_zero): New variable.
87851         (main): Use minus_zero instead of -zero.
87852         * modules/truncl-tests (Depends-on): Add float.
87854         * tests/test-frexpl.c (zero): Remove variable.
87855         (minus_zero): New variable.
87856         (main): Use minus_zero instead of -zero.
87857         * modules/frexpl-tests (Depends-on): Add float.
87859         * tests/test-isnan.c (zerol): Remove variable.
87860         (minus_zerol): New variable.
87861         (test_long_double): Use minus_zerol instead of -zerol.
87862         * modules/isnan-tests (Depends-on): Add float.
87864         * tests/test-isnanl.h (zero): Remove variable.
87865         (minus_zero): New variable.
87866         (main): Use minus_zero instead of -zero.
87867         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87868         * modules/isnanl-tests (Depends-on): Add float.
87870         * tests/test-ldexpl.c (zero): Remove variable.
87871         (minus_zero): New variable.
87872         (main): Use minus_zero instead of -zero.
87873         * modules/ldexpl-tests (Depends-on): Add float.
87875         * tests/test-snprintf-posix.h (zerol): Remove variable.
87876         (minus_zerol): New variable.
87877         (test_function): Use minus_zerol instead of -zerol.
87878         * modules/snprintf-posix-tests (Depends-on): Add float.
87879         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87881         * tests/test-sprintf-posix.h (zerol): Remove variable.
87882         (minus_zerol): New variable.
87883         (test_function): Use minus_zerol instead of -zerol.
87884         * modules/sprintf-posix-tests (Depends-on): Add float.
87885         * modules/vsprintf-posix-tests (Depends-on): Add float.
87887         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87888         (minus_zerol): New variable.
87889         (test_function): Use minus_zerol instead of -zerol.
87890         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87892         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87893         (minus_zerol): New variable.
87894         (test_function): Use minus_zerol instead of -zerol.
87895         * modules/vasprintf-posix-tests (Depends-on): Add float.
87897 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87899         * MODULES.html.sh (Support for building documentation): Mention
87900         pmccabe2html.  Sort entries.
87902         Add pmccabe2html module, from gnupdf.
87903         * build-aux/pmccabe.css: New file.
87904         * build-aux/pmccabe2html: New file.
87905         * m4/pmccabe2html.m4: New file.
87906         * modules/pmccabe2html: New file.
87908 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87910         flock: new module
87911         * MODULES.html.sh: Add to list of modules.
87912         * lib/flock.c: flock implementation for Windows and Unix systems
87913         which have fcntl.
87914         * doc/glibc-functions/flock.texi: Update documentation.
87915         * lib/sys_file.in.h: <sys/file.h> header file.
87916         * m4/flock.m4: M4 macros.
87917         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87918         * modules/flock: flock module.
87919         * modules/flock-tests: flock tests module.
87920         * modules/sys_file: sys/file.h module.
87921         * tests/test-flock.c: test suite for flock.
87923 2008-10-06  Jim Meyering  <meyering@redhat.com>
87925         bootstrap: check for LT_INIT more portably still ;-)
87926         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87927         Spotted by Bruno Haible.
87929 2008-10-06  Eric Blake  <ebb9@byu.net>
87931         test-signbit: avoid tripping Irix cc bug on -0.0L
87932         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87933         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87934         entire testsuite consistent and avoids an Irix 6.2 bug.
87936 2008-10-05  Bruno Haible  <bruno@clisp.org>
87937             Jim Meyering  <jim@meyering.net>
87939         Add an option for ignoring EPIPE during close_stdout.
87940         * lib/closeout.h: Include <stdbool.h>.
87941         (close_stdout_set_ignore_EPIPE): New declaration.
87942         * lib/closeout.c: Include <stdbool.h>.
87943         (ignore_EPIPE): New variable.
87944         (close_stdout_set_ignore_EPIPE): New function.
87945         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87946         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87947         failure.
87948         * modules/closeout (Depends-on): Add stdbool.
87950 2008-10-05  Bruno Haible  <bruno@clisp.org>
87952         * modules/accept: New file.
87953         * modules/bind: New file.
87954         * modules/connect: New file.
87955         * modules/getpeername: New file.
87956         * modules/getsockname: New file.
87957         * modules/getsockopt: New file.
87958         * modules/listen: New file.
87959         * modules/recv: New file.
87960         * modules/recvfrom: New file.
87961         * modules/send: New file.
87962         * modules/sendto: New file.
87963         * modules/setsockopt: New file.
87964         * modules/socket: New file.
87965         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87966         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87967         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87968         the particular module is requested. Add a link warning when the
87969         particular module is not requested.
87970         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87971         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87972         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87973         the particular module is requested.
87974         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87975         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87976         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87977         * modules/sys_socket (Depends-on): Add link-warning.
87978         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87979         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87980         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87981         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87982         GL_LINK_WARNING.
87983         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87984         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87985         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87986         * doc/posix-functions/getpeername.texi: Mention the new module
87987         'getpeername'.
87988         * doc/posix-functions/getsockname.texi: Mention the new module
87989         'getsockname'.
87990         * doc/posix-functions/getsockopt.texi: Mention the new module
87991         'getsockopt'.
87992         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87993         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87994         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87995         * doc/posix-functions/send.texi: Mention the new module 'send'.
87996         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87997         * doc/posix-functions/setsockopt.texi: Mention the new module
87998         'setsockopt'.
87999         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
88000         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
88001         listen, connect, accept.
88002         * modules/select-tests (Depends-on): Likewise.
88004 2008-10-05  Bruno Haible  <bruno@clisp.org>
88006         * lib/winsock.c (strerror): Remove unused #undef.
88007         (rpl_close): Remove unused local variable.
88009         * modules/sys_socket (Depends-on); Add errno.
88011 2008-10-05  Bruno Haible  <bruno@clisp.org>
88013         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
88014         (select): Add a link warning when the 'select' module is not used.
88015         * modules/sys_select (Depends-on): Add link-warning.
88016         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
88017         Suggested by Paolo Bonzini.
88019 2008-10-05  Jim Meyering  <meyering@redhat.com>
88021         bootstrap: check for LT_INIT more portably
88022         * build-aux/bootstrap: Avoid using grep -E, since it's not
88023         portable enough.  Suggestion from Bruno Haible.
88025 2008-10-05  Bruno Haible  <bruno@clisp.org>
88027         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
88028         as being fixed by gnulib.
88030 2008-10-05  Bruno Haible  <bruno@clisp.org>
88032         * modules/select-tests: New file, mostly copied from
88033         modules/sys_select-tests.
88034         * tests/test-select.c: New file, mostly copied from
88035         tests/test-sys_select.c.
88036         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
88037         * modules/sys_select-tests (Depends-on): Remove all dependencies.
88038         (Makefile.am): Remove test_sys_select_LDADD.
88040         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
88041         to an undefined symbol, for an error message.
88042         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
88043         (gl_SYS_SELECT_H_DEFAULTS): New macro.
88044         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
88045         winsock-select.c here.
88046         * modules/sys_select (Files): Remove lib/winsock-select.c.
88047         (Depends-on): Remove alloca.
88048         (Makefile.am): Substitute GNULIB_SELECT.
88049         * modules/select: New file.
88050         * doc/posix-functions/select.texi: Update.
88052 2008-10-05  Bruno Haible  <bruno@clisp.org>
88054         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
88055         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
88056         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
88057         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
88058         getdtablesize.
88059         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
88060         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
88062 2008-10-05  Bruno Haible  <bruno@clisp.org>
88064         * modules/getdtablesize-tests: New file.
88065         * tests/test-getdtablesize.c: New file.
88067         New module 'getdtablesize'.
88068         * lib/unistd.in.h (getdtablesize): New declaration.
88069         * lib/getdtablesize.c: New file.
88070         * m4/getdtablesize.m4: New file.
88071         * modules/getdtablesize: New file.
88072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88073         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
88074         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
88075         HAVE_GETDTABLESIZE.
88076         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
88078 2008-10-05  Bruno Haible  <bruno@clisp.org>
88080         * modules/sched (Makefile.am): Fix typo.
88081         Reported by Simon Josefsson.
88083 2008-10-05  Jim Meyering  <meyering@redhat.com>
88085         bootstrap: check for LT_INIT, too
88086         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
88087         are deprecated.  Suggestion from Ralf Wildenhues.
88089 2008-10-05  Bruno Haible  <bruno@clisp.org>
88091         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
88092         overriding them by ours.
88093         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
88095 2008-10-05  Jim Meyering  <meyering@redhat.com>
88097         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
88098         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
88099         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
88101 2008-10-04  Bruno Haible  <bruno@clisp.org>
88103         * modules/dup2 (License): Change to LGPLv2+.
88104         * modules/sleep (License): Likewise.
88105         * modules/perror (License): Likewise.
88106         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
88107         Blake.
88108         * modules/signal (License): Likewise.
88109         * modules/sigprocmask (License): Likewise.
88110         * modules/raise (License): Change to LGPLv2+, with approval by Jim
88111         Meyering.
88113 2008-10-04  Bruno Haible  <bruno@clisp.org>
88115         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
88116         Reported by Rainer Tammer <tammer@tammer.net>.
88118 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
88119             Bruno Haible  <bruno@clisp.org>
88121         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
88122         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
88123         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
88125 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
88127         filevercmp: new module
88128         * lib/filevercmp.h: New function filevercmp comparing version strings.
88129         * lib/filevercmp.c: Implementation of filevercmp function.
88130         * modules/filevercmp: Module metadata.
88131         * tests/test-filevercmp.c: Unit test for new module.
88132         * modules/filevercmp-tests: Unit test metadata.
88133         * MODULES.html.sh: Add filevercmp module.
88135 2008-10-03  Bruno Haible  <bruno@clisp.org>
88137         * lib/c-ctype.h: Add comment.
88138         Reported by Jim Meyering.
88140 2008-10-02  Bruno Haible  <bruno@clisp.org>
88142         * modules/posix_spawn-internal (Depends-on): Add 'open'.
88144 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88146         * build-aux/bootstrap: Allow renaming bootstrap, and change the
88147         name of bootstrap.conf accordingly.
88149 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88151         * build-aux/bootstrap: Install git-merge-changelog configuration
88152         items into .gitconfig if needed.
88154 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88156         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
88157         git repository, and initialize/update it accordingly.
88159 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
88161         * modules/fsync-tests: New file.
88162         * tests/test-fsync.c: New file.
88164         New module 'fsync'.
88165         * lib/fsync.c: New file.
88166         * m4/fsync.m4: New file.
88167         * modules/fsync: New file.
88168         * lib/unistd.in.h (fsync): New declaration.
88169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
88170         GNULIB_FSYNC and HAVE_FSYNC.
88171         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
88172         * MODULES.html.sh (posix_functions): Add fsync.
88173         * doc/posix-functions/fsync.texi: Mention the new module.
88175 2008-10-02  Jim Meyering  <meyering@redhat.com>
88177         fts.c: sync with similar code from coreutils' remove.c
88178         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
88179         Guard also with "#if defined __linux__", since for now at least,
88180         this code is Linux-kernel-specific.
88182 2008-10-02  Jim Meyering  <meyering@redhat.com>
88184         fts: bug fixes
88185         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
88186         Include <sys/vfs.h>, not <sys/statfs.h>.
88188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
88189         Include <sys/vfs.h>, not <sys/statfs.h>.
88191 2008-10-01  Bruno Haible  <bruno@clisp.org>
88193         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
88194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
88195         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
88196         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
88197         * doc/posix-functions/posix_spawnp.texi: Likewise.
88198         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
88199         whether posix_spawn actually works.
88200         * m4/pipe.m4 (gl_PIPE): Likewise.
88201         * modules/execute (Files): Add m4/posix_spawn.m4.
88202         * modules/pipe (Files): Add m4/posix_spawn.m4.
88203         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
88205 2008-10-01  Jim Meyering  <meyering@redhat.com>
88207         remove trailing spaces
88208         * NEWS: Likewise.
88209         * lib/poll.c (poll): Likewise.
88210         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
88211         * lib/winsock.c (rpl_close): Likewise.
88212         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
88213         * modules/yield: Likewise.
88214         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
88215         * tests/test-sys_select.c (connect_to_socket): Likewise.
88217         fts.c: adjust a new interface to be more generally useful
88218         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
88219         (fts_build): Adjust caller.
88221 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88223         * modules/cond-tests: New file.
88224         * tests/test-cond.c: New file.
88226 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88227             Bruno Haible  <bruno@clisp.org>
88229         * modules/cond (Dependencies): Add errno, time.
88230         * lib/glthread/cond.h: Include <time.h>.
88231         (gl_cond_define, gl_cond_define_initialized): Use the same definition
88232         across platforms.
88234 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88235             Bruno Haible  <bruno@clisp.org>
88237         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
88239 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88240             Bruno Haible  <bruno@clisp.org>
88242         * modules/tls-tests (Depends-on): Add thread, yield.
88243         (configure.ac): Remove all checks.
88244         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
88245         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88246         gl_thread_self): Remove definitions. Include glthread/thread.h and
88247         glthread/yield.h instead.
88248         (test_tls): Pass an additional NULL argument to gl_thread_join.
88250 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88251             Bruno Haible  <bruno@clisp.org>
88253         * modules/lock-tests (Depends-on): Add thread, yield.
88254         (configure.ac): Remove all checks.
88255         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
88256         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88257         gl_thread_self): Remove definitions. Include glthread/thread.h and
88258         glthread/yield.h instead.
88259         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
88260         additional NULL argument to gl_thread_join.
88262 2008-09-30  Bruno Haible  <bruno@clisp.org>
88264         Fix the Win32 implementation of the 'thread' module.
88265         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
88266         pointer type.
88267         (gl_thread_self): Invoke gl_thread_self_func.
88268         (gl_thread_self_func): New declaration.
88269         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
88270         (do_init_self_key, init_self_key): New functions.
88271         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
88272         Remove some fields.
88273         (running_threads, running_lock): Remove variables.
88274         (get_current_thread_handle): New function.
88275         (gl_thread_self_func, wrapper_func, glthread_create_func,
88276         glthread_join_func, gl_thread_exit_func): Largely rewritten and
88277         simplified.
88279 2008-09-30  Bruno Haible  <bruno@clisp.org>
88281         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
88282         files.
88284 2008-09-30  Jim Meyering  <meyering@redhat.com>
88286         fts.m4: correct the test for statfs.f_type
88287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
88288         when checking for statfs.f_type.
88290 2008-09-15  Simon Josefsson  <simon@josefsson.org>
88292         tests: avoid some compiler warnings
88293         * tests/test-memchr.c (main): Pass NULL indirectly.
88294         * tests/test-getdate.c (main): Remove unused variable 'ret'.
88296 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
88298         getdate.y: disallow countable dayshifts like "4 yesterday ago"
88299         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
88300         exactly specified dayshifts.
88301         (dayshift): New rule.
88302         (rel): Add dayshift.
88303         (relative_time_table) [tomorrow, yesterday, today, now]:
88304         Use tDAY_SHIFT in place of tDAY_UNIT.
88305         * tests/test-getdate.c: Add tests for now-disallowed countable
88306         dayshifts, e.g., "4 yesterday ago".
88308 2008-09-29  Bruno Haible  <bruno@clisp.org>
88310         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
88311         * tests/test-posix_spawn1.in.sh: Renamed from
88312         tests/test-posix_spawn.in.sh.
88313         * tests/test-posix_spawn2.c: New file.
88314         * tests/test-posix_spawn2.in.sh: New file.
88315         * modules/posix_spawnp-tests (Files): Update.
88316         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
88318 2008-09-29  Bruno Haible  <bruno@clisp.org>
88320         Propagate effects of putenv/setenv/unsetenv to child processes.
88321         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
88322         * lib/pipe.c (create_pipe): Likewise.
88324 2008-09-29  Bruno Haible  <bruno@clisp.org>
88326         Enable use of shell scripts as executables in mingw.
88327         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
88328         run the program as a shell script.
88329         * lib/pipe.c (create_pipe): Likewise.
88330         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
88331         resulting array.
88333 2008-09-29  Eric Blake  <ebb9@byu.net>
88335         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
88337 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
88339         * doc/posix-functions/accept.texi: Update mingw problems.
88340         * doc/posix-functions/bind.texi: Update mingw problems.
88341         * doc/posix-functions/close.texi: Update mingw problems.
88342         * doc/posix-functions/connect.texi: Update mingw problems.
88343         * doc/posix-functions/getpeername.texi: Update mingw problems.
88344         * doc/posix-functions/getsockname.texi: Update mingw problems.
88345         * doc/posix-functions/getsockopt.texi: Update mingw problems.
88346         * doc/posix-functions/ioctl.texi: Update mingw problems.
88347         * doc/posix-functions/listen.texi: Update mingw problems.
88348         * doc/posix-functions/recv.texi: Update mingw problems.
88349         * doc/posix-functions/recvfrom.texi: Update mingw problems.
88350         * doc/posix-functions/select.texi: Update mingw problems.
88351         * doc/posix-functions/send.texi: Update mingw problems.
88352         * doc/posix-functions/sendto.texi: Update mingw problems.
88353         * doc/posix-functions/setsockopt.texi: Update mingw problems.
88354         * doc/posix-functions/socket.texi: Update mingw problems.
88356 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
88357             Bruno Haible  <bruno@clisp.org>
88359         * lib/sys_select.in.h: Include sys/time.h.
88360         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
88361         * modules/sys_select: Depend on sys_time.
88362         * tests/test-sys_select.c: Test that sys/select.h defines struct
88363         timeval fully.
88365 2008-09-29  Bruno Haible  <bruno@clisp.org>
88367         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
88368         * lib/sys_select.in.h: Likewise.
88370 2008-09-29  Bruno Haible  <bruno@clisp.org>
88372         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
88374 2008-09-29  Bruno Haible  <bruno@clisp.org>
88376         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
88377         Set LIBSOCKET instead of augmenting LIBS.
88378         * modules/sockets (Link): New section.
88379         * modules/sockets-tests (test_sockets_LDADD): New variable.
88380         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
88381         * modules/poll-tests (test_poll_LDADD): New variable.
88382         * NEWS: Document the change.
88384 2008-09-29  Bruno Haible  <bruno@clisp.org>
88386         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
88387         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
88388         ARPA_INET_H directly.
88389         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88391 2008-09-28  Bruno Haible  <bruno@clisp.org>
88393         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
88394         from gl_HEADER_SYS_SOCKET.
88395         (gl_HEADER_SYS_SOCKET): Invoke it.
88396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
88398 2008-09-28  Bruno Haible  <bruno@clisp.org>
88400         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
88401         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
88402         Needed on OSF/1 4.0.
88404 2008-09-28  Bruno Haible  <bruno@clisp.org>
88406         Override open more carefully.
88407         * lib/open.c (orig_open): New function.
88408         (rpl_open): Use orig_open instead of open.
88409         * lib/fcntl.in.h: Add special invocation convention.
88410         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
88411         (gl_FUNC_OPEN): Invoke it.
88413         Override freopen more carefully.
88414         * lib/freopen.c (orig_freopen): New function.
88415         (rpl_freopen): Use orig_freopen instead of freopen.
88416         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
88417         (gl_FUNC_FREOPEN): Invoke it.
88419         Override fopen more carefully.
88420         * lib/fopen.c (orig_fopen): New function.
88421         (rpl_fopen): Use orig_fopen instead of fopen.
88422         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
88423         (gl_FUNC_FOPEN): Invoke it.
88424         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
88426 2008-09-28  Bruno Haible  <bruno@clisp.org>
88428         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
88429         SIGPIPE.
88431 2008-09-28  Bruno Haible  <bruno@clisp.org>
88433         * tests/test-sigaction.c (handler, main): Disable the check whether
88434         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
88435         glibc systems with LinuxThreads.
88437 2008-09-28  Bruno Haible  <bruno@clisp.org>
88439         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
88441         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
88442         with AIX xlc.
88443         * lib/fcntl.in.h (open): Likewise.
88444         Reported by Rainer Tammer <tammer@tammer.net>.
88446 2008-09-28  Bruno Haible  <bruno@clisp.org>
88448         * modules/posix_spawnp-tests: New file.
88449         * tests/test-posix_spawn.c: New file.
88450         * tests/test-posix_spawn.in.sh: New file.
88452         New module 'posix_spawnp'.
88453         * modules/posix_spawnp: New file.
88454         * lib/spawnp.c: New file, from GNU libc with modifications.
88455         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
88457         New module 'posix_spawn'.
88458         * modules/posix_spawn: New file.
88459         * lib/spawn.c: New file, from GNU libc with modifications.
88460         * doc/posix-functions/posix_spawn.texi: Mention the new module.
88462         New module 'posix_spawnattr_destroy'.
88463         * modules/posix_spawnattr_destroy: New file.
88464         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
88465         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
88466         module.
88468         New module 'posix_spawnattr_setsigmask'.
88469         * modules/posix_spawnattr_setsigmask: New file.
88470         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
88471         modifications.
88472         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
88473         new module.
88475         New module 'posix_spawnattr_getsigmask'.
88476         * modules/posix_spawnattr_getsigmask: New file.
88477         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
88478         modifications.
88479         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
88480         new module.
88482         New module 'posix_spawnattr_setsigdefault'.
88483         * modules/posix_spawnattr_setsigdefault: New file.
88484         * lib/spawnattr_setdefault.c: New file, from GNU libc with
88485         modifications.
88486         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
88487         new module.
88489         New module 'posix_spawnattr_getsigdefault'.
88490         * modules/posix_spawnattr_getsigdefault: New file.
88491         * lib/spawnattr_getdefault.c: New file, from GNU libc with
88492         modifications.
88493         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
88494         new module.
88496         New module 'posix_spawnattr_setschedpolicy'.
88497         * modules/posix_spawnattr_setschedpolicy: New file.
88498         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
88499         modifications.
88500         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
88501         new module.
88503         New module 'posix_spawnattr_getschedpolicy'.
88504         * modules/posix_spawnattr_getschedpolicy: New file.
88505         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
88506         modifications.
88507         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
88508         new module.
88510         New module 'posix_spawnattr_setschedparam'.
88511         * modules/posix_spawnattr_setschedparam: New file.
88512         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
88513         modifications.
88514         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
88515         new module.
88517         New module 'posix_spawnattr_getschedparam'.
88518         * modules/posix_spawnattr_getschedparam: New file.
88519         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
88520         modifications.
88521         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
88522         new module.
88524         New module 'posix_spawnattr_setpgroup'.
88525         * modules/posix_spawnattr_setpgroup: New file.
88526         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
88527         modifications.
88528         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
88529         module.
88531         New module 'posix_spawnattr_getpgroup'.
88532         * modules/posix_spawnattr_getpgroup: New file.
88533         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
88534         modifications.
88535         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
88536         module.
88538         New module 'posix_spawnattr_setflags'.
88539         * modules/posix_spawnattr_setflags: New file.
88540         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
88541         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
88542         module.
88544         New module 'posix_spawnattr_getflags'.
88545         * modules/posix_spawnattr_getflags: New file.
88546         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
88547         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
88548         module.
88550         New module 'posix_spawnattr_init'.
88551         * modules/posix_spawnattr_init: New file.
88552         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
88553         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
88554         module.
88556         New module 'posix_spawn_file_actions_destroy'.
88557         * modules/posix_spawn_file_actions_destroy: New file.
88558         * lib/spawn_faction_destroy.c: New file, from GNU libc with
88559         modifications.
88560         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
88561         the new module.
88563         New module 'posix_spawn_file_actions_addopen'.
88564         * modules/posix_spawn_file_actions_addopen: New file.
88565         * lib/spawn_faction_addopen.c: New file, from GNU libc with
88566         modifications.
88567         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
88568         the new module.
88570         New module 'posix_spawn_file_actions_adddup2'.
88571         * modules/posix_spawn_file_actions_adddup2: New file.
88572         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
88573         modifications.
88574         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
88575         the new module.
88577         New module 'posix_spawn_file_actions_addclose'.
88578         * modules/posix_spawn_file_actions_addclose: New file.
88579         * lib/spawn_faction_addclose.c: New file, from GNU libc with
88580         modifications.
88581         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
88582         the new module.
88584         New module 'posix_spawn_file_actions_init'.
88585         * modules/posix_spawn_file_actions_init: New file.
88586         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88587         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88588         new module.
88590         New module 'posix_spawn-internal'.
88591         * modules/posix_spawn-internal: New file.
88592         * lib/spawn_int.h: New file, from GNU libc with modifications.
88593         * lib/spawni.c: New file, from GNU libc with modifications.
88594         * m4/posix_spawn.m4: New file.
88596         New module 'spawn'.
88597         * modules/spawn: New file.
88598         * lib/spawn.in.h: New file, from GNU libc with modifications.
88599         * m4/spawn_h.m4: New file.
88600         * doc/posix-headers/spawn.texi: Mention the new module.
88602 2008-09-28  Bruno Haible  <bruno@clisp.org>
88604         * modules/sched-tests: New file.
88605         * tests/test-sched.c: New file.
88607         New module 'sched'.
88608         * modules/sched: New file.
88609         * lib/sched.in.h: New file.
88610         * m4/sched_h.m4: New file.
88611         * doc/posix-headers/sched.texi: Mention the new module.
88613 2008-09-27  Eric Blake  <ebb9@byu.net>
88615         Fix previous patch, and tweak references to $0.
88616         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88617         (func_version, func_gnulib_dir): Don't call this program
88618         gnulib-tool.
88619         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88620         with using $0 in function.
88621         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88622         (func_fatal_error): Reuse the name the user invoked us with.
88624 2008-09-27  Bruno Haible  <bruno@clisp.org>
88626         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88627         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88628         (gl_ICONV_H): Not here.
88629         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88630         instead of assigning ICONV_H directly.
88632         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88634         WCHAR_H directly.
88636 2008-09-27  Bruno Haible  <bruno@clisp.org>
88638         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88639         * modules/arpa_inet (Depends-on): Add link-warning.
88640         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88641         * modules/unistd (Makefile.am): Likewise.
88643 2008-09-26  Bruno Haible  <bruno@clisp.org>
88645         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88646         variables.
88647         (func_version): Essentially copied from gnulib-tool.
88648         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88649         func_readlink): Copied from gnulib-tool.
88651 2008-09-26  Bruno Haible  <bruno@clisp.org>
88653         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88654         invoking git-version-gen.
88656 2008-09-26  Bruno Haible  <bruno@clisp.org>
88658         * posix-modules: Update to directory names changed on 2008-01-19.
88659         Remove commas in output before splitting into words. No more need to
88660         avoid 'ftruncate' since 2007-02-19.
88662 2008-09-26  Bruno Haible  <bruno@clisp.org>
88664         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88666 2008-09-26  Bruno Haible  <bruno@clisp.org>
88668         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88669         * modules/fwriteerror (Depends-on): Add errno.
88671 2008-09-26  Bruno Haible  <bruno@clisp.org>
88673         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88674         * tests/test-vc-list-files-cvs.sh: Likewise.
88676 2008-09-26  Bruno Haible  <bruno@clisp.org>
88678         * doc/posix-headers/sys_resource.texi: Reorder items.
88680 2008-09-26  Jim Meyering  <meyering@redhat.com>
88682         fts: tweak inode comparison function
88683         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88684         inode numbers, as documented.
88686         fts: sort dirent entries on inode number before traversing
88687         This avoids a quadratic, seek-related performance penalty when
88688         operating on a directory containing many entries (measurable at 10k;
88689         3.5 hours at 2 million entries with a cold cache) on certain types
88690         of file systems, including ext3 and ext4, but not tmpfs.
88691         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88692         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88693         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88694         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88695         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88696         (fts_build): Set the stat.st_ino member from D_INO.
88697         If it is likely to be useful, sort dirent entries on inode number.
88699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88700         and the struct statfs.f_type member.
88701         * modules/fts (Depends-on): Add d-ino.
88703 2008-09-26  Bruno Haible  <bruno@clisp.org>
88705         * modules/sigpipe-die (Depends-on): Add sigpipe.
88707         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88708         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88709         and GNULIB_STDIO_H_SIGPIPE are set.
88710         * lib/stdio-write.c: New file.
88711         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88712         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88713         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88714         REPLACE_STDIO_WRITE_FUNCS.
88715         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88716         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88717         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88718         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88719         * modules/stdio (Files): Add lib/stdio-write.c.
88720         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88721         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88722         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88723         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88724         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88725         REPLACE_FPRINTF_POSIX.
88726         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88727         REPLACE_PRINTF_POSIX.
88728         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88729         REPLACE_VFPRINTF_POSIX.
88730         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88731         REPLACE_VPRINTF_POSIX.
88732         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88733         SIGPIPE issue.
88734         * doc/posix-functions/fputc.texi: Likewise.
88735         * doc/posix-functions/fputs.texi: Likewise.
88736         * doc/posix-functions/fwrite.texi: Likewise.
88737         * doc/posix-functions/printf.texi: Likewise.
88738         * doc/posix-functions/putc.texi: Likewise.
88739         * doc/posix-functions/putchar.texi: Likewise.
88740         * doc/posix-functions/puts.texi: Likewise.
88741         * doc/posix-functions/vfprintf.texi: Likewise.
88742         * doc/posix-functions/vprintf.texi: Likewise.
88744         * modules/safe-write (Depends-on): Add write.
88746         * modules/sigpipe-tests: New file.
88747         * tests/test-sigpipe.c: New file.
88748         * tests/test-sigpipe.sh: New file.
88750         * modules/write: New file.
88751         * lib/unistd.in.h: Include <sys/types.h>.
88752         (write): New declaration.
88753         * lib/write.c: New file.
88754         * m4/write.m4: New file.
88755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88756         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88757         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88758         GNULIB_WRITE, REPLACE_WRITE.
88759         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88760         and the SIGPIPE issue.
88762         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88763         (raise): New declaration.
88764         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88765         (ext_signal): New function.
88766         (rpl_raise): New function.
88767         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88768         GNULIB_SIGNAL_H_SIGPIPE.
88769         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88770         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88772         * modules/sigpipe: New file.
88773         * m4/sigpipe.m4: New file.
88775 2008-09-25  Derek Price  <derek@ximbiot.com>
88776             Bruno Haible  <bruno@clisp.org>
88778         * gnulib-tool (func_import): Report all license incompatibilities, not
88779         just the first one.
88781 2008-09-25  Bruno Haible  <bruno@clisp.org>
88783         * gnulib-tool (func_import): When computing the edits, consider not
88784         only the Makefile.ams that exist but also those that will be generated.
88786 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88788         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88789         fixes gnulib-tool --test warning about duplicate dependency.
88791 2008-09-25  Bruno Haible  <bruno@clisp.org>
88793         * gnulib-tool: Don't ask the user to perform edits in the generated
88794         Makefile.ams.
88795         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88796         apply to the Makefile.am being generated.
88797         (func_emit_tests_Makefile_am): Execute edits that apply to the
88798         Makefile.am being generated.
88799         (func_import): Setup list of Makefile.am edits before emitting the
88800         Makefile.ams, not at the end.
88801         (func_create_testdir): Update.
88802         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88804 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88806         * gnulib-tool (func_import): Store the --tests-base option in the
88807         comment in gnulib-cache.m4.
88809 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88811         * NEWS: Document increased portability that sys_select now provides.
88813         * lib/sys_select.in.h: Install select wrapper.
88814         * lib/sys_socket.in.h: Use more descriptive name when there is no
88815         select wrapper.
88816         * lib/winsock-select.c: New.
88817         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88818         Require gl_HEADER_SYS_SOCKET.
88819         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88820         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88821         * tests/test-sys_select.c: Add functional tests.
88823 2008-09-24  Eric Blake  <ebb9@byu.net>
88825         open, fopen: close fd leak in last patch
88826         * lib/open.c (rpl_open): Close fd before returning error.
88827         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88828         * doc/posix-functions/open.texi (open): Document that Irix also
88829         has the bug.
88830         * doc/posix-functions/fopen.texi (fopen): Likewise.
88831         Reported by Paolo Bonzini.
88833 2008-09-24  Bruno Haible  <bruno@clisp.org>
88835         Ensure that a filename ending in a slash cannot be used to access a
88836         non-directory.
88837         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88838         to check whether it's really a directory.
88839         * lib/fopen.c: Include fcntl.h, unistd.h.
88840         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88841         and fdopen().
88842         * modules/fopen (Depends-on): Add unistd.
88843         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88844         * tests/test-fopen.c (main): Likewise.
88845         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88846         * doc/posix-functions/fopen.texi: Likewise.
88847         Reported by Eric Blake.
88849 2008-09-23  Eric Blake  <ebb9@byu.net>
88851         c-stack: avoid compiler optimizations when provoking overflow
88852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88853         recursion harder to optimize, to ensure a stack overflow occurs.
88854         * tests/test-c-stack.c (recurse): Likewise.
88855         Borrowed from libsigsegv.
88857         c-stack: work around Irix sigaltstack bug
88858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88859         whether sigaltstack uses wrong end of stack_t (copied in part from
88860         libsigsegv).
88861         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88862         Irix bug, without requiring an over-allocation.
88863         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88864         bug.
88866         fopen: document mingw bug on directories
88867         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88868         not allowing a stream visiting a directory, even though reading
88869         from such a stream is not portable.
88871 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88873         * lib/poll.c: Rewrite.
88874         * modules/poll: Depend on alloca.
88876 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88878         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88879         instead define prototypes for a full set of wrappers.  Ensure
88880         that Cygwin does not use the compatibility code, which is only
88881         for MinGW.
88882         * lib/winsock.c: New.
88883         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88884         * modules/sys_socket: Add lib/winsock.c.
88886         * modules/poll-tests: Add errno and perror.
88887         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88889 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88891         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88893 2008-09-23  Bruno Haible  <bruno@clisp.org>
88895         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88896         * doc/glibc-functions/*: Likewise.
88898 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88900         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88901         success.
88903 2008-09-22  Eric Blake  <ebb9@byu.net>
88904             Bruno Haible  <bruno@clisp.org>
88906         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88907         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88908         supply %A but mishandle pseudo-NaN.
88909         Reported by Simon Josefsson.
88911 2008-09-21  Bruno Haible  <bruno@clisp.org>
88913         * tests/test-lock.c (main): Tweak skip message.
88914         * tests/test-tls.c (main): Likewise.
88916 2008-09-21  Bruno Haible  <bruno@clisp.org>
88918         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88919         whether 'struct sigaction' has sa_sigaction here...
88920         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88921         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88923 2008-09-21  Bruno Haible  <bruno@clisp.org>
88925         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88926         section.
88927         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88928         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88929         the new section.
88930         (Support for obsolete systems lacking POSIX:2001): New section.
88931         (String handling <string.h>): Move strdup to the new section.
88932         Suggested by Simon Josefsson and Paolo Bonzini.
88934 2008-09-21  Bruno Haible  <bruno@clisp.org>
88936         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88937         exponents in %e and %g results on 'long double'. Needed for mingw's
88938         improved *printf functions.
88939         * tests/test-vasprintf-posix.c (test_function): Likewise.
88940         * tests/test-snprintf-posix.h (test_function): Likewise.
88941         * tests/test-sprintf-posix.h (test_function): Likewise.
88942         Reported by Eric Blake.
88944 2008-09-21  Bruno Haible  <bruno@clisp.org>
88946         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88947         * tests/test-sprintf-posix.h (test_function): Likewise.
88949 2008-09-21  Bruno Haible  <bruno@clisp.org>
88951         * modules/getpass (Depends-on): Add strdup-posix.
88953         New module 'strdup-posix'.
88954         * modules/strdup-posix: New file.
88955         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88956         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88958         REPLACE_STRDUP.
88959         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88960         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88962         strdup-posix.
88964         * modules/strdup (Depends-on): Remove malloc-posix.
88966 2008-09-20  Bruno Haible  <bruno@clisp.org>
88968         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88969         Wildenhues.
88971 2008-09-20  Bruno Haible  <bruno@clisp.org>
88973         Ensure that wint_t gets defined on IRIX 5.3.
88974         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88975         * lib/wctype.in.h (wint_t): Likewise.
88976         (__wctype_wint_t): Remove type.
88977         (isw*): Use wint_t instead of __wctype_wint_t.
88978         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88979         * modules/wchar (Files): Add m4/wint_t.m4.
88980         (Makefile.am): Substitute HAVE_WINT_T.
88981         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88982         * tests/test-wctype.c: Check that wint_t is defined.
88983         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88984         * doc/posix-headers/wctype.texi: Likewise.
88985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88987 2008-09-18  Bruno Haible  <bruno@clisp.org>
88989         * gnulib-tool (func_exit): Update comment.
88991 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88993         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88994         assumes strdup exists and does not depend on strdup to return
88995         ENOMEM on out of memory conditions.
88997 2008-09-18  Bruno Haible  <bruno@clisp.org>
88999         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
89000         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
89001         digits for the exponent.
89003 2008-09-18  Jim Meyering  <meyering@redhat.com>
89004             Bruno Haible  <bruno@clisp.org>
89006         * lib/vasnprintf.c (decimal_point_char): Define also if
89007         NEED_PRINTF_INFINITE_LONG_DOUBLE.
89009 2008-09-16  Bruno Haible  <bruno@clisp.org>
89010         and Eric Blake  <ebb9@byu.net>
89012         vasnprintf: support Irix 5.3
89013         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
89014         that mishandle long double infinity.
89015         Reported by Tom G. Christensen.
89017 2008-09-16  Bruno Haible  <bruno@clisp.org>
89019         * doc/glibc-functions/scandir.texi: Mention the function is missing on
89020         Solaris 9.
89021         * doc/glibc-functions/alphasort.texi: Likewise.
89022         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
89024 2008-09-16  Jim Meyering  <meyering@redhat.com>
89026         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
89027         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
89028         a umask modification leak out of a subshell.  Otherwise, the
89029         opensolaris /bin/sh would be accepted and thus cause unwarranted
89030         failures in the coreutils test suite.
89032 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
89034         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
89035         to succeed.
89037 2008-09-16  Jim Meyering  <meyering@redhat.com>
89039         avoid spurious test failure when library is built without ACL support
89040         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
89041         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
89042         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
89043         * tests/test-copy-acl.sh: Likewise.
89045 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89047         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
89048         based on character occurrence counts.
89050 2008-09-15  Eric Blake  <ebb9@byu.net>
89052         tests: avoid some compiler warnings
89053         * tests/test-memchr.c (main): Pass NULL indirectly.
89054         * tests/test-closein.c (main): Avoid unused variable.
89056 2008-09-15  Bruno Haible  <bruno@clisp.org>
89058         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
89059         are missing on OpenBSD 4.0 individually.
89060         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89062 2008-09-15  Bruno Haible  <bruno@clisp.org>
89064         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
89065         * doc/posix-functions/strerror.texi: Mention also Cygwin.
89066         * doc/posix-functions/perror.texi: Likewise.
89067         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
89068         is missing.
89069         Reported by Eric Blake.
89071         * lib/errno.in.h: Use replacement values >= 2000.
89072         Reported by Eric Blake.
89074 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89076         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
89077         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
89078         limit.
89079         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
89080         compareseq was aborted.
89082 2008-09-14  Bruno Haible  <bruno@clisp.org>
89084         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
89085         yvec_edit_count.
89086         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
89087         (fstrcmp_bounded): Simplify result computation accordingly.
89089 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89091         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
89092         (fstrcmp): Define in terms of fstrcmp_bounded.
89093         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
89094         lower_bound argument.
89095         Return quickly if the result is certainly < lower_bound.
89096         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
89098 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89100         * lib/diffseq.h (EARLY_ABORT): New macro.
89101         (compareseq): Change return type to bool. Return true when EARLY_ABORT
89102         evaluates to true.
89104 2008-09-14  Bruno Haible  <bruno@clisp.org>
89106         * modules/perror-tests: New file.
89107         * tests/test-perror.sh: New file.
89108         * tests/test-perror.c: New file.
89110         New module 'perror'.
89111         * lib/stdio.in.h (perror): New declaration.
89112         * lib/perror.c: New file.
89113         * m4/perror.m4: New file.
89114         * modules/perror: New file.
89115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
89116         * doc/posix-functions/perror.texi: Mention the perror module.
89117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
89118         REPLACE_PERROR.
89119         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
89120         REPLACE_PERROR.
89122 2008-09-14  Bruno Haible  <bruno@clisp.org>
89124         * modules/stdio (Makefile.am): Reorder to match the order in
89125         lib/stdio.in.h.
89126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89128 2008-09-13  Bruno Haible  <bruno@clisp.org>
89130         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
89132 2008-09-13  Bruno Haible  <bruno@clisp.org>
89134         Extend strerror to cover the added errno values.
89135         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
89136         (rpl_strerror): Provide error messages for the added errno values and
89137         for the WSA* values.
89138         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
89139         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
89140         strerror.
89141         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
89142         * modules/strerror (Depends-on): Add errno.
89143         * doc/posix-functions/strerror.texi: Document the change.
89144         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
89145         and EOVERFLOW.
89147 2008-09-13  Bruno Haible  <bruno@clisp.org>
89149         * modules/EOVERFLOW: Remove file.
89150         * m4/eoverflow.m4: Remove file.
89151         * modules/EOVERFLOW-tests: Remove file.
89152         * tests/test-EOVERFLOW.c: Remove file.
89153         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
89154         * modules/ftell (Depends-on): Likewise.
89155         * modules/getdelim (Depends-on): Likewise.
89156         * modules/getugroups (Depends-on): Likewise.
89157         * modules/poll (Depends-on): Likewise.
89158         * modules/snprintf (Depends-on): Likewise.
89159         * modules/sprintf-posix (Depends-on): Likewise.
89160         * modules/vasnprintf (Depends-on): Likewise.
89161         * modules/vasprintf (Depends-on): Likewise.
89162         * modules/vfprintf-posix (Depends-on): Likewise.
89163         * modules/vsnprintf (Depends-on): Likewise.
89164         * modules/vsprintf-posix (Depends-on): Likewise.
89165         * modules/xvasprintf (Depends-on): Likewise.
89166         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89167         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
89168         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
89169         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
89170         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89171         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
89172         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
89173         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
89174         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89175         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
89176         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
89177         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
89178         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89179         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
89180         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
89181         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
89182         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89183         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
89184         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
89185         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
89186         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89187         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
89188         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
89189         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
89190         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
89191         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89192         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
89193         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
89194         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
89195         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
89196         * MODULES.html.sh: Remove EOVERFLOW.
89197         * NEWS: Mention the change.
89199 2008-09-13  Bruno Haible  <bruno@clisp.org>
89201         * modules/errno-tests: New file.
89202         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
89204         * lib/errno.in.h: New file.
89205         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
89206         * modules/errno: New file.
89207         * doc/posix-headers/errno.texi: Update documentation.
89208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
89210 2008-09-13  Bruno Haible  <bruno@clisp.org>
89212         * tests/test-poll.c: Use #if for native Windows, rather than testing
89213         __MSVCRT__.
89215 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89216             Bruno Haible  <bruno@clisp.org>
89218         * lib/glob.c: Don't include <pwd.h> on native Windows.
89219         (WINDOWS32): New macro.
89220         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
89222 2008-09-13  Bruno Haible  <bruno@clisp.org>
89224         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
89225         (ETIMEDOUT): Remove macro.
89226         (glthread_cond_timedwait_multithreaded): New declaration.
89227         (glthread_cond_timedwait): Use it.
89228         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
89229         (glthread_cond_timedwait_multithreaded): New function.
89231 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89233         * modules/poll-tests: Do not check for io.h.
89234         * tests/test-poll.c: Check for __MSVCRT__ instead.
89236 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89238         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
89239         * modules/poll-tests: Add inet_pton, stdbool, sockets.
89240         * tests/test-poll.c: Use them.  Use _pipe on Windows.
89242 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89244         * modules/poll-tests: New.
89245         * tests/test-poll.c: New.
89247 2008-09-12  Eric Blake  <ebb9@byu.net>
89249         frexp: test for NetBSD failure on -0.0
89250         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
89251         not all, bugs from NetBSD 3.0 have been fixed.
89252         * doc/posix-functions/frexp.texi (frexp): Document bug.
89253         Reported by Thomas Klausner.
89255         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
89256         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
89257         literal -0.0.
89258         Reported by Jonathan C. Patschke <jp@centtech.com>.
89260 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89262         * lib/glthread/cond.h: Use dummy implementation also if
89263         USE_WIN32_THREADS.
89265 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89267         * modules/fnmatch-posix (License): Change to LGPLv2+.
89268         * modules/fnmatch-gnu (License): Likewise.
89270 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89272         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
89274 2008-09-11  Jim Meyering  <meyering@redhat.com>
89276         * users.txt: Add gtk-vnc.
89278 2008-09-08  Simon Josefsson  <simon@josefsson.org>
89280         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
89281         rotate amounts.
89283         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
89284         required for 16-bit and 8-bit rotates.
89285         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
89286         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
89287         UINT8_MAX instead of hard-coded constants.
89288         Suggested by Paul Eggert.
89290 2008-09-07  Bruno Haible  <bruno@clisp.org>
89292         * tests/test-striconveh.c (main): Check behaviour when converting from
89293         UTF-7.
89295         Make striconveh work better with stateful encodings.
89296         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
89297         that iconv does not increment the inptr when returning -1/EINVAL.
89299 2008-09-07  Bruno Haible  <bruno@clisp.org>
89301         * build-aux/config.rpath: Update according to libtool-2.2.6.
89302         * build-aux/config.libpath: Likewise.
89304 2008-09-06  Bruno Haible  <bruno@clisp.org>
89306         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
89307         * lib/freadptr.c (freadptr): Likewise.
89308         * lib/freadseek.c (freadptrinc): Likewise.
89309         Reported by Simon Josefsson.
89311 2008-09-06  Bruno Haible  <bruno@clisp.org>
89313         * modules/freadptr (License): Change to LGPLv2+.
89314         * modules/freadseek (License): Likewise.
89315         Suggested by Eric Blake.
89317         * modules/memchr2 (License): Change to LGPLv2+.
89318         Approved by Eric Blake.
89320 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89321             Bruno Haible  <bruno@clisp.org>
89323         Make gnulib-tool work with native 'sed' on AIX.
89324         * gnulib-tool (sed_noop): New variable.
89325         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
89326         func_add_or_update, func_create_testdir): Use it to initialize sed
89327         script variables.
89328         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89330 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
89331             Bruno Haible  <bruno@clisp.org>
89333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
89334         also works after #include directives.
89336 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
89338         getdate.y: reject an out-of-range timezone value
89339         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
89340         the range [-24...+24].  When specified with only one or two digits,
89341         * tests/test-getdate.c: Tests for the fix.
89342         * doc/getdate.texi: Document this change.
89344 2008-09-03  Bruno Haible  <bruno@clisp.org>
89346         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
89348 2008-09-02  Simon Josefsson  <simon@josefsson.org>
89350         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
89351         <bruce.korb@gmail.com> with ideas from Ben Pfaff
89352         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
89353         Blake <ebb9@byu.net>.
89355         * tests/test-bitrotate.c: Add more test vectors.
89357 2008-09-02  Eric Blake  <ebb9@byu.net>
89359         vasnprintf-posix: handle large precision via %.*d
89360         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
89361         when handling it ourselves.
89362         * tests/test-vasnprintf-posix.c (test_function): Add test.
89363         * tests/test-snprintf-posix.h (test_function): Likewise.
89364         * tests/test-sprintf-posix.h (test_function): Likewise.
89365         * tests/test-vasprintf-posix.c (test_function): Likewise.
89366         Reported by Alain Guibert.
89368 2008-09-01  Eric Blake  <ebb9@byu.net>
89370         c-stack: make configure-time check more robust
89371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
89372         successful sigaction call.
89373         Reported by Tom G. Christensen.
89375 2008-09-01  Bruno Haible  <bruno@clisp.org>
89377         New module 'findprog-lgpl'.
89378         * modules/findprog-lgpl: New file.
89379         * lib/findprog-lgpl.c: New file.
89380         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
89381         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
89382         to decide whether to use strdup or xstrdup, concatenated_filename or
89383         xconcatenated_filename.
89385 2008-09-01  Bruno Haible  <bruno@clisp.org>
89387         Split module 'concat-filename' into 'concat-filename' (LGPL) and
89388         'xconcat-filename' (GPL).
89389         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
89390         (License): Change to LGPLv2+.
89391         * modules/xconcat-filename: New file.
89392         * lib/concat-filename.h (concatenated_filename): Change specification.
89393         (xconcatenated_filename): New declaration.
89394         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
89395         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
89396         memory situations.
89397         * lib/xconcat-filename.c: New file.
89398         * NEWS: Mention the change.
89399         * lib/findprog.c: Include concat-filename.h, not filename.h.
89400         (find_in_path): Use xconcatenated_filename instead of
89401         concatenated_filename.
89402         * lib/javacomp.c: Include concat-filename.h, not filename.h.
89403         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89404         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89405         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89406         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
89407         instead of concatenated_filename.
89408         * lib/javaexec.c: Include concat-filename.h, not filename.h.
89409         (execute_java_class): Use xconcatenated_filename instead of
89410         concatenated_filename.
89411         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
89412         * modules/javacomp (Depends-on): Likewise.
89413         * modules/javaexec (Depends-on): Likewise.
89415 2008-09-01  Bruno Haible  <bruno@clisp.org>
89417         Split module 'filename' into 'filename' and 'concat-filename'.
89418         * modules/filename: Keep only lib/filename.h.
89419         (License): Change to LGPLv2+.
89420         * modules/concat-filename: New file, extracted from modules/filename.
89421         * lib/filename.h (concatenated_filename): Remove declaration.
89422         * lib/concat-filename.h: New file, extracted from lib/filename.h.
89423         * lib/concat-filename.c: Include concat-filename.h.
89424         * NEWS: Mention the change.
89426 2008-09-01  Simon Josefsson  <simon@josefsson.org>
89428         * lib/bitrotate.h (rotl8, rotr8): Add.
89430         * modules/bitrotate (configure.ac): Need
89431         AC_REQUIRE([AC_C_INLINE]).
89432         (Description): Mention stdint.h.  Reported by Bruno Haible
89433         <bruno@clisp.org>.
89435         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
89436         Paolo Bonzini <bonzini@gnu.org>.
89438 2008-08-31  Bruno Haible  <bruno@clisp.org>
89440         Assume Solaris specific bi-arch conventions on Solaris systems.
89441         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
89442         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
89443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
89444         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
89445         like acl_libdirstem.
89446         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
89447         acl_libdirstem.
89448         * NEWS: Mention the change.
89449         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
89451 2008-08-31  Jim Meyering  <meyering@redhat.com>
89453         * lib/strftime.h: Add comments describing the two added arguments.
89455         remove duplicate #include directives
89456         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
89457         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
89459 2008-08-31  Bruno Haible  <bruno@clisp.org>
89461         New module 'sigpipe-die'.
89462         * modules/sigpipe-die: New file.
89463         * lib/sigpipe-die.h: New file.
89464         * lib/sigpipe-die.c: New file.
89465         * MODULES.html.sh (Signal handling): Add sigpipe-die.
89467 2008-08-31  Bruno Haible  <bruno@clisp.org>
89469         Don't override previously installed signal handlers.
89470         * lib/fatal-signal.c (saved_sigactions): New variable.
89471         (uninstall_handlers): Reset the signal to the saved handler, not
89472         to SIG_DFL (except when ignored).
89473         (install_handlers): Save the previous handlers.
89475 2008-08-30  Bruno Haible  <bruno@clisp.org>
89477         * gnulib-tool (func_reset_sigpipe): New function.
89478         (func_get_automake_snippet, func_modules_transitive_closure,
89479         func_import): Invoke it before a join command that reads from stdin,
89480         to avoid "echo: write error: Broken pipe" error messages on stderr.
89481         Reported by Sam Steingold <sds@gnu.org>.
89483 2008-08-30  Bruno Haible  <bruno@clisp.org>
89485         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
89486         Code copied from m4/open.m4.
89487         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
89488         access and the filename ends in a slash. Code copied from lib/open.c.
89489         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
89490         * tests/test-fopen.c (main): Check against bug with trailing slash.
89492 2008-08-29  Bruno Haible  <bruno@clisp.org>
89494         Avoid some "gcc -pedantic" warnings.
89495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
89496         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
89497         * lib/dirent.in.h: Likewise.
89498         * lib/fcntl.in.h: Likewise.
89499         * lib/float.in.h: Likewise.
89500         * lib/iconv.in.h: Likewise.
89501         * lib/inttypes.in.h: Likewise.
89502         * lib/locale.in.h: Likewise.
89503         * lib/math.in.h: Likewise.
89504         * lib/netinet_in.in.h: Likewise.
89505         * lib/search.in.h: Likewise.
89506         * lib/signal.in.h: Likewise.
89507         * lib/stdarg.in.h: Likewise.
89508         * lib/stdint.in.h: Likewise.
89509         * lib/stdio.in.h: Likewise.
89510         * lib/stdlib.in.h: Likewise.
89511         * lib/string.in.h: Likewise.
89512         * lib/strings.in.h: Likewise.
89513         * lib/sys_select.in.h: Likewise.
89514         * lib/sys_socket.in.h: Likewise.
89515         * lib/sys_stat.in.h: Likewise.
89516         * lib/sys_time.in.h: Likewise.
89517         * lib/sysexits.in.h: Likewise.
89518         * lib/time.in.h: Likewise.
89519         * lib/unistd.in.h: Likewise.
89520         * lib/wchar.in.h: Likewise.
89521         * lib/wctype.in.h: Likewise.
89522         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
89523         * modules/fchdir (Makefile.am): Likewise.
89524         * modules/fcntl (Makefile.am): Likewise.
89525         * modules/float (Makefile.am): Likewise.
89526         * modules/iconv_open (Makefile.am): Likewise.
89527         * modules/inttypes (Makefile.am): Likewise.
89528         * modules/locale (Makefile.am): Likewise.
89529         * modules/math (Makefile.am): Likewise.
89530         * modules/netinet_in (Makefile.am): Likewise.
89531         * modules/search (Makefile.am): Likewise.
89532         * modules/signal (Makefile.am): Likewise.
89533         * modules/stdarg (Makefile.am): Likewise.
89534         * modules/stdint (Makefile.am): Likewise.
89535         * modules/stdio (Makefile.am): Likewise.
89536         * modules/stdlib (Makefile.am): Likewise.
89537         * modules/string (Makefile.am): Likewise.
89538         * modules/strings (Makefile.am): Likewise.
89539         * modules/sys_select (Makefile.am): Likewise.
89540         * modules/sys_socket (Makefile.am): Likewise.
89541         * modules/sys_stat (Makefile.am): Likewise.
89542         * modules/sys_time (Makefile.am): Likewise.
89543         * modules/sysexits (Makefile.am): Likewise.
89544         * modules/time (Makefile.am): Likewise.
89545         * modules/unistd (Makefile.am): Likewise.
89546         * modules/wchar (Makefile.am): Likewise.
89547         * modules/wctype (Makefile.am): Likewise.
89548         Reported by Reuben Thomas <rrt@sc3d.org>.
89550 2008-08-29  Bruno Haible  <bruno@clisp.org>
89552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
89553         any more.
89555 2008-08-29  Simon Josefsson  <simon@josefsson.org>
89557         * MODULES.html.sh (Misc): Add bitrotate.
89559         * modules/bitrotate: New file.
89561         * lib/bitrotate.h: New file.
89563         * modules/bitrotate-tests: New file.
89565         * tests/test-bitrotate.c: New file.
89567         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
89568         on the bitrotate module.
89570         * lib/arctwo.c: Use new bitrotate module.
89572 2008-08-29  Jim Meyering  <meyering@redhat.com>
89574         bootstrap: merge changes from coreutils
89575         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
89576         of copied files.  Remove a kludge, now that this is fixed.
89577         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
89578         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
89579         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89581 2008-08-29  Bruno Haible  <bruno@clisp.org>
89583         * MODULES.html.sh: Remove --cvs-urls option.
89585 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89587         maint.mk: adjust to file name change
89588         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89590 2008-08-28  Jim Meyering  <meyering@redhat.com>
89592         * modules/getndelim2 (License): Relicense to LGPLv2+.
89593         Approved by Richard Stallman for the version of 1995, and by
89594         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89596 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89598         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89599         dummy if one is not available.  Do not touch them if
89600         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89601         (getc_maybe_unlocked): New.
89602         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89604 2008-08-26  Eric Blake  <ebb9@byu.net>
89606         doc/INSTALL: resync from autoconf
89607         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89608         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89609         moving...
89610         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89611         * INSTALL: Regenerate.
89612         * INSTALL.ISO: New file.
89613         * INSTALL.UTF-8: Likewise.
89615 2008-08-26  Jim Meyering  <meyering@redhat.com>
89617         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89618         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89619         these definitions conditional, so that they may be overridden, too.
89621 2008-08-26  Bruno Haible  <bruno@clisp.org>
89623         Generate INSTALL file variants with prettier quotes.
89624         * doc/Makefile (INSTALL_PRELUDE): New macro.
89625         (INSTALL): Use it.
89626         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89628 2008-08-26  Bruno Haible  <bruno@clisp.org>
89630         Run makeinfo in an English locale.
89631         * doc/Makefile (MAKEINFO): New variable.
89633 2008-08-26  Bruno Haible  <bruno@clisp.org>
89635         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89636         Suggested by Eric Blake.
89638 2008-08-25  Bruno Haible  <bruno@clisp.org>
89640         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89642 2008-08-25  Eric Blake  <ebb9@byu.net>
89644         c-stack: test that stack overflow can be caught
89645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89646         that platform allows handling stack overflow; at least OS/2 EMX
89647         has sigaltstack, but crashes before transferring control to
89648         handler on stack overflow.
89649         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89650         check for HAVE_STACK_OVERFLOW_HANDLING.
89651         Reported by Elbert Pol.
89653 2008-08-25  Bruno Haible  <bruno@clisp.org>
89655         * doc/posix-functions/strftime.texi: Fix description of strftime
89656         module.
89658 2008-08-24  Bruno Haible  <bruno@clisp.org>
89660         * tests/uniwidth/test-uc_width2.c: New file.
89661         * tests/uniwidth/test-uc_width2.sh: New file.
89662         * modules/uniwidth/width-tests (Files): Add the new files.
89663         (TESTS): Add uniwidth/test-uc_width2.sh.
89664         (TESTS_ENVIRONMENT): New variable.
89665         (check_PROGRAMS): Add test-uc_width2.
89666         (test_uc_width2_SOURCES): New variable.
89668         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89669         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89670         not 0x00AB.
89671         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89673 2008-08-22  Eric Blake  <ebb9@byu.net>
89675         test-lock, test-tls: mention why a test is skipped
89676         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89677         skipped.
89678         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89680         count-one-bits: relax license
89681         * modules/count-one-bits (License): Relicense to LGPLv2+.
89682         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89684 2008-08-22  Andreas Schwab  <schwab@suse.de>
89686         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89687         Remove spurious space in assignment.
89689 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89691         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89692         Paul Eggert <eggert@CS.UCLA.EDU>.
89694 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89696         * modules/gettext: Add m4/threadlib.m4.
89698 2008-08-19  Eric Blake  <ebb9@byu.net>
89700         test-c-stack: fix compilation failure on FreeBSD 5.0
89701         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89702         headers before <sys/resource.h>.
89703         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89704         the bug.
89705         Reported by Nelson H. F. Beebe.
89707         strverscmp: migrate from "strverscmp.h" to <string.h>
89708         * modules/string (Makefile.am): Add new hooks.
89709         * modules/strverscmp (Files): Remove strverscmp.h.
89710         (Depends-on): Add string.
89711         (configure.ac): Add indicator.
89712         (Include): Mention new header.
89713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89714         defaults.
89715         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89716         results.
89717         * lib/strverscmp.h: Delete.
89718         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89719         * tests/test-strverscmp.c (includes): Adjust client.
89720         * lib/check-version.c (includes): Likewise.
89721         * NEWS: Document the change.
89723         strverscmp: add unit test
89724         * modules/strverscmp-tests: New file.
89725         * tests/test-strverscmp.c: Likewise.
89727 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89729         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89730         regarding Windows crypto stuff, from Mono.
89732 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89734         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89735         if present, for intel RND.  Return error on failures.
89737 2008-08-18  Ben Pfaff  <blp@gnu.org>
89739         gitlog-to-changelog: give better diagnostic for failed pipe-open
89740         * build-aux/gitlog-to-changelog: Improve error message: suggest
89741         that the version of Git may be too old.
89743 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89745         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89746         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89748 2008-08-18  Bruno Haible  <bruno@clisp.org>
89750         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89751         pthread_in_use().
89753 2008-08-18  Bruno Haible  <bruno@clisp.org>
89755         * lib/glthread/threadlib.c: Include <pthread.h>.
89757 2008-08-18  Bruno Haible  <bruno@clisp.org>
89759         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89760         glthread_recursive_lock_* macros.
89761         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89762         Fix syntax error.
89764 2008-08-18  Bruno Haible  <bruno@clisp.org>
89766         * lib/glthread/thread.c: Avoid forcing a context switch right after
89767         thread creation.
89769 2008-08-17  Bruno Haible  <bruno@clisp.org>
89771         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89772         * lib/glthread/thread.h: Provide Win32 specific implementation.
89773         * modules/thread (Files): Add lib/glthread/thread.c.
89774         (Depends-on): Add lock.
89775         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89777 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89779         New module 'yield'.
89780         * modules/yield: New file.
89781         * lib/glthread/yield.h: New file.
89782         * m4/yield.m4: New file.
89783         * MODULES.html.sh (Multithreading): Add yield.
89785 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89787         New module 'thread'.
89788         * modules/thread: New file.
89789         * lib/glthread/thread.h: New file.
89790         * m4/thread.m4: New file.
89791         * MODULES.html.sh (Multithreading): Add thread.
89793 2008-08-17  Bruno Haible  <bruno@clisp.org>
89795         * lib/glthread/lock.h: Include <stdlib.h> always.
89796         * lib/glthread/tls.h: Likewise.
89797         * lib/glthread/cond.h: Likewise.
89799 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89801         New module 'cond'.
89802         * modules/cond: New file.
89803         * lib/glthread/cond.h: New file.
89804         * lib/glthread/cond.c: New file.
89805         * m4/cond.m4: New file.
89806         * MODULES.html.sh (Multithreading): Add cond.
89808 2008-08-16  Eric Blake  <ebb9@byu.net>
89810         c-stack: fix regression on Irix 5.3 from 2008-06-21
89811         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89812         sa_sigaction...
89813         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89814         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89815         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89816         * modules/signal (Makefile.am): Use the value.
89817         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89818         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89819         * doc/posix-headers/signal.texi (signal.h): Document this
89820         portability issue.
89821         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89822         Reported by Tom G. Christensen.
89824 2008-08-17  Bruno Haible  <bruno@clisp.org>
89826         New module 'threadlib'.
89827         * modules/threadlib: New file.
89828         * lib/glthread/threadlib.c: New file, extracted from
89829         lib/glthread/lock.c.
89830         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89831         functions.
89832         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89833         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89834         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89835         macros.
89836         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89837         (gl_DISABLE_THREADS): Remove macro.
89838         * modules/lock (Files): Remove build-aux/config.rpath.
89839         (Depends-on): Remove havelib. Add threadlib.
89840         (configure.ac-early): Remove section.
89841         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89842         * modules/tls (Depends-on): Remove lock. Add threadlib.
89843         (Link): New section, copied from threadlib.
89844         * MODULES.html.sh (Multithreading): Add threadlib.
89846 2008-08-14  Bruno Haible  <bruno@clisp.org>
89848         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89849         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89850         glthread_rwlock_unlock, glthread_rwlock_destroy,
89851         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89852         glthread_recursive_lock_destroy): Define as macros always.
89853         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89854         glthread_lock_lock.
89855         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89856         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89857         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89858         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89859         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89860         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89861         (glthread_recursive_lock_lock_func): Renamed from
89862         glthread_recursive_lock_lock.
89863         (glthread_recursive_lock_unlock_func): Renamed from
89864         glthread_recursive_lock_unlock.
89865         (glthread_recursive_lock_destroy_func): Renamed from
89866         glthread_recursive_lock_destroy.
89868 2008-08-14  Bruno Haible  <bruno@clisp.org>
89870         * lib/glthread/lock.h: Renamed from lib/lock.h.
89871         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89872         * lib/glthread/tls.h: Renamed from lib/tls.h.
89873         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89874         * lib/fstrcmp.c: Update includes.
89875         * lib/strsignal.c: Update includes.
89876         * modules/lock (Files, Makefile.am): Update.
89877         (Include): Change to "glthread/lock.h".
89878         * modules/tls (Files, Makefile.am): Update.
89879         (Include): Change to "glthread/tls.h".
89880         * tests/test-lock.c: Update includes.
89881         * tests/test-tls.c: Update includes.
89882         * NEWS: Mention the renamed header files.
89884 2008-08-11  Jim Meyering  <meyering@redhat.com>
89886         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89888 2008-08-11  Eric Blake  <ebb9@byu.net>
89890         test-c-stack: avoid C99-ism
89891         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89892         before statement.
89893         Reported by Alain Guibert.
89895 2008-08-10  Jim Meyering  <meyering@redhat.com>
89897         ensure that return value of uinttostr et al are not ignored
89898         * lib/inttostr.h (__GNUC_PREREQ): Define.
89899         (__attribute_warn_unused_result__): Define.
89900         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89902 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89904         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89905         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89907 2008-08-07  Jim Meyering  <meyering@redhat.com>
89909         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89911         * modules/mkstemp (License): Relicense under LGPLv2+.
89912         * modules/tempname (License): Likewise.
89914 2008-08-06  Bruno Haible  <bruno@clisp.org>
89916         * lib/poll.c (poll): Further micro-optimization.
89918 2008-08-06  Jim Meyering  <meyering@redhat.com>
89920         inet_pton.c: use locale-independent tolower
89921         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89922         (inet_pton6): Use c_tolower rather than tolower.
89923         * modules/inet_pton (Depends-on): Add c-ctype.
89925 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89927         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89928         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89930 2008-08-06  Jim Meyering  <meyering@redhat.com>
89932         * modules/inet_pton (License): Relicense under LGPLv2+.
89934 2008-08-03  Bruno Haible  <bruno@clisp.org>
89936         Additional non-aborting API for lock and tls.
89937         * lib/lock.h: Include <errno.h>.
89938         (glthread_lock_init): New macro/function.
89939         (gl_lock_init): Define as wrapper around glthread_lock_init.
89940         (glthread_lock_lock): New macro/function.
89941         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89942         (glthread_lock_unlock): New macro/function.
89943         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89944         (glthread_lock_destroy): New macro/function.
89945         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89946         (glthread_rwlock_init): New macro/function.
89947         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89948         (glthread_rwlock_rdlock): New macro/function.
89949         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89950         (glthread_rwlock_wrlock): New macro/function.
89951         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89952         (glthread_rwlock_unlock): New macro/function.
89953         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89954         (glthread_rwlock_destroy): New macro/function.
89955         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89956         (glthread_recursive_lock_init): New macro/function.
89957         (gl_recursive_lock_init): Define as wrapper around
89958         glthread_recursive_lock_init.
89959         (glthread_recursive_lock_lock): New macro/function.
89960         (gl_recursive_lock_lock): Define as wrapper around
89961         glthread_recursive_lock_lock.
89962         (glthread_recursive_lock_unlock): New macro/function.
89963         (gl_recursive_lock_unlock): Define as wrapper around
89964         glthread_recursive_lock_unlock.
89965         (glthread_recursive_lock_destroy): New macro/function.
89966         (gl_recursive_lock_destroy): Define as wrapper around
89967         glthread_recursive_lock_destroy.
89968         (glthread_once): New macro/function.
89969         (gl_once): Define as wrapper around glthread_once.
89970         Update function declarations.
89971         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89972         glthread_rwlock_init. Return error code.
89973         (glthread_rwlock_rdlock_multithreaded): Renamed from
89974         glthread_rwlock_rdlock. Return error code.
89975         (glthread_rwlock_wrlock_multithreaded): Renamed from
89976         glthread_rwlock_wrlock. Return error code.
89977         (glthread_rwlock_unlock_multithreaded): Renamed from
89978         glthread_rwlock_unlock. Return error code.
89979         (glthread_rwlock_destroy_multithreaded): Renamed from
89980         glthread_rwlock_destroy. Return error code.
89981         (glthread_recursive_lock_init_multithreaded): Renamed from
89982         glthread_recursive_lock_init. Return error code.
89983         (glthread_recursive_lock_lock_multithreaded): Renamed from
89984         glthread_recursive_lock_lock. Return error code.
89985         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89986         glthread_recursive_lock_unlock. Return error code.
89987         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89988         glthread_recursive_lock_destroy. Return error code.
89989         (glthread_once_call): Make static.
89990         (glthread_once_multithreaded): Renamed from glthread_once.
89991         * lib/tls.h: Include <errno.h>.
89992         (glthread_tls_key_init): New macro/function.
89993         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89994         (glthread_tls_set): New macro/function.
89995         (gl_tls_set): Define as wrapper around glthread_tls_set.
89996         (glthread_tls_key_destroy): New macro/function.
89997         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89998         Update function declarations.
89999         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
90000         glthread_tls_get.
90001         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90003 2008-08-04  Eric Blake  <ebb9@byu.net>
90005         gnumakefile: use space, not TAB, outside of targets
90006         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
90008 2008-08-02  Jim Meyering  <meyering@redhat.com>
90010         getdate.y: avoid locale-dependent date parsing failure
90011         In Turkish locales, getdate would fail to recognize keywords
90012         containing a lowercase "i".  The solution is not to rely on
90013         locale-sensitive case-conversion.
90014         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
90015         (lookup_word): Use c_toupper in place of toupper.
90016         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
90017         Reported by Vefa Bicakci <bicave@superonline.com> in
90018         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
90019         * modules/getdate (Depends-on): Add c-ctype.
90021 2008-08-02  Bruno Haible  <bruno@clisp.org>
90023         * gnulib-tool (func_import): When updating or creating a .gitignore
90024         file, prepend each added line with a slash, and ignore leading slashes
90025         from the existing lines.
90026         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90028 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90030         Portability fix for GNU make 3.79.1.
90031         * top/GNUmakefile: Avoid 'else COND', which older GNU make
90032         versions do not understand.
90034 2008-08-01  Bruno Haible  <bruno@clisp.org>
90036         Work around bug of HP-UX 10.20 cc with -0.0 literal.
90037         * tests/test-isnanf.h (zero): New variable.
90038         (main): Avoid literal -0.0f.
90039         * tests/test-isnand.h (zero): New variable.
90040         (main): Avoid literal -0.0.
90041         * tests/test-isnanl.h (zero): New variable.
90042         (main): Avoid literal -0.0L.
90043         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
90044         (test_float, test_double, test_long_double): Avoid literals -0.0f,
90045         -0.0, -0.0L.
90046         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
90047         (test_signbitd): Avoid literal -0.0.
90048         (test_signbitl): Avoid literal -0.0L.
90049         * tests/test-ceilf1.c (zero): New variable.
90050         (main): Avoid literal -0.0f.
90051         * tests/test-ceill.c (zero): New variable.
90052         (main): Avoid literal -0.0L.
90053         * tests/test-floorf1.c (zero): New variable.
90054         (main): Avoid literal -0.0f.
90055         * tests/test-floorl.c (zero): New variable.
90056         (main): Avoid literal -0.0L.
90057         * tests/test-roundf1.c (zero): New variable.
90058         (main): Avoid literal -0.0f.
90059         * tests/test-round1.c (zero): New variable.
90060         (main): Avoid literal -0.0.
90061         * tests/test-roundl.c (zero): New variable.
90062         (main): Avoid literal -0.0L.
90063         * tests/test-truncf1.c (zero): New variable.
90064         (main): Avoid literal -0.0f.
90065         * tests/test-trunc1.c (zero): New variable.
90066         (main): Avoid literal -0.0.
90067         * tests/test-truncl.c (zero): New variable.
90068         (main): Avoid literal -0.0L.
90069         * tests/test-frexp.c (zero): New variable.
90070         (main): Avoid literal -0.0.
90071         * tests/test-frexpl.c (zero): New variable.
90072         (main): Avoid literal -0.0L.
90073         * tests/test-ldexpl.c (zero): New variable.
90074         (main): Avoid literal -0.0L.
90075         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
90076         (zerod, zerol): New variables.
90077         (test_function): Avoid literals -0.0, -0.0L.
90078         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
90079         (zerod, zerol): New variables.
90080         (test_function): Avoid literals -0.0, -0.0L.
90081         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
90082         (zerod, zerol): New variables.
90083         (test_function): Avoid literals -0.0, -0.0L.
90084         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
90085         (zerod, zerol): New variables.
90086         (test_function): Avoid literals -0.0, -0.0L.
90087         * tests/test-strtod.c (zero): New variable.
90088         (main): Avoid literal -0.0.
90089         Reported by Jonathan C. Patschke <jp@centtech.com>.
90091 2008-07-31  Jim Meyering  <meyering@redhat.com>
90093         sha256.h: correct definition of SHA224_DIGEST_SIZE
90094         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
90095         Reported by Paulie Pena IV <paulie4@gmail.com>.
90096         Define as 224 / 8, rather than as a literal.
90097         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
90098         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
90099         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
90101 2008-07-31  Bruno Haible  <bruno@clisp.org>
90103         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
90104         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
90105         Reported by Jonathan Patschke <jp@centtech.com>.
90107 2008-07-31  Bruno Haible  <bruno@clisp.org>
90109         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
90110         Reported by Paolo Bonzini <bonzini@gnu.org>.
90112 2008-07-30  Eric Blake  <ebb9@byu.net>
90114         test-strtod: allow compilation without -lm
90115         * tests/test-strtod.c (main): Avoid link dependence on fabs.
90116         Reported by Dennis Clarke <blastwave@gmail.com>.
90118 2008-07-28  Jim Meyering  <meyering@redhat.com>
90120         bootstrap: work also when there are no .po files in po/
90121         * build-aux/bootstrap (update_po_files): Complete the change
90122         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
90124 2008-07-27  Jim Meyering  <meyering@redhat.com>
90126         * users.txt: Add zile.
90128 2008-07-26  Ben Pfaff  <blp@gnu.org>
90130         Add missing dependencies on new m4/exponent[fdl].m4 files.
90131         * modules/isnanf-nolibm: Add m4/exponentf.m4.
90132         * modules/isnand-nolibm: Add m4/exponentd.m4.
90133         * modules/isnanl-nolibm: Add m4/exponentl.m4.
90134         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
90135         m4/isnan[fdl].m4, because the macros actually used moved.
90136         Reported by Jim Meyering.
90138 2008-07-14  Ben Pfaff  <blp@gnu.org>
90140         Add isinf module.
90141         * lib/isinf.c: New file.
90142         * lib/math.in.h: Define isinf macro if we have decided to replace
90143         it.
90144         * m4/isinf.m4: New file.
90145         * m4/math_h.m4: Initialize and substitute variables for isinf
90146         module.
90147         * modules/isinf: New file.
90148         * modules/isinf-tests: New file.
90149         * modules/math: Add substitutions for new module.
90150         * tests/test-isinf.c: New file.
90151         * doc/posix-functions/isinf.texi: Mention new module.
90152         * MODULES.html.sh: Mention new module.
90154 2008-07-14  Ben Pfaff  <blp@gnu.org>
90156         Factor out some macros for use by additional modules.
90157         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
90158         exponentf.m4.
90159         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
90160         exponentd.m4.
90161         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
90162         file exponentl.m4.
90163         * m4/exponentf.m4: New file.
90164         * m4/exponentd.m4: New file.
90165         * m4/exponentl.m4: New file.
90166         * modules/isnanf: Use new file m4/exponentf.m4.
90167         * modules/isnand: Use new file m4/exponentd.m4.
90168         * modules/isnanl: Use new file m4/exponentl.m4.
90170 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
90172         mktime.c: normalize tp->tm_isdst value to -1/0/1.
90173         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
90174         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
90175         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
90177         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
90178         readlink on platforms without PATH_MAX.
90180 2008-07-21  Eric Blake  <ebb9@byu.net>
90182         Warn, not fail, on stale version.
90183         * top/GNUmakefile (_curr-ver): Tone down previous patch.
90185         Don't allow installation with stale devel version number.
90186         * top/GNUmakefile (_is-install-target): New macro.
90187         (_curr-ver): Forbid installation with stale version number.
90189 2008-07-20  Bruno Haible  <bruno@clisp.org>
90191         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
90192         TESTS_ENVIRONMENT.
90193         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
90195 2008-07-20  Bruno Haible  <bruno@clisp.org>
90197         * lib/c-stack.h (c_stack_action): Add documentation.
90198         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
90200 2008-07-20  Bruno Haible  <bruno@clisp.org>
90202         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
90203         * modules/readlink (License): Likewise.
90205 2008-07-17  Eric Blake  <ebb9@byu.net>
90207         * modules/c-stack (Link): Fix typo.
90209         Make c-stack use libsigsegv, when available.
90210         * modules/c-stack (Depends-on): Add libsigsegv.
90211         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
90212         needed.
90213         * lib/c-stack.c (SIGSTKSZ): Define fallback.
90214         (segv_handler, overflow_handler, c_stack_action)
90215         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
90216         implementation when libsigsegv is available, but only when using
90217         the library is necessary.
90218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
90219         comment, explaining why XSI check fails on Linux.
90220         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
90221         * tests/test-c-stack2.sh: Tweak skip message.
90222         * NEWS: Document new link-time requirements.
90224 2008-07-16  Eric Blake  <ebb9@byu.net>
90226         c-stack: Expose false positives when not using libsigsegv.
90227         * modules/c-stack-tests (Files): Expand test.
90228         * tests/test-c-stack.c (main): Add means to conditionally trigger
90229         non-overflow SIGSEGV.
90230         * tests/test-c-stack2.sh: New file.
90232 2008-07-14  Bruno Haible  <bruno@clisp.org>
90234         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
90235         Reported by Eric Blake.
90237 2008-07-14  Sam Steingold  <sds@gnu.org>
90238             Bruno Haible  <bruno@clisp.org>
90240         New module libsigsegv.
90241         * modules/libsigsegv: New file.
90242         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
90243         modifications.
90244         * MODULES.html.sh (Signal handling): New section.
90246 2008-07-14  Bruno Haible  <bruno@clisp.org>
90248         * modules/unictype/ctype-* (Description): Add the word "function".
90249         Improves the resulting doc in MODULES.html.
90251 2008-07-12  Ben Pfaff  <blp@gnu.org>
90253         Add longlong module.
90254         * modules/longlong: New file.
90256 2008-07-12  Bruno Haible  <bruno@clisp.org>
90258         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
90259         to empty.
90261 2008-07-10  Ben Pfaff  <blp@gnu.org>
90263         Add isnan module.
90264         * doc/posix-functions/isnan.texi: Mention new module.
90265         * lib/math.in.h: Define isnan macro if we have decided to replace
90266         it.
90267         * m4/isnan.m4: New file.
90268         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
90269         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
90270         also.
90271         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
90272         redundancy.
90273         * m4/math_h.m4: Initialize and substitute variables for isnan
90274         module.
90275         * modules/isnan: New file.
90276         * modules/isnan-tests: New file.
90277         * modules/math: Add substitutions for new module.
90278         * tests/test-isnan.c: New file.
90279         * MODULES.html.sh: Mention new module.
90281 2008-07-10  Ben Pfaff  <blp@gnu.org>
90283         Add isnanf module.
90284         * lib/isnanf.m4: New file.
90285         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
90286         (gl_HAVE_ISNANF_IN_LIBM): New macro.
90287         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
90288         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
90289         * modules/isnanf: New file.
90290         * modules/isnanf-tests: New file.
90291         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
90292         files.
90293         * tests/test-isnanf-nolibm.c: factored most of its contents into
90294         new file tests/test-isnanf.h.
90295         * tests/test-isnanf.h: New file.
90296         * tests/test-isnanf.c: New file.
90297         * MODULES.html.sh: Mention new module.
90298         * doc/glibc-functions/isnanf.texi: Mention new module.
90300 2008-07-10  Ben Pfaff  <blp@gnu.org>
90302         Add isnand module.
90303         * lib/isnand.h: New file.
90304         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
90305         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
90306         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
90307         functionality also.
90308         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
90309         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
90310         (gl_HAVE_ISNAND_IN_LIBM): New macro.
90311         * modules/isnand: New file.
90312         * modules/isnand-tests: New file.
90313         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
90314         files.
90315         * tests/test-isnand-nolibm.c: factored most of its contents into
90316         new file tests/test-isnand.h.
90317         * tests/test-isnand.h: New file.
90318         * tests/test-isnand.c: New file.
90319         * MODULES.html.sh: Mention new module.
90321 2008-07-10  Ben Pfaff  <blp@gnu.org>
90323         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
90324         * lib/isnand.h: Rename lib/isnand-nolibm.h.
90325         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
90326         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
90327         * modules/isnanf-nolibm: Update references to renamed files.
90328         * modules/isnand-nolibm: Likewise.
90329         * modules/isnanf-nolibm-tests: Likewise.
90330         * modules/isnand-nolibm-tests: Likewise.
90331         * lib/frexp.c: Likewise.
90332         * lib/isfinite.c: Likewise.
90333         * lib/signbitd.c: Likewise.
90334         * lib/signbitf.c: Likewise.
90335         * lib/vasnprintf.c: Likewise.
90336         * tests/test-ceilf1.c: Likewise.
90337         * tests/test-ceilf2.c: Likewise.
90338         * tests/test-floorf1.c: Likewise.
90339         * tests/test-floorf2.c: Likewise.
90340         * tests/test-frexp.c: Likewise.
90341         * tests/test-round1.c: Likewise.
90342         * tests/test-round2.c: Likewise.
90343         * tests/test-roundf1.c: Likewise.
90344         * tests/test-strtod.c: Likewise.
90345         * tests/test-trunc1.c: Likewise.
90346         * tests/test-trunc2.c: Likewise.
90347         * tests/test-truncf1.c: Likewise.
90348         * tests/test-truncf2.c: Likewise.
90349         * NEWS: Mention the renamed header files.
90351 2008-07-11  Jim Meyering  <meyering@redhat.com>
90353         vc-list-files: make the last-resort awk code more portable
90354         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
90355         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
90356         does not support it.
90358 2008-07-10  Eric Blake  <ebb9@byu.net>
90360         Work with tar's bootstrap.
90361         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
90362         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
90363         an m4 comment.
90365 2008-07-09  Jim Meyering  <meyering@redhat.com>
90367         posix-shell.m4: fix typo that made this test malfunction
90368         * m4/posix-shell.m4: Remove capitalization in variable name.
90370 2008-07-08  Bruno Haible  <bruno@clisp.org>
90372         * m4/onceonly.m4: Update comments.
90373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90375 2008-07-04  Jim Meyering  <meyering@redhat.com>
90377         * users.txt: Add vc-dwim.
90378         (bison, coreutils): Use the gitweb URL.
90380 2008-07-03  Jim Meyering  <meyering@redhat.com>
90382         * users.txt: Add libffcall.  From Sam Steingold.
90384 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
90386         getdate.y: do not ignore TZ with relative day, month or year offset
90387         * lib/getdate.y (get_date): Move the tz-handling block to follow the
90388         relative-date-handling, since otherwise, the latter would clobber the
90389         sole output (an updated Start value) of the tz-handling block.
90390         * tests/test-getdate.c: Tests for the fix
90392 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90394         Recognize 'foo_LIBRARIES += libgnu.a'.
90395         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
90396         makefile snippet has already specified an installation location,
90397         also using '+='.
90399 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
90401         getdate.y: factor out common actions
90402         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
90403         Use them in place of open-coded actions.
90405 2008-07-01  Simon Josefsson  <simon@josefsson.org>
90407         Add self-test for getdate module.
90408         * modules/getdate-tests: New file.
90409         * tests/test-getdate.c: New file.
90411 2008-06-29  Bruno Haible  <bruno@clisp.org>
90413         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
90414         .gitignore.
90415         Reported by Sylvain Beucler <beuc@beuc.net>.
90417 2008-06-29  Bruno Haible  <bruno@clisp.org>
90419         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
90420         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
90422 2008-06-29  Bruno Haible  <bruno@clisp.org>
90424         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
90425         EXTRA_DIST.
90426         Reported by Sylvain Beucler <beuc@beuc.net>.
90428 2008-06-26  Jim Meyering  <meyering@redhat.com>
90430         make several modules depend on the "open" module
90431         This provides slightly increased consistency when opening-for-write
90432         the name of a non-directory spelled with a trailing slash.
90433         * modules/chdir-safer: Likewise.
90434         * modules/chown: Likewise.
90435         * modules/clean-temp: Likewise.
90436         * modules/copy-file: Likewise.
90437         * modules/fchdir: Likewise.
90438         * modules/fcntl-safer: Likewise.
90439         * modules/pipe: Likewise.
90440         * modules/utime: Likewise.
90441         Prompted by Eric Blake and Bruno Haible.
90443 2008-06-24  Andreas Schwab  <schwab@suse.de>
90445         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
90446         literals can be used as initializers for global variables.
90448 2008-06-23  Eric Blake  <ebb9@byu.net>
90450         Make gnulib-cache.m4 easier to diff.
90451         * gnulib-tool (func_import): Allow newlines when reading cached
90452         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
90454 2008-06-23  Bruno Haible  <bruno@clisp.org>
90456         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
90457         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
90458         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
90459         m4/signalblocking.m4.
90460         (gl_PREREQ_SIGACTION): Don't invoke it.
90461         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
90462         gl_PREREQ_SIG_HANDLER_H.
90463         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90464         Don't check for sigaction here.
90466 2008-06-23  Bruno Haible  <bruno@clisp.org>
90468         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
90469         (install_handlers): Don't set the SA_RESETHAND flag.
90471 2008-06-23  Bruno Haible  <bruno@clisp.org>
90473         * m4/sigaction.m4: Comment fixes.
90474         * lib/signal.in.h: Likewise.
90476 2008-06-23  Eric Blake  <ebb9@byu.net>
90478         Fix typo.
90479         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
90481         Avoid SA_ namespace.
90482         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
90483         Reported by Ralf Wildenhues.
90485         Avoid test failure due to SA_RESTORER.
90486         * tests/test-sigaction.c (SA_MASK): New macro.
90487         (main): Avoid failing due to extension flags being set.
90488         Reported by Jim Meyering.
90490         Revert use of sig-handler.h in sigprocmask.c.
90491         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
90492         it requires the existence of struct sigaction.
90493         * lib/sigprocmask.c (handler_t): Restore typedef.
90494         (rpl_signal, old_handlers): Use local type.
90496 2008-06-22  Bruno Haible  <bruno@clisp.org>
90498         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
90499         conditionally.
90500         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90502 2008-06-22  Bruno Haible  <bruno@clisp.org>
90504         * doc/posix-functions/siginterrupt.texi: Move note.
90506         * lib/signal.in.h (SA_RESTART): New macro.
90507         * lib/sigaction.c: Update comment.
90509         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
90511         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
90512         (gl_PREREQ_SIGPROCMASK): Invoke it.
90513         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
90515         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
90517         * lib/sigprocmask.c: Update a comment.
90519 2008-06-21  Eric Blake  <ebb9@byu.net>
90521         Use sigaction module rather than signal().
90522         * modules/c-stack (Depends-on): Add sigaction.
90523         * modules/fatal-signal (Depends-on): Likewise.
90524         * modules/nanosleep (Depends-on): Likewise.
90525         * modules/sigprocmask (Files): Add sig-handler.h.
90526         * modules/sigaction (Files): Likewise.
90527         * lib/sig-handler.h (get_handler): New file, suggested by Paul
90528         Eggert.
90529         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
90530         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
90531         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
90532         (init_fatal_signals): Likewise.
90533         * lib/nanosleep.c (rpl_nanosleep): Likewise.
90534         (siginterrupt): Delete fallback.
90535         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
90536         instead.
90537         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
90538         siginterrupt.
90540         New module sigaction, for mingw.
90541         * modules/sigaction: New module...
90542         * modules/sigaction-tests: ...and its test.
90543         * m4/sigaction.m4: New file.
90544         * lib/sigaction.c: Likewise.
90545         * tests/test-sigaction.c: Likewise.
90546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
90547         * modules/signal (Makefile.am): Likewise.
90548         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
90549         needed.
90550         * doc/posix-headers/signal.texi (signal.h): Mention provided
90551         types.
90552         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
90553         that sigaction is preferable.
90554         * doc/posix-functions/sigaction.texi (sigaction): Mention new
90555         module.
90556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90557         sigaction.
90559         Improve robustness of sigprocmask by overriding signal.
90560         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
90561         is in use.
90562         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
90563         (SIGKILL, SIGSTOP): Provide fallbacks.
90564         (rpl_signal): Implement.
90565         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
90566         signal can be called inside handlers.
90568         Fix nanosleep module on mingw.
90569         * modules/nanosleep (Depends-on): Add sys_select.
90570         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
90572         Fix licensing of sigprocmask.
90573         * modules/raise (License): Relicense as LGPL.
90575 2008-06-21  Bruno Haible  <bruno@clisp.org>
90577         * lib/propername.c (proper_name_utf8): Don't use the transliterated
90578         result if it contains question marks.
90579         Reported by Michael Geng <linux@michaelgeng.de>.
90581 2008-06-19  Bruno Haible  <bruno@clisp.org>
90583         Fix CVS-ism.
90584         * doc/gnulib.texi: Include updated-stamp.texi.
90585         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
90586         (updated-stamp.texi): New rule.
90587         (gnulib.info): Depend on it.
90588         * doc/.gitignore: Add updated-stamp.texi.
90589         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90591 2008-06-19  Bruno Haible  <bruno@clisp.org>
90593         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90594         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90596 2008-06-19  Eric Blake  <ebb9@byu.net>
90598         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90599         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90600         Reported by Stepan Kasal.
90602 2008-06-18  Bruno Haible  <bruno@clisp.org>
90604         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90605         Reported by Eric Blake.
90607 2008-06-18  Eric Blake  <ebb9@byu.net>
90609         Work around cygwin 1.5.25 strsignal bug.
90610         * tests/test-strsignal.c: Allow for const char *.
90611         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90613 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90615         * users.txt: Update URL to article and add author/date
90616         information.
90618 2008-06-17  Bruno Haible  <bruno@clisp.org>
90620         New macro gl_DISABLE_THREADS.
90621         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90622         if the user did not pass --enable-threads or --disable-threads option.
90623         (gl_DISABLE_THREADS): New macro.
90624         Reported by Eric Blake <ebb9@byu.net>.
90626 2008-06-17  Bruno Haible  <bruno@clisp.org>
90628         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90629         when the macro ignores it.
90630         Based on a patch by Eric Blake <ebb9@byu.net>.
90632 2008-06-17  Bruno Haible  <bruno@clisp.org>
90634         * modules/tls (License): Change to LGPLv2+.
90635         Reported by Eric Blake.
90637 2008-06-17  Eric Blake  <ebb9@byu.net>
90639         Simplify c-stack prerequisites.
90640         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90642         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90643         check.
90644         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90645         <sys/resource.h>.
90647         Move c-stack test into testsuite.
90648         * modules/c-stack-tests: New file.
90649         * lib/c-stack.c [DEBUG]: Move test program...
90650         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90651         fail test if sigaltstack is lacking.
90652         * tests/test-c-stack.sh: New driver file.
90654 2008-06-16  Eric Blake  <ebb9@byu.net>
90656         Use raise module consistently.
90657         * modules/fatal-signal (Depends-on): Add raise.
90658         * modules/sigprocmask (Depends-on): Likewise.
90659         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90660         * lib/sigprocmask.c (sigprocmask): Likewise.
90661         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90662         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90664         Fix compliance bug in sigpending.
90665         * lib/sigprocmask.c (sigpending): Return pending array via
90666         parameter, not return value.
90668 2008-06-14  Eric Blake  <ebb9@byu.net>
90670         Improve obstack-printf test code.
90671         * tests/test-obstack-printf.c (test_function): Fix comment, and
90672         simplify usage of obstack_* in macros.  Add a test for coverage.
90673         Reported by Bruno Haible.
90675 2008-06-14  Bruno Haible  <bruno@clisp.org>
90677         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90678         array size as a constant, not as a const variable.
90679         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90680         AC_USE_SYSTEM_EXTENSIONS.
90681         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90682         Test whether the obstack_printf function actually exists.
90683         * modules/obstack-printf (Depends-on): Add extensions.
90684         (Include): Remove obstack.h.
90685         * modules/obstack-printf-posix (Depends-on): Add extensions.
90686         (Include): Remove obstack.h.
90688 2008-06-13  Eric Blake  <ebb9@byu.net>
90690         Add obstack-printf and obstack-printf-posix modules.
90691         * modules/obstack-printf: New file.
90692         * modules/obstack-printf-posix: Likewise.
90693         * MODULES.html.sh (Misc): Mention them.
90694         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90695         Likewise.
90696         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90697         Likewise.
90698         * modules/stdio (Makefile.am): Accomodate new modules.
90699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90700         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90701         Declare.
90702         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90703         functions.
90704         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90705         (gl_REPLACE_OBSTACK_PRINTF): New macros
90706         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90707         * tests/test-obstack-printf.c: New file.
90708         * modules/obstack-printf-tests: Likewise.
90709         * modules/obstack-printf-posix-tests: Likewise.
90711 2008-06-11  Bruno Haible  <bruno@clisp.org>
90713         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90714         * lib/open.c: Include errno.h.
90715         (open): Fail when attempting to write to a file that has a trailing
90716         slash.
90717         * tests/test-open.c (main): Test against trailing slash bug.
90718         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90720 2008-06-10  Bruno Haible  <bruno@clisp.org>
90722         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90723         for $? to work inside the trap command, with various /bin/sh-s.
90724         * tests/test-vc-list-files-cvs.sh: Likewise.
90726 2008-06-10  Bruno Haible  <bruno@clisp.org>
90728         * lib/acl-internal.h: Don't include gettext.h here.
90729         * lib/set-mode-acl.c: Include gettext.h here.
90730         * lib/copy-acl.c: Likewise.
90732 2008-06-10  Bruno Haible  <bruno@clisp.org>
90734         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90735         * lib/wait-process.c (wait_subprocess): Likewise.
90736         * lib/execute.h (execute): Add termsigp argument.
90737         * lib/execute.c (execute): Likewise.
90738         * lib/csharpcomp.c (compile_csharp_using_pnet,
90739         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90740         * lib/csharpexec.c (execute_csharp_using_pnet,
90741         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90742         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90743         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90744         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90745         is_jikes_present): Update.
90746         * lib/javaexec.c (execute_java_class): Update.
90747         * lib/javaversion.c (execute_and_read_line): Update.
90748         * NEWS: Document the changes.
90749         Reported by Eric Blake.
90751 2008-06-10  Eric Blake  <ebb9@byu.net>
90753         Add missing include.
90754         * tests/test-strstr.c (includes): Add <signal.h>.
90755         * tests/test-strcasestr.c (includes): Likewise.
90756         * tests/test-memmem.c (includes): Likewise.
90758 2008-06-10  Bruno Haible  <bruno@clisp.org>
90760         * lib/wait-process.c (wait_subprocess): Add an assertion.
90762 2008-06-10  Bruno Haible  <bruno@clisp.org>
90764         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90766 2008-06-10  Bruno Haible  <bruno@clisp.org>
90768         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90769         using alarm().
90770         * tests/test-strcasestr.c (main): Likewise.
90771         * tests/test-strstr.c (main): Likewise.
90773 2008-06-09  Bruno Haible  <bruno@clisp.org>
90775         Work around the Solaris 10 ACE ACLs ABI change.
90776         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90777         declare if ACL_NO_TRIVIAL is present.
90778         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90779         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90780         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90781         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90782         define if ACL_NO_TRIVIAL is present.
90783         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90784         and use the current ABI.
90785         (file_has_acl): Use same #if condition as elsewhere.
90786         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90787         in use, and use the current ABI.
90788         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90789         Reported by Jim Meyering.
90791 2008-06-09  Eric Blake  <ebb9@byu.net>
90793         Work around environments that (stupidly) ignore SIGALRM.
90794         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90795         before using alarm().
90796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90798         Reported by Ian Beckwith <ianb@erislabs.net>.
90800         Produce autobuild blurb earlier in log.
90801         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90803 2008-06-09  Jim Meyering  <meyering@redhat.com>
90804         and Ondřej Vašík  <ovasik@redhat.com>
90806         utimens.c: correct kernel bug work-around
90807         Ondřej Vašík found that the invalid return value of 280 indicates
90808         failure, not success, and the kernel bug we're trying to work
90809         around affects not just the utimensat call, but also the fallback
90810         futimens call.
90811         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90812         not success.
90813         [HAVE_FUTIMENS]: Use the same work-around, here.
90815 2008-06-09  Jim Meyering  <meyering@redhat.com>
90817         add more guards around definition of ACE_-related code
90818         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90819         ALLOW and ACE_OWNER are also defined.
90821 2008-06-08  Bruno Haible  <bruno@clisp.org>
90823         * lib/acl-internal.h: Add me as co-author.
90824         * lib/file-has-acl.c: Likewise.
90825         * lib/set-mode-acl.c: Likewise.
90826         * lib/copy-acl.c: Likewise.
90828 2008-06-08  Bruno Haible  <bruno@clisp.org>
90830         Add support for AIX ACLs.
90831         * lib/acl-internal.h (acl_nontrivial): New declaration.
90832         * lib/file-has-acl.c (acl_nontrivial): New function.
90833         (file_has_acl): Add implementation using AIX 4 ACL API.
90834         * lib/set-mode-acl.c (qset_acl): Likewise.
90835         * lib/copy-acl.c (qcopy_acl): Likewise.
90837 2008-06-08  Bruno Haible  <bruno@clisp.org>
90839         Add support for HP-UX ACLs.
90840         * lib/acl-internal.h (acl_nontrivial): New declaration.
90841         * lib/file-has-acl.c (acl_nontrivial): New function.
90842         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90843         * lib/set-mode-acl.c (qset_acl): Likewise.
90844         * lib/copy-acl.c (qcopy_acl): Likewise.
90846 2008-06-08  Bruno Haible  <bruno@clisp.org>
90848         Add support for Cygwin ACLs.
90849         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90850         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90851         the chmod_or_fchmod call.
90852         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90854 2008-06-08  Bruno Haible  <bruno@clisp.org>
90856         Fix bug with setuid modes in Solaris 10+ code.
90857         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90858         succeeded, when the mode contains some special bits.
90860 2008-06-08  Bruno Haible  <bruno@clisp.org>
90862         Add support for Solaris 7..10 ACLs.
90863         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90864         declarations.
90865         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90866         functions.
90867         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90868         * lib/set-mode-acl.c (qset_acl): Likewise.
90869         * lib/copy-acl.c (qcopy_acl): Likewise.
90871 2008-06-08  Bruno Haible  <bruno@clisp.org>
90873         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90874         declaration.
90875         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90876         (acl_access_nontrivial): Remove MacOS X case.
90877         (file_has_acl): Use acl_extended_nontrivial.
90878         * lib/copy-acl.c (qcopy_acl): Likewise.
90880 2008-06-08  Bruno Haible  <bruno@clisp.org>
90882         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90884 2008-06-08  Jim Meyering  <meyering@redhat.com>
90886         * modules/acl (Maintainer): Add Bruno Haible.
90888 2008-06-07  Bruno Haible  <bruno@clisp.org>
90890         Improve support for Tru64 ACLs.
90891         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90892         ACL on OSF/1.
90894 2008-06-07  Bruno Haible  <bruno@clisp.org>
90896         Add support for MacOS X ACLs.
90897         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90898         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90899         * lib/set-mode-acl.c (qset_acl): Likewise.
90900         * lib/copy-acl.c (qcopy_acl): Likewise.
90902 2008-06-07  Bruno Haible  <bruno@clisp.org>
90904         Fix memory leak introduced on 2008-05-22.
90905         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90906         use.
90908 2008-06-07  Bruno Haible  <bruno@clisp.org>
90910         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90911         to construct an empty ACL.
90913 2008-06-07  Bruno Haible  <bruno@clisp.org>
90915         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90916         precisely.
90917         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90919 2008-06-07  Bruno Haible  <bruno@clisp.org>
90921         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90922         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90924 2008-06-07  Bruno Haible  <bruno@clisp.org>
90926         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90927         regardless of POSIX.
90928         * doc/posix-functions/_longjmp.texi: Likewise.
90929         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90930         SystemV platform in this case.
90932 2008-06-06  Eric Blake  <ebb9@byu.net>
90934         Document abort() bugs.
90935         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90937         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90938         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90939         sigsetjmp.
90940         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90941         siglongjmp, but only as a macro.
90942         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90943         is obsolete.
90944         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90946         Tweak documentation to cover cygwin argz bugs.
90947         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90948         argz bug fix; no code change needed since no cygwin releases
90949         occurred between the last fix and the bug being tested.
90950         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90951         module and recently fixed cygwin bugs.
90952         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90953         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90954         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90955         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90956         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90957         Likewise.
90958         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90959         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90960         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90961         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90962         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90963         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90964         Likewise.
90966         Avoid gcc warning on cygwin.
90967         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90968         !ACL_NO_TRIVIAL]: Avoid unused variable.
90970 2008-06-05  Eric Blake  <ebb9@byu.net>
90972         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90973         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90974         git-version-gen fails to come up with a version.
90975         Reported by Simon Josefsson.
90977 2008-06-05  Jim Meyering  <meyering@redhat.com>
90978             Paul Eggert  <eggert@cs.ucla.edu>
90980         utimens.c: work around a probable Linux kernel bug
90981         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90982         appears to be a kernel bug that causes utimensat to return 280
90983         instead of 0, indicating success.
90985 2008-06-04  Bruno Haible  <bruno@clisp.org>
90987         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90988         2008-06-01 commit.
90990 2008-06-04  Bruno Haible  <bruno@clisp.org>
90992         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90993         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90994         (file_has_acl): Use it. Save errno afterwards.
90995         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90997 2008-06-03  Bruno Haible  <bruno@clisp.org>
90999         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
91000         draft code. Simplify #ifs.
91001         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
91002         Put Solaris code after POSIX-draft code. Fix comments regarding
91003         Solaris 10, HP-UX. Mention Cygwin.
91004         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
91006 2008-06-03  Eric Blake  <ebb9@byu.net>
91008         Provide fallback for older kernels.
91009         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
91010         Provide runtime fallback if kernel lacks support.
91011         Reported by Mike Frysinger.
91013 2008-06-02  Bruno Haible  <bruno@clisp.org>
91015         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
91016         it exists.
91018 2008-06-02  Bruno Haible  <bruno@clisp.org>
91020         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
91021         * lib/copy-acl.c (qcopy_acl): Update comment.
91023 2008-06-02  Bruno Haible  <bruno@clisp.org>
91025         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
91026         like ACL APIs.
91028 2008-06-02  Bruno Haible  <bruno@clisp.org>
91030         * tests/test-file-has-acl.sh: Use different code for Cygwin.
91031         * tests/test-set-mode-acl.sh: Likewise.
91032         * tests/test-copy-acl.sh: Likewise.
91033         * tests/test-copy-file.sh: Likewise.
91035 2008-06-02  Bruno Haible  <bruno@clisp.org>
91037         * tests/test-file-has-acl.sh: Remove unused code.
91039 2008-06-01  Bruno Haible  <bruno@clisp.org>
91041         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
91042         (copy_acl): Just a wrapper around qcopy_acl that emits the error
91043         messages.
91044         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
91046 2008-06-01  Bruno Haible  <bruno@clisp.org>
91048         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
91049         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
91050         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
91051         APIs.
91052         * modules/acl-tests (configure.ac): Remove tests now contained in
91053         m4/acl.m4.
91055 2008-06-02  Jim Meyering  <meyering@redhat.com>
91057         announce-gen: use a better key-server host name
91058         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
91059         it may be more consistently reliable.  Suggested by Werner Koch
91060         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
91062 2008-06-01  Bruno Haible  <bruno@clisp.org>
91064         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
91065         Reported by Voroskoi Andras <voroskoi@gmail.com>.
91067 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
91069         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
91071 2008-06-01  Bruno Haible  <bruno@clisp.org>
91073         New ACL tests.
91074         * tests/test-file-has-acl.sh: New file.
91075         * tests/test-file-has-acl.c: New file.
91076         * tests/test-set-mode-acl.sh: New file.
91077         * tests/test-set-mode-acl.c: New file.
91078         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
91079         * tests/test-copy-acl.c: New file.
91080         * modules/acl-tests: New file, based on modules/copy-file-tests.
91081         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
91082         (Depends-on): Add acl-tests.
91083         (configure.ac): Remove checks.
91084         (Makefile.am): Don't create test-sameacls program here any more.
91086 2008-06-01  Bruno Haible  <bruno@clisp.org>
91088         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
91089         * tests/test-sameacls.c: Include progname.h.
91090         (main): Invoke set_program_name. Portability fixes for MacOS X,
91091         Solaris, HP-UX.
91093 2008-06-01  Bruno Haible  <bruno@clisp.org>
91095         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
91096         function.
91097         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
91099 2008-06-01  Bruno Haible  <bruno@clisp.org>
91101         * modules/rpmatch (Depends-on): Add strdup.
91103 2008-06-01  Bruno Haible  <bruno@clisp.org>
91105         * lib/pipe.c: Include unistd-safer.h.
91106         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
91107         * modules/pipe (Depends-on): Add unistd-safer.
91109 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91111         * modules/autobuild (configure.ac): Call AB_INIT.
91113 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91115         * tests/test-getaddrinfo.c: Don't print debug messages by default.
91116         Suggested by Bruno Haible <bruno@clisp.org>.
91118 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91120         * tests/test-base64.c: Cast size_t to unsigned long when invoking
91121         printf.  Use %lu instead of %d.  Reported by Bruno Haible
91122         <bruno@clisp.org>.
91124 2008-05-29  Eric Blake  <ebb9@byu.net>
91126         Prefer new POSIX 200x interfaces over futimesat.
91127         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
91128         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
91129         when available.
91130         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
91132 2008-05-28  Bruno Haible  <bruno@clisp.org>
91134         * modules/stpcpy (License): Change to LGPLv2+.
91135         Requested by David Lutterkort <dlutter@redhat.com>.
91137 2008-05-27  Bruno Haible  <bruno@clisp.org>
91139         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
91140         current mingw.
91141         Reported by Jose E. Marchesi <jemarch@gnu.org>.
91143 2008-05-27  Bruno Haible  <bruno@clisp.org>
91145         * modules/iconv_open (Link): New section, from module 'iconv'.
91146         * modules/striconv (Link): Likewise.
91147         * modules/striconveh (Link): Likewise.
91148         * modules/xstriconv (Link): Likewise.
91149         * modules/unicodeio (Link): Likewise.
91150         * modules/propername (Link): Likewise.
91151         Reported by Jim Meyering.
91153 2008-05-26  Jim Meyering  <meyering@redhat.com>
91155         sha256: do not artificially restrict buffer length to be < 2^32
91156         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
91157         uint32_t to size_t.
91158         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
91159         to match.
91161         avoid unaligned access errors, e.g., on sparc
91162         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
91163         direct access through a possibly-unaligned uint64* pointer.
91164         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
91165         direct access through a possibly-unaligned uint32* pointer.
91166         Prompted by this patch from Tom "spot" Callaway:
91167         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
91169         sha512.c: fix typo in comment
91170         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
91172 2008-05-25  Bruno Haible  <bruno@clisp.org>
91174         * lib/set-mode-acl.c: Renamed from lib/acl.c.
91175         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
91176         (Makefile.am): Update lib_SOURCES.
91178 2008-05-25  Bruno Haible  <bruno@clisp.org>
91180         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
91182 2008-05-25  Jim Meyering  <meyering@redhat.com>
91184         useless-if-before-free: freed expr may have white-space differences
91185         * build-aux/useless-if-before-free: Recognize cases in which the
91186         freed expression differs from the tested one in embedded white
91187         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
91188         $1 was used, so we can't make any regexp shy.  Improved tests now
91189         detect this.
91191         useless-if-before-free: accept white space in the expression.
91192         * build-aux/useless-if-before-free: For now, any white space
91193         in the expression must be identical in the free argument.
91195         useless-if-before-free: efficiency tweak
91196         * build-aux/useless-if-before-free: Make the expression-matching
91197         regexp "shy".
91198         Make the *outer* regexp shy, not the expr-matching one.
91200         update code-in-comment to accept cast of free arg
91201         * build-aux/useless-if-before-free: Update regexp.
91203 2008-05-25  Bruno Haible  <bruno@clisp.org>
91205         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
91206         * modules/copy-file-tests (Files, Makefile.am): Update.
91207         * tests/test-copy-file.c (func_test_copy): Update.
91209 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
91211         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
91213 2008-05-23  Bruno Haible  <bruno@clisp.org>
91215         Improve support for ACLs on OSF/1.
91216         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
91217         Remove fallback for unknown flavors of ACLs.
91219 2008-05-22  Bruno Haible  <bruno@clisp.org>
91221         Add support for ACLs on OSF/1.
91222         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
91223         replacements.
91224         (acl_free_text): New macro fallback.
91225         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
91226         acl_free.
91227         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
91228         acl_free_text function. Require AC_C_INLINE.
91230 2008-05-22  Bruno Haible  <bruno@clisp.org>
91232         Make copy_acl work on MacOS X 10.5.
91233         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
91234         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
91235         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
91236         If MODE_INSIDE_ACL, don't assume that every system has the same text
91237         representation for ACLs as FreeBSD.
91238         * lib/copy-acl.c (copy_acl): Add support for platforms with
91239         !MODE_INSIDE_ACL.
91240         * lib/file-has-acl.c (file_has_acl): Likewise.
91241         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
91242         FreeBSD, MacOS X, or IRIX, respectively.
91244 2008-05-22  Bruno Haible  <bruno@clisp.org>
91246         * lib/acl.h: Don't include <sys/acl.h>.
91247         (GETACLCNT): Move fallback to lib/acl-internal.h.
91248         * lib/acl-internal.h: Include <sys/acl.h> here.
91249         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
91251 2008-05-22  Bruno Haible  <bruno@clisp.org>
91253         Split off copy_acl function to separate file.
91254         * lib/copy-acl.c: New file, extracted from lib/acl.c.
91255         * lib/acl.c (copy_acl): Moved function to separate file.
91256         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
91257         * modules/acl (Files): Add lib/copy-acl.c.
91258         (Makefiles.am): Augment lib_SOURCES.
91260 2008-05-22  Bruno Haible  <bruno@clisp.org>
91262         * modules/copy-file-tests: New file.
91263         * tests/test-copy-file.sh: New file.
91264         * tests/test-copy-file.c: New file.
91265         * tests/test-copy-file-sameacls.c: New file.
91267 2008-05-22  Eric Blake  <ebb9@byu.net>
91269         Avoid gcc warning.
91270         * tests/test-memcmp.c (main): Pass NULL indirectly.
91272 2008-05-21  Bruno Haible  <bruno@clisp.org>
91274         Add reference doc about ACLs.
91275         * doc/acl-resources.txt: New file.
91276         * doc/acl-cygwin.txt: New file.
91278 2008-05-21  Bruno Haible  <bruno@clisp.org>
91280         Avoid one more warning from gcc.
91281         * lib/vasnprintf.c (IF_LINT): Update comments.
91282         (VASNPRINTF): Use it also for the 'prefix' array initializer.
91284 2008-05-21  Jim Meyering  <meyering@redhat.com>
91286         avoid a warning from gcc
91287         * lib/vasnprintf.c (IF_LINT): Define.
91288         (scale10_round_decimal_long_double):
91289         Use it to avoid a "may be used uninitialized" warning.
91290         (scale10_round_decimal_double): Likewise.
91292 2008-05-21  Simon Josefsson  <simon@josefsson.org>
91294         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
91295         declared.
91297 2008-05-20  Bruno Haible  <bruno@clisp.org>
91299         * tests/test-memcmp.c (main): Test also the sign of the result. Test
91300         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
91302 2008-05-20  Simon Josefsson  <simon@josefsson.org>
91304         * modules/memcmp-tests: New file.
91305         * tests/test-memcmp.c: New file.
91307 2008-05-19  Bruno Haible  <bruno@clisp.org>
91309         * modules/propername (Notice, configure.ac): Put quoted "..." into
91310         --keyword option.
91311         * lib/propername.h: Update comments accordingly.
91312         Reported by Eric Blake.
91314 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
91316         * modules/getpass-gnu (Depends-on): Add fseeko.
91318 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91320         * modules/base64-tests: New file.
91322 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
91324         * lib/base64.c (base64_decode_ctx): If a decode context structure
91325         was passed in use it to ignore newlines.  If a context structure
91326         was _not_ passed in, continue to treat newlines as garbage (this
91327         is the historical behavior).  Formerly base64_decode.
91328         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91329         takes a decode context structure.
91330         * lib/base64.h (base64_decode): Macro for four-argument calls.
91331         (base64_decode_alloc): Likewise.
91332         * lib/base64.c (base64_decode_ctx): If a decode context structure
91333         was passed in use it to ignore newlines.  If a context structure
91334         was _not_ passed in, continue to treat newlines as garbage (this
91335         is the historical behavior).  Formerly base64_decode.
91336         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91337         takes a decode context structure.
91338         * lib/base64.h (base64_decode): Macro for four-argument calls.
91339         (base64_decode_alloc): Likewise.
91341 2008-05-19  Jim Meyering  <meyering@redhat.com>
91343         avoid a warning from gcc
91344         * lib/trim.c (IF_LINT): Define.
91345         (trim2): Use it to avoid a "may be used uninitialized" warning.
91347         Fix doc typo.
91348         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
91350 2008-05-19  Bruno Haible  <bruno@clisp.org>
91352         * doc/glibc-functions/getpass.texi: Document limits of other
91353         implementations.
91355 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91356             Bruno Haible <bruno@clisp.org>
91358         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
91360 2008-05-18  Bruno Haible  <bruno@clisp.org>
91362         * modules/propername: New file, from GNU gettext.
91363         * lib/propername.h: New file, from GNU gettext.
91364         * lib/propername.c: New file, from GNU gettext.
91365         * MODULES.html.sh (Internationalization functions): Add propername.
91367 2008-05-16  Jim Meyering  <meyering@redhat.com>
91368             Bruno Haible  <bruno@clisp.org>
91370         Avoid some warnings from "gcc -Wshadow".
91371         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
91373 2008-05-15  Eric Blake  <ebb9@byu.net>
91375         Extend previous patch to cygwin 1.7.0.
91376         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
91377         fast implementation in cygwin >= 1.7.0.
91378         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91381 2008-05-15  Bruno Haible  <bruno@clisp.org>
91383         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
91384         implementation in glibc >= 2.9.
91385         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91388 2008-05-15  Bruno Haible  <bruno@clisp.org>
91390         * MODULES.html.sh (Internationalization functions): Remove linebreak.
91391         (Unicode string functions): Add unilbrk/*.
91392         Reported by Karl Berry.
91394 2008-05-15  Eric Blake  <ebb9@byu.net>
91396         Fix violation of <stdbool.h> replacement in regex.
91397         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
91398         * lib/regexec.c (re_search_internal): Likewise.
91399         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
91401 2008-05-15  Jim Meyering  <meyering@redhat.com>
91403         avoid distracting test output when git or cvs is not found
91404         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
91405         * tests/test-vc-list-files-git.sh: Likewise.
91407 2008-05-15  Eric Blake  <ebb9@byu.net>
91409         Glibc finally accepted the memmem speedup code, bugzilla #5514.
91410         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
91411         glibc version.
91412         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
91413         * doc/posix-functions/strstr.texi (strstr): Likewise.
91414         * lib/str-two-way.h (MAX): Sychronize with glibc.
91416 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
91418         * lib/regcomp.c (optimize_utf8): Add a note on why we test
91419         opr.ctx_type.
91420         (calc_first): Initialize constraint field.
91421         (duplicate_node_closure): Use it instead of special casing ANCHORS.
91422         Fix grammar.
91423         (duplicate_node): Merge constraint field for all node types.
91424         (calc_eclosure_iter): Look at constraint field for all node types.
91425         * lib/regex_internal.c (create_cd_newstate): Don't look at
91426         opr.ctx_type.
91428 2008-05-14  Bruno Haible  <bruno@clisp.org>
91430         Help GCC to do better code generation.
91431         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
91432         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
91433         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
91434         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
91435         Declare with attribute 'malloc' if supported.
91437 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
91439         use "echo STR|wc -c" rather than unportable "expr length STR"
91440         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
91441         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
91443 2008-05-14  Jim Meyering  <meyering@redhat.com>
91445         use dd ibs=$n count=1 ... rather than less-portable head -c$n
91446         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
91447         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
91448         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
91449         via Collin Lasse.
91451 2008-05-14  Eric Blake  <ebb9@byu.net>
91453         Avoid quadratic growth in gl_LIBSOURCES.
91454         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
91455         Suggested by Bruno Haible.
91457         Test xmemdup0.
91458         * modules/xmemdup0-tests: New file.
91459         * tests/test-xmemdup0.c: Likewise.
91461 2008-05-13  Eric Blake  <ebb9@byu.net>
91463         Split xmemdup0 into its own module.
91464         * modules/xmemdup0: New file.
91465         * lib/xmemdup0.h: Likewise.
91466         * lib/xmemdup0.c: Likewise.
91467         * MODULES.html.sh (Memory management functions): Add xmemdup0.
91468         * lib/xalloc.h (xmemdup0): Remove.
91469         * lib/xmalloc.c (xmemdup0): Likewise.
91471 2008-05-13  Eric Blake  <ebb9@byu.net>
91472             Bruno Haible  <bruno@clisp.org>
91474         Reduce number of forks required during autoconf.
91475         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
91476         and gl_LIBSOURCES_DIR.
91477         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
91478         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
91479         m4_syscmd per file.
91480         <m4_foreach_w>: Move...
91481         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
91483 2008-05-13  Eric Blake  <ebb9@byu.net>
91485         * gnulib-tool: Fix various comment typos.
91487 2008-05-12  Bruno Haible  <bruno@clisp.org>
91489         Tailor the linebreaking algorithm.
91490         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
91492 2008-05-12  Bruno Haible  <bruno@clisp.org>
91494         Update to Unicode 5.0.0.
91495         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91496         LBP_JV, LBP_JT. Redistribute values.
91497         (unilbrk_table): Change size.
91498         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
91499         Unicode TR#14 rev. 22.
91500         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91501         LBP_JV, LBP_JT. Redistribute values.
91502         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
91503         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
91504         Update.
91505         * lib/unilbrk/lbrkprop1.h: Regenerated.
91506         * lib/unilbrk/lbrkprop2.h: Regenerated.
91507         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
91508         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
91509         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
91510         Likewise.
91511         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
91512         Likewise.
91513         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
91514         result.
91515         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
91516         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
91517         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
91518         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
91519         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
91520         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
91522 2008-05-11  Bruno Haible  <bruno@clisp.org>
91524         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
91526 2008-05-11  Bruno Haible  <bruno@clisp.org>
91528         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
91529         * modules/unilbrk/gen-lbrk: New file.
91531 2008-05-11  Bruno Haible  <bruno@clisp.org>
91533         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
91534         * m4/sha512.m4 (gl_SHA512): Likewise.
91536 2008-05-11  Jim Meyering  <meyering@redhat.com>
91538         New modules: crypto/sha256, crypto/sha512 (from coreutils)
91539         * modules/crypto/sha256: New file.
91540         * modules/crypto/sha512: Likewise.
91541         * lib/sha256.c: Likewise.
91542         * lib/sha256.h: Likewise.
91543         * lib/sha512.c: Likewise.
91544         * lib/sha512.h: Likewise.
91545         * lib/u64.h: Likewise.
91546         * m4/sha256.m4: Likewise.
91547         * m4/sha512.m4: Likewise.
91548         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
91550 2008-05-10  Bruno Haible  <bruno@clisp.org>
91552         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
91553         (Input/Output <stdio.h>): Add xprintf.
91554         (Signal handling <signal.h>): Add strsignal.
91555         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
91556         (Core language properties): Add func.
91557         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
91558         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
91559         strings.
91560         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
91561         (Input/output): New section.
91562         (File system functions): Add openat-die, stat-macros.
91563         (Networking functions): Add sockets.
91564         (Unicode string functions): Add unictype/*.
91565         (Support for building libraries and executables): Add gperf.
91566         (Support for building documentation): Add agpl-3.0.
91567         (Misc): Add nocrash.
91569 2008-05-10  Bruno Haible  <bruno@clisp.org>
91571         * modules/unictype/gen-ctype: New file.
91573 2008-05-10  Jim Meyering  <meyering@redhat.com>
91575         Make chdir-safer.c more efficient on a system with no symlinks.
91576         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
91577         also if ELOOP is zero.  Suggested by Bruno Haible.
91579         Make chdir-safer.c slightly safer.
91580         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
91581         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
91583         Avoid compile failure on systems without ELOOP (like mingw).
91584         * lib/chdir-safer.c (ELOOP): Define if not already defined.
91585         Reported by Bruno Haible.
91587 2008-05-10  Bruno Haible  <bruno@clisp.org>
91589         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91590         (is_utf8_encoding): Use a case-insensitive comparison.
91591         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91592         streq.
91594 2008-05-10  Bruno Haible  <bruno@clisp.org>
91596         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91597         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91598         * lib/unilbrk/ulc-common.h (iconv_string_length,
91599         iconv_string_keeping_offsets): Remove declarations.
91600         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91601         Don't include <iconv.h>, streq.h, xsize.h.
91602         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91603         conversion.
91604         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91605         <iconv.h>, streq.h, xsize.h.
91606         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91607         conversion.
91608         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91609         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91610         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91611         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91613 2008-05-10  Bruno Haible  <bruno@clisp.org>
91615         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91616         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91618         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91619         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91621         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91622         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91624         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91625         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91627         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91628         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91630         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91631         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91633         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91634         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91636         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91637         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91639 2008-05-10  Bruno Haible  <bruno@clisp.org>
91641         Split up 'linebreak' module.
91642         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91643         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91644         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91645         modifications.
91646         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91647         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91648         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91649         lib/linebreak.c.
91650         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91651         lib/linebreak.c.
91652         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91653         lib/linebreak.c.
91654         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91655         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91656         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91657         lib/linebreak.c.
91658         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91659         lib/linebreak.c.
91660         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91661         lib/linebreak.c.
91662         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91663         lib/linebreak.c.
91664         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91665         lib/linebreak.c.
91666         * modules/unilbrk/base: New file.
91667         * modules/unilbrk/tables: New file.
91668         * modules/unilbrk/u8-possible-linebreaks: New file.
91669         * modules/unilbrk/u16-possible-linebreaks: New file.
91670         * modules/unilbrk/u32-possible-linebreaks: New file.
91671         * modules/unilbrk/ulc-common: New file.
91672         * modules/unilbrk/ulc-possible-linebreaks: New file.
91673         * modules/unilbrk/u8-width-linebreaks: New file.
91674         * modules/unilbrk/u16-width-linebreaks: New file.
91675         * modules/unilbrk/u32-width-linebreaks: New file.
91676         * modules/unilbrk/ulc-width-linebreaks: New file.
91677         * lib/linebreak.h: Remove file.
91678         * lib/linebreak.c: Remove file.
91679         * m4/linebreak.m4: Remove file.
91680         * modules/linebreak: Remove file.
91681         * NEWS: Mention the changes.
91683 2008-05-09  Eric Blake  <ebb9@byu.net>
91685         Add xmemdup0.
91686         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91687         implementation.
91688         * lib/xmalloc.c (xmemdup0): New C implementation.
91690 2008-05-08  Bruno Haible  <bruno@clisp.org>
91692         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91694 2008-05-07  Eric Blake  <ebb9@byu.net>
91696         Support cross-compilation of <wctype.h>.
91697         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91698         AC_CACHE_CHECK.
91700 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91702         * build-aux/vc-list-files: Add support for bzr.
91704 2008-05-03  Jim Meyering  <meyering@redhat.com>
91706         avoid failed assertion with tight malloc
91707         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91709 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91711         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91712         are needed from arpa/inet.h.
91713         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91714         Reported by Bruno Haible.
91716 2008-05-02  Jim Meyering  <meyering@redhat.com>
91718         avoid compilation error on FreeBSD 6
91719         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91721 2008-05-01  Jim Meyering  <meyering@redhat.com>
91723         useless-if-before-free: correct --help's exit status description
91724         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91725         for one or more matches, etc.  Reported by Bruno Haible.
91727         vc-list-files: make the stand-alone gnulib test work
91728         * modules/vc-list-files-tests (configure.ac):
91729         Define and AC_SUBST abs_aux_dir.
91730         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91731         $(abs_top_srcdir) to each script and having each of them
91732         duplicate the work of setting PATH, set PATH here, using
91733         the new variable, abs_aux_dir instead.
91734         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91735         * tests/test-vc-list-files-git.sh: Likewise.
91736         Reported by Bruno Haible.
91738 2008-05-01  Bruno Haible  <bruno@clisp.org>
91740         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91741         reallocation. Rename 'done' to 'found_delimiter'.
91743 2008-05-01  Jim Meyering  <meyering@redhat.com>
91745         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91746         * build-aux/vc-list-files: Use `...`, not $(...).
91748 2008-04-30  Jim Meyering  <meyering@redhat.com>
91750         add tests for vc-list-files
91751         * modules/vc-list-files-tests: New module.
91752         * tests/test-vc-list-files-cvs.sh: New file.
91753         * tests/test-vc-list-files-git.sh: New file.
91755         avoid a warning from gcc
91756         * lib/getndelim2.c (IF_LINT): Define.
91757         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91759         vc-list-files: work properly with build-aux/cvsu, too
91760         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91761         to all cvs-based clauses.
91763         vc-list-files: work properly in the CVS+awk case, too
91764         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91766         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91767         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91768         take more than one file argument, so .  Add quotes, just in case $dir
91769         ever contains a shell meta-character.  Prompted by Soren Hansen in
91770         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91772 2008-04-29  Eric Blake  <ebb9@byu.net>
91774         Optimize getndelim2 to use block operations when possible.
91775         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91776         freadseek, and memchr2.
91777         * lib/getndelim2.c (getndelim2): Use them for block reads.
91779 2008-04-29  Bruno Haible  <bruno@clisp.org>
91781         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91782         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91783         * modules/inet_ntop (Depends-on): Add extensions.
91784         * modules/inet_pton (Depends-on): Likewise.
91785         Reported by Simon Josefsson.
91787 2008-04-29  Jim Meyering  <meyering@redhat.com>
91789         When the is more than one match in a block, match all of them.
91790         * build-aux/useless-if-before-free: Iterate through each block
91791         until there are no more matches.
91793         Fix broken useless-if-before-free script.
91794         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91795         the expression to match cast of argument to free-like function.
91797 2008-04-29  Eric Blake  <ebb9@byu.net>
91799         Use new header.
91800         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91802 2008-04-29  Jim Meyering  <meyering@redhat.com>
91804         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91805         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91806         by gnulib to exist and to declare e.g., inet_ntop.
91807         Don't include "inet_ntop.h", now removed.
91809         * m4/arpa_inet_h.m4: Remove trailing blanks.
91811 2008-04-29  Eric Blake  <ebb9@byu.net>
91813         Silence valgrind on safe reads beyond potential array bounds.
91814         * lib/rawmemchr.valgrind: New file.
91815         * lib/strchrnul.valgrind: Likewise.
91816         * modules/rawmemchr (Files): Distribute new file.
91817         * modules/strchrnul (Files): Likewise.
91818         Suggested by Bruno Haible.
91820 2008-04-29  Bruno Haible  <bruno@clisp.org>
91822         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91823         (inet_ntop, inet_pton): Change portability warning's wording.
91824         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91825         Invoke gl_CHECK_NEXT_HEADERS.
91826         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91827         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91828         set ARPA_INET_H.
91829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91830         * modules/arpa_inet (Description): No longer only for systems that
91831         lack it.
91832         (Depends-on): Add include_next.
91833         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91834         HAVE_ARPA_INET_H.
91836 2008-04-29  Jim Meyering  <meyering@redhat.com>
91838         * modules/mkdir (License): Re-license as LGPLv2+.
91840 2008-04-29  Bruno Haible  <bruno@clisp.org>
91842         * modules/rawmemchr (Maintainer): Set to Eric.
91843         * modules/strchrnul (Maintainer): Likewise.
91845 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91847         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91848         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91850         * modules/arpa_inet (arpa/inet.h): Use them.
91852 2008-04-28  Eric Blake  <ebb9@byu.net>
91854         Test getndelim2.
91855         * modules/getndelim2-tests: New file.
91856         * tests/test-getndelim2.c: Likewise.
91857         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91858         stream.
91859         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91861         * MODULES.html.sh: Document new module.
91863 2008-04-20  Bruno Haible  <bruno@clisp.org>
91865         * lib/c-stack.c (die): Use raise.
91866         * modules/c-stack (Depends-on): Add raise.
91868 2008-04-28  Bruno Haible  <bruno@clisp.org>
91870         Expect rpmatch to be declared.
91871         * lib/yesno.c (rpmatch): Remove declaration.
91873         Declare rpmatch.
91874         * lib/stdlib.in.h (rpmatch): New declaration.
91875         * lib/rpmatch.c: Include <stdlib.h> first.
91876         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91877         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91879         HAVE_RPMATCH.
91880         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91881         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91882         (Include): Set to <stdlib.h>.
91883         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91884         HAVE_RPMATCH.
91885         * NEWS: Document the change.
91887 2008-04-28  Bruno Haible  <bruno@clisp.org>
91889         Change rpmatch to use nl_langinfo when appropriate.
91890         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91891         (N_): New macro.
91892         (localized_pattern): New function/macro.
91893         (try): Remove match, nomatch arguments. Copy the pattern into safe
91894         memory before caching it.
91895         (rpmatch): Use localized_pattern. Add translator comments.
91896         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91897         Suggested by Eric Blake.
91898         * modules/rpmatch (Depends-on): Add stdbool.
91900 2008-04-28  Eric Blake  <ebb9@byu.net>
91902         Add rawmemchr module, matching glibc.
91903         * modules/string (Makefile.am): New indicator.
91904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91905         * lib/string.in.h (rawmemchr): Declare when appropriate.
91906         * modules/rawmemchr: New file.
91907         * m4/rawmemchr.m4: Likewise.
91908         * lib/rawmemchr.c: Likewise.
91909         * modules/rawmemchr-tests: Likewise.
91910         * tests/test-rawmemchr.c: Likewise.
91911         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91912         module.
91913         * modules/strchrnul (Depends-on): Add rawmemchr.
91914         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91916         Whitespace cleanup.
91917         * tests/test-strchrnul.c: Reindent.
91918         * lib/strchrnul.c: Likewise.
91920         Optimize and test strchrnul.
91921         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91922         * modules/strchrnul-tests: New file.
91923         * tests/test-strchrnul.c: Likewise.
91925         Remove intprops dependency.
91926         * modules/memchr (Depends-on): Remove intprops.
91927         * modules/memrchr (Depends-on): Likewise.
91928         * modules/memchr2 (Depends-on): Likewise.
91929         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91930         * lib/memrchr.c (__memrchr): Likewise.
91931         * lib/memrchr2.c (memchr2): Likewise.
91932         Reported by Simon Josefsson.
91934 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91936         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91937         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91939 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91941         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91943         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91945         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91947         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91948         declarations.
91949         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91951         * m4/inet_pton.m4: Don't check for header files.
91953         * m4/inet_ntop.m4: Don't check for header files.
91955 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91957         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91958         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91959         trigger for cygwin).
91960         Reported by Bruno Haible  <bruno@clisp.org>.
91962 2008-04-28  Bruno Haible  <bruno@clisp.org>
91964         * doc/posix-functions/strdup.texi: Mention mingw problem.
91966 2008-04-27  Bruno Haible  <bruno@clisp.org>
91968         * modules/stat-time-tests (Depends-on): Add sleep.
91969         * tests/test-stat-time.c (force_unlink): New function.
91970         (cleanup): Use it.
91971         (test_mtime): Remove the ctime related tests.
91972         (test_ctime): New function, containing the ctime related tests.
91973         (main): Call test_ctime, except on native Windows platforms.
91975 2008-04-27  Bruno Haible  <bruno@clisp.org>
91977         * lib/rpmatch.c (rpmatch): Add some comments.
91978         Reported by James Youngman <jay@gnu.org>.
91980 2008-04-27  Bruno Haible  <bruno@clisp.org>
91982         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91983         quiet NaNs.
91985 2008-04-27  Bruno Haible  <bruno@clisp.org>
91987         Make test-yesno.sh work on mingw.
91988         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91989         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91990         (main): Set stdin to binary mode.
91991         * modules/yesno-tests (Depends-on): Add binary-io.
91993 2008-04-27  Bruno Haible  <bruno@clisp.org>
91995         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91996         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91997         argument that lie outside the IEEE 854 domain.
91998         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91999         (gl_ISFINITE): Use it.
92000         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
92002 2008-04-27  Bruno Haible  <bruno@clisp.org>
92004         Allow local renaming in config.h.
92005         * lib/memrchr.c (memrchr): Don't undefine outside libc.
92007 2008-04-27  Bruno Haible  <bruno@clisp.org>
92009         * lib/memchr.c (__memchr): Change type of 'i'.
92010         * lib/memchr2.c (memchr2): Likewise.
92012 2008-04-26  Eric Blake  <ebb9@byu.net>
92013         and Bruno Haible  <bruno@clisp.org>
92015         Optimize and test memrchr.
92016         * modules/memrchr (Depends-on): Add intprops.
92017         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
92018         * modules/memrchr-tests: New file.
92019         * tests/test-memrchr.c: New file.
92021 2008-04-26  Bruno Haible  <bruno@clisp.org>
92023         Add tentative support for DragonFly BSD.
92024         * lib/stdio-impl.h: Add macros for DragonFly BSD.
92025         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
92026         fp.
92027         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
92028         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
92029         * lib/fpurge.c (fpurge): Likewise.
92030         * lib/freadable.c (freaadable): Likewise.
92031         * lib/freadahead.c (freadahead): Likewise.
92032         * lib/freading.c (freading): Likewise.
92033         * lib/freadptr.c (freadptr): Likewise.
92034         * lib/freadseek.c (freadptrinc): Likewise.
92035         * lib/fseeko.c (fseeko): Likewise.
92036         * lib/fseterr.c (fseterr): Likewise.
92037         * lib/fwritable.c (fwritable): Likewise.
92038         * lib/fwriting.c (fwriting): Likewise.
92040 2008-04-26  Bruno Haible  <bruno@clisp.org>
92042         * lib/stdio-impl.h: New file.
92043         * lib/fbufmode.c: Include stdio-impl.h.
92044         (fbufmode): Use fp_, remove redundant #defines.
92045         * lib/fflush.c: Include stdio-impl.h.
92046         (clear_ungetc_buffer): Remove redundant #defines.
92047         * lib/fpurge.c: Include stdio-impl.h.
92048         (fpurge): Remove redundant #defines.
92049         * lib/freadable.c: Include stdio-impl.h.
92050         (freadable): Remove redundant #defines.
92051         * lib/freadahead.c: Include stdio-impl.h.
92052         (freadahead): Remove redundant #defines.
92053         * lib/freading.c: Include stdio-impl.h.
92054         (freading): Remove redundant #defines.
92055         * lib/freadptr.c: Include stdio-impl.h.
92056         (freadptr): Remove redundant #defines.
92057         * lib/freadseek.c: Include stdio-impl.h.
92058         (freadptrinc): Remove redundant #defines.
92059         * lib/fseeko.c: Include stdio-impl.h.
92060         (rpl_fseeko): Remove redundant #defines.
92061         * lib/fseterr.c: Include stdio-impl.h.
92062         (fseterr): Remove redundant #defines.
92063         * lib/fwritable.c: Include stdio-impl.h.
92064         (fwritable: Remove redundant #defines.
92065         * lib/fwriting.c: Include stdio-impl.h.
92066         (fwriting): Remove redundant #defines.
92067         * modules/fbufmode (Files): Add lib/stdio-impl.h.
92068         * modules/fflush (Files): Likewise.
92069         * modules/fpurge (Files): Likewise.
92070         * modules/freadable (Files): Likewise.
92071         * modules/freadahead (Files): Likewise.
92072         * modules/freading (Files): Likewise.
92073         * modules/freadptr (Files): Likewise.
92074         * modules/freadseek (Files): Likewise.
92075         * modules/fseeko (Files): Likewise.
92076         * modules/fseterr (Files): Likewise.
92077         * modules/fwritable (Files): Likewise.
92078         * modules/fwriting (Files): Likewise.
92080 2008-04-26  Bruno Haible  <bruno@clisp.org>
92082         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
92083         restore_seek_optimization, update_fpos_cache): New functions, extracted
92084         from rpl_fflush.
92085         (rpl_fflush): Use them.
92086         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
92087         (gl_REPLACE_FFLUSH): Use it.
92089 2008-04-26  Bruno Haible  <bruno@clisp.org>
92091         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
92092         on Solaris.
92093         * tests/test-xstrtoimax.sh: Likewise.
92094         * tests/test-xstrtoumax.sh: Likewise.
92095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92097 2008-04-26  Bruno Haible  <bruno@clisp.org>
92099         * modules/memchr-tests: New file.
92100         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
92102 2008-04-26  Eric Blake  <ebb9@byu.net>
92103             Bruno Haible  <bruno@clisp.org>
92105         * lib/memchr.c: Include intprops.h.
92106         (__memchr): Optimize parallel detection of matching bytes. Rename local
92107         variables. Add explanatory comments.
92109 2008-04-26  Bruno Haible  <bruno@clisp.org>
92111         Fix module 'memchr', broken since 2000-10-28.
92112         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
92114 2008-04-26  Bruno Haible  <bruno@clisp.org>
92116         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
92117         comments.
92119 2008-04-25  Eric Blake  <ebb9@byu.net>
92121         Use native fstatat on cygwin 1.7.0.
92122         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
92123         first.
92125 2008-04-23  Eric Blake  <ebb9@byu.net>
92127         Improve memchr2 performance.
92128         * lib/memchr2.c (memchr2): Further optimize parallel detection of
92129         NUL bytes.
92130         * modules/memchr2 (Depends-on): Use intprops.h.
92132 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92134         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
92135         an inline function instead of a CPP macro.  Patch by Ben Pfaff
92136         <blp@cs.stanford.edu>.
92138 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92140         * lib/arpa_inet.in.h: New file.
92142         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
92143         (Makefile.am): Sed in substitute header file.
92145         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
92146         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
92148         * modules/inet_ntop (configure.ac): Use
92149         gl_ARPA_INET_MODULE_INDICATOR.
92151         * modules/inet_pton (configure.ac): Use
92152         gl_ARPA_INET_MODULE_INDICATOR.
92154 2008-04-22  Jim Meyering  <meyering@redhat.com>
92156         * modules/verify (License): Re-license as LGPLv2+.
92158 2008-04-22  Simon Josefsson  <simon@josefsson.org>
92160         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
92161         parameter to void* as per POSIX standard (MinGW uses char*).
92163 2008-04-21  Bruno Haible  <bruno@clisp.org>
92165         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
92166         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
92167         Define to replacements if REPLACE_ISWCNTRL is 1.
92168         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
92169         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
92170         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
92171         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
92172         what it fixes.
92173         * doc/posix-functions/iswalpha.texi: Likewise.
92174         * doc/posix-functions/iswblank.texi: Likewise.
92175         * doc/posix-functions/iswcntrl.texi: Likewise.
92176         * doc/posix-functions/iswdigit.texi: Likewise.
92177         * doc/posix-functions/iswgraph.texi: Likewise.
92178         * doc/posix-functions/iswlower.texi: Likewise.
92179         * doc/posix-functions/iswprint.texi: Likewise.
92180         * doc/posix-functions/iswpunct.texi: Likewise.
92181         * doc/posix-functions/iswspace.texi: Likewise.
92182         * doc/posix-functions/iswupper.texi: Likewise.
92183         * doc/posix-functions/iswxdigit.texi: Likewise.
92184         Reported by Alain Guibert.
92186 2008-04-21  Bruno Haible  <bruno@clisp.org>
92188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
92189         Patch by Alain Guibert.
92191 2008-04-21  Bruno Haible  <bruno@clisp.org>
92193         Fix test failures on mingw.
92194         * tests/test-xstrtol.c (print_no_progname): New function.
92195         (main): Install it in error_print_progname hook.
92196         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
92197         * tests/test-xstrtoimax.sh: Likewise.
92198         * tests/test-xstrtoumax.sh: Likewise.
92200 2008-04-21  Bruno Haible  <bruno@clisp.org>
92202         Fix test failure on mingw.
92203         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
92205 2008-04-21  Bruno Haible  <bruno@clisp.org>
92207         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
92208         Actually assign a value.
92210 2008-04-20  Bruno Haible  <bruno@clisp.org>
92212         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
92213         take 2.
92214         * lib/canonicalize.c (canonicalize_file_name): Elide if the
92215         'canonicalize-lgpl' module is also used.
92216         * lib/canonicalize-lgpl.c: Undo last change.
92217         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
92219 2008-04-20  Bruno Haible  <bruno@clisp.org>
92221         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
92222         config.h. Provide _mkdir based fallback for mingw.
92223         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
92224         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
92225         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
92226         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
92227         rather than defining mkdir in config.h.
92228         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
92229         (gl_SYS_STAT_H_DEFAULTS): New macro.
92230         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
92231         HAVE_IO_H any more.
92232         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
92233         HAVE_DECL_MKDIR and HAVE_IO_H.
92235 2008-04-20  Bruno Haible  <bruno@clisp.org>
92237         * lib/isapipe.c: Port to native Windows platforms.
92239 2008-04-20  Bruno Haible  <bruno@clisp.org>
92241         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
92243 2008-04-21  Eric Blake  <ebb9@byu.net>
92245         Work around preprocessors that don't handle UINTMAX_MAX.
92246         * lib/memchr2.c (memchr2): Avoid embedded #if.
92247         Reported by Alain Guibert, fix suggested by Bruno Haible.
92249 2008-04-21  Simon Josefsson  <simon@josefsson.org>
92251         * doc/posix-functions/strftime.texi (strftime): Explain better
92252         Windows incompatibility.  Suggested by Micah Cowan
92253         <micah@cowan.name>.
92255 2008-04-20  Bruno Haible  <bruno@clisp.org>
92257         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
92258         unistr/u8-mblen.
92260 2008-04-20  Bruno Haible  <bruno@clisp.org>
92262         Fix test failure on platforms with non-GNU iconv.
92263         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
92264         (U_TO_U8): Use it, rather than u16_to_u8.
92265         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
92266         units at the end of the input string.
92267         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
92269 2008-04-20  Bruno Haible  <bruno@clisp.org>
92271         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
92272         when the resulting length is 0.
92273         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
92275 2008-04-20  Bruno Haible  <bruno@clisp.org>
92277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
92278         works.
92279         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
92281 2008-04-20  Bruno Haible  <bruno@clisp.org>
92283         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
92284         * modules/tsearch-tests (configure.ac): Test for initstate function.
92286 2008-04-20  Bruno Haible  <bruno@clisp.org>
92288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
92289         for nlink_t if missing.
92290         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
92292 2008-04-19  Bruno Haible  <bruno@clisp.org>
92294         Work around snprintf bug on Linux libc5.
92295         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
92296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
92297         gl_SNPRINTF_SIZE1.
92298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92299         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
92300         that test failed.
92301         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
92302         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
92303         * modules/snprintf (Files): Add m4/printf.m4.
92304         * modules/vsnprintf (Files): Likewise.
92305         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
92306         * doc/posix-functions/vsnprintf.texi: Likewise.
92308 2008-04-19  Bruno Haible  <bruno@clisp.org>
92310         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
92311         from 0.0058 to less than 10^-7.
92313 2008-04-19  Bruno Haible  <bruno@clisp.org>
92315         Fix rounding when a precision is given.
92316         * lib/vasnprintf.c (is_borderline): New function.
92317         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
92318         9...9x.
92319         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
92320         %e, %g.
92321         * tests/test-vasprintf-posix.c (test_function): Likewise.
92322         * tests/test-snprintf-posix.h (test_function): Likewise.
92323         * tests/test-sprintf-posix.h (test_function): Likewise.
92324         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
92325         * tests/test-printf-posix.h (test_function): Likewise.
92326         * tests/test-printf-posix.output: Update.
92327         Reported by John Darrington <john@darrington.wattle.id.au> via
92328         Ben Pfaff <blp@cs.stanford.edu>.
92330 2008-04-18  Simon Josefsson  <simon@josefsson.org>
92332         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
92333         Suggested by Bruno Haible <bruno@clisp.org>.
92335 2008-04-17  Bruno Haible  <bruno@clisp.org>
92337         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
92338         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
92339         implementation.
92340         Patch by Bruce Merry <bmerry@gmail.com>.
92342 2008-04-17  Simon Josefsson  <simon@josefsson.org>
92344         * doc/posix-functions/strftime.texi (strftime): Mention that %e
92345         doesn't work under Windows.
92347 2008-04-16  Bruno Haible  <bruno@clisp.org>
92349         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
92350         New macros.
92351         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
92352         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
92353         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
92354         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
92355         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
92356         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
92357         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
92358         macros.
92359         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
92360         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
92361         Northern Sotho, Uighur.
92363 2008-04-16  Bruno Haible  <bruno@clisp.org>
92365         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
92366         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
92367         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
92368         Reported by Daniel Bergström <daniel@octocode.com>.
92370 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
92371             Bruno Haible  <bruno@clisp.org>
92373         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
92374         function.
92375         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
92376         New functions, mostly extracted from gl_locale_name_default.
92377         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
92379 2008-04-16  Eric Blake  <ebb9@byu.net>
92381         Adjust strtod detection to catch glibc 2.7 bug.
92382         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
92383         Reported by John Gatewood Ham.
92385 2008-04-16  Bruno Haible  <bruno@clisp.org>
92387         Add tentative support for Linux libc5.
92388         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
92389         * lib/fpurge.c (fpurge): Likewise.
92390         * lib/freadable.c (freadable): Likewise.
92391         * lib/freadahead.c (freadahead): Likewise.
92392         * lib/freading.c (freading): Likewise.
92393         * lib/freadptr.c (freadptr): Likewise.
92394         * lib/freadseek.c (freadptrinc): Likewise.
92395         * lib/fseeko.c (rpl_fseeko): Likewise.
92396         * lib/fseterr.c (fseterr): Likewise.
92397         * lib/fwritable.c (fwritable): Likewise.
92398         * lib/fwriting.c (fwriting): Likewise.
92399         Reported by Alain Guibert <alguibert+bts@free.fr>.
92401 2008-04-15  Bruno Haible  <bruno@clisp.org>
92403         * modules/mathl (configure.ac): Define module indicator.
92405 2008-04-15  Bruno Haible  <bruno@clisp.org>
92407         * lib/logl.c (logl): Remove unused variables.
92409 2008-04-15  Bruno Haible  <bruno@clisp.org>
92411         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
92412         fails.
92414 2008-04-15  Bruno Haible  <bruno@clisp.org>
92416         * lib/trim.c (trim2): Fix argument of isspace() macro.
92418 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
92420         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
92421         to 0.
92422         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
92424 2008-04-14  Bruno Haible  <bruno@clisp.org>
92426         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
92427         AC_LANG_PROGRAM argument.
92428         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
92429         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
92430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
92431         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92432         * m4/math_h.m4 (gl_MATH_H): Likewise.
92433         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
92434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92435         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92436         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
92437         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
92438         * m4/regex.m4 (gl_REGEX): Likewise.
92439         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
92440         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
92441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92442         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
92443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92444         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92445         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92448 2008-04-14  Jim Meyering  <meyering@redhat.com>
92450         test-strtod: fix typos: s/abs/fabs/
92451         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
92453 2008-04-13  Bruno Haible  <bruno@clisp.org>
92455         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
92456         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
92457         module is also used and while not building the reloc-wrapper.
92459 2008-04-13  Bruno Haible  <bruno@clisp.org>
92461         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
92463 2008-04-13  Bruno Haible  <bruno@clisp.org>
92465         Fix AIX compilation failure introduced on 2008-04-02.
92466         * tests/test-frexp.c (exp): Undefine before redefining.
92467         * tests/test-frexpl.c (exp): Likewise.
92469 2008-04-13  Bruno Haible  <bruno@clisp.org>
92471         Work around a HP-UX stdio bug.
92472         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
92473         * tests/test-ftello.c (main): Likewise.
92474         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
92475         * doc/posix-functions/ftello.texi: Likewise.
92477 2008-04-13  Bruno Haible  <bruno@clisp.org>
92479         Make test-signbit pass on HP-UX/hppa.
92480         * tests/test-signbit.c (minus_zerol): New variable.
92481         (test_signbitl): Use it.
92483 2008-04-13  Bruno Haible  <bruno@clisp.org>
92485         Make truncl work on OSF/1 4.0.
92486         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
92487         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92488         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
92490         HAVE_DECL_TRUNCL.
92491         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
92492         HAVE_DECL_TRUNCL.
92493         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
92495 2008-04-13  Bruno Haible  <bruno@clisp.org>
92497         * lib/unictype.h: Remove trailing comma from enumeration definitions.
92499 2008-04-13  Bruno Haible  <bruno@clisp.org>
92501         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
92502         expression, so as to avoid HP-UX 11 cc compiler bug.
92504 2008-04-13  Bruno Haible  <bruno@clisp.org>
92506         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
92508 2008-04-13  Bruno Haible  <bruno@clisp.org>
92510         * lib/git-merge-changelog.c: Remove empty declaration outside of
92511         functions.
92513 2008-04-13  Bruno Haible  <bruno@clisp.org>
92515         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
92517 2008-04-13  Bruno Haible  <bruno@clisp.org>
92519         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
92520         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
92521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
92522         also if it exists but lacks definitions of the SHUT_* macros.
92523         * modules/sys_socket (Description): Update.
92524         Reported by Elbert Pol <e.pol@chello.nl>.
92526 2008-04-13  Bruno Haible  <bruno@clisp.org>
92528         * lib/localcharset.c (OS2): Don't redefine if already defined.
92529         Reported by Elbert Pol <e.pol@chello.nl>.
92531 2008-04-13  Bruno Haible  <bruno@clisp.org>
92533         * lib/binary-io.h [__EMX__]: Include <io.h>.
92534         Reported by Elbert Pol <e.pol@chello.nl>.
92536 2008-04-12  Bruno Haible  <bruno@clisp.org>
92538         * lib/fpucw.h: Enable the definitions also for x86_64.
92539         Needed for NetBSD/x86_64.
92540         Reported by Thomas Klausner <tk@giga.or.at>.
92542 2008-04-12  Bruno Haible  <bruno@clisp.org>
92544         * tests/test-strtod.c: Include isnand.h.
92545         (main): Use isnand instead of isnan.
92546         Reported by Jim Meyering.
92548 2008-04-12  Bruno Haible  <bruno@clisp.org>
92550         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
92551         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92553 2008-04-12  Jim Meyering  <meyering@redhat.com>
92555         * m4/math_h.m4 (gl_MATH_H): Fix typos.
92557 2008-04-12  Bruno Haible  <bruno@clisp.org>
92559         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
92560         Reported by Elbert Pol <e.pol@chello.nl>.
92562 2008-04-12  Eric Blake  <ebb9@byu.net>
92564         Work around Solaris 10 math.h bug.
92565         * m4/math_h.m4 (gl_MATH_H): Check for bug.
92566         (gl_MATH_H_DEFAULTS): Set up default.
92567         * modules/math (Makefile.am): Replace new indicators.
92568         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
92569         * tests/test-math.c (main): Test this.
92570         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
92571         * doc/posix-headers/math.texi (math.h): Mention bug.
92572         Reported by Nelson H. F. Beebe and Jim Meyering.
92574 2008-04-11  Bruno Haible  <bruno@clisp.org>
92576         Adapt to future versions of Apple GCC.
92577         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
92578         Reported by Peter O'Gorman <peter@pogma.com>.
92580 2008-04-11  Bruno Haible  <bruno@clisp.org>
92582         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
92584 2008-04-11  Bruno Haible  <bruno@clisp.org>
92586         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92588         * modules/getaddrinfo-tests (Makefile.am): Define
92589         test_getaddrinfo_LDADD.
92591 2008-04-11  Bruno Haible  <bruno@clisp.org>
92593         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92594         (init): Fix syntax error.
92595         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92596         is declared.
92598 2008-04-11  Bruno Haible  <bruno@clisp.org>
92600         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92601         * modules/glob (Depends-on): Add stdbool.
92603 2008-04-11  Bruno Haible  <bruno@clisp.org>
92605         * lib/trim.c: Include <string.h>.
92607 2008-04-11  Eric Blake  <ebb9@byu.net>
92609         Avoid compile failure on OS/2.
92610         * lib/regex_internal.h (internal_function): Disable optimization
92611         on OS/2 (__EMX__), where it caused compiler error.
92612         Reported by Elbert Pol.
92614 2008-04-11  Bruno Haible  <bruno@clisp.org>
92616         Flush the standard error stream before aborting. Needed on mingw.
92617         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92618         * tests/test-array_list.c (ASSERT): Likewise.
92619         * tests/test-array_oset.c (ASSERT): Likewise.
92620         * tests/test-avltree_list.c (ASSERT): Likewise.
92621         * tests/test-avltree_oset.c (ASSERT): Likewise.
92622         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92623         * tests/test-binary-io.c (ASSERT): Likewise.
92624         * tests/test-byteswap.c (ASSERT): Likewise.
92625         * tests/test-c-ctype.c (ASSERT): Likewise.
92626         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92627         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92628         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92629         * tests/test-c-strstr.c (ASSERT): Likewise.
92630         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92631         * tests/test-canonicalize.c (ASSERT): Likewise.
92632         * tests/test-carray_list.c (ASSERT): Likewise.
92633         * tests/test-ceilf1.c (ASSERT): Likewise.
92634         * tests/test-ceilf2.c (ASSERT): Likewise.
92635         * tests/test-ceill.c (ASSERT): Likewise.
92636         * tests/test-count-one-bits.c (ASSERT): Likewise.
92637         * tests/test-fbufmode.c (ASSERT): Likewise.
92638         * tests/test-fflush2.c (ASSERT): Likewise.
92639         * tests/test-floorf1.c (ASSERT): Likewise.
92640         * tests/test-floorf2.c (ASSERT): Likewise.
92641         * tests/test-floorl.c (ASSERT): Likewise.
92642         * tests/test-fopen.c (ASSERT): Likewise.
92643         * tests/test-fpending.c (ASSERT): Likewise.
92644         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92645         * tests/test-fpurge.c (ASSERT): Likewise.
92646         * tests/test-freadable.c (ASSERT): Likewise.
92647         * tests/test-freadahead.c (ASSERT): Likewise.
92648         * tests/test-freading.c (ASSERT): Likewise.
92649         * tests/test-freadptr.c (ASSERT): Likewise.
92650         * tests/test-freadptr2.c (ASSERT): Likewise.
92651         * tests/test-freadseek.c (ASSERT): Likewise.
92652         * tests/test-freopen.c (ASSERT): Likewise.
92653         * tests/test-frexp.c (ASSERT): Likewise.
92654         * tests/test-frexpl.c (ASSERT): Likewise.
92655         * tests/test-fseek.c (ASSERT): Likewise.
92656         * tests/test-fseeko.c (ASSERT): Likewise.
92657         * tests/test-fstrcmp.c (ASSERT): Likewise.
92658         * tests/test-ftell.c (ASSERT): Likewise.
92659         * tests/test-ftello.c (ASSERT): Likewise.
92660         * tests/test-func.c (ASSERT): Likewise.
92661         * tests/test-fwritable.c (ASSERT): Likewise.
92662         * tests/test-fwriting.c (ASSERT): Likewise.
92663         * tests/test-getdelim.c (ASSERT): Likewise.
92664         * tests/test-getline.c (ASSERT): Likewise.
92665         * tests/test-i-ring.c (ASSERT): Likewise.
92666         * tests/test-iconv-utf.c (ASSERT): Likewise.
92667         * tests/test-iconv.c (ASSERT): Likewise.
92668         * tests/test-isfinite.c (ASSERT): Likewise.
92669         * tests/test-isnand.c (ASSERT): Likewise.
92670         * tests/test-isnanf.c (ASSERT): Likewise.
92671         * tests/test-isnanl.h (ASSERT): Likewise.
92672         * tests/test-ldexpl.c (ASSERT): Likewise.
92673         * tests/test-linked_list.c (ASSERT): Likewise.
92674         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92675         * tests/test-localename.c (ASSERT): Likewise.
92676         * tests/test-lseek.c (ASSERT): Likewise.
92677         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92678         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92679         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92680         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92681         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92682         * tests/test-mbschr.c (ASSERT): Likewise.
92683         * tests/test-mbscspn.c (ASSERT): Likewise.
92684         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92685         * tests/test-mbspbrk.c (ASSERT): Likewise.
92686         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92687         * tests/test-mbsrchr.c (ASSERT): Likewise.
92688         * tests/test-mbsspn.c (ASSERT): Likewise.
92689         * tests/test-mbsstr1.c (ASSERT): Likewise.
92690         * tests/test-mbsstr2.c (ASSERT): Likewise.
92691         * tests/test-mbsstr3.c (ASSERT): Likewise.
92692         * tests/test-memchr2.c (ASSERT): Likewise.
92693         * tests/test-memmem.c (ASSERT): Likewise.
92694         * tests/test-open.c (ASSERT): Likewise.
92695         * tests/test-printf-frexp.c (ASSERT): Likewise.
92696         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92697         * tests/test-printf-posix.c (ASSERT): Likewise.
92698         * tests/test-quotearg.c (ASSERT): Likewise.
92699         * tests/test-rbtree_list.c (ASSERT): Likewise.
92700         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92701         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92702         * tests/test-round1.c (ASSERT): Likewise.
92703         * tests/test-roundf1.c (ASSERT): Likewise.
92704         * tests/test-roundl.c (ASSERT): Likewise.
92705         * tests/test-signbit.c (ASSERT): Likewise.
92706         * tests/test-sleep.c (ASSERT): Likewise.
92707         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92708         * tests/test-snprintf.c (ASSERT): Likewise.
92709         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92710         * tests/test-stat-time.c (ASSERT): Likewise.
92711         * tests/test-strcasestr.c (ASSERT): Likewise.
92712         * tests/test-strerror.c (ASSERT): Likewise.
92713         * tests/test-striconv.c (ASSERT): Likewise.
92714         * tests/test-striconveh.c (ASSERT): Likewise.
92715         * tests/test-striconveha.c (ASSERT): Likewise.
92716         * tests/test-strsignal.c (ASSERT): Likewise.
92717         * tests/test-strstr.c (ASSERT): Likewise.
92718         * tests/test-strtod.c (ASSERT): Likewise.
92719         * tests/test-trunc1.c (ASSERT): Likewise.
92720         * tests/test-trunc2.c (ASSERT): Likewise.
92721         * tests/test-truncf1.c (ASSERT): Likewise.
92722         * tests/test-truncf2.c (ASSERT): Likewise.
92723         * tests/test-truncl.c (ASSERT): Likewise.
92724         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92725         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92726         * tests/test-vasnprintf.c (ASSERT): Likewise.
92727         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92728         * tests/test-vasprintf.c (ASSERT): Likewise.
92729         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92730         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92731         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92732         * tests/test-vsnprintf.c (ASSERT): Likewise.
92733         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92734         * tests/test-wcwidth.c (ASSERT): Likewise.
92735         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92736         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92737         * tests/test-xvasprintf.c (ASSERT): Likewise.
92738         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92739         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92740         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92741         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92742         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92743         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92744         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92745         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92746         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92747         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92748         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92749         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92750         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92751         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92752         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92753         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92754         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92755         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92756         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92757         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92758         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92759         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92760         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92761         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92762         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92763         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92764         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92765         * tests/unictype/test-combining.c (ASSERT): Likewise.
92766         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92767         * tests/unictype/test-digit.c (ASSERT): Likewise.
92768         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92769         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92770         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92771         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92772         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92773         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92774         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92775         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92776         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92777         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92778         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92779         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92780         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92781         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92782         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92783         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92784         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92785         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92786         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92787         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92788         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92789         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92790         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92791         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92792         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92793         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92794         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92795         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92796         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92797         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92798         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92799         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92800         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92801         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92802         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92803         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92804         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92805         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92806         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92807         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92808         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92809         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92810         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92811         Reported by Eric Blake.
92813 2008-04-11  Bruno Haible  <bruno@clisp.org>
92815         * lib/wchar.in.h: Tweak comment.
92817 2008-04-11  Bruno Haible  <bruno@clisp.org>
92819         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92820         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92821         gl_COMMON.
92822         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92824 2008-04-11  Bruno Haible  <bruno@clisp.org>
92826         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92828 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92830         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92831         of attempting to use non-existing /dev/*random.  Based on patch
92832         from Adam Strzelecki <ono@java.pl> in
92833         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92835 2008-04-08  Bruno Haible  <bruno@clisp.org>
92837         Add tentative support for emx+gcc.
92838         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92839         * lib/fpurge.c (fpurge): Likewise.
92840         * lib/freadable.c (freadable): Likewise.
92841         * lib/freadahead.c (freadahead): Likewise.
92842         * lib/freading.c (freading): Likewise.
92843         * lib/freadptr.c (freadptr): Likewise.
92844         * lib/freadseek.c (freadptrinc): Likewise.
92845         * lib/fseeko.c (rpl_fseeko): Likewise.
92846         * lib/fseterr.c (fseterr): Likewise.
92847         * lib/fwritable.c (fwritable): Likewise.
92848         * lib/fwriting.c (fwriting): Likewise.
92849         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92851 2008-04-09  Eric Blake  <ebb9@byu.net>
92853         Avoid some autoconf warnings.
92854         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92855         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92856         * m4/afs.m4 (gl_AFS): Likewise.
92857         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92858         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92859         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92860         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92861         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92862         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92863         (AC_CHECK_DECLS_ONCE): Likewise.
92864         Rename file...
92865         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92866         gnulib-tool requires autoconf 2.59 or better.
92867         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92869 2008-04-08  Eric Blake  <ebb9@byu.net>
92871         Use 'git describe --match' if present (added in git 1.5.5).
92872         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92873         if possible.
92875 2008-04-08  Bruno Haible  <bruno@clisp.org>
92877         Add tentative support for OpenServer.
92878         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92879         _ptr, _cnt.
92880         * lib/fpurge.c (fpurge): Likewise.
92881         * lib/freadable.c (freadable): Likewise.
92882         * lib/freadahead.c (freadahead): Likewise.
92883         * lib/freading.c (freading): Likewise.
92884         * lib/freadptr.c (freadptr): Likewise.
92885         * lib/freadseek.c (freadptrinc): Likewise.
92886         * lib/fseeko.c (rpl_fseeko): Likewise.
92887         * lib/fseterr.c (fseterr): Likewise.
92888         * lib/fwritable.c (fwritable): Likewise.
92889         * lib/fwriting.c (fwriting): Likewise.
92890         Reported by Roger Cornelius <rac@tenzing.org> and
92891         Brian K. White <brian@aljex.com>.
92893 2008-04-06  Jim Meyering  <meyering@redhat.com>
92895         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92897 2008-04-06  Bruno Haible  <bruno@clisp.org>
92899         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92900         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92901         * tests/test-printf-posix.sh: Likewise.
92902         * tests/test-vfprintf-posix.sh: Likewise.
92903         * tests/test-vprintf-posix.sh: Likewise.
92904         * tests/test-xprintf-posix.sh: Likewise.
92906 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92908         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92909         hide error from 'ls', needed on OS/2.
92910         Report by Elbert Pol <elbert.pol@gmail.com>.
92912 2008-04-04  Eric Blake  <ebb9@byu.net>
92914         Make test-fseeko.c failures meaningful.
92915         * tests/test-fseeko.c: Print line number on failure.
92916         * tests/test-fseek.c: Likewise.
92917         Reported by Nelson H. F. Beebe.
92919         Improve strtod bug detection check.
92920         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92921         required for Solaris 10.
92922         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92924 2008-04-04  Bruno Haible  <bruno@clisp.org>
92926         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92927         by m4/setenv.m4.
92929 2008-04-03  Eric Blake  <ebb9@byu.net>
92931         Ensure sane .version contents.
92932         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92933         version string.
92934         * build-aux/git-version-gen: Improve documentation.
92936         Make GNU make output nicer.
92937         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92938         MAKECMDGOALS to enforce message for all command line targets.  Set
92939         srcdir for use in maint.mk.
92941         Another maintainer tweak.
92942         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92943         a target that regenerates version.
92945 2008-04-03  Jim Meyering  <meyering@redhat.com>
92947         vc-list-files: don't cause coreutils "make po-check" failure
92948         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92950 2008-04-03  Eric Blake  <ebb9@byu.net>
92952         Allow VPATH usage of vc-list-files.
92953         * build-aux/vc-list-files (scriptversion): Add timestamp.
92954         (options): Add --help, --version, -C.
92955         (CVS): Support installed cvsu.
92957 2008-04-02  Bruno Haible  <bruno@clisp.org>
92959         Avoid some "statement with no effect" warnings from gcc.
92960         * tests/test-wctype.c (main): Explicitly ignore unused values.
92961         Reported by Jim Meyering.
92963 2008-04-02  Jim Meyering  <meyering@redhat.com>
92965         Avoid some warnings from "gcc -Wshadow".
92966         * tests/test-frexp.c (exp): Define to a different identifier.
92967         * tests/test-frexpl.c (exp): Likewise.
92969 2008-04-03  Jim Meyering  <meyering@redhat.com>
92971         bootstrap: remove dangling *.[ch] symlinks from lib
92972         * build-aux/bootstrap [dangling symlink removal]: Move find's
92973         -depth option to precede all others, to avoid a warning.
92974         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92976 2008-04-02  Bruno Haible  <bruno@clisp.org>
92978         Avoid some warnings from "gcc -Wshadow".
92979         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92980         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92981         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92982         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92983         Reported by Jim Meyering.
92985 2008-04-01  Bruno Haible  <bruno@clisp.org>
92987         Fix test to work on IRIX 6.5 with cc.
92988         * tests/test-math.c (numeric_equal): New function.
92989         (main): Use it.
92991 2008-04-01  Bruno Haible  <bruno@clisp.org>
92993         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92995 2008-04-01  Bruno Haible  <bruno@clisp.org>
92997         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92998         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92999         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
93000         (Depends-on): Remove math.
93002         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
93003         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93004         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
93005         (Depends-on): Remove math.
93007         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
93008         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93009         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
93010         (Depends-on): Remove math.
93011         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
93012         (Depends-on): Remove math.
93014         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
93015         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93016         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
93017         (Depends-on): Remove math.
93018         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
93019         (Depends-on): Remove math.
93021         * tests/test-round1.c: Include nan.h.
93022         (main): Use NaNd instead of NAN.
93023         * modules/round-tests (Files): Add tests/nan.h.
93025         * tests/test-trunc1.c: Include nan.h.
93026         (main): Use NaNd instead of NAN.
93027         * modules/trunc-tests (Files): Add tests/nan.h.
93029         * tests/test-roundf1.c: Include nan.h.
93030         (main): Use NaNf instead of NAN.
93031         * modules/roundf-tests (Files): Add tests/nan.h.
93033         * tests/test-truncf1.c: Include nan.h.
93034         (main): Use NaNf instead of NAN.
93035         * modules/truncf-tests (Files): Add tests/nan.h.
93037         * tests/test-ceilf1.c: Include nan.h.
93038         (main): Use NaNf instead of NAN.
93039         * modules/ceilf-tests (Files): Add tests/nan.h.
93041         * tests/test-floorf1.c: Include nan.h.
93042         (main): Use NaNf instead of NAN.
93043         * modules/floorf-tests (Files): Add tests/nan.h.
93045         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
93046         (main): Use NaNf instead of NAN.
93047         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
93049         * tests/test-isnand.c: Include nan.h instead of <math.h>.
93050         (main): Use NaNd instead of NAN.
93051         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
93053         * tests/test-frexp.c: Include nan.h.
93054         (main): Use NaNd instead of NAN.
93055         * modules/frexp-tests (Files): Add tests/nan.h.
93057         * lib/isnan.c: Don't include <math.h>.
93058         (FUNC): Don't use NAN macro.
93059         * modules/isnand-nolibm (Depends-on): Remove math.
93060         * modules/isnanf-nolibm (Depends-on): Remove math.
93061         * modules/isnanl (Depends-on): Remove math.
93062         * modules/isnanl-nolibm (Depends-on): Remove math.
93064         * tests/nan.h: New file.
93066 2008-04-01  Eric Blake  <ebb9@byu.net>
93068         Fix typos.
93069         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
93070         values to be the right type.
93072         For now, cater to gnulib strtod inaccuracies.
93073         * tests/test-strtod.c (main): Allow 1-ulp error on expected
93074         fractional results.  While not as nice from a QoI perspective, it
93075         is a quicker patch than correctly implementing decimal to binary
93076         rounding.
93078 2008-03-31  Eric Blake  <ebb9@byu.net>
93080         Guarantee a definition of NAN.
93081         * lib/math.in.h (NAN): Define if missing.
93082         * tests/test-math.c (main): Test it.
93083         * doc/posix-headers/math.texi (math.h): Document this.
93084         * lib/isnan.c (rpl_isnand): Use it.
93085         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
93086         * tests/test-floorf1.c (NaN): Likewise.
93087         * tests/test-frexp.c (NaN): Likewise.
93088         * tests/test-isnand.c (NaN): Likewise.
93089         * tests/test-isnanf.c (NaN): Likewise.
93090         * tests/test-round1.c (NaN): Likewise.
93091         * tests/test-roundf1.c (NaN): Likewise.
93092         * tests/test-snprintf-posix.h (NaN): Likewise.
93093         * tests/test-sprintf-posix.h (NaN): Likewise.
93094         * tests/test-trunc1.c (NaN): Likewise.
93095         * tests/test-truncf1.c (NaN): Likewise.
93096         * tests/test-vasnprintf-posix.c (NaN): Likewise.
93097         * tests/test-vasprintf-posix.c (NaN): Likewise.
93098         * modules/isnand-nolibm (Depends-on): Add math.
93099         * modules/isnanf-nolibm (Depends-on): Likewise.
93100         * modules/isnanl (Depends-on): Likewise.
93101         * modules/isnanl-nolibm (Depends-on): Likewise.
93102         * modules/snprintf-posix-tests (Depends-on): Likewise.
93103         * modules/sprintf-posix-tests (Depends-on): Likewise.
93104         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
93105         * modules/vsprintf-posix-tests (Depends-on): Likewise.
93106         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
93107         * modules/vasprintf-posix-tests (Depends-on): Likewise.
93109 2008-03-31  Bruno Haible  <bruno@clisp.org>
93111         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
93112         * doc/posix-functions/strtod.texi: Likewise.
93114 2008-03-31  Bruno Haible  <bruno@clisp.org>
93116         * tests/test-strtod.c (main): Don't use C99 syntax.
93118 2008-03-31  Bruno Haible  <bruno@clisp.org>
93120         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
93121         Reported by Eric Blake.
93123 2008-03-31  Jim Meyering  <meyering@redhat.com>
93125         Don't compare actual signbit return values.
93126         * tests/test-strtod.c (main): Rather, compare only their
93127         zero/non-zero nature.
93129 2008-03-31  Eric Blake  <ebb9@byu.net>
93131         More strtod documentation.
93132         * doc/posix-functions/strtod.texi (strtod): Interpret more test
93133         failures as distinct bugs.
93135 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
93137         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
93138         Problem reported by Erik Benada in
93139         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
93141 2008-03-30  Bruno Haible  <bruno@clisp.org>
93143         * tests/test-strtod.c: Add comments about which assertion fails on which
93144         platform.
93145         * doc/posix-functions/strtod.texi: Add info about many more platforms.
93147 2008-03-30  Eric Blake  <ebb9@byu.net>
93149         Test signbit behavior on zeros.
93150         * tests/test-signbit.c (test_signbitf): Add tests for zero.
93151         (test_signbitd, test_signbitl): Likewise.
93153         More strtod touchups.
93154         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
93155         sign of negative underflow, for now.  Use .5, not .1.
93156         * doc/posix-functions/strtod.texi (strtod): Mention these
93157         limitations.
93158         Reported by Jim Meyering.
93160 2008-03-30  Bruno Haible  <bruno@clisp.org>
93162         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
93163         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
93165 2008-03-30  Bruno Haible  <bruno@clisp.org>
93167         Avoid failure when attempting to return empty iconv results on some
93168         platforms.
93169         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
93170         allocation, don't report ENOMEM when the resulting string is empty.
93172 2008-03-30  Bruno Haible  <bruno@clisp.org>
93174         Fix buffer overrun.
93175         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
93176         Don't consider the width for tmp_length. Check count against tmp_length
93177         before doing the padding. Ensure enough allocation during padding.
93179 2008-03-30  Eric Blake  <ebb9@byu.net>
93181         strtod touchups.
93182         * lib/strtod.c (strtod): Avoid compiler warnings.
93183         Reported by Jim Meyering.
93185 2008-03-30  Bruno Haible  <bruno@clisp.org>
93187         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
93188         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
93189         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
93190         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
93191         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
93192         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
93193         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
93194         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
93196         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
93197         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
93198         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
93199         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
93200         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
93201         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
93202         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
93203         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
93205         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
93206         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
93207         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
93208         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
93209         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
93210         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
93211         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
93212         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
93214         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
93215         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
93217         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
93218         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
93220         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
93221         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
93223         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
93224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
93225         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
93227         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
93228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
93229         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
93231         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
93232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
93233         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
93235         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
93236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
93237         * modules/vasprintf (Depends-on): Add EOVERFLOW.
93239         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
93240         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
93241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
93242         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
93243         (Depends-on): Add EOVERFLOW.
93244         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
93245         (Depends-on): Add EOVERFLOW.
93246         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93247         (Depends-on): Add EOVERFLOW.
93248         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93249         (Depends-on): Add EOVERFLOW.
93250         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93251         (Depends-on): Add EOVERFLOW.
93252         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93253         (Depends-on): Add EOVERFLOW.
93254         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93255         (Depends-on): Add EOVERFLOW.
93256         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93257         (Depends-on): Add EOVERFLOW.
93259         * lib/sprintf.c (EOVERFLOW): Remove fallback.
93260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
93261         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
93263         * lib/snprintf.c (EOVERFLOW): Remove fallback.
93264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
93265         * modules/snprintf (Depends-on): Add EOVERFLOW.
93267         * lib/poll.c (EOVERFLOW): Remove fallback.
93268         * modules/poll (Depends-on): Add EOVERFLOW.
93270         * lib/getugroups.c (EOVERFLOW): Remove fallback.
93271         * modules/getugroups (Depends-on): Add EOVERFLOW.
93273         * lib/getdelim.c (EOVERFLOW): Remove fallback.
93274         * modules/getdelim (Depends-on): Add EOVERFLOW.
93276         * lib/ftell.c (EOVERFLOW): Remove fallback.
93277         * modules/ftell (Depends-on): Add EOVERFLOW.
93279         * lib/fprintf.c (EOVERFLOW): Remove fallback.
93280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
93281         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
93283         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
93285         * modules/EOVERFLOW-tests: New file.
93286         * tests/test-EOVERFLOW.c: New file.
93288         * modules/EOVERFLOW: New file.
93289         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
93291 2008-03-30  Bruno Haible  <bruno@clisp.org>
93293         Fix bug introduced on 2007-06-10.
93294         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
93295         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
93297 2008-03-30  Bruno Haible  <bruno@clisp.org>
93299         Improve freadseek's efficiency after ungetc.
93300         * lib/freadseek.c: Include freadahead.h.
93301         (freadptrinc): New function, extracted from freadseek.
93302         (freadseek): Use it in a loop. Use freadahead to determine the number
93303         of loop iterations.
93304         * modules/freadseek (Depends-on): Add freadahead.
93305         (configure.ac): Require AC_C_INLINE.
93307 2008-03-30  Bruno Haible  <bruno@clisp.org>
93309         * lib/freadseek.c (freadseek): Don't ignore the return value of
93310         freadptr.
93312 2008-03-29  Eric Blake  <ebb9@byu.net>
93314         Add hex float support.
93315         * modules/strtod (Depends-on): Add c-ctype.
93316         (Link): Mention POW_LIB.
93317         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
93318         whitespace between 'e' and exponent.
93319         * tests/test-strtod.c (main): Enable hex float tests.
93320         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
93321         now provides.
93323         Document various strtod bugs, with some fixes.
93324         * doc/posix-functions/strtod.texi (strtod): Document bugs with
93325         "-0x", "inf", "nan", and hex constants.
93326         * doc/posix-functions/atof.texi (atof): Likewise.
93327         * modules/stdlib (Makefile.am): Support strtod.
93328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
93329         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
93330         detect additional strtod bugs.
93331         * lib/stdlib.in.h (rpl_strtod): Add declarations.
93332         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
93333         bool where appropriate.  Parse 'inf' and 'nan'.
93334         * tests/test-strtod.c: New file.
93335         * modules/strtod (Depends-on): Add stdbool, stdlib.
93336         (configure.ac): Turn on module indicator.
93337         * modules/strtod-tests: New module.
93339 2008-03-29  Eric Blake  <ebb9@byu.net>
93341         Fix ftell on mingw.
93342         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
93343         * modules/ftell-tests (Depends-on): Add binary-io.
93344         * modules/ftello-tests (Depends-on): Likewise.
93345         * tests/test-ftell.c (main): Enhance test to cover behavior after
93346         ungetc.  Enforce binary mode.
93347         * tests/test-ftello.c (main): Likewise.
93349         Pass test-freadseek on cygwin.
93350         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
93351         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
93352         ungetc buffer.
93354         * tests/test-fflush2.c (main): Fix typo.
93356 2008-03-29  Bruno Haible  <bruno@clisp.org>
93358         * tests/test-fflush2.c (main): Temporarily disable the contents of
93359         this test.
93360         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
93361         Reported by Eric Blake.
93363 2008-03-28  Simon Josefsson  <simon@josefsson.org>
93365         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
93366         (GC_SHA224_DIGEST_SIZE): Add.
93368         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
93369         (gc_hash_digest_length): Likewise.
93370         (gc_hash_buffer): Likewise.
93372 2008-03-25  Bruno Haible  <bruno@clisp.org>
93374         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
93375         detail which gettext release to use.
93376         Reported by Simon Josefsson.
93378 2008-03-26  Jim Meyering  <meyering@redhat.com>
93380         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
93381         * modules/gnumakefile (clean-GNUmakefile): Also, use
93382         test ... && ... || : syntax rather than if-then ... fi.
93384         gnumakefile: Don't double-quote-expand $(VPATH) value.
93385         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
93387 2008-03-24  Eric Blake  <ebb9@byu.net>
93389         Alter GNUmakefile to install into top directory.
93390         * modules/maintainer-makefile: Split, and add dependency...
93391         * modules/gnumakefile: to this new module.
93392         * build-aux/GNUmakefile: Move...
93393         * top/GNUmakefile: ...here.
93394         * build-aux/maint.mk: Move...
93395         * top/maint.mk: ...here.
93396         * MODULES.html.sh (Support for maintaining...): Document new
93397         module.
93399 2008-03-23  Bruno Haible  <bruno@clisp.org>
93401         * gnulib-tool: New options --vc-files, --no-vc-files.
93402         (func_usage): Document them.
93403         (vc_files): New variable.
93404         (func_import): Consider vc_files.
93405         (func_create_testdir): Set vc_files to empty.
93406         Suggested by Jim Meyering and Karl Berry.
93408 2008-03-23  Bruno Haible  <bruno@clisp.org>
93410         Fix regex compilation error on HP-UX 11.
93411         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
93412         * modules/regex (Files): Add m4/mbstate_t.m4.
93413         Reported by Ton Voon <ton.voon@altinity.com>.
93415 2008-03-23  Bruno Haible  <bruno@clisp.org>
93417         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
93419 2008-03-23  Eric Blake  <ebb9@byu.net>
93420             Bruno Haible  <bruno@clisp.org>
93422         Install files from top/ in the destination directory.
93423         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93424         augmentation also for the files from top/.
93425         (func_import, func_create_testdir): Rewrite file names:
93426         top/filename -> filename.
93428 2008-03-23  Bruno Haible  <bruno@clisp.org>
93430         Tweak "gnulib --version" output.
93431         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
93433 2008-03-23  Bruno Haible  <bruno@clisp.org>
93435         Tweak "gnulib --version" output.
93436         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
93437         rather than contents of ChangeLog, when possible.
93439 2008-03-21  Eric Blake  <ebb9@byu.net>
93441         More --version tweaks.
93442         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
93443         date of last ChangeLog entry.
93445 2008-03-21  Jim Meyering  <meyering@redhat.com>
93447         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
93449 2008-03-20  Eric Blake  <ebb9@byu.net>
93451         VPATH fix.
93452         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
93454 2008-03-20  Simon Josefsson  <simon@josefsson.org>
93456         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
93457         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
93459 2008-03-20  Eric Blake  <ebb9@byu.net>
93461         Sync GNUmakefile with coreutils.
93462         * build-aux/GNUmakefile (have-Makefile): Rename...
93463         (_have-Makefile): ...to this, for namespace consideration.
93464         (GNUmakefile.cfg): Include, if present.
93465         (_autoreconf): Define a default.
93466         (_is-dist-target): New rule for rebuilds to pick up intra-release
93467         version.
93468         (maint-cfg.mk): Rename...
93469         (cfg.mk): ...to this.
93471 2008-03-18  Jim Meyering  <meyering@redhat.com>
93473         New script and module: mktempd
93474         * MODULES.html.sh (maint+release support): Add mktempd.
93475         * build-aux/mktempd: New file.
93476         * modules/mktempd: New file.
93478 2008-03-15  Jim Meyering  <meyering@redhat.com>
93480         Undo last change.
93481         * lib/sha1.c, lib/md5.c: 63 != ~63.
93482         Reported by Andreas Schwab.
93484         sha1.c, md5.c: Hoist a redundant expression.
93485         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
93486         "ctx->buflen" only once, before calling *_process_block.
93487         * lib/md5.c (md5_process_bytes): Likewise.
93489 2008-03-14  Eric Blake  <ebb9@byu.net>
93491         Bump copyright year in files generated by gnulib-tool.
93492         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
93493         gnulib-tool, rather than hard-coding it.
93495         Fix 'gnulib-tool --version' output to work with git.
93496         * gnulib-tool (func_gnulib_dir): New function, extracted from...
93497         (startup): ...here.
93498         (func_version): Use it to invoke git-version-gen, rather than
93499         relying on CVS keyword expansion.  Modernize wording.
93500         (cvsdatestamp, last_checkin_date, version): Kill unused
93501         variables.
93503 2008-03-12  Jim Meyering  <meyering@redhat.com>
93505         Recognize optional cast of the argument to free.
93506         * build-aux/useless-if-before-free: Update regexps.
93508         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
93510 2008-03-11  Bruno Haible  <bruno@clisp.org>
93512         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
93513         by a single package.
93514         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
93515         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
93516         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
93517         Reported by Sam Steingold <sds@gnu.org>.
93519 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93521         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
93522         repositories.
93524 2008-03-11  Bruno Haible  <bruno@clisp.org>
93526         Avoid conflicts between local macro definitions.
93527         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93528         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
93530 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
93531             Bruno Haible  <bruno@clisp.org>
93533         Make va_copy work with some version of xlc on AIX 5.1.
93534         * lib/stdarg.in.h: New file.
93535         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
93536         On AIX, use a <stdarg.h> file substitute.
93537         * modules/stdarg (Files): Add lib/stdarg.in.h.
93538         (Depends-on): Add include_next.
93539         (Makefile.am): Build a stdarg.h substitute if requested.
93540         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
93542 2008-03-10  Bruno Haible  <bruno@clisp.org>
93544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
93545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93546         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93548 2008-03-10  Bruno Haible  <bruno@clisp.org>
93550         * modules/stdlib (Depends-on): Add include_next, remove
93551         absolute-header.
93553 2008-03-09  Bruno Haible  <bruno@clisp.org>
93555         * lib/freadahead.h (freadahead): Document more precisely.
93556         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
93557         the sum of both buffer sizes.
93558         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
93559         * NEWS: Document the change.
93561 2008-03-09  Bruno Haible  <bruno@clisp.org>
93563         Extend freadptr to return also the buffer size.
93564         * lib/freadptr.h (freadptr): Add sizep argument.
93565         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
93566         (freadptr): Add sizep argument. Determine buffer size like freadahead
93567         does.
93568         * tests/test-freadptr.c: Don't include freadahead.h.
93569         (main): Adapt for new calling convention of freadptr.
93570         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
93571         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
93572         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
93573         tests/test-freadptr2.sh.
93574         (Depends): Remove freadahead.
93575         (TESTS): Add test-freadptr2.sh.
93576         (check_PROGRAMS): Add test-freadptr2.
93578 2008-03-09  Bruno Haible  <bruno@clisp.org>
93580         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
93581         Report and solution by Simon Josefsson.
93583 2008-03-06  Bruno Haible  <bruno@clisp.org>
93585         Make fflush after ungetc work on BSD platforms.
93586         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93587         * tests/test-fflush2.c: New file.
93588         * tests/test-fflush2.sh: New file.
93589         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93590         tests/test-fflush2.c.
93591         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93592         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93594 2008-03-06  Eric Blake  <ebb9@byu.net>
93596         Likewise for ftello.
93597         * modules/ftello (Dependencies): Add extensions.
93598         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93600 2008-03-06  Bruno Haible  <bruno@clisp.org>
93602         * modules/fseeko (Dependencies): Add extensions.
93603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93604         Needed on glibc systems.
93606 2008-03-06  Bruno Haible  <bruno@clisp.org>
93608         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93609         email address.
93610         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93612 2008-03-06  Bruno Haible  <bruno@clisp.org>
93614         * users.txt: Add libgnupdf.
93616 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93618         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93619         (Header File Substitutes, Function Substitutes,
93620         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93621         (Build robot for gnulib): Fix typo.
93623 2008-03-06  Bruno Haible  <bruno@clisp.org>
93625         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93626         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93628 2008-03-06  Bruno Haible  <bruno@clisp.org>
93630         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93631         * doc/gnulib.texi: Include it.
93633 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93635         * modules/func (License): Change license to unlimited; there was
93636         no LGPL parts in the module anyway.
93638 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93640         * modules/__func__: Renamed to modules/func.
93641         * modules/__func__-tests: Renamed to modules/func-tests.
93642         * tests/test-__func__.c: Renamed to tests/test-func.c.
93643         * m4/__func__.m4: Renamed to m4/func.m4.
93644         * doc/gnulib.texi (__func__): Section renamed to func.
93645         Suggested by Eric Blake <ebb9@byu.net>.
93647 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93649         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93650         about __func__.  Make example self-contained.  Suggested by Eric
93651         Blake <ebb9@byu.net>.
93653         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93654         Suggested by Eric Blake <ebb9@byu.net>.
93656 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93658         * modules/__func__: New file.
93659         * modules/__func__-tests: New file.
93660         * tests/test-__func__.c: New file.
93661         * m4/__func__.m4: New file.
93662         * doc/gnulib.texi (__func__): Document __func__ module.
93664 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93666         * modules/byteswap (License): Re-license as LGPLv2+.
93668 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93670         * doc/Makefile: Add pdf target.
93672 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93674         * modules/inline (License): Use 'unlimited', since there are only
93675         *.m4 files in this module.
93677 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93678             Bruno Haible  <bruno@clisp.org>
93680         Add support for HP C 7.1 on OpenVMS 8.3.
93681         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93683 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93685         Update VMS specifics.
93686         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93688 2008-03-02  Jim Meyering  <meyering@redhat.com>
93690         Remove the last dependency on the "free" module.
93691         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93692         Reported by Bob Proulx.
93694         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93696         Remove useless "if" tests before free.  Deprecate "free" module.
93697         * doc/posix-functions/free.texi: Mention that this
93698         module is no longer useful.
93699         * modules/free (Notice): Say this module is obsolete.
93700         * modules/readutmp (Depends-on): Remove free.
93701         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93702         * lib/putenv.c (putenv): Likewise.
93703         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93704         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93705         * tests/test-c-strcasestr.c (main): Likewise.
93706         * tests/test-c-strstr.c (main): Likewise.
93707         * tests/test-mbscasestr1.c (main): Likewise.
93708         * tests/test-mbscasestr2.c (main): Likewise.
93709         * tests/test-mbsstr1.c (main): Likewise.
93710         * tests/test-mbsstr2.c (main): Likewise.
93711         * tests/test-memmem.c (main): Likewise.
93712         * tests/test-strcasestr.c (main): Likewise.
93713         * tests/test-striconv.c (main): Likewise.
93714         * tests/test-striconveh.c (main): Likewise.
93715         * tests/test-striconveha.c (main): Likewise.
93716         * tests/test-strstr.c (main): Likewise.
93718         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93720         bootstrap: sync from coreutils again
93721         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93723 2008-03-01  Jim Meyering  <meyering@redhat.com>
93725         bootstrap: sync from coreutils
93726         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93727         also when the target doesn't exist.
93729 2008-03-01  Eric Blake  <ebb9@byu.net>
93731         Fix bugs in last patch.
93732         * lib/memchr2.c (memchr2): Fix typo.
93733         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93734         extension.
93735         Reported by Bruce Korb.
93737         New module 'memchr2'.
93738         * modules/memchr2: New file.
93739         * modules/memchr2-tests: Likewise.
93740         * lib/memchr2.h: Likewise.
93741         * lib/memchr2.c: Likewise, based on memchr.c.
93742         * tests/test-memchr2.c: New test.
93743         * MODULES.html.sh (String handling): Add memchr2.
93745 2008-02-29  Bruno Haible  <bruno@clisp.org>
93747         * modules/freadseek-tests: New file.
93748         * tests/test-freadseek.sh: New file.
93749         * tests/test-freadseek.c: New file.
93751         New module 'freadseek'.
93752         * modules/freadseek: New file.
93753         * lib/freadseek.h: New file.
93754         * lib/freadseek.c: New file.
93755         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93757 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93759         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93760         wydawca.
93762         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93763         program_invocation_name and program_invocation_short_name are
93764         present.
93766 2008-02-28  Bruno Haible  <bruno@clisp.org>
93768         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93769         * tests/test-freadptr.sh: Also test non-seekable stdin.
93771 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93773         * build-aux/bootstrap (source_base, m4_base)
93774         (doc_base, tests_base): New variables.
93775         (gnulib_tool_options): Do not hardcode base directories, use
93776         the above variables instead.
93778 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93780         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93782 2008-02-28  Bruno Haible  <bruno@clisp.org>
93784         * modules/freadptr-tests: New file.
93785         * tests/test-freadptr.sh: New file.
93786         * tests/test-freadptr.c: New file.
93788         New module 'freadptr'.
93789         * modules/freadptr: New file.
93790         * lib/freadptr.h: New file.
93791         * lib/freadptr.c: New file.
93792         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93794 2008-02-26  Karl Berry  <karl@freefriends.org>
93796         Sync from Libtool:
93797         * libltdl/argz.c (argz_add, argz_count): New functions.
93798         * libltdl/argz.in.h: Declare them.
93799         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93801 2008-02-22  Bruno Haible  <bruno@clisp.org>
93803         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93804         is a pointer type.  Needed for HP-UX 10.
93805         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93806         * doc/posix-functions/gmtime_r.texi: Likewise.
93807         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93809 2008-02-24  Bruno Haible  <bruno@clisp.org>
93811         * modules/environ-tests: New file.
93812         * tests/test-environ.c: New file.
93814         New module 'environ'.
93815         * modules/environ: New file.
93816         * lib/unistd.in.h (environ): New declaration.
93817         * m4/environ.m4: New file.
93818         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93819         after use.
93820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93821         HAVE_DECL_ENVIRON.
93822         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93823         HAVE_DECL_ENVIRON.
93824         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93825         wrong claim that 'environ' is missing on some systems.
93826         * modules/execute (Depends-on): Add environ.
93827         * lib/execute.c (environ): Remove fallback declaration.
93828         * modules/pipe (Depends-on): Add environ.
93829         * lib/pipe.c (environ): Remove fallback declaration.
93830         * modules/setenv (Depends-on): Add environ.
93831         * lib/setenv.c (environ): Remove fallback declaration.
93832         * modules/unsetenv (Depends-on): Add environ.
93833         * lib/unsetenv.c (environ): Remove fallback declaration.
93834         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93835         m4/environ.m4.
93836         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93837         (gl_PREREQ_UNSETENV): Likewise.
93839 2008-02-24  Bruno Haible  <bruno@clisp.org>
93841         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93843 2008-02-20  Bob Proulx  <bob@proulx.com>
93845         Enable use of older two part flavor 'git describe'.
93846         * build-aux/git-version-gen: If using the older two part flavor of
93847         git version then recreate the third part now present in the
93848         newer three part flavor of git describe.
93850 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93852         * lib/fts.c (fts_build): Typo correction to comment.
93854 2008-02-17  Bruno Haible  <bruno@clisp.org>
93856         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93857         generating no-op conflicts.
93859 2008-02-17  Bruno Haible  <bruno@clisp.org>
93861         Speed up by 10%.
93862         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93863         result_entries, rather than an index-based loop.
93865 2008-02-17  Bruno Haible  <bruno@clisp.org>
93867         Speed up by 25%.
93868         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93869         'hashcode_cached'.
93870         (entry_create): New function.
93871         (entry_hashcode): Use the cached hashcode if possible.
93872         (read_changelog_file, try_split_merged_entry): Use entry_create.
93874 2008-02-17  Bruno Haible  <bruno@clisp.org>
93876         Speed up from O(n^2) to O(n) for long ChangeLog files.
93877         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93878         (read_changelog_file): Change implementation of entries_reversed list
93879         to rbtreehash.
93880         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93882 2008-02-17  Bruno Haible  <bruno@clisp.org>
93884         New option --split-merged-entry.
93885         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93886         (find_paragraph_end, try_split_merged_entry): New functions.
93887         (long_options): Add option --split-merged-entry.
93888         (usage): Document option --split-merged-entry.
93889         (main): Implement option --split-merged-entry.
93890         Reported by Eric Blake.
93892 2008-02-17  Bruno Haible  <bruno@clisp.org>
93894         * lib/git-merge-changelog.c: Include c-strstr.h.
93895         (main): Support the "git pull --rebase" situation.
93896         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93897         Reported by Eric Blake.
93899 2008-02-16  Eric Blake  <ebb9@byu.net>
93901         Avoid doubling \ in common case of "c-maybe" quoting style.
93902         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93903         eliding outer quotes.
93904         * lib/quotearg.h: Document this.
93905         * tests/test-quotearg.c (result_strings, inputs, results_g)
93906         (flag_results, locale_results): Test it by adding a new string to
93907         each test group.
93908         (compare_strings): Test new string.
93910 2008-02-13  Eric Blake  <ebb9@byu.net>
93912         Avoid trigraph quoting in default output.
93913         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93914         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93915         unless explicitly requested.
93916         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93918 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93920         Don't rely on signed integer overflowing to negative value.
93921         * lib/getugroups.c (getugroups): Include <limits.h>.
93922         Instead, compare against INT_MAX, and increment only if the test passes.
93924 2008-02-13  Jim Meyering  <meyering@redhat.com>
93925         and Eric Blake  <ebb9@byu.net>
93927         Avoid shadowing warning and compile errors on Linux.
93928         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93929         forwarding macros on Linux.
93930         (dcgettext): Define a stub, for Linux.
93931         (results_g, main): Avoid warnings.
93933 2008-02-12  Eric Blake  <ebb9@byu.net>
93935         Silence warning in last patch.
93936         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93938         Quotearg part 4: add tests, fix c-maybe colon quoting.
93939         * lib/quotearg.h: Improve documentation.
93940         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93941         escapes when adding outer quotes.  When quoting trigraphs, use
93942         valid C notation.  When quoting NUL, omit extra characters if next
93943         character is not digit.  Alter prototype.
93944         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93945         callers.
93946         * modules/quotearg-tests: New module.
93947         * tests/test-quotearg.c: New test.
93949 2008-02-07  Eric Blake  <ebb9@byu.net>
93951         Quotearg part 3: add flag to control outer quote elision.
93952         * lib/quotearg.h (c_maybe_quoting_style): New style.
93953         (enum quoting_flags): Better documentation of flags.
93954         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93955         c-maybe style.
93956         (quotearg_buffer_restyled): Handle new flag to elide outer
93957         quotes.
93959         Quotearg part 2: add flag that can control NUL elision.
93960         * lib/quotearg.h (set_quoting_flags): New prototype.
93961         * lib/quotearg.c (struct quoting_options): Add flag field.
93962         (set_quoting_flags): New function.
93963         (quotearg_buffer_restyled): Add flags parameter.
93964         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93965         (quotearg_n_options): Set the flag, since length cannot be
93966         returned.
93967         (quoting_options_from_style): Default flags correctly.
93969         Quotearg part 1: more wrappers, restore quotearg_char state.
93970         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93971         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93972         (quotearg_colon_mem): New wrappers.
93973         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93974         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93975         functions.
93976         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93977         (quotearg_colon_mem): New functions.
93979 2008-02-11  Bruno Haible  <bruno@clisp.org>
93981         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93982         library in the current directory: it does not work with parallel make.
93983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93985 2008-02-11  Bruno Haible  <bruno@clisp.org>
93987         * .gitattributes: New file.
93989 2008-02-11  Jim Meyering  <meyering@redhat.com>
93991         useless-if-before-free: Fix reversed exit values.
93992         * build-aux/useless-if-before-free: Use correct values
93993         for EXIT_MATCH and EXIT_NO_MATCH.
93995         * build-aux/useless-if-before-free: Close stdout carefully.
93997 2008-02-10  Bruno Haible  <bruno@clisp.org>
93999         New module 'git-merge-changelog'.
94000         * modules/git-merge-changelog: New file.
94001         * lib/git-merge-changelog.c: New file.
94003 2008-02-10  Jim Meyering  <meyering@redhat.com>
94005         useless-if-before-free: New option: --list (-l).
94007         useless-if-before-free: Don't exit immediately upon open failure.
94008         * build-aux/useless-if-before-free: Exit 2 for errors.
94009         Upon failure to open a file, don't exit immediately.
94010         Rather, just warn and continue with any remaining files.
94012 2008-02-10  Bruno Haible  <bruno@clisp.org>
94014         New abstract list operation 'node_set_value'.
94015         * lib/gl_list.h (gl_list_node_set_value): New function.
94016         (struct gl_list_implementation): New field node_set_value.
94017         * lib/gl_list.c (gl_list_node_set_value): New function.
94018         * lib/gl_array_list.c (gl_array_node_set_value): New function.
94019         (gl_array_list_implementation): Update.
94020         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
94021         (gl_carray_list_implementation): Update.
94022         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
94023         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94024         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94025         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
94026         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94027         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94028         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94029         Update.
94030         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94031         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
94032         (gl_sublist_list_implementation): Update.
94034 2008-02-10  Bruno Haible  <bruno@clisp.org>
94036         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
94037         Needed when ELEMENT is #defined to 'some_type *'.
94039 2008-02-10  Jim Meyering  <meyering@redhat.com>
94041         New script and module: useless-if-before-free
94042         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
94043         * build-aux/useless-if-before-free: New file.
94044         * modules/useless-if-before-free: New file.
94046         * build-aux/gitlog-to-changelog: Use committer date, not author date.
94048         xstrtol_error: Fix typo.
94049         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
94050         s/exit_failure/exit_status/.
94052 2008-02-09  Jim Meyering  <meyering@redhat.com>
94054         New script and module: gitlog-to-changelog
94055         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
94056         * modules/gitlog-to-changelog: New file.
94057         * build-aux/gitlog-to-changelog: New file.
94059 2008-02-08  Jim Meyering  <meyering@redhat.com>
94061         Avoid two "parameter unused" warnings.
94062         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
94063         Mark "st" as used.
94065         Use "git COMMAND", not "git-COMMAND".
94066         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
94067         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
94068         * build-aux/git-version-gen: Use "git status", not "git-status".
94070 2008-02-07  Bruno Haible  <bruno@clisp.org>
94072         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
94073         Avoids a crash on Windows Vista.
94074         Reported by Adam Strzelecki <ono@java.pl> via
94075         Simon Josefsson <simon@josefsson.org>.
94077 2008-02-06  Bruno Haible  <bruno@clisp.org>
94079         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
94080         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
94081         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
94082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
94083         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
94084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94085         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
94086         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
94087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94094         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
94095         left-adjust flag.
94096         * tests/test-snprintf-posix.h (test_function): Likewise.
94097         * tests/test-sprintf-posix.h (test_function): Likewise.
94098         * tests/test-vasprintf-posix.c (test_function): Likewise.
94099         * doc/posix-functions/fprintf.texi: Update.
94100         * doc/posix-functions/printf.texi: Update.
94101         * doc/posix-functions/snprintf.texi: Update.
94102         * doc/posix-functions/sprintf.texi: Update.
94103         * doc/posix-functions/vfprintf.texi: Update.
94104         * doc/posix-functions/vprintf.texi: Update.
94105         * doc/posix-functions/vsnprintf.texi: Update.
94106         * doc/posix-functions/vsprintf.texi: Update.
94107         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94109 2008-02-06  Bruno Haible  <bruno@clisp.org>
94111         Fix bug introduced on 2008-01-26.
94112         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
94114 2008-02-06  Bruno Haible  <bruno@clisp.org>
94116         Fix bug introduced on 2007-06-10.
94117         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
94118         !NEED_PRINTF_FLAG_ZERO.
94120 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
94122         getloadavg: use libperfstat on AIX5
94123         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
94125 2008-02-03  Bruno Haible  <bruno@clisp.org>
94127         * lib/diffseq.h: Add comments about required #includes.
94128         Reported by Michael Biggs <gnulib@doubleplum.net>.
94130 2008-02-01  Bruno Haible  <bruno@clisp.org>
94132         * users.txt: Add gnuit.
94134 2008-01-31  Bruno Haible  <bruno@clisp.org>
94136         * lib/md4.c (set_uint32): Mark as inline.
94137         * lib/md5.c (set_uint32): Likewise.
94138         * lib/sha1.c (set_uint32): Likewise.
94139         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
94140         * m4/md5.m4 (gl_MD5): Likewise.
94141         * m4/sha1.m4 (gl_SHA1): Likewise.
94143 2008-01-31  Jim Meyering  <meyering@redhat.com>
94145         Use "sizeof VAR", rather than a literal "4".
94146         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
94147         * lib/md4.c (md4_read_ctx): Likewise.
94148         * lib/sha1.c (sha1_read_ctx): Likewise.
94150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94152         * tests/test-sha1.c: New file, based on test-md5.c.
94154         * modules/crypto/sha1-tests: New file.
94156 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94158         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
94160 2008-01-31  Jim Meyering  <meyering@redhat.com>
94162         Prefer "sizeof v" over the equivalent "4".
94163         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
94164         * lib/md5.c (set_uint32): Likewise.
94165         * lib/sha1.c (set_uint32): Likewise.
94167 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94169         * lib/sha1.c (set_uint32): Mark function as static.
94171 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94173         md2: clarify comments to say that alignment is not required.
94174         * lib/md2.h: Remove warning about alignment in comment.
94175         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
94176         never been required.
94178 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94180         md4: adapt alignment constraint fix from sha1.
94181         * lib/md4.c (set_uint32): New function, from sha1.c
94182         (md4_read_ctx): Use it.
94183         (md4_finish_ctx): Doc fix.
94184         * lib/md4.h: Doc fix.
94186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94188         md5: adapt alignment constraint fix from sha1.
94189         * lib/md5.c (set_uint32): New function, from sha1.c
94190         (md5_read_ctx): Use it.
94191         (md5_finish_ctx): Doc fix.
94192         * lib/md5.h: Doc fix.
94194 2008-01-30  Peter Palfrader  <weasel@debian.org>
94196         sha1: remove the result buffer alignment constraint
94197         * lib/sha1.c (set_uint32): New function.
94198         (sha1_read_ctx): Rewrite to remove the result buffer alignment
94199         constraint.
94200         (sha1_finish_ctx): Remove comment warning about alignment constraint.
94201         * lib/sha1.h: Likewise.
94203 2008-01-30  Andreas Schwab  <schwab@suse.de>
94204             Bruno Haible  <bruno@clisp.org>
94206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
94207         correct definition of LDBL_MIN_EXP.
94209 2008-01-30  Karl Berry  <karl@gnu.org>
94211         * config/srclist-update: try to preserve x bit on updates.
94212         * config/srclistvars.sh: update for karl.
94214 2008-01-29  Jim Meyering  <meyering@redhat.com>
94216         vasnprintf.c: Avoid warning about unused label
94217         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
94218         "overflow" label definition and associated code with the
94219         same cpp condition that guards the sole use of that label.
94221 2008-01-26  Bruno Haible  <bruno@clisp.org>
94223         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
94224         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
94225         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
94226         * lib/isnanl-nolibm.h (isnanl): Likewise.
94227         Reported by Paul Eggert <eggert@cs.ucla.edu>.
94229 2008-01-26  Bruno Haible  <bruno@clisp.org>
94231         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
94232         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
94234 2008-01-26  Bruno Haible  <bruno@clisp.org>
94236         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
94237         GCC >= 4.0 built-in.
94238         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
94240 2008-01-26  Bruno Haible  <bruno@clisp.org>
94242         Rename isnan, applicable to 'double' only, to isnand.
94243         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
94244         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
94245         (configure.ac): Update.
94246         (Include): Replace "isnan.h" with "isnand.h".
94247         * m4/isnand.m4: Renamed from m4/isnan.m4.
94248         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
94249         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
94250         instead of isnan.c.
94251         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
94252         instead of HAVE_ISNAN_IN_LIBC.
94253         (isnand): Renamed from isnan.
94254         * lib/isnand.c: New file.
94255         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
94256         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
94257         (Makefile.am): Update.
94258         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
94259         Include isnand.h instead of isnan.h.
94260         (main): Test isnand instead of isnan.
94261         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
94262         isnan-nolibm.
94263         * modules/frexp (Depends-on): Likewise.
94264         * modules/frexp-tests (Depends-on): Likewise.
94265         * modules/frexp-nolibm (Depends-on): Likewise.
94266         * modules/frexp-nolibm-tests (Depends-on): Likewise.
94267         * modules/isfinite (Depends-on): Likewise.
94268         * modules/round-tests (Depends-on): Likewise.
94269         * modules/signbit (Depends-on): Likewise.
94270         * modules/signbit-tests (Depends-on): Likewise.
94271         * modules/snprintf-posix (Depends-on): Likewise.
94272         * modules/sprintf-posix (Depends-on): Likewise.
94273         * modules/trunc-tests (Depends-on): Likewise.
94274         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94275         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94276         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94277         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94278         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94279         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94280         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94281         * modules/vasnprintf-posix (Depends-on): Likewise.
94282         * modules/vasprintf-posix (Depends-on): Likewise.
94283         * modules/vfprintf-posix (Depends-on): Likewise.
94284         * modules/vsnprintf-posix (Depends-on): Likewise.
94285         * modules/vsprintf-posix (Depends-on): Likewise.
94286         * lib/frexp.c: Include isnand.h instead of isnan.h.
94287         (ISNAN): Set to isnand instead of isnan.
94288         * lib/isfinite.c: Include isnand.h instead of isnan.h.
94289         (gl_isfinited): Use isnand instead of isnan.
94290         * lib/signbitd.c: Include isnand.h instead of isnan.h.
94291         (gl_signbitd): Use isnand instead of isnan.
94292         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
94293         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
94294         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
94295         (main): Use isnand instead of isnan.
94296         * tests/test-round1.c: Include isnand.h.
94297         (main): Use isnand instead of isnan.
94298         * tests/test-round2.c: Include isnand.h instead of isnan.h.
94299         (ISNAN): Set to isnand instead of isnan.
94300         * tests/test-trunc1.c: Include isnand.h.
94301         (main): Use isnand instead of isnan.
94302         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
94303         (equal): Use isnand instead of isnan.
94304         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
94305         isnand-nolibm.
94306         * NEWS: Mention the change.
94308 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94309             Bruno Haible  <bruno@clisp.org>
94311         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
94312         the GCC builtins for signbits are present and set
94313         REPLACE_SIGNBIT_USING_GCC if so.
94314         * lib/math.in.h (signbit): Define using GCC builtins if
94315         REPLACE_SIGNBIT_USING_GCC is set.
94316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
94317         REPLACE_SIGNBIT_USING_GCC.
94318         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
94320 2008-01-25  Jim Meyering  <meyering@redhat.com>
94322         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
94323         * lib/poll.c: Include <config.h>, not "config.h".
94324         * tests/test-getaddrinfo.c: Likewise.
94326 2008-01-25  Simon Josefsson  <simon@josefsson.org>
94328         * modules/sockets-tests: New file.
94330 2008-01-24  Simon Josefsson  <simon@josefsson.org>
94332         * modules/sockets: New module, can be used to call WSA_Startup and
94333         WSA_Cleanup when needed.
94335         * lib/sockets.h, lib/sockets.c: New files.
94337         * m4/sockets.m4: New file.
94339         * tests/test-sockets.c: New file.
94341 2008-01-19  Bruno Haible  <bruno@clisp.org>
94343         * doc/posix-headers: Renamed from doc/headers.
94344         * doc/posix-functions: Renamed from doc/functions.
94345         * doc/gnulib.texi: Update.
94347 2008-01-19  Bruno Haible  <bruno@clisp.org>
94349         * doc/glibc-functions/strcasestr.texi: Include contents of
94350         doc/functions/strcasestr.texi, fixing the list of platforms.
94351         * doc/functions/strcasestr.texi: Remove file.
94353 2008-01-19  Bruno Haible  <bruno@clisp.org>
94355         * doc/glibc-functions/memmem.texi: Include contents of
94356         doc/functions/memmem.texi.
94357         * doc/functions/memmem.texi: Remove file.
94359 2008-01-18  Bruno Haible  <bruno@clisp.org>
94361         * doc/glibc-functions/*.texi: New files.
94362         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
94363         to use the new files.
94365 2008-01-17  Bruno Haible  <bruno@clisp.org>
94367         * tests/test-gethostname.c (main): Fix printf statement.
94369 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94371         * modules/gethostname-tests: New file.
94373         * tests/test-gethostname.c: New file.
94375 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94377         * lib/gethostname.c: Include string.h unconditionally, strncpy is
94378         used by the UNAME case.  Reported by Bruno Haible
94379         <bruno@clisp.org>.
94381 2008-01-17  Eric Blake  <ebb9@byu.net>
94383         Convert c-strcasestr to be more efficient.
94384         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
94385         (Depends-on): Add c-strcase, remove malloca, strnlen.
94386         * tests/test-c-strcasestr.c (main): Enhance test.
94387         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
94389 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
94391         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
94392         Use it in creating po/Makevars.
94394 2008-01-15  Simon Josefsson  <simon@josefsson.org>
94396         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
94397         Applications that requires it should initialize libgcrypt
94398         manually.
94400 2008-01-16  Simon Josefsson  <simon@josefsson.org>
94402         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
94404 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
94406         Fix problem with getdate on mingw32 reported by Simon Josefsson
94407         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
94408         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
94409         tzname", when deciding whether to declare tzname.
94410         * lib/strftime.c (tzname): Likewise.
94412 2008-01-15  Bruno Haible  <bruno@clisp.org>
94414         Work around a MacOS X 10.5 bug in frexpl().
94415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
94416         * doc/functions/frexpl.texi: Document the bug.
94417         Reported by Elias Pipping <pipping@gentoo.org>.
94419 2008-01-14  Eric Blake  <ebb9@byu.net>
94421         Touch up previous patch.
94422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
94423         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
94425         Convert strcasestr module to use Two-Way algorithm.
94426         * modules/strcasestr-simple: New module, based on the old
94427         strcasestr, but with Two-Way rather than KMP.
94428         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
94429         * lib/string.in.h (rpl_strcasestr): Declare.
94430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
94431         performance.
94432         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
94433         * modules/string (Makefile.am): Support strcasestr.
94434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
94435         * modules/strcasestr-tests (Depends-on): Check for alarm.
94436         * tests/test-strcasestr.c: Augment test.
94437         * lib/str-two-way.h: Clean up stray macro.
94438         * NEWS: Document new module.
94439         * MODULES.html.sh (string handling): Likewise.
94440         * doc/functions/strcasestr.texi: New file.
94441         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
94442         here, since it is not a POSIX function.
94444 2008-01-14  Colin Watson  <cjwatson@debian.org>
94445             Bruno Haible  <bruno@clisp.org>
94447         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
94448         works fine; if not, set REPLACE_STRSIGNAL.
94449         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
94450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94451         REPLACE_STRSIGNAL.
94452         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
94453         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
94454         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
94456 2008-01-14  Bruno Haible  <bruno@clisp.org>
94458         * modules/strsignal (Include): Change to <string.h>.
94460 2008-01-14  Colin Watson  <cjwatson@debian.org>
94462         * modules/argp (Notice): Add a notice recommending to change
94463         XGETTEXT_OPTIONS.
94464         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
94466 2008-01-13  Colin Watson  <cjwatson@debian.org>
94468         * modules/strsignal-tests: New file.
94469         * tests/test-strsignal.c: New file.
94471         * lib/strsignal.c: New file, from glibc with modifications.
94472         * lib/siglist.h: New file, from glibc with modifications.
94473         * lib/string.in.h (strsignal): New declaration.
94474         * m4/strsignal.m4: New file.
94475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94476         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
94477         * modules/strsignal: New file.
94478         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
94479         HAVE_DECL_STRSIGNAL.
94481 2008-01-13  Bruno Haible  <bruno@clisp.org>
94483         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
94484         locale encoding is not ASCII. Needed for OpenBSD 4.0.
94485         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94488 2008-01-13  Bruno Haible  <bruno@clisp.org>
94490         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
94491         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
94492         * lib/argp.h (__attribute__): Likewise.
94493         * lib/c-stack.c (__attribute__): Likewise.
94494         * lib/error.h (__attribute__): Likewise.
94495         * lib/fts.c (__attribute__): Likewise.
94496         * lib/openat.h (__attribute__): Likewise.
94497         * lib/stdio.in.h (__attribute__): Likewise.
94498         * lib/string.in.h (__attribute__): Likewise.
94499         * lib/utimens.c (__attribute__): Likewise.
94500         * lib/vasnprintf.h (__attribute__): Likewise.
94501         * lib/xalloc.h (__attribute__): Likewise.
94502         * lib/xprintf.h (__attribute__): Likewise.
94503         * lib/xstrtol.h (__attribute__): Likewise.
94504         * lib/xvasprintf.h (__attribute__): Likewise.
94506 2008-01-12  Bruno Haible  <bruno@clisp.org>
94508         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
94509         * doc/glibc-headers/a.out.texi: New file.
94510         * doc/glibc-headers/aliases.texi: New file.
94511         * doc/glibc-headers/alloca.texi: New file.
94512         * doc/glibc-headers/ar.texi: New file.
94513         * doc/glibc-headers/argp.texi: New file.
94514         * doc/glibc-headers/argz.texi: New file.
94515         * doc/glibc-headers/byteswap.texi: New file.
94516         * doc/glibc-headers/crypt.texi: New file.
94517         * doc/glibc-headers/endian.texi: New file.
94518         * doc/glibc-headers/envz.texi: New file.
94519         * doc/glibc-headers/err.texi: New file.
94520         * doc/glibc-headers/error.texi: New file.
94521         * doc/glibc-headers/execinfo.texi: New file.
94522         * doc/glibc-headers/fpu_control.texi: New file.
94523         * doc/glibc-headers/fstab.texi: New file.
94524         * doc/glibc-headers/fts.texi: New file.
94525         * doc/glibc-headers/getopt.texi: New file.
94526         * doc/glibc-headers/ieee754.texi: New file.
94527         * doc/glibc-headers/ifaddrs.texi: New file.
94528         * doc/glibc-headers/libintl.texi: New file.
94529         * doc/glibc-headers/mcheck.texi: New file.
94530         * doc/glibc-headers/mntent.texi: New file.
94531         * doc/glibc-headers/obstack.texi: New file.
94532         * doc/glibc-headers/paths.texi: New file.
94533         * doc/glibc-headers/printf.texi: New file.
94534         * doc/glibc-headers/pty.texi: New file.
94535         * doc/glibc-headers/resolv.texi: New file.
94536         * doc/glibc-headers/shadow.texi: New file.
94537         * doc/glibc-headers/sysexits.texi: New file.
94538         * doc/glibc-headers/ttyent.texi: New file.
94540 2008-01-12  Jim Meyering  <meyering@redhat.com>
94542         announce-gen: emit Gnulib's git-based version string.
94543         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
94544         New option --gnulib-version=V, where V is expected to be
94545         the output of running git describe in the gnulib directory.
94546         (get_tool_versions): Request feedback on xdelta.  I suspect it's
94547         not useful, and plan to stop publishing an xdelta file with each
94548         coreutils release.
94550         * build-aux/announce-gen: Also check for lzma-compressed files.
94552 2008-01-11  Bruno Haible  <bruno@clisp.org>
94554         * tests/test-memmem.c (main): Increase maximum allowed time.
94555         * tests/test-strstr.c (main): Likewise.
94557 2008-01-11  Bruno Haible  <bruno@clisp.org>
94559         * doc/functions/memmem.texi: Add more precisions about platforms.
94560         * doc/functions/strstr.texi: Likewise.
94562 2008-01-10  Eric Blake  <ebb9@byu.net>
94564         * m4/strstr.m4: Delete cruft from copy-n-paste.
94565         Reported by Bruno Haible.
94567 2008-01-10  Bruno Haible  <bruno@clisp.org>
94569         Make c-strstr rely on strstr.
94570         * lib/c-strstr.c: Don't include str-kmp.h.
94571         (c_strstr): Define in terms of strstr.
94572         * modules/c-strstr (Files): Remove lib/str-kmp.h.
94573         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
94575 2008-01-10  Bruno Haible  <bruno@clisp.org>
94577         * doc/gnulib.texi (String Functions in C Locale): New section.
94578         * doc/c-ctype.texi: New file.
94579         * doc/c-strcase.texi: New file.
94580         * doc/c-strcaseeq.texi: New file.
94581         * doc/c-strcasestr.texi: New file.
94582         * doc/c-strstr.texi: New file.
94583         * doc/c-strtod.texi: New file.
94584         * doc/c-strtold.texi: New file.
94586 2008-01-10  Eric Blake  <ebb9@byu.net>
94588         * lib/relocatable.h: Fix a comment.
94590 2008-01-10  Eric Blake  <ebb9@byu.net>
94592         Share two-way algorithm.
94593         * lib/str-two-way.h: New file, merged from...
94594         * lib/memmem.c: ...here...
94595         * lib/strstr.c: ...and here.
94596         * modules/memmem (Files): Use it.
94597         * modules/strstr (Files): Likewise.
94599         Avoid quadratic strstr implementations.
94600         * lib/strstr.c: New file.
94601         * m4/strstr.m4: Likewise.
94602         * modules/strstr: Likewise.
94603         * modules/strstr-tests: Likewise.
94604         * tests/test-strstr.c: Likewise.
94605         * lib/string.in.h (rpl_strstr): Declare.
94606         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94608         * modules/string (Makefile.am): Likewise.
94609         * MODULES.html.sh (string handling): Mention new module.
94610         * doc/functions/strstr.texi (strstr): Document the bug.
94612 2008-01-10  Bruno Haible  <bruno@clisp.org>
94614         * lib/relocatable.h (relocate): State whether result is freshly
94615         allocated or not.
94616         * lib/relocatable.c (relocate): Return a freshly allocated string
94617         instead of a pointer to a privately held string.
94618         Reported by Sylvain Beucler <beuc@gnu.org>.
94620 2008-01-10  Colin Watson  <cjwatson@debian.org>
94622         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94623         s/S_ISNLK/S_ISLNK/.
94625 2008-01-09  Bruno Haible  <bruno@clisp.org>
94627         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94628         and other files.
94629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94630         if it's only a guess.
94631         * modules/memmem: Simplify by depending on memmem-simple.
94633 2008-01-09  Bruno Haible  <bruno@clisp.org>
94635         Work around OpenBSD 4.0 tdelete() bug.
94636         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94637         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94638         macros and don't redefine the enum values.
94639         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94640         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94641         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94643 2008-01-09  Bruno Haible  <bruno@clisp.org>
94645         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94646         (main): Don't perform the tests if setlocale did not install a UTF-8
94647         locale. Needed on OpenBSD 4.0.
94648         * modules/wcwidth-tests (Depends-on): Add localcharset.
94650 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94652         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94653         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94654         * NEWS: announce this.
94655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94657 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94658         and Eric Blake  <ebb9@byu.net>
94660         Add memmem-simple module.
94661         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94662         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94663         * modules/memmem-simple: New file.
94664         * modules/memmem (Description): Tweak.
94665         * MODULES.html.sh (string handling): Mention new module.
94666         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94667         addressed by memmem-simple.
94668         * NEWS: Document the difference.
94670 2008-01-09  Eric Blake  <ebb9@byu.net>
94672         Give gcc some memmem optimization hints.
94673         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94674         (strcasestr): Declare as pure.
94675         * modules/memmem (Maintainer): Claim my implementation.
94677 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94679         Support AIX 6.1 and higher.
94680         * build-aux/config.libpath: Likewise.
94681         * build-aux/config.rpath: Likewise.
94683 2008-01-08  Jim Meyering  <meyering@redhat.com>
94684             Bruno Haible  <bruno@clisp.org>
94686         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94687         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94688         Reported by Peter Fales in
94689         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94691 2008-01-08  Bruno Haible  <bruno@clisp.org>
94693         * modules/unictype/category-of (Depends-on): Add
94694         unictype/category-none.
94695         * modules/unictype/category-and-tests (Depends-on): Add
94696         unictype/category-{L,N,Lu,Nd}.
94697         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94698         * modules/unictype/category-or-tests (Depends-on): Add
94699         unictype/category-{L,N}.
94700         * modules/unictype/category-name-tests (Depends-on): Add
94701         unictype/category-{Z,Nl}.
94702         Reported by Simon Josefsson.
94704 2008-01-08  Bruno Haible  <bruno@clisp.org>
94706         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94707         convention better.
94708         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94709         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94710         Reported by Peter Miller <millerp@canb.auug.org.au>.
94712 2008-01-08  Eric Blake  <ebb9@byu.net>
94714         Rewrite memmem to guarantee linear complexity without malloc.
94715         * lib/memmem.c (memmem): Use Two-Way rather than
94716         Knuth-Morris-Pratt, to allow O(1) space usage.
94717         (critical_factorization, two_way_short_needle)
94718         (two_way_long_needle): New functions.
94719         (knuth_morris_pratt): Delete.
94720         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94721         Add stdint.
94722         * tests/test-memmem.c (main): Add tests for periodic needle and
94723         sublinear performance.
94724         * doc/functions/memmem.texi (memmem): Document other deficiencies
94725         in cygwin and older glibc.
94727 2008-01-08  Bruno Haible  <bruno@clisp.org>
94729         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94730         augmentation.
94732 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94734         Add a configure time option: --disable-acl.
94735         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94736         AC_ARG_ENABLE(acl).
94738 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94740         * tests/test-localename.c: Don't include obsolete "setenv.h".
94742         * modules/localename-tests (Depends-on): Need unsetenv.
94744 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94746         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94748 2008-01-06  Colin Watson  <cjwatson@debian.org>
94750         * users.txt: Add man-db.
94752 2008-01-07  Bruno Haible  <bruno@clisp.org>
94754         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94755         previous section name.
94757 2008-01-07  Bruno Haible  <bruno@clisp.org>
94759         * lib/progname.c (set_program_name): Don't strip off a leading
94760         "lt-" prefix outside a .libs directory.
94761         Suggested by Paul Eggert.
94763 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94764             Bruno Haible  <bruno@clisp.org>
94766         Improve memory cleanup in 'relocatable' module.
94767         * lib/relocatable.h (compute_curr_prefix): Change return type to
94768         'char *'.
94769         * lib/relocatable.c (compute_curr_prefix): Change return type to
94770         'char *'. Free curr_installdir after use.
94771         (relocate): Free curr_prefix_better after use.
94772         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94774 2008-01-01  Bruno Haible  <bruno@clisp.org>
94776         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94777         failure on older glibc systems.
94778         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94780 2008-01-05  Eric Blake  <ebb9@byu.net>
94782         Avoid quadratic system memmem.
94783         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94784         Reported by Ralf Wildenhues.
94786         Fix memmem test for mingw.
94787         * modules/memmem-tests (configure.ac): Check for alarm.
94788         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94789         it.
94790         * doc/functions/memmem.texi: New file.
94791         * doc/gnulib.texi (Function Substitutes): Add memmem.
94792         Reported by Bruno Haible.
94794 2008-01-04  Bruno Haible  <bruno@clisp.org>
94796         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94797         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94798         gl_HEADER_STRING_H_DEFAULTS.
94800 2008-01-04  Eric Blake  <ebb9@byu.net>
94802         Shorten duration of memmem test.
94803         * tests/test-memmem.c (main): Use alarm to declare failure if test
94804         is taking too long.
94805         Reported by Ralf Wildenhues.
94807 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94809         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94810         string, needed by strerror.
94812 2008-01-03  Colin Watson  <cjwatson@debian.org>
94813             Bruno Haible  <bruno@clisp.org>
94815         * doc/gnulib-tool.texi (Localization): New section.
94817 2008-01-02  Bruno Haible  <bruno@clisp.org>
94819         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94820         variables to 'unsigned char *' type.
94821         Reported by Paul Eggert.
94823 2008-01-02  Jim Meyering  <jim@meyering.net>
94825         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94827 2007-12-31  Jim Meyering  <jim@meyering.net>
94829         Avoid use of private FTS type name.
94830         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94832 2007-12-30  Karl Berry  <karl@gnu.org>
94834         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94835         work around defect in Texinfo and/or the standalone Info browser.
94837 2007-12-30  Bruno Haible  <bruno@clisp.org>
94839         Unify 5 copies of the KMP code.
94840         * lib/str-kmp.h: New file.
94841         * lib/c-strcasestr.c: Include str-kmp.h.
94842         (knuth_morris_pratt): Remove function.
94843         (c_strcasestr): Update.
94844         * lib/c-strstr.c: Include str-kmp.h.
94845         (knuth_morris_pratt): Remove function.
94846         (c_strcasestr): Update.
94847         * lib/mbscasestr.c: Include str-kmp.h.
94848         (knuth_morris_pratt_unibyte): Remove function.
94849         * lib/mbsstr.c: Include str-kmp.h.
94850         (knuth_morris_pratt_unibyte): Remove function.
94851         * lib/strcasestr.c: Include str-kmp.h.
94852         (knuth_morris_pratt): Remove function.
94853         (strcasestr): Update.
94854         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94855         * modules/c-strstr (Files): Likewise.
94856         * modules/mbscasestr (Files): Likewise.
94857         * modules/mbsstr (Files): Likewise.
94858         * modules/strcasestr (Files): Likewise.
94859         Suggested by Paul Eggert.
94861 2007-12-30  Bruno Haible  <bruno@clisp.org>
94863         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94864         defined.
94866 2007-12-30  Bruno Haible  <bruno@clisp.org>
94868         * lib/xmalloca.h: Include xalloc.h.
94869         (xnmalloca): New macro.
94871 2007-12-30  Bruno Haible  <bruno@clisp.org>
94873         * lib/malloca.h (nmalloca): New macro.
94874         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94875         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94876         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94877         knuth_morris_pratt_multibyte): Likewise.
94878         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94879         knuth_morris_pratt_multibyte): Likewise.
94880         * lib/memmem.c (knuth_morris_pratt): Likewise.
94881         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94883 2007-12-25  Bruno Haible  <bruno@clisp.org>
94885         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94886         * lib/glob.c: Don't include openat.h.
94887         (link_exists2_p): Add back the code that deals with the
94888         !GLOB_ALTDIRFUNC case.
94889         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94890         let it do the filename concatenation.
94891         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94892         * modules/glob (Depends-on): Remove openat.
94894 2007-12-31  Bruno Haible  <bruno@clisp.org>
94896         * modules/dirfd (License): Change to LGPLv2+.
94897         Approved by Jim Meyering.
94899 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94901         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94902         when multiplying M by sizeof (size_t).
94904 2007-12-10  Martin Lambers  <marlam@marlam.de>
94906         Override getpagesize on mingw.
94907         * lib/getpagesize.c: New file.
94908         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94909         * modules/getpagesize (Files): Add lib/getpagesize.c.
94910         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94912         REPLACE_GETPAGESIZE.
94913         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94915 2007-12-25  Bruno Haible  <bruno@clisp.org>
94917         * modules/localcharset (Notice): New field.
94918         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94919         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94921 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94922             Bruno Haible  <bruno@clisp.org>
94924         Avoid using the syntax symbol() in formatted documentation.
94925         * MODULES.html.sh (func_module): When replacing symbol() with a
94926         hyperlink, remove the parentheses. Show an error if some remain.
94927         Recognize and render the '...' syntax.
94928         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94929         Rework. Add paragraph about GCC's inlining.
94930         * doc/alloca.texi: Likewise.
94931         * doc/error.texi: Remove parentheses from symbol reference.
94932         * doc/gnulib-intro.texi: Likewise.
94933         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94934         * modules/fnmatch (Description): Reword to say "the ... function".
94935         * modules/full-read (Description): Likewise.
94936         * modules/full-write (Description): Likewise.
94937         * modules/safe-read (Description): Likewise.
94938         * modules/safe-write (Description): Likewise.
94939         * modules/strchrnul (Description): Likewise.
94940         * modules/trim (Description): Likewise.
94941         * modules/error (Description): Remove parentheses from symbol
94942         references.
94943         * modules/verror (Description): Likewise.
94944         Reported by Karl Berry.
94946 2007-12-25  Bruno Haible  <bruno@clisp.org>
94948         Fixup after 2007-10-16 commit.
94949         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94951 2007-12-24  Bruno Haible  <bruno@clisp.org>
94953         Make --enable-relocatable work with DESTDIR.
94954         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94955         to compute installdir from destprog.
94956         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94957         also set the RELOC_DESTDIR variable.
94958         Reported by Левашев Иван <octagram@bluebottle.com>.
94960 2007-12-24  Bruno Haible  <bruno@clisp.org>
94962         Fix link error due to xalloc_die().
94963         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94964         of xreadlink.
94965         * lib/relocwrapper.c: Update comments.
94966         * build-aux/install-reloc: Remove xreadlink.c from file list.
94967         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94968         xreadlink.c.
94969         Reported by Левашев Иван <octagram@bluebottle.com>.
94971 2007-12-24  Bruno Haible  <bruno@clisp.org>
94973         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94974         * lib/setenv.h: Remove file.
94975         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94976         lib/setenv.h.
94977         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94978         (Depends-on): Add stdlib.
94979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94980         gl_FUNC_UNSETENV.
94981         (Include): Replace setenv.h with <stdlib.h>.
94982         * modules/unsetenv: New file.
94983         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94984         * lib/unsetenv.c: Include <stdlib.h> first.
94985         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94986         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94987         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94988         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94989         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94990         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94992         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94993         * doc/functions/unsetenv.texi: Update.
94994         * modules/xsetenv (Depends-on): Add unsetenv.
94995         * modules/getdate (Depends-on): Likewise.
94996         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94997         * lib/xsetenv.c: Don't include setenv.h.
94998         * lib/getdate.y: Likewise.
94999         * lib/relocwrapper.c: Likewise.
95000         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
95001         (Depends-on): Add stdlib.
95002         * NEWS: Mention the changes.
95003         Reported by Левашев Иван <octagram@bluebottle.com>.
95005 2007-12-23  Bruno Haible  <bruno@clisp.org>
95007         * lib/memmem.c (memmem): Use lowercase variable names. Tab
95008         indentation.
95010 2007-12-23  Bruno Haible  <bruno@clisp.org>
95012         * lib/c-strcasestr.c: Add more comments.
95013         * lib/c-strstr.c: Likewise.
95014         * lib/mbscasestr.c: Likewise.
95015         * lib/mbsstr.c: Likewise.
95016         * lib/strcasestr.c: Likewise.
95017         * lib/memmem.c: Likewise.
95019 2007-12-23  Bruno Haible  <bruno@clisp.org>
95021         * tests/test-memmem.c: Include <string.h> first.
95023 2007-12-22  Bruno Haible  <bruno@clisp.org>
95025         * gnulib-tool (func_create_testdir): Change $auxdir while generating
95026         the contents of $testsbase.
95027         Reported by Ralf Wildenhues.
95029 2007-12-22  Bruno Haible  <bruno@clisp.org>
95031         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
95032         two variables local_ldadd_before, local_ldadd_last.
95034 2007-12-20  Eric Blake  <ebb9@byu.net>
95036         Work around circular library issue when cross-compiling.
95037         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
95038         that progname.o does not need to pull in rpl_memcmp.
95040 2007-12-19  Eric Blake  <ebb9@byu.net>
95042         Fix memmem to avoid O(n^2) worst-case complexity.
95043         * lib/memmem.c (knuth_morris_pratt): New function.
95044         (memmem): Use it if first few naive iterations fail.
95045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
95046         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
95047         * modules/memchr (License): Likewise.
95048         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
95049         malloca.
95050         * tests/test-memmem.c: Rewrite, borrowing ideas from
95051         test-mbsstr1.c; the old version wouldn't even compile!
95052         * modules/memmem-tests: New file.
95053         * lib/string.in.h (rpl_memmem): Add declaration.
95054         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
95055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
95056         REPLACE_MEMMEM.
95058 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
95060         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
95061         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
95062         before any system include files, and undef after them all.  This
95063         should fix a problem on VMS reported by John E. Malmberg in
95064         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
95066 2007-12-17  Eric Blake  <ebb9@byu.net>
95068         Revert addition of verify, for BSD/OS.
95069         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
95070         can't handle large files, for the sake of obsolete platforms.
95071         * modules/fseeko (Depends-on): Remove verify.
95072         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
95073         * doc/functions/ftello.texi (ftello): Likewise.
95074         * doc/functions/fgetpos.texi (fgetpos): Likewise.
95075         Reported by Larry Jones.
95077 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
95079         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
95080         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
95082 2007-12-17  Jim Meyering  <meyering@redhat.com>
95084         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
95085         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
95086         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
95087         * modules/getcwd (Depends-on): Add openat.
95088         Reported by Petr Salinger.
95090 2007-12-17  Bruno Haible  <bruno@clisp.org>
95092         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
95093         avoid a segmentation fault of the configure test on x86_64 systems.
95095 2007-12-15  Jim Meyering  <meyering@redhat.com>
95097         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
95099 2007-12-13  Eric Blake  <ebb9@byu.net>
95101         Another fseek test.
95102         * tests/test-fseek.c (main): Also test ungetc handling.
95103         * tests/test-fseeko.c (main): Likewise.
95104         * modules/fseeko (Depends-on): Add verify.
95105         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
95106         large.
95107         Reported by Larry Jones.
95109         Fix fseeko on mingw.
95110         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
95111         seek.
95113         Beef up fseek tests.
95114         * tests/test-fseek.c (main): Also test eof handling.
95115         * tests/test-fseeko.c (main): Likewise.
95116         Reported by Larry Jones.
95118 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
95120         Fix fseeko on BSD-based platforms.
95121         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
95122         successful seek.
95124 2007-12-12  Eric Blake  <ebb9@byu.net>
95126         Allow circular dependency of separate libtests.a
95127         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
95128         when use_libtests.
95130 2007-12-11  Eric Blake  <ebb9@byu.net>
95132         Fix bug with -0.0L in previous patch.
95133         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
95134         * tests/test-isnan.c (main): Also test on zeroes.
95135         * tests/test-isnanf.c (main): Likewise.
95136         * tests/test-isnanl.h (main): Likewise.
95138         Detect pseudo-denormals on x86 even when cross-compiling.
95139         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
95140         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
95141         invalid bit patterns that happen to satisfy ==.
95143         Avoid link failures with separate libtests.a.
95144         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
95145         last, to satisfy circular dependencies.
95147 2007-12-11  Eric Blake  <ebb9@byu.net>
95148         and Bruno Haible  <bruno@clisp.org>
95150         Fix OpenBSD 4.0 <float.h> handling of long double.
95151         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
95152         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
95153         * doc/headers/float.texi (float.h): Document OpenBSD bug.
95155 2007-12-11  Jim Meyering  <meyering@redhat.com>
95157         * users.txt: Add libvirt.
95159         Support versions of autoconf prior to 2.59c.
95160         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
95161         if it is not already defined.
95163 2007-12-09  Bruno Haible  <bruno@clisp.org>
95165         Let 'gnulib-tool --import' collect sources needed for the tests in
95166         tests/ rather than in lib/.
95167         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
95168         argument. If true, add rules to generate libtests.a, and put libtests.a
95169         into $(LDADD). Consider source files in subdirectories and set
95170         uses_subdirs.
95171         (func_emit_initmacro_start, func_emit_initmacro_end,
95172         func_emit_initmacro_done): Pass all arguments explicitly.
95173         (func_import): Determine two module lists main_modules,
95174         testsrelated_modules. Determine use_libtests. Determine two variables
95175         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
95176         instead of just sed_transform_lib_file. Determine two variables
95177         main_files and testsrelated_files. Compute 'files' as the union of
95178         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
95179         func_add_or_update. In the generated gnulib-comp.m4, collect the
95180         object files for tests/ in different variables than those for lib/.
95181         Substitute LIBTESTS_LIBDEPS.
95182         (func_create_testdir): Combine the uses_subdirs results from
95183         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
95185 2007-12-09  Bruno Haible  <bruno@clisp.org>
95187         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
95188         the build-aux directory.
95190 2007-12-09  Bruno Haible  <bruno@clisp.org>
95192         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
95193         introduced on 2006-09-09.
95195 2007-12-07  Jim Meyering  <meyering@redhat.com>
95197         Let these macros work also with autoconf-2.59.
95198         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
95199         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
95200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
95202 2007-12-06  Jim Meyering  <meyering@redhat.com>
95204         Avoid a configure-time syntax error in gl_FUNC_ACL.
95205         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
95206         function in each branch, before testing the cache variable.
95208 2007-12-04  Eric Blake  <ebb9@byu.net>
95210         Make scripts executable.
95211         * build-aux/config.guess: Add execute permissions.
95212         * build-aux/config.sub: Likewise.
95213         * build-aux/gendocs.sh: Likewise.
95215         Fix frexp on mingw.
95216         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
95217         cross-compiling.
95218         * doc/functions/frexp.texi (frexp): Document the bug.
95220         Make cygwin fseeko check more reliable.
95221         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
95222         version numbers, rather than unrelated feature check.
95223         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
95224         * doc/functions/ftello.texi (ftello): Likewise.
95225         Reported by Bruno Haible.
95227         * m4/strerror.m4: Bump version number.
95229 2007-12-03  Bruno Haible  <bruno@clisp.org>
95231         * doc/functions/mprotect.texi: Mention the mingw problem.
95233 2007-12-03  Eric Blake  <ebb9@byu.net>
95235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
95236         REPLACE_STRERROR is initialized before this macro.
95238 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
95240         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
95241         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
95242         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
95243         put -lsec in even for programs other than 'ls'.  This fixes a problem
95244         for gettext reported by Bruno Haible in
95245         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
95246         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
95247         Add support for Solaris 10.  This isn't efficient, but should get the
95248         job done for now.
95250 2007-12-03  James Youngman  <jay@gnu.org>
95252         * doc/regexprops-generic.texi: change "an close-group" to "a
95253         close-group" and "illegal" to "not allowed".
95255 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95257         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
95258         pr_byname.h. Needed for the rare case when the maintainer has done
95259         "make maintainer-clean" in the source directory and then attempts a
95260         build outside the source directory.
95261         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
95262         scripts_byname.h.
95264 2007-12-02  Martin Lambers  <marlam@marlam.de>
95265             Bruno Haible  <bruno@clisp.org>
95267         * lib/getpagesize.h: Remove file.
95268         * lib/unistd.in.h: Include declaration of getpagesize here.
95269         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
95270         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
95271         HAVE_SYS_PARAM_H.
95272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
95273         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95274         * modules/getpagesize (Files): Remove lib/getpagesize.h.
95275         (Depends-on): Add unistd.
95276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
95277         (Include): Use <unistd.h> instead of getpagesize.h.
95278         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
95279         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95280         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
95281         gl_GETPAGESIZE invocation, already handled by module dependency.
95282         * lib/pagealign_alloc.c: Don't include getpagesize.h.
95284 2007-12-02  Bruno Haible  <bruno@clisp.org>
95286         * modules/strings-tests: New file.
95287         * tests/test-strings.c: New file.
95289         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
95290         * lib/strings.in.h: New file.
95291         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
95292         * m4/strings_h.m4: New file.
95293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
95294         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
95295         * modules/strings: New file.
95296         * modules/string (Makefile.am): Update.
95297         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
95298         Reported by Karl Berry.
95300 2007-12-01  Eric Blake  <ebb9@byu.net>
95302         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
95303         accommodate fix in cygwin 1.5.25.
95305 2007-12-01  Jim Meyering  <meyering@redhat.com>
95307         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
95308         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
95309         that would inhibit utf8-optimization of a regexp containing line-
95310         or buffer-anchors, e.g., `^', `$'.
95312 2007-11-30  Bruno Haible  <bruno@clisp.org>
95314         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
95315         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
95316         glthread_recursive_lock_init.
95317         * lib/lock.c (glthread_recursive_lock_init)
95318         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
95319         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95321 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
95323         New function qset_acl, like set_acl but with syscall semantics.
95324         * lib/acl.h (qset_acl): New decl.
95325         * lib/acl.c (qset_acl): New function.
95326         (set_acl): Use new function.  Use more-consistent diagnostics.
95328 2007-11-28  Jim Meyering  <meyering@redhat.com>
95330         * modules/physmem (License): Change from GPL to LGPLv2+.
95332 2007-11-26  Bruno Haible  <bruno@clisp.org>
95334         * lib/vasnprintf.c (decode_long_double): Don't abort if the
95335         'long double' type has excess precision.
95336         Reported by Jim Meyering in
95337         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
95339 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95341         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
95342         Sync from <http://gnu.org/licenses>.
95343         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
95344         with license text from same location.
95345         * doc/maintain.texi, doc/standards.texi:  Sync from
95346         <http://savannah.gnu.org/projects/gnustandards>.
95348 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
95349         and Jim Meyering  <meyering@redhat.com>
95351         Adjust getdate' grammar to accept a slightly more regular language.
95352         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
95353         Before, the former was rejected.
95354         * lib/getdate.y (digits_to_date_time): New function, factored
95355         out of ...
95356         (number): ...here.  Just call digits_to_date_time.
95357         (hybrid): New non-terminal to handle an <unsigned number,
95358         signed relative offset> sequence consistently.
95360 2007-11-18  Jim Meyering  <meyering@redhat.com>
95362         Pull my changes from coreutils:
95363         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
95364         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
95365         use of $gnulib_tool_option_extras, so that it's separated from the
95366         preceding argument.
95368         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
95369         * build-aux/bootstrap (cp_mark_as_generated): Create any required
95370         parent destination directories before copying a file into place.
95372 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95374         bootstrap: work also with 4-argument variant of AC_INIT
95375         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
95377 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95379         Port test-getaddrinfo to Solaris.
95380         Problem reported by Bruno Haible in
95381         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
95382         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
95383         explanation of setting 'hints'.
95384         Don't reject an implementation merely because it returns EAI_SERVICE.
95385         (EAI_SERVICE): Define to 0 if not defined.
95387 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95389         The license of gnu-make and posix-shell is now "GPLed build tool".
95390         * modules/gnu-make (License): Likewise.
95391         * modules/posix-shell (License): Likewise.
95393         New module posix-shell, for determining a POSIX shell
95394         or perhaps something that is close enough to a POSIX shell.
95395         * m4/posix-shell.m4: New file.
95396         * modules/posix-shell: New file.
95398         * MODULES.html.sh: Mention new module.
95400         New module gnu-make, for determining whether we're using GNU Make.
95401         * m4/gnu-make.m4: New file.
95402         * modules/gnu-make: New file.
95403         * MODULES.html.sh: Mention new module.
95405 2007-11-14  Jim Meyering  <meyering@redhat.com>
95407         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
95408         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
95409         use this macro to create a function _definition_.
95410         Remove useless "#undef ARGMATCH_DIE".
95412 2007-11-14  Bruno Haible  <bruno@clisp.org>
95414         * lib/config.charset: Update for OpenBSD 4.1.
95415         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
95417 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
95419         Document 64-bit #if problems in stdint.texi.
95420         * doc/headers/stdint.texi (stdint.h): Mention problems with
95421         64-bit-#if, and how to work around them.
95423         Don't insist on 'long long int' support in the preprocessor.  It
95424         breaks too many things.  For example, PRIdMAX still uses a 'long
95425         long int' format with the latest Sun compiler, even though
95426         HAVE_LONG_LONG_INT isn't defined due to that compiler's
95427         preprocessor problem.  This causes the latest coreutils to dump
95428         core on Solaris 10 sparc with the Sun C compiler.
95429         Instead, fix the 2007-10-16 problem in a different way, by evaluating
95430         the troublesome expressions at configure-time, not at #if-time.
95431         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
95432         preprocessor.
95433         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
95434         compile-time C checks, done at 'configure'-time.
95435         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
95436         * modules/inttypes (Makefile): Substitute the new symbols that
95437         gl_INTTYPES_H now generates.
95438         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
95440 2007-11-12  Bruno Haible  <bruno@clisp.org>
95442         Tests for Unicode character classification functions.
95444         * modules/unictype/bidicategory-byname-tests: New file.
95445         * modules/unictype/bidicategory-name-tests: New file.
95446         * modules/unictype/bidicategory-of-tests: New file.
95447         * modules/unictype/bidicategory-test-tests: New file.
95448         * modules/unictype/block-list-tests: New file.
95449         * modules/unictype/block-of-tests: New file.
95450         * modules/unictype/block-test-tests: New file.
95451         * modules/unictype/category-C-tests: New file.
95452         * modules/unictype/category-Cc-tests: New file.
95453         * modules/unictype/category-Cf-tests: New file.
95454         * modules/unictype/category-Cn-tests: New file.
95455         * modules/unictype/category-Co-tests: New file.
95456         * modules/unictype/category-Cs-tests: New file.
95457         * modules/unictype/category-L-tests: New file.
95458         * modules/unictype/category-Ll-tests: New file.
95459         * modules/unictype/category-Lm-tests: New file.
95460         * modules/unictype/category-Lo-tests: New file.
95461         * modules/unictype/category-Lt-tests: New file.
95462         * modules/unictype/category-Lu-tests: New file.
95463         * modules/unictype/category-M-tests: New file.
95464         * modules/unictype/category-Mc-tests: New file.
95465         * modules/unictype/category-Me-tests: New file.
95466         * modules/unictype/category-Mn-tests: New file.
95467         * modules/unictype/category-N-tests: New file.
95468         * modules/unictype/category-Nd-tests: New file.
95469         * modules/unictype/category-Nl-tests: New file.
95470         * modules/unictype/category-No-tests: New file.
95471         * modules/unictype/category-P-tests: New file.
95472         * modules/unictype/category-Pc-tests: New file.
95473         * modules/unictype/category-Pd-tests: New file.
95474         * modules/unictype/category-Pe-tests: New file.
95475         * modules/unictype/category-Pf-tests: New file.
95476         * modules/unictype/category-Pi-tests: New file.
95477         * modules/unictype/category-Po-tests: New file.
95478         * modules/unictype/category-Ps-tests: New file.
95479         * modules/unictype/category-S-tests: New file.
95480         * modules/unictype/category-Sc-tests: New file.
95481         * modules/unictype/category-Sk-tests: New file.
95482         * modules/unictype/category-Sm-tests: New file.
95483         * modules/unictype/category-So-tests: New file.
95484         * modules/unictype/category-Z-tests: New file.
95485         * modules/unictype/category-Zl-tests: New file.
95486         * modules/unictype/category-Zp-tests: New file.
95487         * modules/unictype/category-Zs-tests: New file.
95488         * modules/unictype/category-and-not-tests: New file.
95489         * modules/unictype/category-and-tests: New file.
95490         * modules/unictype/category-byname-tests: New file.
95491         * modules/unictype/category-name-tests: New file.
95492         * modules/unictype/category-none-tests: New file.
95493         * modules/unictype/category-of-tests: New file.
95494         * modules/unictype/category-or-tests: New file.
95495         * modules/unictype/category-test-withtable-tests: New file.
95496         * modules/unictype/combining-class-tests: New file.
95497         * modules/unictype/ctype-alnum-tests: New file.
95498         * modules/unictype/ctype-alpha-tests: New file.
95499         * modules/unictype/ctype-blank-tests: New file.
95500         * modules/unictype/ctype-cntrl-tests: New file.
95501         * modules/unictype/ctype-digit-tests: New file.
95502         * modules/unictype/ctype-graph-tests: New file.
95503         * modules/unictype/ctype-lower-tests: New file.
95504         * modules/unictype/ctype-print-tests: New file.
95505         * modules/unictype/ctype-punct-tests: New file.
95506         * modules/unictype/ctype-space-tests: New file.
95507         * modules/unictype/ctype-upper-tests: New file.
95508         * modules/unictype/ctype-xdigit-tests: New file.
95509         * modules/unictype/decimal-digit-tests: New file.
95510         * modules/unictype/digit-tests: New file.
95511         * modules/unictype/mirror-tests: New file.
95512         * modules/unictype/numeric-tests: New file.
95513         * modules/unictype/property-alphabetic-tests: New file.
95514         * modules/unictype/property-ascii-hex-digit-tests: New file.
95515         * modules/unictype/property-bidi-arabic-digit-tests: New file.
95516         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
95517         * modules/unictype/property-bidi-block-separator-tests: New file.
95518         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
95519         * modules/unictype/property-bidi-common-separator-tests: New file.
95520         * modules/unictype/property-bidi-control-tests: New file.
95521         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
95522         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
95523         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
95524         * modules/unictype/property-bidi-european-digit-tests: New file.
95525         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
95526         * modules/unictype/property-bidi-left-to-right-tests: New file.
95527         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
95528         * modules/unictype/property-bidi-other-neutral-tests: New file.
95529         * modules/unictype/property-bidi-pdf-tests: New file.
95530         * modules/unictype/property-bidi-segment-separator-tests: New file.
95531         * modules/unictype/property-bidi-whitespace-tests: New file.
95532         * modules/unictype/property-byname-tests: New file.
95533         * modules/unictype/property-combining-tests: New file.
95534         * modules/unictype/property-composite-tests: New file.
95535         * modules/unictype/property-currency-symbol-tests: New file.
95536         * modules/unictype/property-dash-tests: New file.
95537         * modules/unictype/property-decimal-digit-tests: New file.
95538         * modules/unictype/property-default-ignorable-code-point-tests: New file.
95539         * modules/unictype/property-deprecated-tests: New file.
95540         * modules/unictype/property-diacritic-tests: New file.
95541         * modules/unictype/property-extender-tests: New file.
95542         * modules/unictype/property-format-control-tests: New file.
95543         * modules/unictype/property-grapheme-base-tests: New file.
95544         * modules/unictype/property-grapheme-extend-tests: New file.
95545         * modules/unictype/property-grapheme-link-tests: New file.
95546         * modules/unictype/property-hex-digit-tests: New file.
95547         * modules/unictype/property-hyphen-tests: New file.
95548         * modules/unictype/property-id-continue-tests: New file.
95549         * modules/unictype/property-id-start-tests: New file.
95550         * modules/unictype/property-ideographic-tests: New file.
95551         * modules/unictype/property-ids-binary-operator-tests: New file.
95552         * modules/unictype/property-ids-trinary-operator-tests: New file.
95553         * modules/unictype/property-ignorable-control-tests: New file.
95554         * modules/unictype/property-iso-control-tests: New file.
95555         * modules/unictype/property-join-control-tests: New file.
95556         * modules/unictype/property-left-of-pair-tests: New file.
95557         * modules/unictype/property-line-separator-tests: New file.
95558         * modules/unictype/property-logical-order-exception-tests: New file.
95559         * modules/unictype/property-lowercase-tests: New file.
95560         * modules/unictype/property-math-tests: New file.
95561         * modules/unictype/property-non-break-tests: New file.
95562         * modules/unictype/property-not-a-character-tests: New file.
95563         * modules/unictype/property-numeric-tests: New file.
95564         * modules/unictype/property-other-alphabetic-tests: New file.
95565         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
95566         * modules/unictype/property-other-grapheme-extend-tests: New file.
95567         * modules/unictype/property-other-id-continue-tests: New file.
95568         * modules/unictype/property-other-id-start-tests: New file.
95569         * modules/unictype/property-other-lowercase-tests: New file.
95570         * modules/unictype/property-other-math-tests: New file.
95571         * modules/unictype/property-other-uppercase-tests: New file.
95572         * modules/unictype/property-paired-punctuation-tests: New file.
95573         * modules/unictype/property-paragraph-separator-tests: New file.
95574         * modules/unictype/property-pattern-syntax-tests: New file.
95575         * modules/unictype/property-pattern-white-space-tests: New file.
95576         * modules/unictype/property-private-use-tests: New file.
95577         * modules/unictype/property-punctuation-tests: New file.
95578         * modules/unictype/property-quotation-mark-tests: New file.
95579         * modules/unictype/property-radical-tests: New file.
95580         * modules/unictype/property-sentence-terminal-tests: New file.
95581         * modules/unictype/property-soft-dotted-tests: New file.
95582         * modules/unictype/property-space-tests: New file.
95583         * modules/unictype/property-terminal-punctuation-tests: New file.
95584         * modules/unictype/property-test-tests: New file.
95585         * modules/unictype/property-titlecase-tests: New file.
95586         * modules/unictype/property-unassigned-code-value-tests: New file.
95587         * modules/unictype/property-unified-ideograph-tests: New file.
95588         * modules/unictype/property-uppercase-tests: New file.
95589         * modules/unictype/property-variation-selector-tests: New file.
95590         * modules/unictype/property-white-space-tests: New file.
95591         * modules/unictype/property-xid-continue-tests: New file.
95592         * modules/unictype/property-xid-start-tests: New file.
95593         * modules/unictype/property-zero-width-tests: New file.
95594         * modules/unictype/scripts-tests: New file.
95595         * modules/unictype/syntax-c-ident-tests: New file.
95596         * modules/unictype/syntax-c-whitespace-tests: New file.
95597         * modules/unictype/syntax-java-ident-tests: New file.
95598         * modules/unictype/syntax-java-whitespace-tests: New file.
95599         * tests/unictype/test-bidi_byname.c: New file.
95600         * tests/unictype/test-bidi_name.c: New file.
95601         * tests/unictype/test-bidi_of.c: New file.
95602         * tests/unictype/test-bidi_test.c: New file.
95603         * tests/unictype/test-block_list.c: New file.
95604         * tests/unictype/test-block_of.c: New file.
95605         * tests/unictype/test-block_test.c: New file.
95606         * tests/unictype/test-categ_and.c: New file.
95607         * tests/unictype/test-categ_and_not.c: New file.
95608         * tests/unictype/test-categ_byname.c: New file.
95609         * tests/unictype/test-categ_name.c: New file.
95610         * tests/unictype/test-categ_none.c: New file.
95611         * tests/unictype/test-categ_of.c: New file.
95612         * tests/unictype/test-categ_or.c: New file.
95613         * tests/unictype/test-categ_test_withtable.c: New file.
95614         * tests/unictype/test-combining.c: New file.
95615         * tests/unictype/test-decdigit.c: New file.
95616         * tests/unictype/test-digit.c: New file.
95617         * tests/unictype/test-mirror.c: New file.
95618         * tests/unictype/test-numeric.c: New file.
95619         * tests/unictype/test-pr_byname.c: New file.
95620         * tests/unictype/test-pr_test.c: New file.
95621         * tests/unictype/test-predicate-part1.h: New file.
95622         * tests/unictype/test-predicate-part2.h: New file.
95623         * tests/unictype/test-scripts.c: New file.
95624         * tests/unictype/test-sy_c_ident.c: New file.
95625         * tests/unictype/test-sy_java_ident.c: New file.
95627         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95628         for Unicode 5.0.0.
95629         * tests/unictype/test-categ_Cc.c: Likewise.
95630         * tests/unictype/test-categ_Cf.c: Likewise.
95631         * tests/unictype/test-categ_Cn.c: Likewise.
95632         * tests/unictype/test-categ_Co.c: Likewise.
95633         * tests/unictype/test-categ_Cs.c: Likewise.
95634         * tests/unictype/test-categ_L.c: Likewise.
95635         * tests/unictype/test-categ_Ll.c: Likewise.
95636         * tests/unictype/test-categ_Lm.c: Likewise.
95637         * tests/unictype/test-categ_Lo.c: Likewise.
95638         * tests/unictype/test-categ_Lt.c: Likewise.
95639         * tests/unictype/test-categ_Lu.c: Likewise.
95640         * tests/unictype/test-categ_M.c: Likewise.
95641         * tests/unictype/test-categ_Mc.c: Likewise.
95642         * tests/unictype/test-categ_Me.c: Likewise.
95643         * tests/unictype/test-categ_Mn.c: Likewise.
95644         * tests/unictype/test-categ_N.c: Likewise.
95645         * tests/unictype/test-categ_Nd.c: Likewise.
95646         * tests/unictype/test-categ_Nl.c: Likewise.
95647         * tests/unictype/test-categ_No.c: Likewise.
95648         * tests/unictype/test-categ_P.c: Likewise.
95649         * tests/unictype/test-categ_Pc.c: Likewise.
95650         * tests/unictype/test-categ_Pd.c: Likewise.
95651         * tests/unictype/test-categ_Pe.c: Likewise.
95652         * tests/unictype/test-categ_Pf.c: Likewise.
95653         * tests/unictype/test-categ_Pi.c: Likewise.
95654         * tests/unictype/test-categ_Po.c: Likewise.
95655         * tests/unictype/test-categ_Ps.c: Likewise.
95656         * tests/unictype/test-categ_S.c: Likewise.
95657         * tests/unictype/test-categ_Sc.c: Likewise.
95658         * tests/unictype/test-categ_Sk.c: Likewise.
95659         * tests/unictype/test-categ_Sm.c: Likewise.
95660         * tests/unictype/test-categ_So.c: Likewise.
95661         * tests/unictype/test-categ_Z.c: Likewise.
95662         * tests/unictype/test-categ_Zl.c: Likewise.
95663         * tests/unictype/test-categ_Zp.c: Likewise.
95664         * tests/unictype/test-categ_Zs.c: Likewise.
95665         * tests/unictype/test-ctype_alnum.c: Likewise.
95666         * tests/unictype/test-ctype_alpha.c: Likewise.
95667         * tests/unictype/test-ctype_blank.c: Likewise.
95668         * tests/unictype/test-ctype_cntrl.c: Likewise.
95669         * tests/unictype/test-ctype_digit.c: Likewise.
95670         * tests/unictype/test-ctype_graph.c: Likewise.
95671         * tests/unictype/test-ctype_lower.c: Likewise.
95672         * tests/unictype/test-ctype_print.c: Likewise.
95673         * tests/unictype/test-ctype_punct.c: Likewise.
95674         * tests/unictype/test-ctype_space.c: Likewise.
95675         * tests/unictype/test-ctype_upper.c: Likewise.
95676         * tests/unictype/test-ctype_xdigit.c: Likewise.
95677         * tests/unictype/test-decdigit.h: Likewise.
95678         * tests/unictype/test-digit.h: Likewise.
95679         * tests/unictype/test-numeric.h: Likewise.
95680         * tests/unictype/test-pr_alphabetic.c: Likewise.
95681         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95682         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95683         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95684         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95685         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95686         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95687         * tests/unictype/test-pr_bidi_control.c: Likewise.
95688         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95689         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95690         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95691         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95692         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95693         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95694         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95695         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95696         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95697         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95698         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95699         * tests/unictype/test-pr_combining.c: Likewise.
95700         * tests/unictype/test-pr_composite.c: Likewise.
95701         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95702         * tests/unictype/test-pr_dash.c: Likewise.
95703         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95704         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95705         * tests/unictype/test-pr_deprecated.c: Likewise.
95706         * tests/unictype/test-pr_diacritic.c: Likewise.
95707         * tests/unictype/test-pr_extender.c: Likewise.
95708         * tests/unictype/test-pr_format_control.c: Likewise.
95709         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95710         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95711         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95712         * tests/unictype/test-pr_hex_digit.c: Likewise.
95713         * tests/unictype/test-pr_hyphen.c: Likewise.
95714         * tests/unictype/test-pr_id_continue.c: Likewise.
95715         * tests/unictype/test-pr_id_start.c: Likewise.
95716         * tests/unictype/test-pr_ideographic.c: Likewise.
95717         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95718         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95719         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95720         * tests/unictype/test-pr_iso_control.c: Likewise.
95721         * tests/unictype/test-pr_join_control.c: Likewise.
95722         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95723         * tests/unictype/test-pr_line_separator.c: Likewise.
95724         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95725         * tests/unictype/test-pr_lowercase.c: Likewise.
95726         * tests/unictype/test-pr_math.c: Likewise.
95727         * tests/unictype/test-pr_non_break.c: Likewise.
95728         * tests/unictype/test-pr_not_a_character.c: Likewise.
95729         * tests/unictype/test-pr_numeric.c: Likewise.
95730         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95731         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95732         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95733         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95734         * tests/unictype/test-pr_other_id_start.c: Likewise.
95735         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95736         * tests/unictype/test-pr_other_math.c: Likewise.
95737         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95738         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95739         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95740         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95741         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95742         * tests/unictype/test-pr_private_use.c: Likewise.
95743         * tests/unictype/test-pr_punctuation.c: Likewise.
95744         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95745         * tests/unictype/test-pr_radical.c: Likewise.
95746         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95747         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95748         * tests/unictype/test-pr_space.c: Likewise.
95749         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95750         * tests/unictype/test-pr_titlecase.c: Likewise.
95751         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95752         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95753         * tests/unictype/test-pr_uppercase.c: Likewise.
95754         * tests/unictype/test-pr_variation_selector.c: Likewise.
95755         * tests/unictype/test-pr_white_space.c: Likewise.
95756         * tests/unictype/test-pr_xid_continue.c: Likewise.
95757         * tests/unictype/test-pr_xid_start.c: Likewise.
95758         * tests/unictype/test-pr_zero_width.c: Likewise.
95759         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95760         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95762 2007-11-12  Bruno Haible  <bruno@clisp.org>
95764         Unicode character classification functions.
95765         * lib/unictype.h: New file.
95766         * modules/unictype/base: New file.
95767         * modules/unictype/category-L: New file.
95768         * modules/unictype/category-Lu: New file.
95769         * modules/unictype/category-Ll: New file.
95770         * modules/unictype/category-Lt: New file.
95771         * modules/unictype/category-Lm: New file.
95772         * modules/unictype/category-Lo: New file.
95773         * modules/unictype/category-M: New file.
95774         * modules/unictype/category-Mn: New file.
95775         * modules/unictype/category-Mc: New file.
95776         * modules/unictype/category-Me: New file.
95777         * modules/unictype/category-N: New file.
95778         * modules/unictype/category-Nd: New file.
95779         * modules/unictype/category-Nl: New file.
95780         * modules/unictype/category-No: New file.
95781         * modules/unictype/category-P: New file.
95782         * modules/unictype/category-Pc: New file.
95783         * modules/unictype/category-Pd: New file.
95784         * modules/unictype/category-Ps: New file.
95785         * modules/unictype/category-Pe: New file.
95786         * modules/unictype/category-Pi: New file.
95787         * modules/unictype/category-Pf: New file.
95788         * modules/unictype/category-Po: New file.
95789         * modules/unictype/category-S: New file.
95790         * modules/unictype/category-Sm: New file.
95791         * modules/unictype/category-Sc: New file.
95792         * modules/unictype/category-Sk: New file.
95793         * modules/unictype/category-So: New file.
95794         * modules/unictype/category-Z: New file.
95795         * modules/unictype/category-Zs: New file.
95796         * modules/unictype/category-Zl: New file.
95797         * modules/unictype/category-Zp: New file.
95798         * modules/unictype/category-C: New file.
95799         * modules/unictype/category-Cc: New file.
95800         * modules/unictype/category-Cf: New file.
95801         * modules/unictype/category-Cs: New file.
95802         * modules/unictype/category-Co: New file.
95803         * modules/unictype/category-Cn: New file.
95804         * modules/unictype/category-or: New file.
95805         * modules/unictype/category-of: New file.
95806         * modules/unictype/category-test: New file.
95807         * modules/unictype/category-test-withtable: New file.
95808         * modules/unictype/category-byname: New file.
95809         * modules/unictype/category-none: New file.
95810         * modules/unictype/category-and: New file.
95811         * modules/unictype/category-and-not: New file.
95812         * modules/unictype/category-name: New file.
95813         * modules/unictype/combining-class: New file.
95814         * modules/unictype/category-all: New file.
95815         * modules/unictype/bidicategory-all: New file.
95816         * modules/unictype/bidicategory-byname: New file.
95817         * modules/unictype/bidicategory-name: New file.
95818         * modules/unictype/bidicategory-of: New file.
95819         * modules/unictype/bidicategory-test: New file.
95820         * modules/unictype/decimal-digit: New file.
95821         * modules/unictype/digit: New file.
95822         * modules/unictype/numeric: New file.
95823         * modules/unictype/mirror: New file.
95824         * modules/unictype/property-white-space: New file.
95825         * modules/unictype/property-alphabetic: New file.
95826         * modules/unictype/property-other-alphabetic: New file.
95827         * modules/unictype/property-not-a-character: New file.
95828         * modules/unictype/property-default-ignorable-code-point: New file.
95829         * modules/unictype/property-other-default-ignorable-code-point: New
95830         file.
95831         * modules/unictype/property-deprecated: New file.
95832         * modules/unictype/property-logical-order-exception: New file.
95833         * modules/unictype/property-variation-selector: New file.
95834         * modules/unictype/property-private-use: New file.
95835         * modules/unictype/property-unassigned-code-value: New file.
95836         * modules/unictype/property-uppercase: New file.
95837         * modules/unictype/property-other-uppercase: New file.
95838         * modules/unictype/property-lowercase: New file.
95839         * modules/unictype/property-other-lowercase: New file.
95840         * modules/unictype/property-titlecase: New file.
95841         * modules/unictype/property-soft-dotted: New file.
95842         * modules/unictype/property-id-start: New file.
95843         * modules/unictype/property-other-id-start: New file.
95844         * modules/unictype/property-id-continue: New file.
95845         * modules/unictype/property-other-id-continue: New file.
95846         * modules/unictype/property-xid-start: New file.
95847         * modules/unictype/property-xid-continue: New file.
95848         * modules/unictype/property-pattern-white-space: New file.
95849         * modules/unictype/property-pattern-syntax: New file.
95850         * modules/unictype/property-join-control: New file.
95851         * modules/unictype/property-grapheme-base: New file.
95852         * modules/unictype/property-grapheme-extend: New file.
95853         * modules/unictype/property-other-grapheme-extend: New file.
95854         * modules/unictype/property-grapheme-link: New file.
95855         * modules/unictype/property-bidi-control: New file.
95856         * modules/unictype/property-bidi-left-to-right: New file.
95857         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95858         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95859         * modules/unictype/property-bidi-european-digit: New file.
95860         * modules/unictype/property-bidi-eur-num-separator: New file.
95861         * modules/unictype/property-bidi-eur-num-terminator: New file.
95862         * modules/unictype/property-bidi-arabic-digit: New file.
95863         * modules/unictype/property-bidi-common-separator: New file.
95864         * modules/unictype/property-bidi-block-separator: New file.
95865         * modules/unictype/property-bidi-segment-separator: New file.
95866         * modules/unictype/property-bidi-whitespace: New file.
95867         * modules/unictype/property-bidi-non-spacing-mark: New file.
95868         * modules/unictype/property-bidi-boundary-neutral: New file.
95869         * modules/unictype/property-bidi-pdf: New file.
95870         * modules/unictype/property-bidi-embedding-or-override: New file.
95871         * modules/unictype/property-bidi-other-neutral: New file.
95872         * modules/unictype/property-hex-digit: New file.
95873         * modules/unictype/property-ascii-hex-digit: New file.
95874         * modules/unictype/property-ideographic: New file.
95875         * modules/unictype/property-unified-ideograph: New file.
95876         * modules/unictype/property-radical: New file.
95877         * modules/unictype/property-ids-binary-operator: New file.
95878         * modules/unictype/property-ids-trinary-operator: New file.
95879         * modules/unictype/property-zero-width: New file.
95880         * modules/unictype/property-space: New file.
95881         * modules/unictype/property-non-break: New file.
95882         * modules/unictype/property-iso-control: New file.
95883         * modules/unictype/property-format-control: New file.
95884         * modules/unictype/property-dash: New file.
95885         * modules/unictype/property-hyphen: New file.
95886         * modules/unictype/property-punctuation: New file.
95887         * modules/unictype/property-line-separator: New file.
95888         * modules/unictype/property-paragraph-separator: New file.
95889         * modules/unictype/property-quotation-mark: New file.
95890         * modules/unictype/property-sentence-terminal: New file.
95891         * modules/unictype/property-terminal-punctuation: New file.
95892         * modules/unictype/property-currency-symbol: New file.
95893         * modules/unictype/property-math: New file.
95894         * modules/unictype/property-other-math: New file.
95895         * modules/unictype/property-paired-punctuation: New file.
95896         * modules/unictype/property-left-of-pair: New file.
95897         * modules/unictype/property-combining: New file.
95898         * modules/unictype/property-composite: New file.
95899         * modules/unictype/property-decimal-digit: New file.
95900         * modules/unictype/property-numeric: New file.
95901         * modules/unictype/property-diacritic: New file.
95902         * modules/unictype/property-extender: New file.
95903         * modules/unictype/property-ignorable-control: New file.
95904         * modules/unictype/property-test: New file.
95905         * modules/unictype/property-byname: New file.
95906         * modules/unictype/property-all: New file.
95907         * modules/unictype/scripts: New file.
95908         * modules/unictype/scripts-all: New file.
95909         * modules/unictype/block-of: New file.
95910         * modules/unictype/block-test: New file.
95911         * modules/unictype/block-list: New file.
95912         * modules/unictype/block-all: New file.
95913         * modules/unictype/syntax-c-whitespace: New file.
95914         * modules/unictype/syntax-java-whitespace: New file.
95915         * modules/unictype/syntax-c-ident: New file.
95916         * modules/unictype/syntax-java-ident: New file.
95917         * modules/unictype/ctype-alnum: New file.
95918         * modules/unictype/ctype-alpha: New file.
95919         * modules/unictype/ctype-cntrl: New file.
95920         * modules/unictype/ctype-digit: New file.
95921         * modules/unictype/ctype-graph: New file.
95922         * modules/unictype/ctype-lower: New file.
95923         * modules/unictype/ctype-print: New file.
95924         * modules/unictype/ctype-punct: New file.
95925         * modules/unictype/ctype-space: New file.
95926         * modules/unictype/ctype-upper: New file.
95927         * modules/unictype/ctype-xdigit: New file.
95928         * modules/unictype/ctype-blank: New file.
95929         * lib/unictype/bidi_byname.c: New file.
95930         * lib/unictype/bidi_name.c: New file.
95931         * lib/unictype/bidi_of.c: New file.
95932         * lib/unictype/bidi_test.c: New file.
95933         * lib/unictype/bitmap.h: New file.
95934         * lib/unictype/block_test.c: New file.
95935         * lib/unictype/blocks.c: New file.
95936         * lib/unictype/categ_C.c: New file.
95937         * lib/unictype/categ_Cc.c: New file.
95938         * lib/unictype/categ_Cf.c: New file.
95939         * lib/unictype/categ_Cn.c: New file.
95940         * lib/unictype/categ_Co.c: New file.
95941         * lib/unictype/categ_Cs.c: New file.
95942         * lib/unictype/categ_L.c: New file.
95943         * lib/unictype/categ_Ll.c: New file.
95944         * lib/unictype/categ_Lm.c: New file.
95945         * lib/unictype/categ_Lo.c: New file.
95946         * lib/unictype/categ_Lt.c: New file.
95947         * lib/unictype/categ_Lu.c: New file.
95948         * lib/unictype/categ_M.c: New file.
95949         * lib/unictype/categ_Mc.c: New file.
95950         * lib/unictype/categ_Me.c: New file.
95951         * lib/unictype/categ_Mn.c: New file.
95952         * lib/unictype/categ_N.c: New file.
95953         * lib/unictype/categ_Nd.c: New file.
95954         * lib/unictype/categ_Nl.c: New file.
95955         * lib/unictype/categ_No.c: New file.
95956         * lib/unictype/categ_P.c: New file.
95957         * lib/unictype/categ_Pc.c: New file.
95958         * lib/unictype/categ_Pd.c: New file.
95959         * lib/unictype/categ_Pe.c: New file.
95960         * lib/unictype/categ_Pf.c: New file.
95961         * lib/unictype/categ_Pi.c: New file.
95962         * lib/unictype/categ_Po.c: New file.
95963         * lib/unictype/categ_Ps.c: New file.
95964         * lib/unictype/categ_S.c: New file.
95965         * lib/unictype/categ_Sc.c: New file.
95966         * lib/unictype/categ_Sk.c: New file.
95967         * lib/unictype/categ_Sm.c: New file.
95968         * lib/unictype/categ_So.c: New file.
95969         * lib/unictype/categ_Z.c: New file.
95970         * lib/unictype/categ_Zl.c: New file.
95971         * lib/unictype/categ_Zp.c: New file.
95972         * lib/unictype/categ_Zs.c: New file.
95973         * lib/unictype/categ_and.c: New file.
95974         * lib/unictype/categ_and_not.c: New file.
95975         * lib/unictype/categ_byname.c: New file.
95976         * lib/unictype/categ_name.c: New file.
95977         * lib/unictype/categ_none.c: New file.
95978         * lib/unictype/categ_of.c: New file.
95979         * lib/unictype/categ_or.c: New file.
95980         * lib/unictype/categ_test.c: New file.
95981         * lib/unictype/combining.c: New file.
95982         * lib/unictype/ctype_alnum.c: New file.
95983         * lib/unictype/ctype_alpha.c: New file.
95984         * lib/unictype/ctype_blank.c: New file.
95985         * lib/unictype/ctype_cntrl.c: New file.
95986         * lib/unictype/ctype_digit.c: New file.
95987         * lib/unictype/ctype_graph.c: New file.
95988         * lib/unictype/ctype_lower.c: New file.
95989         * lib/unictype/ctype_print.c: New file.
95990         * lib/unictype/ctype_punct.c: New file.
95991         * lib/unictype/ctype_space.c: New file.
95992         * lib/unictype/ctype_upper.c: New file.
95993         * lib/unictype/ctype_xdigit.c: New file.
95994         * lib/unictype/decdigit.c: New file.
95995         * lib/unictype/digit.c: New file.
95996         * lib/unictype/identsyntaxmap.h: New file.
95997         * lib/unictype/mirror.c: New file.
95998         * lib/unictype/numeric.c: New file.
95999         * lib/unictype/pr_alphabetic.c: New file.
96000         * lib/unictype/pr_ascii_hex_digit.c: New file.
96001         * lib/unictype/pr_bidi_arabic_digit.c: New file.
96002         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
96003         * lib/unictype/pr_bidi_block_separator.c: New file.
96004         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
96005         * lib/unictype/pr_bidi_common_separator.c: New file.
96006         * lib/unictype/pr_bidi_control.c: New file.
96007         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
96008         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
96009         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
96010         * lib/unictype/pr_bidi_european_digit.c: New file.
96011         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
96012         * lib/unictype/pr_bidi_left_to_right.c: New file.
96013         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
96014         * lib/unictype/pr_bidi_other_neutral.c: New file.
96015         * lib/unictype/pr_bidi_pdf.c: New file.
96016         * lib/unictype/pr_bidi_segment_separator.c: New file.
96017         * lib/unictype/pr_bidi_whitespace.c: New file.
96018         * lib/unictype/pr_byname.c: New file.
96019         * lib/unictype/pr_byname.gperf: New file.
96020         * lib/unictype/pr_combining.c: New file.
96021         * lib/unictype/pr_composite.c: New file.
96022         * lib/unictype/pr_currency_symbol.c: New file.
96023         * lib/unictype/pr_dash.c: New file.
96024         * lib/unictype/pr_decimal_digit.c: New file.
96025         * lib/unictype/pr_default_ignorable_code_point.c: New file.
96026         * lib/unictype/pr_deprecated.c: New file.
96027         * lib/unictype/pr_diacritic.c: New file.
96028         * lib/unictype/pr_extender.c: New file.
96029         * lib/unictype/pr_format_control.c: New file.
96030         * lib/unictype/pr_grapheme_base.c: New file.
96031         * lib/unictype/pr_grapheme_extend.c: New file.
96032         * lib/unictype/pr_grapheme_link.c: New file.
96033         * lib/unictype/pr_hex_digit.c: New file.
96034         * lib/unictype/pr_hyphen.c: New file.
96035         * lib/unictype/pr_id_continue.c: New file.
96036         * lib/unictype/pr_id_start.c: New file.
96037         * lib/unictype/pr_ideographic.c: New file.
96038         * lib/unictype/pr_ids_binary_operator.c: New file.
96039         * lib/unictype/pr_ids_trinary_operator.c: New file.
96040         * lib/unictype/pr_ignorable_control.c: New file.
96041         * lib/unictype/pr_iso_control.c: New file.
96042         * lib/unictype/pr_join_control.c: New file.
96043         * lib/unictype/pr_left_of_pair.c: New file.
96044         * lib/unictype/pr_line_separator.c: New file.
96045         * lib/unictype/pr_logical_order_exception.c: New file.
96046         * lib/unictype/pr_lowercase.c: New file.
96047         * lib/unictype/pr_math.c: New file.
96048         * lib/unictype/pr_non_break.c: New file.
96049         * lib/unictype/pr_not_a_character.c: New file.
96050         * lib/unictype/pr_numeric.c: New file.
96051         * lib/unictype/pr_other_alphabetic.c: New file.
96052         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
96053         * lib/unictype/pr_other_grapheme_extend.c: New file.
96054         * lib/unictype/pr_other_id_continue.c: New file.
96055         * lib/unictype/pr_other_id_start.c: New file.
96056         * lib/unictype/pr_other_lowercase.c: New file.
96057         * lib/unictype/pr_other_math.c: New file.
96058         * lib/unictype/pr_other_uppercase.c: New file.
96059         * lib/unictype/pr_paired_punctuation.c: New file.
96060         * lib/unictype/pr_paragraph_separator.c: New file.
96061         * lib/unictype/pr_pattern_syntax.c: New file.
96062         * lib/unictype/pr_pattern_white_space.c: New file.
96063         * lib/unictype/pr_private_use.c: New file.
96064         * lib/unictype/pr_punctuation.c: New file.
96065         * lib/unictype/pr_quotation_mark.c: New file.
96066         * lib/unictype/pr_radical.c: New file.
96067         * lib/unictype/pr_sentence_terminal.c: New file.
96068         * lib/unictype/pr_soft_dotted.c: New file.
96069         * lib/unictype/pr_space.c: New file.
96070         * lib/unictype/pr_terminal_punctuation.c: New file.
96071         * lib/unictype/pr_test.c: New file.
96072         * lib/unictype/pr_titlecase.c: New file.
96073         * lib/unictype/pr_unassigned_code_value.c: New file.
96074         * lib/unictype/pr_unified_ideograph.c: New file.
96075         * lib/unictype/pr_uppercase.c: New file.
96076         * lib/unictype/pr_variation_selector.c: New file.
96077         * lib/unictype/pr_white_space.c: New file.
96078         * lib/unictype/pr_xid_continue.c: New file.
96079         * lib/unictype/pr_xid_start.c: New file.
96080         * lib/unictype/pr_zero_width.c: New file.
96081         * lib/unictype/scripts.c: New file.
96082         * lib/unictype/sy_c_ident.c: New file.
96083         * lib/unictype/sy_c_whitespace.c: New file.
96084         * lib/unictype/sy_java_ident.c: New file.
96085         * lib/unictype/sy_java_whitespace.c: New file.
96087         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
96088         Unicode 5.0.0.
96089         * lib/unictype/blocks.h: Likewise.
96090         * lib/unictype/categ_C.h: Likewise.
96091         * lib/unictype/categ_Cc.h: Likewise.
96092         * lib/unictype/categ_Cf.h: Likewise.
96093         * lib/unictype/categ_Cn.h: Likewise.
96094         * lib/unictype/categ_Co.h: Likewise.
96095         * lib/unictype/categ_Cs.h: Likewise.
96096         * lib/unictype/categ_L.h: Likewise.
96097         * lib/unictype/categ_Ll.h: Likewise.
96098         * lib/unictype/categ_Lm.h: Likewise.
96099         * lib/unictype/categ_Lo.h: Likewise.
96100         * lib/unictype/categ_Lt.h: Likewise.
96101         * lib/unictype/categ_Lu.h: Likewise.
96102         * lib/unictype/categ_M.h: Likewise.
96103         * lib/unictype/categ_Mc.h: Likewise.
96104         * lib/unictype/categ_Me.h: Likewise.
96105         * lib/unictype/categ_Mn.h: Likewise.
96106         * lib/unictype/categ_N.h: Likewise.
96107         * lib/unictype/categ_Nd.h: Likewise.
96108         * lib/unictype/categ_Nl.h: Likewise.
96109         * lib/unictype/categ_No.h: Likewise.
96110         * lib/unictype/categ_P.h: Likewise.
96111         * lib/unictype/categ_Pc.h: Likewise.
96112         * lib/unictype/categ_Pd.h: Likewise.
96113         * lib/unictype/categ_Pe.h: Likewise.
96114         * lib/unictype/categ_Pf.h: Likewise.
96115         * lib/unictype/categ_Pi.h: Likewise.
96116         * lib/unictype/categ_Po.h: Likewise.
96117         * lib/unictype/categ_Ps.h: Likewise.
96118         * lib/unictype/categ_S.h: Likewise.
96119         * lib/unictype/categ_Sc.h: Likewise.
96120         * lib/unictype/categ_Sk.h: Likewise.
96121         * lib/unictype/categ_Sm.h: Likewise.
96122         * lib/unictype/categ_So.h: Likewise.
96123         * lib/unictype/categ_Z.h: Likewise.
96124         * lib/unictype/categ_Zl.h: Likewise.
96125         * lib/unictype/categ_Zp.h: Likewise.
96126         * lib/unictype/categ_Zs.h: Likewise.
96127         * lib/unictype/categ_of.h: Likewise.
96128         * lib/unictype/combining.h: Likewise.
96129         * lib/unictype/ctype_alnum.h: Likewise.
96130         * lib/unictype/ctype_alpha.h: Likewise.
96131         * lib/unictype/ctype_blank.h: Likewise.
96132         * lib/unictype/ctype_cntrl.h: Likewise.
96133         * lib/unictype/ctype_digit.h: Likewise.
96134         * lib/unictype/ctype_graph.h: Likewise.
96135         * lib/unictype/ctype_lower.h: Likewise.
96136         * lib/unictype/ctype_print.h: Likewise.
96137         * lib/unictype/ctype_punct.h: Likewise.
96138         * lib/unictype/ctype_space.h: Likewise.
96139         * lib/unictype/ctype_upper.h: Likewise.
96140         * lib/unictype/ctype_xdigit.h: Likewise.
96141         * lib/unictype/decdigit.h: Likewise.
96142         * lib/unictype/digit.h: Likewise.
96143         * lib/unictype/mirror.h: Likewise.
96144         * lib/unictype/numeric.h: Likewise.
96145         * lib/unictype/pr_alphabetic.h: Likewise.
96146         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
96147         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
96148         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
96149         * lib/unictype/pr_bidi_block_separator.h: Likewise.
96150         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
96151         * lib/unictype/pr_bidi_common_separator.h: Likewise.
96152         * lib/unictype/pr_bidi_control.h: Likewise.
96153         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
96154         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
96155         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
96156         * lib/unictype/pr_bidi_european_digit.h: Likewise.
96157         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
96158         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
96159         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
96160         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
96161         * lib/unictype/pr_bidi_pdf.h: Likewise.
96162         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
96163         * lib/unictype/pr_bidi_whitespace.h: Likewise.
96164         * lib/unictype/pr_combining.h: Likewise.
96165         * lib/unictype/pr_composite.h: Likewise.
96166         * lib/unictype/pr_currency_symbol.h: Likewise.
96167         * lib/unictype/pr_dash.h: Likewise.
96168         * lib/unictype/pr_decimal_digit.h: Likewise.
96169         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
96170         * lib/unictype/pr_deprecated.h: Likewise.
96171         * lib/unictype/pr_diacritic.h: Likewise.
96172         * lib/unictype/pr_extender.h: Likewise.
96173         * lib/unictype/pr_format_control.h: Likewise.
96174         * lib/unictype/pr_grapheme_base.h: Likewise.
96175         * lib/unictype/pr_grapheme_extend.h: Likewise.
96176         * lib/unictype/pr_grapheme_link.h: Likewise.
96177         * lib/unictype/pr_hex_digit.h: Likewise.
96178         * lib/unictype/pr_hyphen.h: Likewise.
96179         * lib/unictype/pr_id_continue.h: Likewise.
96180         * lib/unictype/pr_id_start.h: Likewise.
96181         * lib/unictype/pr_ideographic.h: Likewise.
96182         * lib/unictype/pr_ids_binary_operator.h: Likewise.
96183         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
96184         * lib/unictype/pr_ignorable_control.h: Likewise.
96185         * lib/unictype/pr_iso_control.h: Likewise.
96186         * lib/unictype/pr_join_control.h: Likewise.
96187         * lib/unictype/pr_left_of_pair.h: Likewise.
96188         * lib/unictype/pr_line_separator.h: Likewise.
96189         * lib/unictype/pr_logical_order_exception.h: Likewise.
96190         * lib/unictype/pr_lowercase.h: Likewise.
96191         * lib/unictype/pr_math.h: Likewise.
96192         * lib/unictype/pr_non_break.h: Likewise.
96193         * lib/unictype/pr_not_a_character.h: Likewise.
96194         * lib/unictype/pr_numeric.h: Likewise.
96195         * lib/unictype/pr_other_alphabetic.h: Likewise.
96196         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
96197         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
96198         * lib/unictype/pr_other_id_continue.h: Likewise.
96199         * lib/unictype/pr_other_id_start.h: Likewise.
96200         * lib/unictype/pr_other_lowercase.h: Likewise.
96201         * lib/unictype/pr_other_math.h: Likewise.
96202         * lib/unictype/pr_other_uppercase.h: Likewise.
96203         * lib/unictype/pr_paired_punctuation.h: Likewise.
96204         * lib/unictype/pr_paragraph_separator.h: Likewise.
96205         * lib/unictype/pr_pattern_syntax.h: Likewise.
96206         * lib/unictype/pr_pattern_white_space.h: Likewise.
96207         * lib/unictype/pr_private_use.h: Likewise.
96208         * lib/unictype/pr_punctuation.h: Likewise.
96209         * lib/unictype/pr_quotation_mark.h: Likewise.
96210         * lib/unictype/pr_radical.h: Likewise.
96211         * lib/unictype/pr_sentence_terminal.h: Likewise.
96212         * lib/unictype/pr_soft_dotted.h: Likewise.
96213         * lib/unictype/pr_space.h: Likewise.
96214         * lib/unictype/pr_terminal_punctuation.h: Likewise.
96215         * lib/unictype/pr_titlecase.h: Likewise.
96216         * lib/unictype/pr_unassigned_code_value.h: Likewise.
96217         * lib/unictype/pr_unified_ideograph.h: Likewise.
96218         * lib/unictype/pr_uppercase.h: Likewise.
96219         * lib/unictype/pr_variation_selector.h: Likewise.
96220         * lib/unictype/pr_white_space.h: Likewise.
96221         * lib/unictype/pr_xid_continue.h: Likewise.
96222         * lib/unictype/pr_xid_start.h: Likewise.
96223         * lib/unictype/pr_zero_width.h: Likewise.
96224         * lib/unictype/scripts.h: Likewise.
96225         * lib/unictype/scripts_byname.gperf: Likewise.
96226         * lib/unictype/sy_c_ident.h: Likewise.
96227         * lib/unictype/sy_c_whitespace.h: Likewise.
96228         * lib/unictype/sy_java_ident.h: Likewise.
96229         * lib/unictype/sy_java_whitespace.h: Likewise.
96231         * lib/unictype/Makefile: New file.
96232         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
96233         glibc.
96234         * lib/unictype/3level.h: New file, copied from glibc.
96235         * lib/unictype/3levelbit.h: New file.
96237 2007-11-11  Bruno Haible  <bruno@clisp.org>
96239         * modules/gperf: New file.
96240         * modules/iconv_open (Depends-on): Add it.
96241         (Makefile.am): Remove the GPERF definition.
96243 2007-11-11  Bruno Haible  <bruno@clisp.org>
96245         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
96246         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
96248 2007-11-11  Bruno Haible  <bruno@clisp.org>
96250         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
96251         (usage): Remove function.
96253 2007-11-11  Bruno Haible  <bruno@clisp.org>
96255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
96256         gl_FUNC_CEILF_LIBS.
96257         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
96258         gl_FUNC_CEIL_LIBS.
96259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
96260         gl_FUNC_CEILL_LIBS.
96261         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
96262         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
96263         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
96265 2007-11-11  Bruno Haible  <bruno@clisp.org>
96267         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
96268         roundf were declared but do not exist on functions.
96269         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
96270         roundl were declared but do not exist on functions.
96271         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
96272         HAVE_FLOORL_AND_CEILL, respectively.
96273         Needed for Sun C on Solaris 10.
96275 2007-11-11  Bruno Haible  <bruno@clisp.org>
96277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
96278         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
96279         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
96280         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
96281         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
96282         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
96283         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
96284         HAVE_DECL_ROUNDF.
96285         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
96286         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
96287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
96288         of HAVE_DECL_ROUND*.
96289         * modules/math (Makefile.am): Update.
96291 2007-11-10  Bruno Haible  <bruno@clisp.org>
96293         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
96294         ptrdiff_t as m4/intl.m4.
96296 2007-11-10  Jim Meyering  <meyering@redhat.com>
96298         Avoid link failure for the argmatch test.
96299         * tests/test-argmatch.c (usage): Define function to avoid a link
96300         failure: argmatch_die requires a usage function.
96302 2007-11-09  Bruno Haible  <bruno@clisp.org>
96304         * doc/functions/snprintf.texi: Mention BeOS deficiency.
96305         * doc/functions/vsnprintf.texi: Likewise.
96306         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
96307         with a size argument < 2.
96309 2007-11-09  Bruno Haible  <bruno@clisp.org>
96311         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
96312         buffer. Fixes an inefficiency introduced on 2007-11-03.
96314 2007-11-09  Bruno Haible  <bruno@clisp.org>
96316         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
96317         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
96319 2007-11-08  Jim Meyering  <meyering@redhat.com>
96321         Change cache variable name prefix "jm_" to "gl_" everywhere.
96322         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
96323         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
96324         * m4/uptime.m4: s/gl_/jm_/
96326 2007-11-07  Bruno Haible  <bruno@clisp.org>
96328         Update to GNU gettext 0.17.
96329         * m4/intl.m4: Update to GNU gettext 0.17.
96330         * m4/po.m4: Likewise.
96331         * modules/gettext (Files): Remove m4/ulonglong.m4.
96332         (configure.ac): Require gettext infrastructure from version 0.17.
96334 2007-11-06  Bruno Haible  <bruno@clisp.org>
96336         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
96337         symbolic values are not defined in a public header.
96338         * lib/freadable.c (freadable) [QNX]: Likewise.
96339         * lib/freadahead.c (freadahead) [QNX]: Likewise.
96340         * lib/freading.c (freading) [QNX]: Likewise.
96341         * lib/fseterr.c (fseterr) [QNX]: Likewise.
96342         * lib/fwritable.c (fwritable) [QNX]: Likewise.
96343         * lib/fwriting.c (fwriting) [QNX]: Likewise.
96344         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
96345         Reported by Alain Magloire.
96347         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
96349 2007-11-05  Bruno Haible  <bruno@clisp.org>
96351         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
96352         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
96353         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
96354         Reported by Eric Blake.
96356 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96357             Bruno Haible  <bruno@clisp.org>
96359         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
96360         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
96361         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
96362         (malloc): Undefine also before including <stdlib.h>.
96363         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
96364         Needed on OSF/1 4.0.
96366 2007-11-05  Jim Meyering  <meyering@redhat.com>
96368         git-version-gen: sync from coreutils.
96369         * build-aux/git-version-gen: Add comments.
96370         Change the first '-' to '.' in the snapshot version string,
96371         e.g., 6.9-377-08144 -> 6.9.377-08144
96372         Remove first parameter.
96373         Don't declare a version "-dirty" merely because a time
96374         stamp has changed.
96376 2007-11-04  Bruno Haible  <bruno@clisp.org>
96378         * lib/lock.h: Protect all macro definitions containing an 'if'
96379         statement through a "do { ... } while (0)".
96380         * lib/tls.h: Likewise.
96382 2007-11-04  Bruno Haible  <bruno@clisp.org>
96384         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
96386 2007-11-04  Bruno Haible  <bruno@clisp.org>
96388         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
96389         * modules/fprintf-posix (Depends-on): Add nocrash.
96390         * modules/snprintf-posix (Depends-on): Likewise.
96391         * modules/sprintf-posix (Depends-on): Likewise.
96392         * modules/vasnprintf-posix (Depends-on): Likewise.
96393         * modules/vasprintf-posix (Depends-on): Likewise.
96394         * modules/vfprintf-posix (Depends-on): Likewise.
96395         * modules/vsnprintf-posix (Depends-on): Likewise.
96396         * modules/vsprintf-posix (Depends-on): Likewise.
96397         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96398         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96399         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96400         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96401         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96402         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96403         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96405 2007-11-04  Bruno Haible  <bruno@clisp.org>
96407         * modules/nocrash: New file.
96408         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
96409         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
96411 2007-11-04  Bruno Haible  <bruno@clisp.org>
96413         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
96414         precision handling.
96415         * tests/test-vasprintf-posix.c (test_function): Likewise.
96416         * tests/test-snprintf-posix.h (test_function): Likewise.
96417         * tests/test-sprintf-posix.h (test_function): Likewise.
96419         Fix *printf behaviour for large precisions on mingw and BeOS.
96420         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
96421         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
96422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
96423         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96425         gl_PRINTF_PRECISION and test its result. Invoke
96426         gl_PREREQ_VASNPRINTF_PRECISION.
96427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96434         * doc/functions/fprintf.texi: Update.
96435         * doc/functions/printf.texi: Update.
96436         * doc/functions/snprintf.texi: Update.
96437         * doc/functions/sprintf.texi: Update.
96438         * doc/functions/vfprintf.texi: Update.
96439         * doc/functions/vprintf.texi: Update.
96440         * doc/functions/vsnprintf.texi: Update.
96441         * doc/functions/vsprintf.texi: Update.
96443 2007-11-04  Bruno Haible  <bruno@clisp.org>
96445         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
96447 2007-11-04  Bruno Haible  <bruno@clisp.org>
96449         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
96450         Reported by Sylvain Beucler <beuc@gnu.org>.
96452 2007-11-03  Bruno Haible  <bruno@clisp.org>
96454         * tests/test-fprintf-posix2.sh: New file.
96455         * tests/test-fprintf-posix2.c: New file.
96456         * modules/fprintf-posix-tests (Files): Add them.
96457         (TESTS): Add test-fprintf-posix2.sh.
96458         (configure.ac): Check for getrlimit and setrlimit.
96459         (check_PROGRAMS): Add test-fprintf-posix2.
96461         * tests/test-printf-posix2.sh: New file.
96462         * tests/test-printf-posix2.c: New file.
96463         * modules/printf-posix-tests (Files): Add them.
96464         (TESTS): Add test-printf-posix2.sh.
96465         (configure.ac): Check for getrlimit and setrlimit.
96466         (check_PROGRAMS): Add test-printf-posix2.
96468         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
96469         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
96470         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
96471         (decode_double): New function, copied from decode_long_double.
96472         (scale10_round_decimal_decoded): New function, extracted from
96473         scale10_round_decimal_long_double.
96474         (scale10_round_decimal_long_double): Use it.
96475         (scale10_round_decimal_double): New function.
96476         (floorlog10): New function.
96477         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
96478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
96479         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96481         gl_PRINTF_ENOMEM and test its result. Invoke
96482         gl_PREREQ_VASNPRINTF_ENOMEM.
96483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96490         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
96491         * modules/snprintf-posix (Depends-on): Likewise.
96492         * modules/sprintf-posix (Depends-on): Likewise.
96493         * modules/vasnprintf-posix (Depends-on): Likewise.
96494         * modules/vasprintf-posix (Depends-on): Likewise.
96495         * modules/vfprintf-posix (Depends-on): Likewise.
96496         * modules/vsnprintf-posix (Depends-on): Likewise.
96497         * modules/vsprintf-posix (Depends-on): Likewise.
96498         * doc/functions/fprintf.texi: Update.
96499         * doc/functions/printf.texi: Update.
96500         * doc/functions/snprintf.texi: Update.
96501         * doc/functions/sprintf.texi: Update.
96502         * doc/functions/vfprintf.texi: Update.
96503         * doc/functions/vprintf.texi: Update.
96504         * doc/functions/vsnprintf.texi: Update.
96505         * doc/functions/vsprintf.texi: Update.
96507 2007-11-03  Bruno Haible  <bruno@clisp.org>
96509         * modules/frexp-nolibm-tests: New file.
96511         * modules/frexp-nolibm: New file.
96512         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
96514 2007-11-03  Bruno Haible  <bruno@clisp.org>
96516         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
96517         value is C99 compliant.
96518         Needed for OSF/1 5.1.
96520 2007-11-03  Bruno Haible  <bruno@clisp.org>
96522         Fix out-of-memory handling of vasnprintf.
96523         * lib/printf-parse.c: Include <errno.h>.
96524         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
96525         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
96526         is already set.
96528 2007-11-02  Eric Blake  <ebb9@byu.net>
96530         Fix tests on cygwin.
96531         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
96533 2007-11-01  Bruno Haible  <bruno@clisp.org>
96535         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
96536         warning.
96537         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
96538         needed for POSIX compatibility.
96540 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
96542         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
96543         for compatibility with GNU.
96545 2007-11-01  Bruno Haible  <bruno@clisp.org>
96547         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
96548         (putenv): Renamed from rpl_putenv. Change argument type from
96549         'const char *' to 'char *'.
96550         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
96551         of defining putenv in config.h, just set REPLACE_PUTENV.
96552         * modules/putenv (Depends-on): Add stdlib.
96553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96554         (Include): Use <stdlib.h>.
96555         * lib/stdlib.in.h (putenv): New declaration.
96556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
96557         REPLACE_PUTENV.
96558         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
96559         REPLACE_PUTENV.
96560         Needed for MacOS X 10.5.0.
96561         Reported by Peter O'Gorman <peter@pogma.com>.
96563 2007-11-01  Jim Meyering  <meyering@redhat.com>
96565         Treat an empty date string exactly like "0".
96566         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
96567         if the remaining date string (to be parsed) is empty, use "0".
96568         Reported by Mischa Molhoek and discussed in this thread:
96569         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
96571 2007-10-31  Bruno Haible  <bruno@clisp.org>
96573         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
96574         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
96575         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
96576         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
96577         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
96578         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
96580 2007-10-31  Bruno Haible  <bruno@clisp.org>
96582         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
96583         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
96584         (AC_TYPE_LONG_LONG_INT): Use it.
96585         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
96586         it as well.
96587         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96588         to m4/longlong.m4.
96589         * modules/stdint (Files): Remove m4/ulonglong.m4.
96590         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96591         m4/ulonglong.m4.
96592         * modules/strtoumax (Files): Likewise.
96594 2007-10-30  Bruno Haible  <bruno@clisp.org>
96596         * modules/xvasprintf-posix: New file.
96597         Suggested by Eric Blake.
96599 2007-10-30  Bruno Haible  <bruno@clisp.org>
96601         * modules/xprintf-posix-tests: New file.
96602         * tests/test-xprintf-posix.sh: New file.
96603         * tests/test-xprintf-posix.c: New file.
96604         * tests/test-xfprintf-posix.c: New file.
96606         * modules/xprintf-posix: New file.
96608 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96610         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96611         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96612         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96614 2007-10-29  Bruno Haible  <bruno@clisp.org>
96616         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96617         contain the special marker '_cv_'.
96618         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96619         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96620         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96621         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96622         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96623         Reported by Ralf Wildenhues.
96625 2007-10-29  Bruno Haible  <bruno@clisp.org>
96627         * gnulib-tool (func_import): When --lgpl is not specified, set
96628         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96629         GPLv3.
96630         Reported by Simon Josefsson.
96632 2007-10-28  Bruno Haible  <bruno@clisp.org>
96634         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96635         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96636         HAVE_DECL_ISFINITE.
96637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96638         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96639         HAVE_DECL_ISFINITE.
96641 2007-10-28  Bruno Haible  <bruno@clisp.org>
96643         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96644         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96646 2007-10-28  Bruno Haible  <bruno@clisp.org>
96648         Fix link errors with Sun C 5.0 on Solaris 10.
96649         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96650         function is declared but not present in the compiler's libm.
96651         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96652         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96653         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96654         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96655         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96656         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96657         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96659         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96660         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96661         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96662         HAVE_DECL_FLOORL.
96664 2007-10-28  Bruno Haible  <bruno@clisp.org>
96666         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96667         gl_FUNC_FLOORL. Cache the result.
96668         (gl_FUNC_FLOORL): Use it.
96669         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96670         gl_FUNC_CEILL. Cache the result.
96671         (gl_FUNC_CEILL): Use it.
96673         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96674         gl_FUNC_FLOOR. Cache the result.
96675         (gl_FUNC_FLOOR): Use it.
96676         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96677         gl_FUNC_CEIL. Cache the result.
96678         (gl_FUNC_CEIL): Use it.
96680         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96681         gl_FUNC_FLOORF. Cache the result.
96682         (gl_FUNC_FLOORF): Use it.
96683         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96684         gl_FUNC_CEILF. Cache the result.
96685         (gl_FUNC_CEILF): Use it.
96687 2007-10-28  Bruno Haible  <bruno@clisp.org>
96689         * gnulib-tool: Allow specifying the LGPL version number through
96690         --lgpl=2 or --lgpl=3.
96691         (func_usage): Document --lgpl with argument.
96692         Handle --lgpl=... arguments.
96693         (func_import): Recognize also gl_LGPL calls with an argument. When
96694         --lgpl=2 is used and the module's license is just LGPL, report an
96695         error. Set sed_transform_lib_file according to the lgpl variable. In
96696         the generated files, use --lgpl or gl_LGPL invocations with argument,
96697         if necessary.
96698         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96699         an LGPv2+ license.
96700         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96701         gl_LGPL macro.
96703 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96704             Bruno Haible  <bruno@clisp.org>
96706         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96707         (u16_uctomb_aux): Likewise.
96708         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96709         !HAVE_INLINE.
96710         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96712 2007-10-28  Bruno Haible  <bruno@clisp.org>
96714         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96715         Invoke AM_GETTEXT_OPTION if it exists.
96716         * modules/vasprintf: Likewise.
96717         * modules/verror: Likewise.
96718         * modules/xprintf: Likewise.
96719         * modules/xvasprintf: Likewise.
96721 2007-10-27  Ben Pfaff  <blp@gnu.org>
96723         * lib/math.in.h: Define isfinite macro and prototypes for
96724         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96725         implementations.
96726         * m4/math_h.m4: New substitutions for isfinite module.
96727         * lib/isfinite.c: New file.
96728         * m4/isfinite.m4: New file.
96729         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96730         * modules/isfinite: New file.
96731         * modules/isfinite-tests: New file.
96732         * tests/tests-isfinite.c: New file.
96733         * doc/functions/isfinite.texi: Mention isfinite module.
96734         * MODULES.html.sh: Mention new module.
96736 2007-10-27  Ben Pfaff  <blp@gnu.org>
96738         Ralf Wildenhues reported that Tru64 4.0D declares the round
96739         functions but does not have definitions.
96740         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96741         cannot be found in any library, set the output variable to
96742         "missing" instead of "".
96743         * m4/round.m4: Also use our substitute if we cannot find round in
96744         any library, even if it is declared.
96745         * m4/roundf.m4: Likewise for roundf.
96746         * m4/roundl.m4: Likewise for roundl.
96747         * lib/math.in.h: Undefine roundf, round, roundl before defining
96748         their replacements, to allow for hypothetical systems where these
96749         may be defined as macros but not available in libraries.
96751 2007-10-27  Bruno Haible  <bruno@clisp.org>
96753         * doc/gnulib.texi: Invoke @firstparagraphindent.
96754         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96755         changes in gnulib.
96756         (Source changes): New section.
96758 2007-10-26  Bruno Haible  <bruno@clisp.org>
96760         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96761         borrowed from autoconf.
96763 2007-10-26  Bruno Haible  <bruno@clisp.org>
96765         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96766         strerror returned the empty string. Needed on HP-UX 11.00.
96768 2007-10-24  Micah Cowan  <micah@cowan.name>
96770         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96771         * build-aux/bootstrap: Remove support for now-unnecessary option,
96772         --cvs-user, and envvars CVS_USER, CVS_RSH.
96774 2007-10-24  Jim Meyering  <meyering@redhat.com>
96776         Avoid diagnostics from sha1sum when there is no cached checksum.
96777         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96778         if the po.s1 file hasn't been created yet.
96780         * build-aux/bootstrap: Sync from coreutils:
96781         2007-10-24  Jim Meyering  <meyering@redhat.com>
96782         Get gnulib from the git repository, not from an obsolete cvs one.
96783         * build-aux/bootstrap: Suggestion from Micah Cowan.
96784         2007-10-04  Jim Meyering  <jim@meyering.net>
96785         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96786         (update_po_files): Work also when there are no .po files in po/.
96788 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96790         * README: Append ".git" to git and cg examples.
96791         Problem reported by Benoit Sigoure.
96793 2007-10-23  Micah Cowan  <micah@cowan.name>
96795         * users.txt: Add wget.
96797 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96799         Fix linking of some unistdio tests on FreeBSD.
96800         * modules/unistdio/u16-vsnprintf-tests
96801         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96802         * modules/unistdio/u16-vsprintf-tests
96803         (test_u16_vsnprintf1_LDADD): Likewise.
96804         * modules/unistdio/u32-vsnprintf-tests
96805         (test_u32_vsnprintf1_LDADD): Likewise.
96806         * modules/unistdio/u32-vsprintf-tests
96807         (test_u32_vsprintf1_LDADD): Likewise.
96808         * modules/unistdio/u8-vsnprintf-tests
96809         (test_u8_vsnprintf1_LDADD): Likewise.
96810         * modules/unistdio/u8-vsprintf-tests
96811         (test_u8_vsprintf1_LDADD): Likewise.
96812         * modules/unistdio/ulc-vsnprintf-tests
96813         (test_ulc_vsnprintf1_LDADD): Likewise.
96814         * modules/unistdio/ulc-vsprintf-tests
96815         (test_ulc_vsprintf1_LDADD): Likewise.
96817         Fix linking of some uniconv tests on FreeBSD.
96818         * modules/uniconv/u16-conv-from-enc-tests
96819         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96820         * modules/uniconv/u16-conv-to-enc-tests
96821         (test_u16_conv_to_enc_LDADD): Likewise.
96822         * modules/uniconv/u16-strconv-from-enc-tests
96823         (test_u16_strconv_from_enc_LDADD): Likewise.
96824         * modules/uniconv/u16-strconv-to-enc-tests
96825         (test_u16_strconv_to_enc_LDADD): Likewise.
96826         * modules/uniconv/u32-conv-from-enc-tests
96827         (test_u32_conv_from_enc_LDADD): Likewise.
96828         * modules/uniconv/u32-conv-to-enc-tests
96829         (test_u32_conv_to_enc_LDADD): Likewise.
96830         * modules/uniconv/u32-strconv-from-enc-tests
96831         (test_u32_strconv_from_enc_LDADD): Likewise.
96832         * modules/uniconv/u32-strconv-to-enc-tests
96833         (test_u32_strconv_to_enc_LDADD): Likewise.
96834         * modules/uniconv/u8-conv-from-enc-tests
96835         (test_u8_conv_from_enc_LDADD): Likewise.
96836         * modules/uniconv/u8-conv-to-enc-tests
96837         (test_u8_conv_to_enc_LDADD): Likewise.
96838         * modules/uniconv/u8-strconv-from-enc-tests
96839         (test_u8_strconv_from_enc_LDADD): Likewise.
96840         * modules/uniconv/u8-strconv-to-enc-tests
96841         (test_u8_strconv_to_enc_LDADD): Likewise.
96843 2007-10-22  Bruno Haible  <bruno@clisp.org>
96845         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96846         size.
96848 2007-10-22  Eric Blake  <ebb9@byu.net>
96850         Tweak x*printf documentation.
96851         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96852         variable name and comments.
96853         Suggested by Bruno Haible.
96855 2007-10-22  Bruno Haible  <bruno@clisp.org>
96857         * lib/acl.c (copy_acl): Fix file name in comment.
96859 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96861         Fix Tru64 problem with stdbool.h.
96862         * lib/stdbool.in.h (false, true):
96863         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96864         Don't declare as an enum in this situation; it runs afoul of Tru64.
96865         Problem reported by Steven M. Schweda in
96866         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96868 2007-10-22  Eric Blake  <ebb9@byu.net>
96870         Also wrap vf?printf.
96871         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96872         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96873         (xvprintf, xvfprintf): New functions.
96875 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96877         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96878         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96880         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96881         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96883 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96885         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96886         by Bruno Haible.
96888 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96890         * lib/getloadavg.c
96891         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96892         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96894         * tests/test-i-ring.c: Work for C89.
96896 2007-10-22  Bruno Haible  <bruno@clisp.org>
96898         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96899         -1u, in preprocessor expression, so that we don't test for the bug
96900         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96901         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96903 2007-10-22  Eric Blake  <ebb9@byu.net>
96905         * tests/test-yesno.sh: Silence stderr during test.
96907 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96909         * modules/crypto/gc-camellia: New file.
96911         * m4/gc-camellia.m4: New file.
96913         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96915         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96917 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96919         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96920         --help to stdout.  Reported by sms@antinode.org (Steven
96921         M. Schweda).
96923 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96925         * users.txt: Fix link to libksba.
96927 2007-10-21  Ben Pfaff  <blp@gnu.org>
96929         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96930         round.c roundf implementation that depends on floorf and ceilf to
96931         be tested unconditionally.
96933 2007-10-21  Ben Pfaff  <blp@gnu.org>
96935         * m4/check-libm-func.m4: Removed.
96936         * m4/check-math-lib.m4: New file.
96937         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96938         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96939         definition and lack of AC_LIBOBJ([roundf]).
96940         * m4/roundl.m4: Ditto, and similarly for roundl.
96941         * modules/round: Reference new m4 file.
96942         * modules/roundf: Ditto.
96943         * modules/roundl: Ditto.
96944         * tests/test-round2.c (main): Use ROUND instead of round.
96945         Bug report from Bruno Haible.
96947 2007-10-21  Bruno Haible  <bruno@clisp.org>
96949         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96950         context.
96952 2007-10-21  Bruno Haible  <bruno@clisp.org>
96954         * tests/test-wcwidth.c (main): Allow negative result for some control
96955         characters.
96957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96958         Needed on OSF/1 5.1.
96960 2007-10-21  Bruno Haible  <bruno@clisp.org>
96962         * tests/test-floorf1.c: Include isnanf.h.
96963         (main): Use isnanf() instead of isnan().
96964         * tests/test-ceilf1.c: Include isnanf.h.
96965         (main): Use isnanf() instead of isnan().
96966         * tests/test-truncf1.c: Include isnanf.h.
96967         (main): Use isnanf() instead of isnan().
96968         * tests/test-roundf1.c: Include isnanf.h.
96969         (main): Use isnanf() instead of isnan().
96971 2007-10-21  Eric Blake  <ebb9@byu.net>
96973         * users.txt: Update URL for m4.
96975 2007-10-21  Bruno Haible  <bruno@clisp.org>
96977         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96979 2007-10-21  Bruno Haible  <bruno@clisp.org>
96981         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96982         Git's management files if the CVS files are not present.
96984 2007-10-20  Bruno Haible  <bruno@clisp.org>
96986         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96987         gcc-3.4.x.
96989 2007-10-20  Ben Pfaff  <blp@gnu.org>
96991         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96992         implementations.
96993         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96994         * lib/round.c: New file.
96995         * lib/roundf.c: New file.
96996         * lib/roundl.c: New file.
96997         * m4/round.m4: New file.
96998         * m4/roundf.m4: New file.
96999         * m4/roundl.m4: New file.
97000         * m4/check-libm-func-m4: New file.
97001         * modules/math: Replace round, roundf, roundl related @VARS@ in
97002         math.in.h.
97003         * modules/round: New file.
97004         * modules/round-tests: New file.
97005         * modules/roundf: New file.
97006         * modules/roundf-tests: New file.
97007         * modules/roundl: New file.
97008         * modules/roundl-tests: New file.
97009         * tests/test-round1.c: New file.
97010         * tests/test-round2.c: New file.
97011         * tests/test-roundf1.c: New file.
97012         * tests/test-roundf2.c: New file.
97013         * tests/test-roundl.c: New file.
97014         * doc/functions/round.texi: Mention round module.
97015         * doc/functions/roundf.texi: Mention roundf module.
97016         * doc/functions/roundl.texi: Mention roundl module.
97017         * MODULES.html.sh: Mention new modules.
97018         Thanks to Bruno Haible for suggestions.
97020 2007-10-20  Jim Meyering  <meyering@redhat.com>
97022         * lib/xprintf.c: Include <config.h> unconditionally.
97024         Change xprintf's license to GPL.
97025         * modules/xprintf (License): s/LGPL/GPL/, since this module
97026         depends on modules (exit and exitfail) which are GPL.
97027         Suggestion from Bruno Haible.
97029         xprintf fixes.
97030         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
97031         Use a clearer diagnostic.
97032         Patch from Bruno Haible.
97034 2007-10-20  Bruno Haible  <bruno@clisp.org>
97036         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
97037         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
97038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97040 2007-10-20  Bruno Haible  <bruno@clisp.org>
97042         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
97043         precision in the comparison result > x - 1 or similar.
97044         * tests/test-ceilf2.c (correct_result_p): Likewise.
97045         * tests/test-truncf2.c (correct_result_p): Likewise.
97046         * tests/test-trunc2.c (correct_result_p): Likewise.
97047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97049 2007-10-20  Bruno Haible  <bruno@clisp.org>
97051         * modules/ceil: New file.
97052         * m4/ceil.m4: New file.
97053         * doc/functions/ceil.texi: Mention the 'ceil' module.
97055 2007-10-20  Bruno Haible  <bruno@clisp.org>
97057         * modules/floor: New file.
97058         * m4/floor.m4: New file.
97059         * doc/functions/floor.texi: Mention the 'floor' module.
97061 2007-10-20  Bruno Haible  <bruno@clisp.org>
97063         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
97064         of %a.
97065         * modules/floorf-tests (Depends-on): Likewise.
97066         * modules/truncf-tests (Depends-on): Likewise.
97067         * modules/trunc-tests (Depends-on): Likewise.
97068         Reported by Ben Pfaff.
97070 2007-10-19  Jim Meyering  <meyering@redhat.com>
97072         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
97073         Don't bother testing specific errno values.  Just test ferror.
97075         New module: xprintf
97076         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
97078 2007-10-19  Bruno Haible  <bruno@clisp.org>
97080         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
97081         syntax.
97082         * modules/javaexec (Makefile.am): Likewise.
97083         * modules/relocatable-prog (Makefile.am): Likewise.
97084         Suggested by Jim Meyering.
97086 2007-10-18  Bruno Haible  <bruno@clisp.org>
97088         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
97089         Reported by Jim Meyering.
97091 2007-10-18  Eric Blake  <ebb9@byu.net>
97093         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
97095 2007-10-18  Bruno Haible  <bruno@clisp.org>
97097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
97098         the format string into writable memory. Needed in Fortify conditions.
97100 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
97101             Bruno Haible  <bruno@clisp.org>
97103         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
97104         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
97105         * modules/trim (Depends-on): Add mbchar.
97106         (configure.ac): Add gl_FUNC_MBRTOWC.
97107         (Makefile.am): Augment lib_SOURCES.
97109 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
97111         Modify glob.c to use fstatat and dirfd, to simplify it.
97112         Suggested by Eric Blake.
97113         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
97114         Don't include <stdbool.h>; not used.
97115         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
97116         (link_exists_p): Simplify implementation, since we can now assume
97117         dirfd and fstatat.
97118         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
97120 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97122         * gnulib-tool (func_get_dependencies): Fix sed script to
97123         match only tests.
97125 2007-10-17  Bruno Haible  <bruno@clisp.org>
97127         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
97128         allow locale names without encoding suffix.
97129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97132 2007-10-16  Bruno Haible  <bruno@clisp.org>
97134         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
97135         * lib/getgroups.c (getgroups): Likewise.
97136         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
97138 2007-10-16  Bruno Haible  <bruno@clisp.org>
97140         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
97141         * modules/malloc-posix (License): Likewise.
97142         * modules/realloc-posix (License): Likewise.
97143         * modules/calloc-posix (License): Likewise.
97144         * modules/intprops (License): Change from GPL to LGPL, with
97145         Paul Eggert's approval.
97147 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97149         Merge glibc changes into lib/glob.c.
97151         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
97152         2007-10-15 04:59:03 UTC.  Here are the changes:
97154         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
97156         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
97158         * lib/glob.c: Add some branch prediction throughout.
97160         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
97162         [BZ #5103]
97163         * lib/glob.c (glob): Recognize patterns starting \/.
97165         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
97167         [BZ #3996]
97168         * lib/glob.c (attribute_hidden): Define if not defined.
97169         (glob): Unescape dirname, filename or username when needed and not
97170         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
97171         is NULL.  Handle unescaped [ in pattern without closing ].
97172         Don't pass GLOB_CHECK down to recursive glob for directories.
97173         (__glob_pattern_type): New function.
97174         (__glob_pattern_p): Implement using __glob_pattern_type.
97175         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
97176         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
97177         Remove unreachable code.
97179         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
97181         * lib/glob.c (glob_in_dir): Add some comments and asserts to
97182         explain why there are no leaks.
97184         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
97186         [BZ #3253]
97187         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
97188         time, rather allocate increasingly bigger arrays of pointers, if
97189         possible with alloca, if too large with malloc.
97191 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97193         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
97194         Problem reported by H.Merijn Brand in
97195         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
97196         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
97197         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97199 2007-10-15  Bruno Haible  <bruno@clisp.org>
97201         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
97202         with explicit rpl_ prefix.
97203         * lib/fopen.c (fopen): Likewise.
97204         * lib/freopen.c (freopen): Likewise.
97205         * lib/iconv.c (iconv): Likewise.
97206         * lib/iconv_close.c (iconv_close): Likewise.
97208 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97210         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
97212 2007-10-15  Bruno Haible  <bruno@clisp.org>
97214         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
97215         <stddef.h> instead of <stdlib.h> since we only need NULL.
97216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97218 2007-10-15  Bruno Haible  <bruno@clisp.org>
97220         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
97221         Replace paragraph talking about LIBOBJS.
97222         Reported by Colin Watson <cjwatson@debian.org>.
97224 2007-10-15  Bruno Haible  <bruno@clisp.org>
97226         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
97227         <stdlib.h> before using NULL.
97229 2007-10-15  Simon Josefsson  <simon@josefsson.org>
97231         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
97232         Reported by Albert Chin <china@thewrittenword.com>.
97234 2007-10-14  Bruno Haible  <bruno@clisp.org>
97236         * modules/iconv_open-utf-tests: New file.
97237         * tests/test-iconv-utf.c: New file.
97239         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
97240         * modules/iconv_open-utf: New file.
97241         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
97242         (iconv, iconv_close): New declarations.
97243         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
97244         be defined.
97245         (iconv_open): Add special handling of conversion between UTF-8 and
97246         UTF-{16,32}{BE,LE}.
97247         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
97248         * lib/iconv_close.c: New file.
97249         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
97250         gl_FUNC_ICONV_OPEN.
97251         (gl_FUNC_ICONV_OPEN): Use it.
97252         (gl_FUNC_ICONV_OPEN_UTF): New macro.
97253         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
97254         and REPLACE_ICONV_UTF.
97255         * modules/iconv_open (Depends-on): Add c-strcase.
97256         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
97257         ICONV_CONST.
97258         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
97260 2007-10-13  Albert Chin  <china@thewrittenword.com>
97261             Bruno Haible  <bruno@clisp.org>
97263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
97264         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
97266 2007-10-13  Bruno Haible  <bruno@clisp.org>
97268         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
97269         defined, use the ISO C99 inline semantics.
97270         * lib/argp.h (ARGP_EI): Likewise.
97272 2007-10-13  Bruno Haible  <bruno@clisp.org>
97274         Handle 'inline' change in gcc 4.3.0.
97275         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
97276         argp_fmtstream_write, argp_fmtstream_set_lmargin,
97277         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
97278         argp_fmtstream_point): Disable 'extern' declaration if the function
97279         definition is going to be provided inline.
97280         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
97281         semantics, not the ISO C99 inline semantics.
97282         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
97283         'extern' declaration if the function definition is going to be provided
97284         inline.
97285         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
97286         the GNU C inline semantics, not the ISO C99 inline semantics. With
97287         GCC 4.2, avoid a warning.
97289 2007-10-13  Bruno Haible  <bruno@clisp.org>
97291         * lib/freading.h (freading): Enable the use of __freading for
97292         glibc >= 2.7.
97293         * lib/freading.c (freading): Likewise.
97295 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
97297         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
97298         "warning: C99 inline functions are not supported; using GNU89".
97300 2007-10-12  Bruno Haible  <bruno@clisp.org>
97302         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
97303         of 2.
97304         * tests/test-ceilf2.c: New file.
97305         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
97307         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
97308         * modules/ceilf-tests: Update.
97310 2007-10-12  Bruno Haible  <bruno@clisp.org>
97312         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
97313         of 2.
97314         * tests/test-floorf2.c: New file.
97315         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
97317         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
97318         * modules/floorf-tests: Update.
97320 2007-10-12  Bruno Haible  <bruno@clisp.org>
97322         * tests/test-trunc2.c: New file.
97323         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
97325         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
97326         * modules/trunc-tests: Update.
97328 2007-10-12  Bruno Haible  <bruno@clisp.org>
97330         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
97331         of 2.
97332         * tests/test-truncf2.c: New file.
97333         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
97335         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
97336         * modules/truncf-tests: Update.
97338 2007-10-11  Eric Blake  <ebb9@byu.net>
97340         Don't claim strerror is broken on Interix.
97341         * doc/functions/strerror.texi (strerror): Known broken systems are
97342         now Solaris 8, and not Interix.
97343         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
97344         Interix on cross-compile.
97345         Reported by Martin Koeppe in
97346         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
97348 2007-10-11  Bruno Haible  <bruno@clisp.org>
97350         * modules/i-ring-tests: New file.
97351         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
97352         instead of assert.
97354 2007-10-11  Bruno Haible  <bruno@clisp.org>
97356         * modules/filenamecat-tests: New file.
97357         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
97358         * lib/filenamecat.c: Remove test code.
97360 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
97362         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
97364         * lib/strerror.c: Include <string.h> always, to test interface,
97365         and to remove the need for the dummy.
97366         Include intprops.h to compute width instead of doing it ourselves
97367         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
97368         (strerror): Define it to return NULL if there's no system strerror.
97369         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
97370         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
97371         ancient pre-strerror Unix systems well any more.  Saying "unknown
97372         system error" is enough.
97373         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
97374         simpler strerror.c implementation.
97375         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
97376         Simplify the tests to reflect the simpler strerror implementation.
97377         * modules/strerror (Depends-on): Add intprops.
97379 2007-10-09  Eric Blake  <ebb9@byu.net>
97381         Silence test-fpending.
97382         * modules/fpending-tests (Files): Add wrapper script.
97383         * tests/test-fpending.sh: New file.
97385 2007-10-09  Bruno Haible  <bruno@clisp.org>
97387         * MODULES.html.sh (func_module): Don't create a hyperlink for
97388         function names like 'printf_frexp'.
97389         (Misc): Add crc, memxor.
97390         (Characteristics of floating types): New section.
97391         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
97392         isnanf-nolibm, signbit, trunc, truncf, truncl.
97393         (Enhancements for ISO C 99 functions): New subsection Input/output.
97394         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
97395         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
97396         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
97397         (Compatibility checks for POSIX:2001 functions): Add clock-time.
97398         (Enhancements for POSIX:2001 functions): Add chdir-long.
97399         (File system functions): Add areadlink, chdir-safer, read-file.
97400         Remove cycle-check.
97401         (File system as inode set): New section.
97402         (Date and time): Add gethrxtime.
97403         (Multithreading): Add openmp.
97404         (Internationalization functions): Add localename.
97405         (Unicode string functions): Add unistr/u*-mbsnlen.
97406         (Support for maintaining and releasing projects): Add git-version-gen.
97407         (Lone files): Remove directories.
97409 2007-10-08  Ben Pfaff  <blp@gnu.org>
97411         * lib/xmalloca.h: Fix typo in comment.
97413 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
97415         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
97416         when avoiding problems with integer overflow.  Use a portable test
97417         instead.
97419 2007-10-08  Simon Josefsson  <simon@josefsson.org>
97421         * modules/dummy (License): Change to LGPLv2+.
97422         * modules/float (License): Likewise
97423         * modules/realloc (License): Likewise
97424         * modules/stdlib (License): Likewise
97426 2007-10-07  Bruno Haible  <bruno@clisp.org>
97428         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
97429         * floor.c (TWO_MANT_DIG): Likewise.
97430         * ceil.c (TWO_MANT_DIG): Likewise.
97431         Reported by Ben Pfaff.
97433 2007-10-07  Bruno Haible  <bruno@clisp.org>
97435         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
97436         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
97437         * lib/frexp.c (FUNC): Likewise.
97438         * lib/printf-frexp.h (printf_frexp): Likewise.
97439         * lib/printf-frexpl.h (printf_frexpl): Likewise.
97440         * lib/printf-frexp.c (FUNC): Likewise.
97441         Suggested by Jim Meyering.
97443 2007-10-07  Jim Meyering  <meyering@redhat.com>
97445         Make xnanosleep's integer overflow test more robust.
97446         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
97447         so that gcc-4.3.0 doesn't optimize away this test for overflow.
97449 2007-10-07  Bruno Haible  <bruno@clisp.org>
97451         * NEWS: Mention the license change.
97453         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
97454         abbreviations in the modules files.
97456         Change copyright notice from GPLv2+ to GPLv3+.
97457         * README: Change copyright notice.
97458         * MODULES.html.sh: Likewise.
97459         * build-aux/bootstrap.conf: Likewise.
97460         * build-aux/config.libpath: Likewise.
97461         * build-aux/csharpcomp.sh.in: Likewise.
97462         * build-aux/csharpexec.sh.in: Likewise.
97463         * build-aux/install-reloc: Likewise.
97464         * build-aux/javacomp.sh.in: Likewise.
97465         * build-aux/javaexec.sh.in: Likewise.
97466         * build-aux/ldd.sh.in: Likewise.
97467         * build-aux/reloc-ldflags: Likewise.
97468         * build-aux/relocatable.sh.in: Likewise.
97469         * build-aux/x-to-1.in: Likewise.
97470         * check-module: Likewise.
97471         * config/srclistvars.sh: Likewise.
97472         * gnulib-tool: Likewise.
97473         * lib/acl-internal.h: Likewise.
97474         * lib/acl.c: Likewise.
97475         * lib/acl.h: Likewise.
97476         * lib/acl_entries.c: Likewise.
97477         * lib/areadlink-with-size.c: Likewise.
97478         * lib/areadlink.c: Likewise.
97479         * lib/areadlink.h: Likewise.
97480         * lib/argmatch.c: Likewise.
97481         * lib/argmatch.h: Likewise.
97482         * lib/argp-ba.c: Likewise.
97483         * lib/argp-eexst.c: Likewise.
97484         * lib/argp-fmtstream.c: Likewise.
97485         * lib/argp-fmtstream.h: Likewise.
97486         * lib/argp-fs-xinl.c: Likewise.
97487         * lib/argp-help.c: Likewise.
97488         * lib/argp-namefrob.h: Likewise.
97489         * lib/argp-parse.c: Likewise.
97490         * lib/argp-pin.c: Likewise.
97491         * lib/argp-pv.c: Likewise.
97492         * lib/argp-pvh.c: Likewise.
97493         * lib/argp-xinl.c: Likewise.
97494         * lib/argp.h: Likewise.
97495         * lib/at-func.c: Likewise.
97496         * lib/atanl.c: Likewise.
97497         * lib/backupfile.c: Likewise.
97498         * lib/backupfile.h: Likewise.
97499         * lib/basename.c: Likewise.
97500         * lib/binary-io.h: Likewise.
97501         * lib/byteswap.in.h: Likewise.
97502         * lib/c-stack.c: Likewise.
97503         * lib/c-stack.h: Likewise.
97504         * lib/c-strcasestr.c: Likewise.
97505         * lib/c-strcasestr.h: Likewise.
97506         * lib/c-strstr.c: Likewise.
97507         * lib/c-strstr.h: Likewise.
97508         * lib/c-strtod.c: Likewise.
97509         * lib/calloc.c: Likewise.
97510         * lib/canon-host.c: Likewise.
97511         * lib/canon-host.h: Likewise.
97512         * lib/canonicalize-lgpl.c: Likewise.
97513         * lib/canonicalize.c: Likewise.
97514         * lib/canonicalize.h: Likewise.
97515         * lib/ceil.c: Likewise.
97516         * lib/ceilf.c: Likewise.
97517         * lib/ceill.c: Likewise.
97518         * lib/chdir-long.c: Likewise.
97519         * lib/chdir-long.h: Likewise.
97520         * lib/chdir-safer.c: Likewise.
97521         * lib/chdir-safer.h: Likewise.
97522         * lib/chown.c: Likewise.
97523         * lib/classpath.c: Likewise.
97524         * lib/classpath.h: Likewise.
97525         * lib/clean-temp.c: Likewise.
97526         * lib/clean-temp.h: Likewise.
97527         * lib/cloexec.c: Likewise.
97528         * lib/close-stream.c: Likewise.
97529         * lib/closein.c: Likewise.
97530         * lib/closein.h: Likewise.
97531         * lib/closeout.c: Likewise.
97532         * lib/closeout.h: Likewise.
97533         * lib/concat-filename.c: Likewise.
97534         * lib/copy-file.c: Likewise.
97535         * lib/copy-file.h: Likewise.
97536         * lib/count-one-bits.h: Likewise.
97537         * lib/crc.c: Likewise.
97538         * lib/crc.h: Likewise.
97539         * lib/creat-safer.c: Likewise.
97540         * lib/csharpcomp.c: Likewise.
97541         * lib/csharpcomp.h: Likewise.
97542         * lib/csharpexec.c: Likewise.
97543         * lib/csharpexec.h: Likewise.
97544         * lib/cycle-check.c: Likewise.
97545         * lib/cycle-check.h: Likewise.
97546         * lib/diacrit.c: Likewise.
97547         * lib/diacrit.h: Likewise.
97548         * lib/diffseq.h: Likewise.
97549         * lib/dirchownmod.c: Likewise.
97550         * lib/dirent.in.h: Likewise.
97551         * lib/dirfd.c: Likewise.
97552         * lib/dirfd.h: Likewise.
97553         * lib/dirname.c: Likewise.
97554         * lib/dirname.h: Likewise.
97555         * lib/dummy.c: Likewise.
97556         * lib/dup-safer.c: Likewise.
97557         * lib/dup2.c: Likewise.
97558         * lib/eealloc.h: Likewise.
97559         * lib/error.c: Likewise.
97560         * lib/error.h: Likewise.
97561         * lib/euidaccess.c: Likewise.
97562         * lib/exclude.c: Likewise.
97563         * lib/exclude.h: Likewise.
97564         * lib/execute.c: Likewise.
97565         * lib/execute.h: Likewise.
97566         * lib/exitfail.c: Likewise.
97567         * lib/exitfail.h: Likewise.
97568         * lib/expl.c: Likewise.
97569         * lib/fatal-signal.c: Likewise.
97570         * lib/fatal-signal.h: Likewise.
97571         * lib/fbufmode.c: Likewise.
97572         * lib/fbufmode.h: Likewise.
97573         * lib/fchdir.c: Likewise.
97574         * lib/fchmodat.c: Likewise.
97575         * lib/fchownat.c: Likewise.
97576         * lib/fcntl--.h: Likewise.
97577         * lib/fcntl-safer.h: Likewise.
97578         * lib/fcntl.in.h: Likewise.
97579         * lib/fd-safer.c: Likewise.
97580         * lib/fflush.c: Likewise.
97581         * lib/file-has-acl.c: Likewise.
97582         * lib/file-set.c: Likewise.
97583         * lib/file-type.c: Likewise.
97584         * lib/file-type.h: Likewise.
97585         * lib/fileblocks.c: Likewise.
97586         * lib/filemode.c: Likewise.
97587         * lib/filemode.h: Likewise.
97588         * lib/filename.h: Likewise.
97589         * lib/filenamecat.c: Likewise.
97590         * lib/filenamecat.h: Likewise.
97591         * lib/findprog.c: Likewise.
97592         * lib/findprog.h: Likewise.
97593         * lib/float.in.h: Likewise.
97594         * lib/floor.c: Likewise.
97595         * lib/floorf.c: Likewise.
97596         * lib/floorl.c: Likewise.
97597         * lib/fopen-safer.c: Likewise.
97598         * lib/fopen.c: Likewise.
97599         * lib/fpending.c: Likewise.
97600         * lib/fpending.h: Likewise.
97601         * lib/fprintf.c: Likewise.
97602         * lib/fprintftime.h: Likewise.
97603         * lib/fpucw.h: Likewise.
97604         * lib/fpurge.c: Likewise.
97605         * lib/fpurge.h: Likewise.
97606         * lib/freadable.c: Likewise.
97607         * lib/freadable.h: Likewise.
97608         * lib/freadahead.c: Likewise.
97609         * lib/freadahead.h: Likewise.
97610         * lib/freading.c: Likewise.
97611         * lib/freading.h: Likewise.
97612         * lib/free.c: Likewise.
97613         * lib/freopen.c: Likewise.
97614         * lib/frexp.c: Likewise.
97615         * lib/frexpl.c: Likewise.
97616         * lib/fseek.c: Likewise.
97617         * lib/fseterr.c: Likewise.
97618         * lib/fseterr.h: Likewise.
97619         * lib/fstatat.c: Likewise.
97620         * lib/fstrcmp.c: Likewise.
97621         * lib/fstrcmp.h: Likewise.
97622         * lib/fsusage.c: Likewise.
97623         * lib/fsusage.h: Likewise.
97624         * lib/ftell.c: Likewise.
97625         * lib/ftello.c: Likewise.
97626         * lib/fts-cycle.c: Likewise.
97627         * lib/fts.c: Likewise.
97628         * lib/fts_.h: Likewise.
97629         * lib/full-read.c: Likewise.
97630         * lib/full-read.h: Likewise.
97631         * lib/full-write.c: Likewise.
97632         * lib/full-write.h: Likewise.
97633         * lib/fwritable.c: Likewise.
97634         * lib/fwritable.h: Likewise.
97635         * lib/fwriteerror.c: Likewise.
97636         * lib/fwriteerror.h: Likewise.
97637         * lib/fwriting.c: Likewise.
97638         * lib/fwriting.h: Likewise.
97639         * lib/gcd.c: Likewise.
97640         * lib/gcd.h: Likewise.
97641         * lib/getcwd.c: Likewise.
97642         * lib/getdate.h: Likewise.
97643         * lib/getdate.y: Likewise.
97644         * lib/getdomainname.c: Likewise.
97645         * lib/getdomainname.h: Likewise.
97646         * lib/getgroups.c: Likewise.
97647         * lib/gethostname.c: Likewise.
97648         * lib/gethrxtime.c: Likewise.
97649         * lib/gethrxtime.h: Likewise.
97650         * lib/getloadavg.c: Likewise.
97651         * lib/getndelim2.c: Likewise.
97652         * lib/getndelim2.h: Likewise.
97653         * lib/getnline.c: Likewise.
97654         * lib/getnline.h: Likewise.
97655         * lib/getopt.c: Likewise.
97656         * lib/getopt.in.h: Likewise.
97657         * lib/getopt1.c: Likewise.
97658         * lib/getopt_int.h: Likewise.
97659         * lib/getpagesize.h: Likewise.
97660         * lib/getsubopt.c: Likewise.
97661         * lib/gettime.c: Likewise.
97662         * lib/getugroups.c: Likewise.
97663         * lib/getugroups.h: Likewise.
97664         * lib/getusershell.c: Likewise.
97665         * lib/gl_anyavltree_list1.h: Likewise.
97666         * lib/gl_anyavltree_list2.h: Likewise.
97667         * lib/gl_anyhash_list1.h: Likewise.
97668         * lib/gl_anyhash_list2.h: Likewise.
97669         * lib/gl_anylinked_list1.h: Likewise.
97670         * lib/gl_anylinked_list2.h: Likewise.
97671         * lib/gl_anyrbtree_list1.h: Likewise.
97672         * lib/gl_anyrbtree_list2.h: Likewise.
97673         * lib/gl_anytree_list1.h: Likewise.
97674         * lib/gl_anytree_list2.h: Likewise.
97675         * lib/gl_anytree_oset.h: Likewise.
97676         * lib/gl_anytreehash_list1.h: Likewise.
97677         * lib/gl_anytreehash_list2.h: Likewise.
97678         * lib/gl_array_list.c: Likewise.
97679         * lib/gl_array_list.h: Likewise.
97680         * lib/gl_array_oset.c: Likewise.
97681         * lib/gl_array_oset.h: Likewise.
97682         * lib/gl_avltree_list.c: Likewise.
97683         * lib/gl_avltree_list.h: Likewise.
97684         * lib/gl_avltree_oset.c: Likewise.
97685         * lib/gl_avltree_oset.h: Likewise.
97686         * lib/gl_avltreehash_list.c: Likewise.
97687         * lib/gl_avltreehash_list.h: Likewise.
97688         * lib/gl_carray_list.c: Likewise.
97689         * lib/gl_carray_list.h: Likewise.
97690         * lib/gl_linked_list.c: Likewise.
97691         * lib/gl_linked_list.h: Likewise.
97692         * lib/gl_linkedhash_list.c: Likewise.
97693         * lib/gl_linkedhash_list.h: Likewise.
97694         * lib/gl_list.c: Likewise.
97695         * lib/gl_list.h: Likewise.
97696         * lib/gl_oset.c: Likewise.
97697         * lib/gl_oset.h: Likewise.
97698         * lib/gl_rbtree_list.c: Likewise.
97699         * lib/gl_rbtree_list.h: Likewise.
97700         * lib/gl_rbtree_oset.c: Likewise.
97701         * lib/gl_rbtree_oset.h: Likewise.
97702         * lib/gl_rbtreehash_list.c: Likewise.
97703         * lib/gl_rbtreehash_list.h: Likewise.
97704         * lib/gl_sublist.c: Likewise.
97705         * lib/gl_sublist.h: Likewise.
97706         * lib/group-member.c: Likewise.
97707         * lib/group-member.h: Likewise.
97708         * lib/hard-locale.c: Likewise.
97709         * lib/hard-locale.h: Likewise.
97710         * lib/hash-pjw.c: Likewise.
97711         * lib/hash-pjw.h: Likewise.
97712         * lib/hash-triple.c: Likewise.
97713         * lib/hash.c: Likewise.
97714         * lib/hash.h: Likewise.
97715         * lib/human.c: Likewise.
97716         * lib/human.h: Likewise.
97717         * lib/i-ring.c: Likewise.
97718         * lib/i-ring.h: Likewise.
97719         * lib/idcache.c: Likewise.
97720         * lib/imaxabs.c: Likewise.
97721         * lib/imaxdiv.c: Likewise.
97722         * lib/inet_pton.c: Likewise.
97723         * lib/inet_pton.h: Likewise.
97724         * lib/intprops.h: Likewise.
97725         * lib/inttostr.c: Likewise.
97726         * lib/inttostr.h: Likewise.
97727         * lib/inttypes.in.h: Likewise.
97728         * lib/isapipe.c: Likewise.
97729         * lib/isdir.c: Likewise.
97730         * lib/isnan.c: Likewise.
97731         * lib/isnan.h: Likewise.
97732         * lib/isnanf.c: Likewise.
97733         * lib/isnanf.h: Likewise.
97734         * lib/isnanl-nolibm.h: Likewise.
97735         * lib/isnanl.c: Likewise.
97736         * lib/isnanl.h: Likewise.
97737         * lib/javacomp.c: Likewise.
97738         * lib/javacomp.h: Likewise.
97739         * lib/javaexec.c: Likewise.
97740         * lib/javaexec.h: Likewise.
97741         * lib/javaversion.c: Likewise.
97742         * lib/javaversion.h: Likewise.
97743         * lib/javaversion.java: Likewise.
97744         * lib/lbrkprop.h: Likewise.
97745         * lib/lchmod.h: Likewise.
97746         * lib/lchown.c: Likewise.
97747         * lib/ldexpl.c: Likewise.
97748         * lib/linebreak.c: Likewise.
97749         * lib/linebreak.h: Likewise.
97750         * lib/linebuffer.c: Likewise.
97751         * lib/linebuffer.h: Likewise.
97752         * lib/locale.in.h: Likewise.
97753         * lib/logl.c: Likewise.
97754         * lib/long-options.c: Likewise.
97755         * lib/long-options.h: Likewise.
97756         * lib/lstat.c: Likewise.
97757         * lib/lstat.h: Likewise.
97758         * lib/math.in.h: Likewise.
97759         * lib/mbchar.c: Likewise.
97760         * lib/mbchar.h: Likewise.
97761         * lib/mbfile.h: Likewise.
97762         * lib/mbiter.h: Likewise.
97763         * lib/mbscasecmp.c: Likewise.
97764         * lib/mbscasestr.c: Likewise.
97765         * lib/mbschr.c: Likewise.
97766         * lib/mbscspn.c: Likewise.
97767         * lib/mbslen.c: Likewise.
97768         * lib/mbsncasecmp.c: Likewise.
97769         * lib/mbsnlen.c: Likewise.
97770         * lib/mbspbrk.c: Likewise.
97771         * lib/mbspcasecmp.c: Likewise.
97772         * lib/mbsrchr.c: Likewise.
97773         * lib/mbssep.c: Likewise.
97774         * lib/mbsspn.c: Likewise.
97775         * lib/mbsstr.c: Likewise.
97776         * lib/mbstok_r.c: Likewise.
97777         * lib/mbswidth.c: Likewise.
97778         * lib/mbswidth.h: Likewise.
97779         * lib/mbuiter.h: Likewise.
97780         * lib/memcasecmp.c: Likewise.
97781         * lib/memcasecmp.h: Likewise.
97782         * lib/memchr.c: Likewise.
97783         * lib/memcmp.c: Likewise.
97784         * lib/memcoll.c: Likewise.
97785         * lib/memcoll.h: Likewise.
97786         * lib/memcpy.c: Likewise.
97787         * lib/memrchr.c: Likewise.
97788         * lib/mkancesdirs.c: Likewise.
97789         * lib/mkdir-p.c: Likewise.
97790         * lib/mkdir-p.h: Likewise.
97791         * lib/mkdir.c: Likewise.
97792         * lib/mkdirat.c: Likewise.
97793         * lib/mkdtemp.c: Likewise.
97794         * lib/mkstemp-safer.c: Likewise.
97795         * lib/mkstemp.c: Likewise.
97796         * lib/modechange.c: Likewise.
97797         * lib/modechange.h: Likewise.
97798         * lib/mountlist.c: Likewise.
97799         * lib/mountlist.h: Likewise.
97800         * lib/mpsort.c: Likewise.
97801         * lib/nanosleep.c: Likewise.
97802         * lib/obstack.c: Likewise.
97803         * lib/obstack.h: Likewise.
97804         * lib/open-safer.c: Likewise.
97805         * lib/open.c: Likewise.
97806         * lib/openat-die.c: Likewise.
97807         * lib/openat-priv.h: Likewise.
97808         * lib/openat-proc.c: Likewise.
97809         * lib/openat.c: Likewise.
97810         * lib/openat.h: Likewise.
97811         * lib/pagealign_alloc.c: Likewise.
97812         * lib/pagealign_alloc.h: Likewise.
97813         * lib/physmem.c: Likewise.
97814         * lib/physmem.h: Likewise.
97815         * lib/pipe-safer.c: Likewise.
97816         * lib/pipe.c: Likewise.
97817         * lib/pipe.h: Likewise.
97818         * lib/posixtm.c: Likewise.
97819         * lib/posixtm.h: Likewise.
97820         * lib/posixver.c: Likewise.
97821         * lib/printf-frexp.c: Likewise.
97822         * lib/printf-frexp.h: Likewise.
97823         * lib/printf-frexpl.c: Likewise.
97824         * lib/printf-frexpl.h: Likewise.
97825         * lib/printf.c: Likewise.
97826         * lib/progname.c: Likewise.
97827         * lib/progname.h: Likewise.
97828         * lib/progreloc.c: Likewise.
97829         * lib/putenv.c: Likewise.
97830         * lib/quote.c: Likewise.
97831         * lib/quote.h: Likewise.
97832         * lib/quotearg.c: Likewise.
97833         * lib/quotearg.h: Likewise.
97834         * lib/raise.c: Likewise.
97835         * lib/readline.c: Likewise.
97836         * lib/readline.h: Likewise.
97837         * lib/readlink.c: Likewise.
97838         * lib/readtokens.c: Likewise.
97839         * lib/readtokens.h: Likewise.
97840         * lib/readtokens0.c: Likewise.
97841         * lib/readtokens0.h: Likewise.
97842         * lib/readutmp.c: Likewise.
97843         * lib/readutmp.h: Likewise.
97844         * lib/realloc.c: Likewise.
97845         * lib/relocwrapper.c: Likewise.
97846         * lib/rename-dest-slash.c: Likewise.
97847         * lib/rename.c: Likewise.
97848         * lib/rmdir.c: Likewise.
97849         * lib/rpmatch.c: Likewise.
97850         * lib/safe-read.c: Likewise.
97851         * lib/safe-read.h: Likewise.
97852         * lib/safe-write.c: Likewise.
97853         * lib/safe-write.h: Likewise.
97854         * lib/same-inode.h: Likewise.
97855         * lib/same.c: Likewise.
97856         * lib/same.h: Likewise.
97857         * lib/save-cwd.c: Likewise.
97858         * lib/save-cwd.h: Likewise.
97859         * lib/savedir.c: Likewise.
97860         * lib/savedir.h: Likewise.
97861         * lib/savewd.c: Likewise.
97862         * lib/savewd.h: Likewise.
97863         * lib/search.in.h: Likewise.
97864         * lib/setenv.c: Likewise.
97865         * lib/setenv.h: Likewise.
97866         * lib/settime.c: Likewise.
97867         * lib/sh-quote.c: Likewise.
97868         * lib/sh-quote.h: Likewise.
97869         * lib/sig2str.c: Likewise.
97870         * lib/sig2str.h: Likewise.
97871         * lib/signal.in.h: Likewise.
97872         * lib/signbitd.c: Likewise.
97873         * lib/signbitf.c: Likewise.
97874         * lib/signbitl.c: Likewise.
97875         * lib/sigprocmask.c: Likewise.
97876         * lib/sincosl.c: Likewise.
97877         * lib/sleep.c: Likewise.
97878         * lib/sprintf.c: Likewise.
97879         * lib/sqrtl.c: Likewise.
97880         * lib/stat-time.h: Likewise.
97881         * lib/stdio--.h: Likewise.
97882         * lib/stdio-safer.h: Likewise.
97883         * lib/stdlib--.h: Likewise.
97884         * lib/stdlib-safer.h: Likewise.
97885         * lib/stdlib.in.h: Likewise.
97886         * lib/stpcpy.c: Likewise.
97887         * lib/stpncpy.c: Likewise.
97888         * lib/strchrnul.c: Likewise.
97889         * lib/strcspn.c: Likewise.
97890         * lib/strerror.c: Likewise.
97891         * lib/strftime.c: Likewise.
97892         * lib/strftime.h: Likewise.
97893         * lib/striconveh.c: Likewise.
97894         * lib/striconveh.h: Likewise.
97895         * lib/striconveha.c: Likewise.
97896         * lib/striconveha.h: Likewise.
97897         * lib/stripslash.c: Likewise.
97898         * lib/strnlen1.c: Likewise.
97899         * lib/strnlen1.h: Likewise.
97900         * lib/strtod.c: Likewise.
97901         * lib/strtoimax.c: Likewise.
97902         * lib/strtok_r.c: Likewise.
97903         * lib/strtol.c: Likewise.
97904         * lib/strtoll.c: Likewise.
97905         * lib/strtoul.c: Likewise.
97906         * lib/strtoull.c: Likewise.
97907         * lib/sysexits.in.h: Likewise.
97908         * lib/tempname.c: Likewise.
97909         * lib/tempname.h: Likewise.
97910         * lib/timespec.h: Likewise.
97911         * lib/tls.c: Likewise.
97912         * lib/tls.h: Likewise.
97913         * lib/tmpdir.c: Likewise.
97914         * lib/tmpdir.h: Likewise.
97915         * lib/tmpfile-safer.c: Likewise.
97916         * lib/tmpfile.c: Likewise.
97917         * lib/trigl.c: Likewise.
97918         * lib/trigl.h: Likewise.
97919         * lib/trim.c: Likewise.
97920         * lib/trim.h: Likewise.
97921         * lib/trunc.c: Likewise.
97922         * lib/truncf.c: Likewise.
97923         * lib/truncl.c: Likewise.
97924         * lib/tsearch.c: Likewise.
97925         * lib/unicodeio.c: Likewise.
97926         * lib/unicodeio.h: Likewise.
97927         * lib/unistd--.h: Likewise.
97928         * lib/unistd-safer.h: Likewise.
97929         * lib/unistdio/ulc-fprintf.c: Likewise.
97930         * lib/unistdio/ulc-vfprintf.c: Likewise.
97931         * lib/unlinkdir.c: Likewise.
97932         * lib/unlinkdir.h: Likewise.
97933         * lib/unlocked-io.h: Likewise.
97934         * lib/unsetenv.c: Likewise.
97935         * lib/userspec.c: Likewise.
97936         * lib/utime.c: Likewise.
97937         * lib/utimecmp.c: Likewise.
97938         * lib/utimecmp.h: Likewise.
97939         * lib/utimens.c: Likewise.
97940         * lib/verify.h: Likewise.
97941         * lib/verror.c: Likewise.
97942         * lib/verror.h: Likewise.
97943         * lib/version-etc-fsf.c: Likewise.
97944         * lib/version-etc.c: Likewise.
97945         * lib/version-etc.h: Likewise.
97946         * lib/vfprintf.c: Likewise.
97947         * lib/vprintf.c: Likewise.
97948         * lib/vsprintf.c: Likewise.
97949         * lib/w32spawn.h: Likewise.
97950         * lib/wait-process.c: Likewise.
97951         * lib/wait-process.h: Likewise.
97952         * lib/wcwidth.c: Likewise.
97953         * lib/write-any-file.c: Likewise.
97954         * lib/xalloc-die.c: Likewise.
97955         * lib/xalloc.h: Likewise.
97956         * lib/xasprintf.c: Likewise.
97957         * lib/xgetcwd.c: Likewise.
97958         * lib/xgetcwd.h: Likewise.
97959         * lib/xgetdomainname.c: Likewise.
97960         * lib/xgetdomainname.h: Likewise.
97961         * lib/xgethostname.c: Likewise.
97962         * lib/xmalloc.c: Likewise.
97963         * lib/xmalloca.c: Likewise.
97964         * lib/xmalloca.h: Likewise.
97965         * lib/xmemcoll.c: Likewise.
97966         * lib/xnanosleep.c: Likewise.
97967         * lib/xreadlink.c: Likewise.
97968         * lib/xreadlink.h: Likewise.
97969         * lib/xsetenv.c: Likewise.
97970         * lib/xsetenv.h: Likewise.
97971         * lib/xstriconv.c: Likewise.
97972         * lib/xstriconv.h: Likewise.
97973         * lib/xstrndup.c: Likewise.
97974         * lib/xstrndup.h: Likewise.
97975         * lib/xstrtod.c: Likewise.
97976         * lib/xstrtod.h: Likewise.
97977         * lib/xstrtol-error.c: Likewise.
97978         * lib/xstrtol.c: Likewise.
97979         * lib/xstrtol.h: Likewise.
97980         * lib/xtime.h: Likewise.
97981         * lib/xvasprintf.c: Likewise.
97982         * lib/xvasprintf.h: Likewise.
97983         * lib/yesno.c: Likewise.
97984         * lib/yesno.h: Likewise.
97985         * posix-modules: Likewise.
97986         * tests/test-alloca-opt.c: Likewise.
97987         * tests/test-arcfour.c: Likewise.
97988         * tests/test-arctwo.c: Likewise.
97989         * tests/test-argmatch.c: Likewise.
97990         * tests/test-argp-2.sh: Likewise.
97991         * tests/test-argp.c: Likewise.
97992         * tests/test-arpa_inet.c: Likewise.
97993         * tests/test-array_list.c: Likewise.
97994         * tests/test-array_oset.c: Likewise.
97995         * tests/test-atexit.c: Likewise.
97996         * tests/test-avltree_list.c: Likewise.
97997         * tests/test-avltree_oset.c: Likewise.
97998         * tests/test-avltreehash_list.c: Likewise.
97999         * tests/test-base64.c: Likewise.
98000         * tests/test-binary-io.c: Likewise.
98001         * tests/test-byteswap.c: Likewise.
98002         * tests/test-c-ctype.c: Likewise.
98003         * tests/test-c-strcasecmp.c: Likewise.
98004         * tests/test-c-strcasestr.c: Likewise.
98005         * tests/test-c-strncasecmp.c: Likewise.
98006         * tests/test-c-strstr.c: Likewise.
98007         * tests/test-canonicalize-lgpl.c: Likewise.
98008         * tests/test-canonicalize.c: Likewise.
98009         * tests/test-carray_list.c: Likewise.
98010         * tests/test-ceilf.c: Likewise.
98011         * tests/test-ceill.c: Likewise.
98012         * tests/test-count-one-bits.c: Likewise.
98013         * tests/test-crc.c: Likewise.
98014         * tests/test-dirname.c: Likewise.
98015         * tests/test-fbufmode.c: Likewise.
98016         * tests/test-fcntl.c: Likewise.
98017         * tests/test-fflush.c: Likewise.
98018         * tests/test-floorf.c: Likewise.
98019         * tests/test-floorl.c: Likewise.
98020         * tests/test-fopen.c: Likewise.
98021         * tests/test-fprintf-posix.c: Likewise.
98022         * tests/test-fprintf-posix.h: Likewise.
98023         * tests/test-fpurge.c: Likewise.
98024         * tests/test-freadable.c: Likewise.
98025         * tests/test-freadahead.c: Likewise.
98026         * tests/test-freading.c: Likewise.
98027         * tests/test-freopen.c: Likewise.
98028         * tests/test-frexp.c: Likewise.
98029         * tests/test-frexpl.c: Likewise.
98030         * tests/test-fseek.c: Likewise.
98031         * tests/test-fseeko.c: Likewise.
98032         * tests/test-fseterr.c: Likewise.
98033         * tests/test-fstrcmp.c: Likewise.
98034         * tests/test-ftell.c: Likewise.
98035         * tests/test-ftello.c: Likewise.
98036         * tests/test-fwritable.c: Likewise.
98037         * tests/test-fwriting.c: Likewise.
98038         * tests/test-getaddrinfo.c: Likewise.
98039         * tests/test-getpass.c: Likewise.
98040         * tests/test-gettimeofday.c: Likewise.
98041         * tests/test-hmac-md5.c: Likewise.
98042         * tests/test-hmac-sha1.c: Likewise.
98043         * tests/test-iconv.c: Likewise.
98044         * tests/test-iconvme.c: Likewise.
98045         * tests/test-inttypes.c: Likewise.
98046         * tests/test-isnan.c: Likewise.
98047         * tests/test-isnanf.c: Likewise.
98048         * tests/test-isnanl-nolibm.c: Likewise.
98049         * tests/test-isnanl.c: Likewise.
98050         * tests/test-isnanl.h: Likewise.
98051         * tests/test-ldexpl.c: Likewise.
98052         * tests/test-linked_list.c: Likewise.
98053         * tests/test-linkedhash_list.c: Likewise.
98054         * tests/test-locale.c: Likewise.
98055         * tests/test-localename.c: Likewise.
98056         * tests/test-lock.c: Likewise.
98057         * tests/test-lseek.c: Likewise.
98058         * tests/test-malloca.c: Likewise.
98059         * tests/test-math.c: Likewise.
98060         * tests/test-mbscasecmp.c: Likewise.
98061         * tests/test-mbscasestr1.c: Likewise.
98062         * tests/test-mbscasestr2.c: Likewise.
98063         * tests/test-mbscasestr3.c: Likewise.
98064         * tests/test-mbscasestr4.c: Likewise.
98065         * tests/test-mbschr.c: Likewise.
98066         * tests/test-mbscspn.c: Likewise.
98067         * tests/test-mbsncasecmp.c: Likewise.
98068         * tests/test-mbspbrk.c: Likewise.
98069         * tests/test-mbspcasecmp.c: Likewise.
98070         * tests/test-mbsrchr.c: Likewise.
98071         * tests/test-mbsspn.c: Likewise.
98072         * tests/test-mbsstr1.c: Likewise.
98073         * tests/test-mbsstr2.c: Likewise.
98074         * tests/test-mbsstr3.c: Likewise.
98075         * tests/test-md5.c: Likewise.
98076         * tests/test-memmem.c: Likewise.
98077         * tests/test-netinet_in.c: Likewise.
98078         * tests/test-open.c: Likewise.
98079         * tests/test-printf-frexp.c: Likewise.
98080         * tests/test-printf-frexpl.c: Likewise.
98081         * tests/test-printf-posix.c: Likewise.
98082         * tests/test-printf-posix.h: Likewise.
98083         * tests/test-rbtree_list.c: Likewise.
98084         * tests/test-rbtree_oset.c: Likewise.
98085         * tests/test-rbtreehash_list.c: Likewise.
98086         * tests/test-read-file.c: Likewise.
98087         * tests/test-rijndael.c: Likewise.
98088         * tests/test-search.c: Likewise.
98089         * tests/test-signbit.c: Likewise.
98090         * tests/test-sleep.c: Likewise.
98091         * tests/test-snprintf-posix.c: Likewise.
98092         * tests/test-snprintf-posix.h: Likewise.
98093         * tests/test-snprintf.c: Likewise.
98094         * tests/test-sprintf-posix.c: Likewise.
98095         * tests/test-sprintf-posix.h: Likewise.
98096         * tests/test-stat-time.c: Likewise.
98097         * tests/test-stdbool.c: Likewise.
98098         * tests/test-stdint.c: Likewise.
98099         * tests/test-stdio.c: Likewise.
98100         * tests/test-stdlib.c: Likewise.
98101         * tests/test-stpncpy.c: Likewise.
98102         * tests/test-strcasestr.c: Likewise.
98103         * tests/test-striconv.c: Likewise.
98104         * tests/test-striconveh.c: Likewise.
98105         * tests/test-striconveha.c: Likewise.
98106         * tests/test-string.c: Likewise.
98107         * tests/test-sys_select.c: Likewise.
98108         * tests/test-sys_socket.c: Likewise.
98109         * tests/test-sys_stat.c: Likewise.
98110         * tests/test-sys_time.c: Likewise.
98111         * tests/test-sysexits.c: Likewise.
98112         * tests/test-time.c: Likewise.
98113         * tests/test-tls.c: Likewise.
98114         * tests/test-trunc.c: Likewise.
98115         * tests/test-truncf.c: Likewise.
98116         * tests/test-truncl.c: Likewise.
98117         * tests/test-unistd.c: Likewise.
98118         * tests/test-vasnprintf-posix.c: Likewise.
98119         * tests/test-vasnprintf-posix2.c: Likewise.
98120         * tests/test-vasnprintf.c: Likewise.
98121         * tests/test-vasprintf-posix.c: Likewise.
98122         * tests/test-vasprintf.c: Likewise.
98123         * tests/test-verify.c: Likewise.
98124         * tests/test-vfprintf-posix.c: Likewise.
98125         * tests/test-vprintf-posix.c: Likewise.
98126         * tests/test-vsnprintf-posix.c: Likewise.
98127         * tests/test-vsnprintf.c: Likewise.
98128         * tests/test-vsprintf-posix.c: Likewise.
98129         * tests/test-wchar.c: Likewise.
98130         * tests/test-wctype.c: Likewise.
98131         * tests/test-wcwidth.c: Likewise.
98132         * tests/test-xstrtol.c: Likewise.
98133         * tests/test-xvasprintf.c: Likewise.
98134         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
98135         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
98136         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
98137         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
98138         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
98139         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
98140         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
98141         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
98142         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
98143         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
98144         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
98145         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
98146         * tests/uniname/test-uninames.c: Likewise.
98147         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
98148         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
98149         * tests/unistdio/test-u16-printf1.h: Likewise.
98150         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
98151         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
98152         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
98153         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
98154         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
98155         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
98156         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
98157         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
98158         * tests/unistdio/test-u32-printf1.h: Likewise.
98159         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
98160         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
98161         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
98162         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
98163         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
98164         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
98165         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
98166         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
98167         * tests/unistdio/test-u8-printf1.h: Likewise.
98168         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
98169         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
98170         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
98171         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
98172         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
98173         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
98174         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
98175         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
98176         * tests/unistdio/test-ulc-printf1.h: Likewise.
98177         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
98178         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
98179         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
98180         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
98181         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
98182         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
98183         * tests/uniwidth/test-u16-strwidth.c: Likewise.
98184         * tests/uniwidth/test-u16-width.c: Likewise.
98185         * tests/uniwidth/test-u32-strwidth.c: Likewise.
98186         * tests/uniwidth/test-u32-width.c: Likewise.
98187         * tests/uniwidth/test-u8-strwidth.c: Likewise.
98188         * tests/uniwidth/test-u8-width.c: Likewise.
98189         * tests/uniwidth/test-uc_width.c: Likewise.
98190         * config/srclist-update: Likewise.
98191         (fixlicense): Update to GPLv3+.
98193         Change copyright notice from LGPLv2.1+ to LGPLv3+.
98194         * tests/test-tsearch.c: Change copyright notice.
98196         Change copyright notice from LGPLv2.0+ to LGPLv3+.
98197         * lib/c-strcaseeq.h: Change copyright notice.
98198         * lib/streq.h: Likewise.
98199         * lib/uniconv.h: Likewise.
98200         * lib/uniconv/u-conv-from-enc.h: Likewise.
98201         * lib/uniconv/u-conv-to-enc.h: Likewise.
98202         * lib/uniconv/u-strconv-from-enc.h: Likewise.
98203         * lib/uniconv/u-strconv-to-enc.h: Likewise.
98204         * lib/uniconv/u16-conv-from-enc.c: Likewise.
98205         * lib/uniconv/u16-conv-to-enc.c: Likewise.
98206         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
98207         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
98208         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
98209         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
98210         * lib/uniconv/u32-conv-from-enc.c: Likewise.
98211         * lib/uniconv/u32-conv-to-enc.c: Likewise.
98212         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
98213         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
98214         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
98215         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
98216         * lib/uniconv/u8-conv-from-enc.c: Likewise.
98217         * lib/uniconv/u8-conv-to-enc.c: Likewise.
98218         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
98219         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
98220         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
98221         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
98222         * lib/uniname.h: Likewise.
98223         * lib/uniname/uniname.c: Likewise.
98224         * lib/unistdio.h: Likewise.
98225         * lib/unistdio/u-asnprintf.h: Likewise.
98226         * lib/unistdio/u-asprintf.h: Likewise.
98227         * lib/unistdio/u-printf-args.c: Likewise.
98228         * lib/unistdio/u-printf-args.h: Likewise.
98229         * lib/unistdio/u-printf-parse.h: Likewise.
98230         * lib/unistdio/u-snprintf.h: Likewise.
98231         * lib/unistdio/u-sprintf.h: Likewise.
98232         * lib/unistdio/u-vasprintf.h: Likewise.
98233         * lib/unistdio/u-vsnprintf.h: Likewise.
98234         * lib/unistdio/u-vsprintf.h: Likewise.
98235         * lib/unistdio/u16-asnprintf.c: Likewise.
98236         * lib/unistdio/u16-asprintf.c: Likewise.
98237         * lib/unistdio/u16-printf-parse.c: Likewise.
98238         * lib/unistdio/u16-snprintf.c: Likewise.
98239         * lib/unistdio/u16-sprintf.c: Likewise.
98240         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
98241         * lib/unistdio/u16-u16-asprintf.c: Likewise.
98242         * lib/unistdio/u16-u16-snprintf.c: Likewise.
98243         * lib/unistdio/u16-u16-sprintf.c: Likewise.
98244         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
98245         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
98246         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
98247         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
98248         * lib/unistdio/u16-vasnprintf.c: Likewise.
98249         * lib/unistdio/u16-vasprintf.c: Likewise.
98250         * lib/unistdio/u16-vsnprintf.c: Likewise.
98251         * lib/unistdio/u16-vsprintf.c: Likewise.
98252         * lib/unistdio/u32-asnprintf.c: Likewise.
98253         * lib/unistdio/u32-asprintf.c: Likewise.
98254         * lib/unistdio/u32-printf-parse.c: Likewise.
98255         * lib/unistdio/u32-snprintf.c: Likewise.
98256         * lib/unistdio/u32-sprintf.c: Likewise.
98257         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
98258         * lib/unistdio/u32-u32-asprintf.c: Likewise.
98259         * lib/unistdio/u32-u32-snprintf.c: Likewise.
98260         * lib/unistdio/u32-u32-sprintf.c: Likewise.
98261         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
98262         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
98263         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
98264         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
98265         * lib/unistdio/u32-vasnprintf.c: Likewise.
98266         * lib/unistdio/u32-vasprintf.c: Likewise.
98267         * lib/unistdio/u32-vsnprintf.c: Likewise.
98268         * lib/unistdio/u32-vsprintf.c: Likewise.
98269         * lib/unistdio/u8-asnprintf.c: Likewise.
98270         * lib/unistdio/u8-asprintf.c: Likewise.
98271         * lib/unistdio/u8-printf-parse.c: Likewise.
98272         * lib/unistdio/u8-snprintf.c: Likewise.
98273         * lib/unistdio/u8-sprintf.c: Likewise.
98274         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
98275         * lib/unistdio/u8-u8-asprintf.c: Likewise.
98276         * lib/unistdio/u8-u8-snprintf.c: Likewise.
98277         * lib/unistdio/u8-u8-sprintf.c: Likewise.
98278         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
98279         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
98280         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
98281         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
98282         * lib/unistdio/u8-vasnprintf.c: Likewise.
98283         * lib/unistdio/u8-vasprintf.c: Likewise.
98284         * lib/unistdio/u8-vsnprintf.c: Likewise.
98285         * lib/unistdio/u8-vsprintf.c: Likewise.
98286         * lib/unistdio/ulc-asnprintf.c: Likewise.
98287         * lib/unistdio/ulc-asprintf.c: Likewise.
98288         * lib/unistdio/ulc-printf-parse.c: Likewise.
98289         * lib/unistdio/ulc-snprintf.c: Likewise.
98290         * lib/unistdio/ulc-sprintf.c: Likewise.
98291         * lib/unistdio/ulc-vasnprintf.c: Likewise.
98292         * lib/unistdio/ulc-vasprintf.c: Likewise.
98293         * lib/unistdio/ulc-vsnprintf.c: Likewise.
98294         * lib/unistdio/ulc-vsprintf.c: Likewise.
98295         * lib/unistr.h: Likewise.
98296         * lib/unistr/u-cpy-alloc.h: Likewise.
98297         * lib/unistr/u-cpy.h: Likewise.
98298         * lib/unistr/u-endswith.h: Likewise.
98299         * lib/unistr/u-move.h: Likewise.
98300         * lib/unistr/u-set.h: Likewise.
98301         * lib/unistr/u-startswith.h: Likewise.
98302         * lib/unistr/u-stpcpy.h: Likewise.
98303         * lib/unistr/u-stpncpy.h: Likewise.
98304         * lib/unistr/u-strcat.h: Likewise.
98305         * lib/unistr/u-strcpy.h: Likewise.
98306         * lib/unistr/u-strcspn.h: Likewise.
98307         * lib/unistr/u-strdup.h: Likewise.
98308         * lib/unistr/u-strlen.h: Likewise.
98309         * lib/unistr/u-strncat.h: Likewise.
98310         * lib/unistr/u-strncpy.h: Likewise.
98311         * lib/unistr/u-strnlen.h: Likewise.
98312         * lib/unistr/u-strpbrk.h: Likewise.
98313         * lib/unistr/u-strspn.h: Likewise.
98314         * lib/unistr/u-strstr.h: Likewise.
98315         * lib/unistr/u-strtok.h: Likewise.
98316         * lib/unistr/u16-check.c: Likewise.
98317         * lib/unistr/u16-chr.c: Likewise.
98318         * lib/unistr/u16-cmp.c: Likewise.
98319         * lib/unistr/u16-cpy-alloc.c: Likewise.
98320         * lib/unistr/u16-cpy.c: Likewise.
98321         * lib/unistr/u16-endswith.c: Likewise.
98322         * lib/unistr/u16-mblen.c: Likewise.
98323         * lib/unistr/u16-mbsnlen.c: Likewise.
98324         * lib/unistr/u16-mbtouc-aux.c: Likewise.
98325         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
98326         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
98327         * lib/unistr/u16-mbtouc.c: Likewise.
98328         * lib/unistr/u16-mbtoucr.c: Likewise.
98329         * lib/unistr/u16-move.c: Likewise.
98330         * lib/unistr/u16-next.c: Likewise.
98331         * lib/unistr/u16-prev.c: Likewise.
98332         * lib/unistr/u16-set.c: Likewise.
98333         * lib/unistr/u16-startswith.c: Likewise.
98334         * lib/unistr/u16-stpcpy.c: Likewise.
98335         * lib/unistr/u16-stpncpy.c: Likewise.
98336         * lib/unistr/u16-strcat.c: Likewise.
98337         * lib/unistr/u16-strchr.c: Likewise.
98338         * lib/unistr/u16-strcmp.c: Likewise.
98339         * lib/unistr/u16-strcpy.c: Likewise.
98340         * lib/unistr/u16-strcspn.c: Likewise.
98341         * lib/unistr/u16-strdup.c: Likewise.
98342         * lib/unistr/u16-strlen.c: Likewise.
98343         * lib/unistr/u16-strmblen.c: Likewise.
98344         * lib/unistr/u16-strmbtouc.c: Likewise.
98345         * lib/unistr/u16-strncat.c: Likewise.
98346         * lib/unistr/u16-strncmp.c: Likewise.
98347         * lib/unistr/u16-strncpy.c: Likewise.
98348         * lib/unistr/u16-strnlen.c: Likewise.
98349         * lib/unistr/u16-strpbrk.c: Likewise.
98350         * lib/unistr/u16-strrchr.c: Likewise.
98351         * lib/unistr/u16-strspn.c: Likewise.
98352         * lib/unistr/u16-strstr.c: Likewise.
98353         * lib/unistr/u16-strtok.c: Likewise.
98354         * lib/unistr/u16-to-u32.c: Likewise.
98355         * lib/unistr/u16-to-u8.c: Likewise.
98356         * lib/unistr/u16-uctomb-aux.c: Likewise.
98357         * lib/unistr/u16-uctomb.c: Likewise.
98358         * lib/unistr/u32-check.c: Likewise.
98359         * lib/unistr/u32-chr.c: Likewise.
98360         * lib/unistr/u32-cmp.c: Likewise.
98361         * lib/unistr/u32-cpy-alloc.c: Likewise.
98362         * lib/unistr/u32-cpy.c: Likewise.
98363         * lib/unistr/u32-endswith.c: Likewise.
98364         * lib/unistr/u32-mblen.c: Likewise.
98365         * lib/unistr/u32-mbsnlen.c: Likewise.
98366         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
98367         * lib/unistr/u32-mbtouc.c: Likewise.
98368         * lib/unistr/u32-mbtoucr.c: Likewise.
98369         * lib/unistr/u32-move.c: Likewise.
98370         * lib/unistr/u32-next.c: Likewise.
98371         * lib/unistr/u32-prev.c: Likewise.
98372         * lib/unistr/u32-set.c: Likewise.
98373         * lib/unistr/u32-startswith.c: Likewise.
98374         * lib/unistr/u32-stpcpy.c: Likewise.
98375         * lib/unistr/u32-stpncpy.c: Likewise.
98376         * lib/unistr/u32-strcat.c: Likewise.
98377         * lib/unistr/u32-strchr.c: Likewise.
98378         * lib/unistr/u32-strcmp.c: Likewise.
98379         * lib/unistr/u32-strcpy.c: Likewise.
98380         * lib/unistr/u32-strcspn.c: Likewise.
98381         * lib/unistr/u32-strdup.c: Likewise.
98382         * lib/unistr/u32-strlen.c: Likewise.
98383         * lib/unistr/u32-strmblen.c: Likewise.
98384         * lib/unistr/u32-strmbtouc.c: Likewise.
98385         * lib/unistr/u32-strncat.c: Likewise.
98386         * lib/unistr/u32-strncmp.c: Likewise.
98387         * lib/unistr/u32-strncpy.c: Likewise.
98388         * lib/unistr/u32-strnlen.c: Likewise.
98389         * lib/unistr/u32-strpbrk.c: Likewise.
98390         * lib/unistr/u32-strrchr.c: Likewise.
98391         * lib/unistr/u32-strspn.c: Likewise.
98392         * lib/unistr/u32-strstr.c: Likewise.
98393         * lib/unistr/u32-strtok.c: Likewise.
98394         * lib/unistr/u32-to-u16.c: Likewise.
98395         * lib/unistr/u32-to-u8.c: Likewise.
98396         * lib/unistr/u32-uctomb.c: Likewise.
98397         * lib/unistr/u8-check.c: Likewise.
98398         * lib/unistr/u8-chr.c: Likewise.
98399         * lib/unistr/u8-cmp.c: Likewise.
98400         * lib/unistr/u8-cpy-alloc.c: Likewise.
98401         * lib/unistr/u8-cpy.c: Likewise.
98402         * lib/unistr/u8-endswith.c: Likewise.
98403         * lib/unistr/u8-mblen.c: Likewise.
98404         * lib/unistr/u8-mbsnlen.c: Likewise.
98405         * lib/unistr/u8-mbtouc-aux.c: Likewise.
98406         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
98407         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
98408         * lib/unistr/u8-mbtouc.c: Likewise.
98409         * lib/unistr/u8-mbtoucr.c: Likewise.
98410         * lib/unistr/u8-move.c: Likewise.
98411         * lib/unistr/u8-next.c: Likewise.
98412         * lib/unistr/u8-prev.c: Likewise.
98413         * lib/unistr/u8-set.c: Likewise.
98414         * lib/unistr/u8-startswith.c: Likewise.
98415         * lib/unistr/u8-stpcpy.c: Likewise.
98416         * lib/unistr/u8-stpncpy.c: Likewise.
98417         * lib/unistr/u8-strcat.c: Likewise.
98418         * lib/unistr/u8-strchr.c: Likewise.
98419         * lib/unistr/u8-strcmp.c: Likewise.
98420         * lib/unistr/u8-strcpy.c: Likewise.
98421         * lib/unistr/u8-strcspn.c: Likewise.
98422         * lib/unistr/u8-strdup.c: Likewise.
98423         * lib/unistr/u8-strlen.c: Likewise.
98424         * lib/unistr/u8-strmblen.c: Likewise.
98425         * lib/unistr/u8-strmbtouc.c: Likewise.
98426         * lib/unistr/u8-strncat.c: Likewise.
98427         * lib/unistr/u8-strncmp.c: Likewise.
98428         * lib/unistr/u8-strncpy.c: Likewise.
98429         * lib/unistr/u8-strnlen.c: Likewise.
98430         * lib/unistr/u8-strpbrk.c: Likewise.
98431         * lib/unistr/u8-strrchr.c: Likewise.
98432         * lib/unistr/u8-strspn.c: Likewise.
98433         * lib/unistr/u8-strstr.c: Likewise.
98434         * lib/unistr/u8-strtok.c: Likewise.
98435         * lib/unistr/u8-to-u16.c: Likewise.
98436         * lib/unistr/u8-to-u32.c: Likewise.
98437         * lib/unistr/u8-uctomb-aux.c: Likewise.
98438         * lib/unistr/u8-uctomb.c: Likewise.
98439         * lib/unitypes.h: Likewise.
98440         * lib/uniwidth.h: Likewise.
98441         * lib/uniwidth/cjk.h: Likewise.
98442         * lib/uniwidth/u16-strwidth.c: Likewise.
98443         * lib/uniwidth/u16-width.c: Likewise.
98444         * lib/uniwidth/u32-strwidth.c: Likewise.
98445         * lib/uniwidth/u32-width.c: Likewise.
98446         * lib/uniwidth/u8-strwidth.c: Likewise.
98447         * lib/uniwidth/u8-width.c: Likewise.
98448         * lib/uniwidth/width.c: Likewise.
98450 2007-10-07  Bruno Haible  <bruno@clisp.org>
98452         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
98453         The file is still under LGPL (see modules/inttypes).
98455 2007-10-06  Bruno Haible  <bruno@clisp.org>
98457         * modules/trunc (Dependencies): Add 'extensions'.
98458         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
98459         Reported by Ben Pfaff <blp@gnu.org>.
98461 2007-10-06  Bruno Haible  <bruno@clisp.org>
98463         * modules/freopen-tests: New file.
98464         * tests/test-freopen.c: New file.
98466         * modules/fopen-tests: New file.
98467         * tests/test-fopen.c: New file.
98469         * modules/fopen: New file.
98470         * lib/fopen.c: New file.
98471         * m4/fopen.m4: New file.
98472         * modules/freopen: New file.
98473         * lib/freopen.c: New file.
98474         * m4/freopen.m4: New file.
98475         * lib/stdio.in.h (fopen, freopen): New declarations.
98476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
98477         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98478         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
98479         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98480         * doc/functions/fopen.texi: Mention the 'fopen' module.
98481         * doc/functions/freopen.texi: Mention the 'freopen' module.
98483 2007-10-06  Bruno Haible  <bruno@clisp.org>
98485         * modules/open-tests: New file.
98486         * tests/test-open.c: New file.
98488         * modules/open: New file.
98489         * lib/open.c: New file.
98490         * m4/open.m4: New file.
98491         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
98492         lib/open.c does.
98493         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
98494         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
98495         macros.
98496         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
98497         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
98498         REPLACE_OPEN.
98499         * doc/functions/open.texi: Mention the 'open' module.
98501 2007-10-04  Bruno Haible  <bruno@clisp.org>
98503         * modules/ceill-tests: New file.
98504         * tests/test-ceill.c: New file.
98506         * modules/ceill: New file.
98507         * lib/ceill.c: Replace entire file.
98508         * m4/ceill.m4: New file.
98509         * lib/math.in.h (ceill): Replace declaration.
98510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
98511         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
98512         * doc/functions/ceill.texi: Mention the 'ceill' module.
98513         * modules/mathl (Files): Remove lib/ceill.c.
98514         (Depends-on): Add ceill.
98516 2007-10-04  Bruno Haible  <bruno@clisp.org>
98518         * modules/ceilf-tests: New file.
98519         * tests/test-ceilf.c: New file.
98521         * modules/ceilf: New file.
98522         * lib/ceil.c: New file.
98523         * lib/ceilf.c: New file.
98524         * m4/ceilf.m4: New file.
98525         * lib/math.in.h (ceilf): New declaration.
98526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
98527         HAVE_DECL_CEILF.
98528         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
98529         HAVE_DECL_CEILF.
98530         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
98532 2007-10-04  Bruno Haible  <bruno@clisp.org>
98534         * modules/floorl-tests: New file.
98535         * tests/test-floorl.c: New file.
98537         * modules/floorl: New file.
98538         * lib/floorl.c: Replace entire file.
98539         * m4/floorl.m4: New file.
98540         * lib/math.in.h (floorl): Replace declaration.
98541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
98542         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
98543         * doc/functions/floorl.texi: Mention the 'floorl' module.
98544         * modules/mathl (Files): Remove lib/floorl.c.
98545         (Depends-on): Add floorl.
98547 2007-10-04  Bruno Haible  <bruno@clisp.org>
98549         * modules/floorf-tests: New file.
98550         * tests/test-floorf.c: New file.
98552         * modules/floorf: New file.
98553         * lib/floor.c: New file.
98554         * lib/floorf.c: New file.
98555         * m4/floorf.m4: New file.
98556         * lib/math.in.h (floorf): New declaration.
98557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98558         HAVE_DECL_FLOORF.
98559         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
98560         HAVE_DECL_FLOORF.
98561         * doc/functions/floorf.texi: Mention the 'floorf' module.
98563 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
98564             Bruno Haible  <bruno@clisp.org>
98566         Advertise for the Git server instead of the CVS server.
98567         * doc/gnulib-intro.texi (Steady Development): Mention the Git
98568         repository instead of the CVS one.
98569         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
98570         about all VCS systems generically.
98571         * doc/gnulib.texi (Introduction): Capitalize `Git'.
98573 2007-10-04  Bruno Haible  <bruno@clisp.org>
98575         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
98576         means.
98577         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
98579 2007-10-04  Bruno Haible  <bruno@clisp.org>
98581         * modules/truncl-tests: New file.
98582         * tests/test-truncl.c: New file.
98584         * modules/truncl: New file.
98585         * lib/truncl.c: New file.
98586         * m4/truncl.m4: New file.
98587         * lib/math.in.h (truncl): New declaration.
98588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98589         HAVE_DECL_TRUNCL.
98590         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98591         HAVE_DECL_TRUNCL.
98592         * doc/functions/truncl.texi: Mention the 'truncl' module.
98594 2007-10-04  Bruno Haible  <bruno@clisp.org>
98596         * modules/truncf-tests: New file.
98597         * tests/test-truncf.c: New file.
98599         * modules/truncf: New file.
98600         * lib/trunc.c: Make paramerizable through USE_* macros.
98601         * lib/truncf.c: New file.
98602         * m4/truncf.m4: New file.
98603         * lib/math.in.h (truncf): New declaration.
98604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98605         HAVE_DECL_TRUNCF.
98606         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98607         HAVE_DECL_TRUNCF.
98608         * doc/functions/truncf.texi: Mention the 'truncf' module.
98610 2007-10-03  Bruno Haible  <bruno@clisp.org>
98612         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98613         augmentation also for tests modules.
98614         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98615         * modules/atexit-tests (Makefile.am): Likewise.
98616         * modules/binary-io-tests (Makefile.am): Likewise.
98617         * modules/c-strcase-tests (Makefile.am): Likewise.
98618         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98619         * modules/canonicalize-tests (Makefile.am): Likewise.
98620         * modules/closein-tests (Makefile.am): Likewise.
98621         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98622         * modules/freadahead-tests (Makefile.am): Likewise.
98623         * modules/fseek-tests (Makefile.am): Likewise.
98624         * modules/fseeko-tests (Makefile.am): Likewise.
98625         * modules/ftell-tests (Makefile.am): Likewise.
98626         * modules/ftello-tests (Makefile.am): Likewise.
98627         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98628         * modules/isnanl-tests (Makefile.am): Likewise.
98629         * modules/lseek-tests (Makefile.am): Likewise.
98630         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98631         * modules/mbscasestr-tests (Makefile.am): Likewise.
98632         * modules/mbschr-tests (Makefile.am): Likewise.
98633         * modules/mbscspn-tests (Makefile.am): Likewise.
98634         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98635         * modules/mbspbrk-tests (Makefile.am): Likewise.
98636         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98637         * modules/mbsrchr-tests (Makefile.am): Likewise.
98638         * modules/mbsspn-tests (Makefile.am): Likewise.
98639         * modules/mbsstr-tests (Makefile.am): Likewise.
98640         * modules/printf-posix-tests (Makefile.am): Likewise.
98641         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98642         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98643         * modules/tsearch-tests (Makefile.am): Likewise.
98644         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98645         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98646         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98647         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98648         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98649         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98650         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98651         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98652         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98653         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98654         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98655         * modules/xstrtol-tests (Makefile.am): Likewise.
98656         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98657         * modules/yesno-tests (Makefile.am): Likewise.
98659 2007-10-03  Bruno Haible  <bruno@clisp.org>
98661         * modules/trunc-tests: New file.
98662         * tests/test-trunc.c: New file.
98664         * modules/trunc: New file.
98665         * lib/trunc.c: New file.
98666         * m4/trunc.m4: New file.
98667         * lib/math.in.h (trunc): New declaration.
98668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98669         HAVE_DECL_TRUNC.
98670         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98671         HAVE_DECL_TRUNC.
98672         * doc/functions/trunc.texi: Mention the 'trunc' module.
98674 2007-10-03  Bruno Haible  <bruno@clisp.org>
98676         * tests/test-fpending.c: New file, mostly copied
98677         from coreutils/lib/t-fpending.c.
98678         * modules/fpending-tests: New file.
98680 2007-10-03  Bruno Haible  <bruno@clisp.org>
98682         Port the stdio extensions to QNX (untested).
98683         * lib/fseterr.c (fseterr): Add support for QNX.
98684         * lib/fbufmode.c (fbufmode): Likewise.
98685         * lib/freadable.c (freadable): Likewise.
98686         * lib/fwritable.c (fwritable): Likewise.
98687         * lib/freading.c (freading): Likewise.
98688         * lib/fwriting.c (fwriting): Likewise.
98689         * lib/freadahead.c (freadahed): Likewise.
98690         * lib/fpurge.c (fpurge): Likewise.
98691         * lib/fseeko.c (rpl_fseeko): Likewise.
98693 2007-10-03  Bruno Haible  <bruno@clisp.org>
98694             Jim Meyering  <jim@meyering.net>
98695             Eric Blake  <ebb9@byu.net>
98697         * doc/relocatable.texi: Use @command instead of @program.
98699 2007-10-02  Jim Meyering  <jim@meyering.net>
98701         Perform one more "_.h" -> ".in.h" substitution.
98702         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98703         instead of unistd_.h here, too.
98705 2007-10-01  Bruno Haible  <bruno@clisp.org>
98707         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98708         Needed for the alloca-opt module.
98710 2007-09-30  Bruno Haible  <bruno@clisp.org>
98712         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98713         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98714         alloca_.h.
98715         * lib/argz.in.h: Renamed from lib/argz_.h.
98716         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98717         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98718         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98719         byteswap_.h.
98720         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98721         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98722         dirent_.h.
98723         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98724         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98725         fcntl_.h.
98726         * lib/float.in.h: Renamed from lib/float_.h.
98727         * modules/float (Files, Makefile.am): Use float.in.h instead of
98728         float_.h.
98729         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98730         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98731         fnmatch_.h.
98732         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98733         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98734         getopt_.h.
98735         * lib/glob.in.h: Renamed from lib/glob_.h.
98736         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98737         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98738         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98739         iconv_.h.
98740         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98741         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98742         inttypes_.h.
98743         * lib/locale.in.h: Renamed from lib/locale_.h.
98744         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98745         locale_.h.
98746         * lib/math.in.h: Renamed from lib/math_.h.
98747         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98748         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98749         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98750         of netinet_in_.h. Add dependency.
98751         * lib/poll.in.h: Renamed from lib/poll_.h.
98752         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98753         * lib/search.in.h: Renamed from lib/search_.h.
98754         * modules/search (Files, Makefile.am): Use search.in.h instead of
98755         search_.h.
98756         * lib/signal.in.h: Renamed from lib/signal_.h.
98757         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98758         _signal.h.
98759         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98760         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98761         stdbool_.h.
98762         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98763         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98764         stdint_.h.
98765         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98766         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98767         stdio_.h.
98768         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98769         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98770         stdlib_.h.
98771         * lib/string.in.h: Renamed from lib/string_.h.
98772         * modules/string (Files, Makefile.am): Use string.in.h instead of
98773         string_.h.
98774         * doc/gnulib-tool.texi (Initial import): Update.
98775         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98776         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98777         of sys_select_.h. Add dependency.
98778         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98779         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98780         of sys_socket_.h.
98781         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98782         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98783         sys_stat_.h.
98784         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98785         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98786         sys_time_.h.
98787         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98788         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98789         sysexits_.h.
98790         * lib/time.in.h: Renamed from lib/time_.h.
98791         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98792         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98793         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98794         unistd_.h.
98795         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98796         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98797         wchar_.h.
98798         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98799         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98800         wctype_.h.
98801         * build-aux/bootstrap (slurp): Update.
98802         * lib/.cppi-disable: Update.
98804 2007-09-30  Bruno Haible  <bruno@clisp.org>
98806         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98807         Needed on BeOS.
98809 2007-09-30  Bruno Haible  <bruno@clisp.org>
98811         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98813 2007-09-29  Bruno Haible  <bruno@clisp.org>
98815         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98817 2007-09-29  Bruno Haible  <bruno@clisp.org>
98819         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98820         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98821         * build-aux/install-reloc: Compile also areadlink.c.
98822         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98824 2007-09-29  Bruno Haible  <bruno@clisp.org>
98826         * gnulib-tool (func_emit_initmacro_done): Indentation.
98828 2007-09-29  Bruno Haible  <bruno@clisp.org>
98830         * README: Add CVS checkout update instructions.
98831         Info from Bob Proulx <bob@proulx.com>.
98833 2007-09-28  Eric Blake  <ebb9@byu.net>
98835         Provide move-if-change.
98836         * build-aux/move-if-change: New file, based on best practice
98837         rather than any canonical upstream location.
98839 2007-09-28  Jim Meyering  <jim@meyering.net>
98841         Fix canonicalize loop-detection corner case.
98842         Do not attempt to stat the symlink values stored via seen_triple.
98843         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98844         on linux-2.6.18, (but not 2.6.22).
98845         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98846         triple_compare.  The former compares dev,ino,filename, while the latter
98847         would actually stat dirname(filename) when dev and ino were equal.
98848         * lib/hash-triple.c: Install <string.h>.
98849         (STREQ): Define.
98850         (triple_compare_ino_str): New function.
98851         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98853 2007-09-28  Eric Blake  <ebb9@byu.net>
98855         Enforce that AC_REPLACE_FUNCS files exist.
98856         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98857         override check for typos.
98859         Fix test-closein on Solaris 10.
98860         * tests/test-closein.c (main): Don't assume stdin can be inherited
98861         closed on all systems.
98862         * tests/test-closein.sh: Likewise.
98863         Reported by Piotr Tarnowski.
98865 2007-09-28  Jim Meyering  <jim@meyering.net>
98867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98869 2007-09-27  Jim Meyering  <jim@meyering.net>
98871         canonicalize: Avoid a false-positive cycle failure.
98872         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98873         Sort.  Remove cycle-check.
98874         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98875         not cycle-check.h.
98876         (seen_triple): New function.
98877         (canonicalize_filename_mode): Use it instead of cycle-check.
98878         * tests/test-canonicalize.c: Add a test for this bug.
98879         * tests/test-canonicalize.sh: Set up and run the test.
98881         New module, file-set, from coreutils.
98882         * modules/file-set: Define it.
98883         * lib/file-set.c, lib/file-set.h: Implement.
98885         New module, hash-triple, from coreutils.
98886         * modules/hash-triple: Define it.
98887         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98889 2007-09-25  Eric Blake  <ebb9@byu.net>
98891         Fix strerror on Interix.
98892         * lib/string_.h (strerror): Declare replacement.
98893         * doc/functions/strerror.texi (strerror): Document the Interix
98894         shortcoming.
98895         * modules/string (Makefile.am): Support new hooks.
98896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98897         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98898         gl_FUNC_STRERROR_SEPARATE.
98899         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98900         * lib/strerror.c (rpl_strerror): Provide replacement.
98901         * modules/strerror (Depends-on): Add string.
98902         (configure.ac): Detect use of module.
98903         * tests/test-strerror.c: New file.
98904         * modules/strerror-tests: New test module.
98905         * modules/argp (Depends-on): Add strerror.
98906         * modules/error (Depends-on): Likewise.
98907         Reported by Martin Koeppe.
98909 2007-09-24  Bruno Haible  <bruno@clisp.org>
98911         * README: Update git instructions.
98913 2007-09-24  Eric Blake  <ebb9@byu.net>
98915         Revert fpending breakage from 2007-09-08.
98916         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98917         __fpending.c.
98919 2007-09-24  Jim Meyering  <jim@meyering.net>
98921         filenamecat.c: Add a test.
98922         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98923         showing how the function works when DIR is the empty string.
98925 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98927         * tests/test-canonicalize.sh: Turn on executable bit.
98929 2007-09-19  Eric Blake  <ebb9@byu.net>
98931         * README: Update CVS instructions.
98933 2007-09-18  Bruno Haible  <bruno@clisp.org>
98935         * modules/areadlink: New file.
98936         * lib/areadlink.h (areadlink): New declaration.
98937         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98939 2007-09-17  Jim Meyering  <jim@meyering.net>
98941         * lib/savewd.c (ESTALE) [!defined]: Define.
98942         Reported to be required on Interix by Martin Koeppe.
98944 2007-09-17  Bruno Haible  <bruno@clisp.org>
98946         * gnulib-tool (func_version): Use $version.
98948 2007-09-16  Bruno Haible  <bruno@clisp.org>
98950         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98951         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98952         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98953         Reported by Greg Schafer <gschafer@zip.com.au>.
98955 2007-09-15  Bruno Haible  <bruno@clisp.org>
98957         * gnulib-tool (sed): Try a little harder to make bash understand the
98958         alias.
98959         Reported by Bruce Korb <bruce.korb@gmail.com>.
98961 2007-09-13  Eric Blake  <ebb9@byu.net>
98963         * ChangeLog: Remove conflict markers.
98965 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98967         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98968         Reported by Bruno Haible <bruno@clisp.org>.
98970 2007-09-12  Bruno Haible  <bruno@clisp.org>
98972         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98973         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98974         is not defined.
98976 2007-09-12  Eric Blake  <ebb9@byu.net>
98978         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98979         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98980         Autoconf definition.
98981         * modules/euidaccess (Depends-on): Add extensions, for
98982         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98983         * modules/fnmatch (Depends-on): Likewise.
98984         * modules/getaddrinfo (Depends-on): Likewise.
98985         * modules/getdelim (Depends-on): Likewise.
98986         * modules/getline (Depends-on): Likewise.
98987         * modules/getsubopt (Depends-on): Likewise.
98988         * modules/gettext (Depends-on): Likewise.
98989         * modules/group-member (Depends-on): Likewise.
98990         * modules/mbchar (Depends-on): Likewise.
98991         * modules/memmem (Depends-on): Likewise.
98992         * modules/mempcpy (Depends-on): Likewise.
98993         * modules/memrchr (Depends-on): Likewise.
98994         * modules/pagealign_alloc (Depends-on): Likewise.
98995         * modules/readutmp (Depends-on): Likewise.
98996         * modules/stpcpy (Depends-on): Likewise.
98997         * modules/stpncpy (Depends-on): Likewise.
98998         * modules/strchrnul (Depends-on): Likewise.
98999         * modules/strndup (Depends-on): Likewise.
99000         * modules/strsep (Depends-on): Likewise.
99001         * modules/strverscmp (Depends-on): Likewise.
99002         * modules/vasprintf (Depends-on): Likewise.
99003         * modules/wcwidth (Depends-on): Likewise.
99004         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
99005         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
99006         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
99007         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
99008         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
99009         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99010         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
99011         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99012         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
99013         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
99014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
99015         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
99016         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
99017         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
99018         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
99019         * m4/readutmp.m4 (gl_READUTMP): Likewise.
99020         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99021         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
99022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
99023         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
99024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
99025         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
99026         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
99027         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
99028         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
99029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99030         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
99031         so that lock.m4 can be used in gettext without extensions module.
99033 2007-09-11  Bruno Haible  <bruno@clisp.org>
99035         * m4/isc-posix.m4: Remove file.
99036         Suggested by Eric Blake.
99038 2007-09-11  Eric Blake  <ebb9@byu.net>
99040         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
99042 2007-09-10  Bruno Haible  <bruno@clisp.org>
99044         * posix-modules: Fix typo in error message.
99045         Reported by Matt <mkraai@beckman.com>.
99047 2007-09-09  Bruno Haible  <bruno@clisp.org>
99049         * doc/functions/getdelim.texi: Update list of platforms lacking the
99050         function.
99051         * doc/functions/getline.texi: Likewise.
99053 2007-09-09  Jim Meyering  <jim@meyering.net>
99055         * lib/hash.c (hash_initialize): Detect calloc failure.
99056         Reported by Bruno Haible.
99058 2007-09-09  Bruno Haible  <bruno@clisp.org>
99060         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
99061         malloc or realloc fails.
99063 2007-09-09  Bruno Haible  <bruno@clisp.org>
99065         * modules/getcwd (Depends-on): Add malloc-posix.
99066         * modules/glob (Depends-on): Likewise.
99067         * modules/putenv (Depends-on): Likewise.
99068         * modules/strdup (Depends-on): Likewise.
99069         * modules/getdelim (Depends-on): Add realloc-posix.
99070         * modules/read-file (Depends-on): Likewise.
99072 2007-09-09  Bruno Haible  <bruno@clisp.org>
99074         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
99075         (gl_FUNC_MALLOC_POSIX): Require it.
99076         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
99077         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
99078         * modules/realloc (Files): Add m4/malloc.m4.
99079         * modules/calloc (Files): Likewise.
99081 2007-09-09  Bruno Haible  <bruno@clisp.org>
99083         * modules/malloc-posix: New file.
99084         * modules/malloc (Depends-on): Add malloc-posix.
99085         * lib/malloc.c: Include errno.h.
99086         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
99087         and a POSIX-compatible malloc into a single function. Set ENOMEM
99088         when returning NULL.
99089         * m4/malloc.m4: New file.
99090         * doc/functions/malloc.texi: Mention the malloc-posix module.
99091         * lib/stdlib_.h (malloc): New declaration.
99092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99093         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
99094         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
99095         and HAVE_MALLOC_POSIX.
99097 2007-09-09  Bruno Haible  <bruno@clisp.org>
99099         * modules/realloc-posix: New file.
99100         * modules/realloc (Depends-on): Add realloc-posix.
99101         * lib/realloc.c: Include errno.h.
99102         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
99103         and a POSIX-compatible realloc into a single function. Set ENOMEM
99104         when returning NULL.
99105         * m4/realloc.m4: New file.
99106         * doc/functions/realloc.texi: Mention the realloc-posix module.
99107         * lib/stdlib_.h (realloc): New declaration.
99108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99109         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
99110         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
99111         and HAVE_REALLOC_POSIX.
99113 2007-09-09  Bruno Haible  <bruno@clisp.org>
99115         * modules/calloc-posix: New file.
99116         * modules/calloc (Depends-on): Add calloc-posix.
99117         * lib/calloc.c: Include errno.h.
99118         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
99119         and a POSIX-compatible calloc into a single function. Set ENOMEM
99120         when returning NULL.
99121         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
99122         * doc/functions/calloc.texi: Mention the calloc-posix module.
99123         * lib/stdlib_.h (calloc): New declaration.
99124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99125         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
99126         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
99127         and HAVE_CALLOC_POSIX.
99129 2007-09-09  Bruno Haible  <bruno@clisp.org>
99131         Allow for modules to show an arbitrary notice.
99132         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
99133         * gnulib-tool: New option --extract-notice.
99134         (func_usage): Document it.
99135         (sed_extract_prog): Update.
99136         (func_get_notice): New function.
99137         (func_modules_notice): New function.
99138         (func_import, func_create_testdir): Invoke it.
99139         Suggested by Jim Meyering.
99141 2007-09-09  Bruno Haible  <bruno@clisp.org>
99143         * gnulib-tool: New options --verbose, --quiet.
99144         (func_usage): Document them.
99145         (verbose): New variable.
99146         (func_execute_command): New function.
99147         (func_import): Don't show the module list and the file list if
99148         $verbose < 0.
99149         (func_create_testdir): Likewise. Use func_execute_command.
99150         (func_create_megatestdir): Use func_execute_command.
99152 2007-09-08  Bruno Haible  <bruno@clisp.org>
99154         * gnulib-tool (func_import): Prefer rsync over wget when available,
99155         for fetching the PO files.
99157 2007-09-08  Bruno Haible  <bruno@clisp.org>
99159         * posix-modules: New file. Portions copied from gnulib-tool.
99160         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
99162 2007-09-08  Jim Meyering  <jim@meyering.net>
99164         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
99165         * lib/fpending.h: Rename from __fpending.h.
99166         * lib/fpending.c: Rename from __fpending.c.
99167         Include "fpending.h", not "__fpending.h".
99168         * lib/__fpending.h, lib/__fpending.c: Remove files.
99169         * modules/fpending (Files): Reflect new file names.
99170         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
99172 2007-09-08  Bruno Haible  <bruno@clisp.org>
99174         * m4/inttypes-h.m4: Remove stub file.
99176 2007-09-07  Simon Josefsson  <simon@josefsson.org>
99178         * doc/headers/stdint.texi: Discuss #include_next issue.
99180 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99182         * build-aux/bootstrap: Remove obsolete comment about wget --help.
99184 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99186         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
99187         in variable name.
99189 2007-09-03  Jim Meyering  <jim@meyering.net>
99191         New module: git-version-gen.
99192         * modules/git-version-gen: New file.
99194         Import changes from coreutils for bootstrap script.
99196         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
99198         bootstrap: uses rsync to download the .po files
99199         * build-aux/bootstrap (po_download_command_format): New global.
99200         (download_po_files): Use rsync.
99201         (update_po_files): Don't remove .po files after download,
99202         so future rsync runs can take advantage of the copies.
99204         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
99206         Solve the unnecessary-.po-file-regeneration problem once and for all.
99207         * build-aux/bootstrap (download_po_files): New function, renamed from
99208         get_translations.  Now, downloads, but doesn't update LINGUAS.
99209         (update_po_files): New function.
99211         bootstrap: Ignore more.
99212         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
99213         uniwidth to e.g., lib/.gitignore.
99214         (slurp): Handle the sys_stat_.h -> sys mapping, too.
99216         * build-aux/bootstrap: New setting: vc_ignore.
99217         (insert_sorted_if_absent): Create $file if absent.
99218         Adapt to new, possibly empty, list: $vc_ignore.
99220         bootstrap: generate more ignorable names
99221         * build-aux/bootstrap (slurp): When generating ignorable names,
99222         also map .sin to .sed, .gperf to .c, and .y to .c.
99224 2007-09-03  Jim Meyering  <jim@meyering.net>
99226         * build-aux/git-version-gen: New file, from coreutils.  For details, see
99227         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
99229 2007-09-02  Bruno Haible  <bruno@clisp.org>
99231         Fix mis-recognition of 'mcs' on QNX 6.
99232         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
99233         output contains the string "Mono".
99234         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
99235         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
99237 2007-09-01  Bruno Haible  <bruno@clisp.org>
99239         Fix collision between uniwidth/* and linebreak modules.
99240         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
99241         u32_width): Remove declarations.
99242         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
99243         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
99244         streq3, streq2, streq1, streq0): Remove functions.
99245         (STREQ): Remove macro.
99246         (is_cjk_encoding): Remove function.
99247         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
99248         (uc_width, u8_width, u16_width, u32_width): Remove functions.
99249         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
99250         * NEWS: Document the change.
99252 2007-09-01  Bruno Haible  <bruno@clisp.org>
99254         * lib/streq.h: Add double-inclusion guard.
99256 2007-09-01  Karl Berry  <karl@gnu.org>
99258         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
99260 2007-08-28  Jim Meyering  <jim@meyering.net>
99262         Rename mreadlink_with_size to areadlink_with_size.
99263         * NEWS: Document the change.
99264         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
99265         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
99266         * lib/mreadlink.h: Rename this to...
99267         * lib/areadlink.h: ...this.
99268         * modules/mreadlink-with-size: Rename this to...
99269         * modules/areadlink-with-size: ...this.
99270         * lib/canonicalize.c: Reflect the renaming.
99271         * modules/canonicalize: Likewise.
99273 2007-08-26  Bruno Haible  <bruno@clisp.org>
99275         * gnulib-tool (func_import): When deciding which files to remove,
99276         consider also dangling symbolic links.
99277         Reported by Eric Blake.
99279 2007-08-26  Bruno Haible  <bruno@clisp.org>
99281         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
99283 2007-08-23  Simon Josefsson  <simon@josefsson.org>
99285         * lib/readline.c: Don't include getline.h, the prototype is now
99286         found in stdio.h.
99288 2007-08-23  Jim Meyering  <jim@meyering.net>
99290         Getdelim touchup.
99291         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
99292         around the funlockfile call, since funlockfile never sets errno.
99293         Don't set errno upon failed realloc.
99295 2007-08-22  Eric Blake  <ebb9@byu.net>
99297         Getline touchups.
99298         * lib/getdelim.c (getdelim): Revert regression that required *n to
99299         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
99300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
99301         getdelim, rather than whether implementation is missing.
99302         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
99303         * lib/stdio_.h (getline): Also declare if replacement is
99304         required.
99305         * doc/functions/getdelim.texi: New file.
99306         * doc/functions/getline.texi: Likewise.
99307         * doc/gnulib.texi (Function Substitutes): Add new files.
99308         Reported by Bruno Haible.
99310 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
99312         * users.txt: Add Guile.
99314 2007-08-22  Eric Blake  <ebb9@byu.net>
99316         * tests/test-getdelim.c (main): Use remove, not unlink.
99317         * tests/test-getline.c (main): Likewise.
99319         Move getline and getdelim into stdio.h, per POSIX 200x.
99320         * modules/getline (Files): Remove getline.h.
99321         (Depends-on): Add stdio.
99322         (configure.ac): Add module indicator.
99323         * modules/getdelim (Files): Remove getdelim.h.
99324         (Depends-on): Add stdio.
99325         (configure.ac): Add module indicator.
99326         * modules/stdio (Makefile.am): Work with new indicators.
99327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
99328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
99329         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99330         * lib/getdelim.h: Delete.
99331         * lib/getline.h: Delete.
99332         * lib/stdio_.h (getdelim, getline): Declare.
99333         * modules/getdelim-tests: New module.
99334         * modules/getline-tests: Likewise.
99335         * tests/test-getdelim.c: New file.
99336         * tests/test-getline.c: Likewise.
99337         * NEWS: Document the change.
99338         * lib/getline.c: Update choice of header.
99339         * lib/csharpcomp.c: Likewise.
99340         * lib/getpass.c: Likewise.
99341         * lib/javacomp.c: Likewise.
99342         * lib/javaversion.c: Likewise.
99343         * lib/yesno.c: Likewise.
99344         * lib/getdelim.c: Likewise.
99345         (getdelim): Set errno on failure, and avoid memory leak.
99347 2007-08-19  Bruno Haible  <bruno@clisp.org>
99349         * modules/closein (Depends-on): Add freadahead.
99350         * lib/closein.c: Include freadahead.h.
99351         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
99352         is zero.
99354 2007-08-19  Bruno Haible  <bruno@clisp.org>
99356         * modules/freadahead-tests: New file.
99357         * tests/test-freadahead.sh: New file.
99358         * tests/test-freadahead.c: New file.
99360         * modules/freadahead: New file.
99361         * lib/freadahead.h: New file.
99362         * lib/freadahead.c: New file.
99363         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
99364         fbufmode, fpurge, freadable, fwritable.
99366 2007-08-19  Eric Blake  <ebb9@byu.net>
99368         Test yesno in combination with closein.
99369         * lib/yesno.c (yesno): Document use of stdin.
99370         * modules/yesno-tests (Files): New module.
99371         * tests/test-yesno.c (main): New file.
99372         * tests/test-yesno.sh: Likewise.
99374 2007-08-19  Bruno Haible  <bruno@clisp.org>
99376         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
99377         * lib/fseeko.c (rpl_fseeko): Likewise.
99378         * lib/fseterr.c (fseterr): Likewise.
99380 2007-08-19  Bruno Haible  <bruno@clisp.org>
99382         * tests/test-lseek.c (main): Disable a test for BeOS.
99383         * doc/functions/lseek.texi: Document the BeOS bug.
99385 2007-08-19  Bruno Haible  <bruno@clisp.org>
99386             Eric Blake  <ebb9@byu.net>
99388         * lib/lseek.c: Include <sys/stat.h>.
99389         (rpl_lseek): Add workaround code also for Unix platforms.
99390         Needed for BeOS.
99391         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
99392         * doc/functions/lseek.texi: Document BeOS definiency.
99394 2007-08-18  Bruno Haible  <bruno@clisp.org>
99396         * modules/fstrcmp-tests: New file.
99397         * tests/test-fstrcmp.c: New file.
99399 2007-08-18  Bruno Haible  <bruno@clisp.org>
99401         * modules/fstrcmp: New file, from GNU gettext with modifications.
99402         * lib/fstrcmp.h: New file, from GNU gettext.
99403         * lib/fstrcmp.c: New file, from GNU gettext.
99404         * MODULES.html.sh (String handling): Add fstrcmp.
99406 2007-08-18  Bruno Haible  <bruno@clisp.org>
99408         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
99409         'bool'.
99410         (diag, compareseq): Remove const from the ctxt argument.
99411         (USE_HEURISTIC): Undefine at the end.
99413 2007-08-18  Jim Meyering  <jim@meyering.net>
99415         New file: lib/idcache.h
99416         * NEWS: Mention the addition.
99417         * modules/idcache (Files): Add lib/idcache.h
99418         * lib/idcache.c: Include "idcache.h".
99419         Don't include <sys/types.h>.
99420         Add a FIXME comment.
99421         Move file-scoped "static" declarations to the top.
99422         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
99424 2007-08-17  Bruno Haible  <bruno@clisp.org>
99425         and Paul Eggert  <eggert@cs.ucla.edu>
99427         * MODULES.html.sh: Add diffseq.
99428         * modules/diffseq: New file.
99429         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
99430         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
99432 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99434         Import changes from coreutils for bootstrap script.
99436         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
99438         * build-aux/bootstrap (slurp): Work even in environments where
99439         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
99440         current code does not slurp files whose names start with ".", and
99441         this looks like it might be a troublesome area.
99443         2007-07-11  Jim Meyering  <jim@meyering.net>
99445         If there's a GPL vN copyright comment, require that N == 3.
99447         2007-07-08  Jim Meyering  <jim@meyering.net>
99449         Run the coreutils-specific code only if tests/Makefile.am.in exists.
99450         * build-aux/bootstrap (mam_template): Move definition out of loop.
99452         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
99454         * build-aux/bootstrap (symlink_to_dir): Rename function from
99455         symlink_to_gnulib.  Add a directory parameter.  Update all
99456         callers.
99457         (cp_mark_as_generated): Also check for -- and link to -- files in
99458         gl/.
99460         2007-07-08  Jim Meyering  <jim@meyering.net>
99462         Adapt to deeper hierarchy in gnulib.
99463         * build-aux/bootstrap (symlink_to_dir): If the destination
99464         directory doesn't exist, create it. This is required at least for
99465         "lib/uniwidth/cjk.h".
99467         2007-05-15  Jim Meyering  <jim@meyering.net>
99469         * build-aux/bootstrap: Now that generated Makefile.am files
99470         are no longer under version control, they must be created at
99471         bootstrap time.
99473 2007-08-14  Ben Pfaff  <blp@gnu.org>
99475         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
99477 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99479         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
99480         given the changes below.
99481         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
99482         even on hosts that have padding bits beyond the supported 64.
99484 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99486         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
99487         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
99488         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
99489         depends on it.
99490         (xstrtol_error): Remove.
99491         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
99492         but with a different signature.
99493         (ATTRIBUTE_NORETURN, __attribute__): New macros.
99494         * lib/xstrtol-error.c: Include exitfail.h.
99495         (xstrtol_fatal): New function, with a different signature from the
99496         old xstrtol_error, so that the caller need not worry about passing
99497         in an exit status, or about storage management of the option argument.
99498         (xstrtol_error): Now a static function.  Redo signature to
99499         implement xstrtol_fatal.  Output the correct number of hyphens in
99500         front of the option so that the caller need not worry about
99501         storage management.
99502         (N_): New macro.
99503         (_): Remove; not used now.
99504         * modules/xstrtol: Depend on getopt.
99505         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
99506         of old STRTOL_FATAL_ERROR macro.
99507         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
99508         of test program.
99509         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
99510         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
99512 2007-08-08  Eric Blake  <ebb9@byu.net>
99514         * lib/xstrtol-error.c: Add missing include.
99516         Move xstrtol messages into gnulib domain, when --pobase is used.
99517         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
99518         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
99519         * modules/xstrtol (Files): Distribute new file.
99520         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
99521         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
99522         * tests/test-xstrtol.c: ...into new file.
99523         * tests/test-xstrtoul.c: Also test xstrtoul.
99524         * tests/test-xstrtoimax.c: Also test xstrtoimax.
99525         * tests/test-xstrtoumax.c: Also test xstrtoumax.
99526         * tests/test-xstrtol.sh: Drive the tests.
99527         * tests/test-xstrtoimax.sh: Likewise.
99528         * tests/test-xstrtoumax.sh: Likewise.
99529         * modules/xstrtol-tests: New module.
99530         * modules/xstrtoimax-tests: Likewise.
99531         * modules/xstrtoumax-tests: Likewise.
99533 2007-08-08  Jim Meyering  <jim@meyering.net>
99535         New function: mfile_name_concat.
99536         * lib/filenamecat.c (mfile_name_concat): New function, just like
99537         file_name_concat, but return NULL upon failure rather than exiting
99538         with a diagnostic.
99539         * lib/filenamecat.h: Declare it.
99541 2007-08-07  Bruno Haible  <bruno@clisp.org>
99543         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
99544         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
99545         warning from gcc.
99546         Reported by Eric Blake.
99548 2007-08-07  Simon Josefsson  <simon@josefsson.org>
99550         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
99551         * modules/crypto/arcfour (License): Likewise.
99552         * modules/crypto/des-tests (License): Likewise.
99553         * modules/crypto/gc-arctwo-tests (License): Likewise.
99554         * modules/crypto/gc-des-tests (License): Likewise.
99555         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
99556         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
99557         * modules/crypto/gc-md2-tests (License): Likewise.
99558         * modules/crypto/gc-md4-tests (License): Likewise.
99559         * modules/crypto/gc-md5-tests (License): Likewise.
99560         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
99561         * modules/crypto/gc-rijndael-tests (License): Likewise.
99562         * modules/crypto/gc-sha1-tests (License): Likewise.
99563         * modules/crypto/gc-tests (License): Likewise.
99564         * modules/crypto/hmac-md5 (License): Likewise.
99565         * modules/crypto/hmac-sha1 (License): Likewise.
99566         * modules/crypto/md2-tests (License): Likewise.
99567         * modules/crypto/md4-tests (License): Likewise.
99568         * modules/crypto/md5 (License): Likewise.
99569         * modules/crypto/rijndael (License): Likewise.
99570         * modules/crypto/sha1 (License): Likewise.
99571         * modules/memxor (License): Likewise.
99573 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99574         and Bruno Haible  <bruno@clisp.org>
99576         * NEWS: Describe interface changes to human, xstrtol.
99577         * lib/human.h: Include <xstrtol.h>.
99578         (human_options): Return enum strtol_error, not int.  Remove
99579         bool arg; take int * instead.
99580         * lib/human.c: Don't include "gettext.h".
99581         (_): Remove; no longer used.
99582         Don't include <xstrtol.h>, since human.h does it.
99583         (human_options): Adjust to abovementioned interface changes.
99584         Do not report error to stderr; that's now the caller's
99585         responsibility.
99586         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99587         interface change.
99588         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99589         Str, Argument_type_string.  All uses changed.  Put " argument"
99590         in diagnostics to make them clearer.  Change wording of suffix
99591         message for clarity.
99592         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99593         Argument_type_string.
99594         (STRTOL_FATAL_WARN): Remove; no longer used.
99595         * modules/human (Depends-on): Remove gettext-h.
99597 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99599         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99601 2007-07-31  Bruno Haible  <bruno@clisp.org>
99603         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99604         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99605         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99607 2007-07-31  Bruno Haible  <bruno@clisp.org>
99609         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99610         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99612 2007-07-30  Bruno Haible  <bruno@clisp.org>
99614         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99615         * modules/c-ctype (License): Likewise.
99616         * modules/c-strcase (License): Likewise.
99617         * modules/check-version (License): Likewise.
99618         * modules/iconv (License): Likewise.
99619         * modules/iconv_open (License): Likewise.
99620         * modules/read-file (License): Likewise.
99621         * modules/striconv (License): Likewise.
99622         * modules/strverscmp (License): Likewise.
99623         * modules/vasprintf (License): Likewise.
99624         * modules/crypto/des (License): Likewise.
99625         * modules/crypto/gc (License): Likewise.
99626         * modules/crypto/gc-arcfour (License): Likewise.
99627         * modules/crypto/gc-arctwo (License): Likewise.
99628         * modules/crypto/gc-des (License): Likewise.
99629         * modules/crypto/gc-hmac-md5 (License): Likewise.
99630         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99631         * modules/crypto/gc-md2 (License): Likewise.
99632         * modules/crypto/gc-md4 (License): Likewise.
99633         * modules/crypto/gc-md5 (License): Likewise.
99634         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99635         * modules/crypto/gc-random (License): Likewise.
99636         * modules/crypto/gc-rijndael (License): Likewise.
99637         * modules/crypto/gc-sha1 (License): Likewise.
99638         * modules/crypto/md2 (License): Likewise.
99639         * modules/crypto/md4 (License): Likewise.
99641 2007-07-30  Jim Meyering  <jim@meyering.net>
99643         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99644         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99645         it has valid stat data.  This bug would cause du not to count the
99646         sizes of inaccessible directories.
99647         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99648         in <http://bugzilla.redhat.com/250077>.
99650 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99651             Bruno Haible  <bruno@clisp.org>
99653         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99654         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99655         #include_next, gives a diagnostic about it, but reports no error in
99656         the exit code.
99657         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99659 2007-07-24  Ben Pfaff  <blp@gnu.org>
99661         Improve name: "count-one-bits" is better than "popcount".
99662         * MODULES.html.sh: Update name.
99663         * lib/popcount.h: Renamed lib/count-one-bits.h.
99664         (popcount): Renamed count_one_bits.
99665         (popcountl): Renamed count_one_bits_l.
99666         (popcountll): Renamed count_one_bits_ll.
99667         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99668         * modules/popcount: Renamed module/count-one-bits.
99669         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99670         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99672 2007-07-23  Ben Pfaff  <blp@gnu.org>
99674         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99675         better code generation, and add U to large constants to avoid
99676         warnings, in non-GCC case.
99677         Suggested by Bruno Haible.
99679 2007-07-23  Ben Pfaff  <blp@gnu.org>
99681         * lib/popcount.h: Use verify_true instead of if...abort.
99682         * modules/popcount: Depend on verify module.
99683         Suggested by Jim Meyering.
99685 2007-07-23  Bruno Haible  <bruno@clisp.org>
99687         * gnulib-tool (func_import): Create a .cvsignore file also when the
99688         directory is not yet in CVS but the toplevel directory is. When
99689         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99690         Reported by Karl Berry.
99692 2007-07-22  Ben Pfaff  <blp@gnu.org>
99694         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99695         case.
99696         Suggested by Eric Blake.
99698 2007-07-22  Ben Pfaff  <blp@gnu.org>
99700         New module: popcount.
99701         * MODULES.html.sh: Add popcount.
99702         * modules/popcount: New file.
99703         * modules/popcount-tests: New file.
99704         * tests/test-popcount.c: New file.
99705         * lib/popcount.h: New file.
99706         * m4/popcount.m4: New file.
99708 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99710         * build-aux/announce-gen: Update to GPLv3.
99712         * build-aux/config.guess: Update from config.
99714 2007-07-21  Bruno Haible  <bruno@clisp.org>
99716         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99717         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99719 2007-07-20  Jim Meyering  <jim@meyering.net>
99721         * check-module: Diagnose a self-dependency.
99723 2007-07-19  Bruno Haible  <bruno@clisp.org>
99725         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99726         empty.
99727         Reported by Eric Blake.
99729 2007-07-18  Bruno Haible  <bruno@clisp.org>
99731         * gnulib-tool: New options --po-base, --po-domain.
99732         (func_usage): Document them.
99733         (pobase, po_domain): New variables.
99734         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99735         DEFAULT_TEXT_DOMAIN.
99736         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99737         (func_import): Consider pobase and po_domain. Create a po/ directory.
99738         (func_create_testdir): Set pobase and po_domain to empty.
99739         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99740         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99742 2007-07-18  Bruno Haible  <bruno@clisp.org>
99744         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99745         EXTRA_DIST augmentation for files in build-aux/.
99747 2007-07-16  Bruno Haible  <bruno@clisp.org>
99749         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99750         * modules/getdelim (License): Likewise.
99752 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99754         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99755         * modules/d-type (License): Likewise.
99756         * modules/extensions (License): Likewise.
99757         * modules/fnmatch (License): Likewise.
99758         * modules/fseeko (License): Likewise.
99759         * modules/getaddrinfo (License): Likewise.
99760         * modules/getline (License): Likewise.
99761         * modules/getlogin_r (License): Likewise.
99762         * modules/getpass (License): Likewise.
99763         * modules/gettimeofday (License): Likewise.
99764         * modules/glob (License): Likewise.
99765         * modules/inet_ntop (License): Likewise.
99766         * modules/malloc (License): Likewise.
99767         * modules/malloca (License): Likewise.
99768         * modules/memmem (License): Likewise.
99769         * modules/mempcpy (License): Likewise.
99770         * modules/memset (License): Likewise.
99771         * modules/minmax (License): Likewise.
99772         * modules/mktime (License): Likewise.
99773         * modules/netinet_in (License): Likewise.
99774         * modules/pathmax (License): Likewise.
99775         * modules/poll (License): Likewise.
99776         * modules/regex (License): Likewise.
99777         * modules/snprintf (License): Likewise.
99778         * modules/stdbool (License): Likewise.
99779         * modules/stdint (License): Likewise.
99780         * modules/stdio (License): Likewise.
99781         * modules/strcase (License): Likewise.
99782         * modules/strcasestr (License): Likewise.
99783         * modules/strdup (License): Likewise.
99784         * modules/string (License): Likewise.
99785         * modules/strndup (License): Likewise.
99786         * modules/strnlen (License): Likewise.
99787         * modules/strpbrk (License): Likewise.
99788         * modules/strptime (License): Likewise.
99789         * modules/strsep (License): Likewise.
99790         * modules/sys_select (License): Likewise.
99791         * modules/sys_socket (License): Likewise.
99792         * modules/sys_stat (License): Likewise.
99793         * modules/sys_time (License): Likewise.
99794         * modules/time (License): Likewise.
99795         * modules/time_r (License): Likewise.
99796         * modules/timegm (License): Likewise.
99797         * modules/unistd (License): Likewise.
99798         * modules/vsnprintf (License): Likewise.
99799         * modules/wctype (License): Likewise.
99801 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99803         * modules/argz (License): LGPLv2+.
99805 2007-07-15  Karl Berry  <karl@gnu.org>
99807         * doc/gnulib.texi: revise node structure per new fdl.texi.
99809 2007-07-14  Bruno Haible  <bruno@clisp.org>
99811         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99812         the output file.
99813         * lib/uniname/uninames.h: Regenerated.
99815 2007-07-14  Karl Berry  <karl@gnu.org>
99817         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99818         omitting sectioning and index commands.
99820 2007-07-13  Bruno Haible  <bruno@clisp.org>
99822         New gnulib-tool option --more-symlinks.
99823         * gnulib-tool (func_usage): Document --more-symlinks.
99824         (do_copyrights): New variable.
99825         Recognize option --more-symlinks.
99826         (func_import): Don't add a copyright notice transform to
99827         sed_transform_lib_file if do_copyrights is empty.
99829 2007-07-13  Bruno Haible  <bruno@clisp.org>
99831         * lib/vasnprintf.c (decimal_point_char): Define also if
99832         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99833         && !NEED_PRINTF_DIRECTIVE_A.
99834         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99835         Gary V. Vaughan <gary@gnu.org>.
99837 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99839         * lib/inttypes_.h: Undo previous change, since it was fixed
99840         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99842 2007-07-13  Bruno Haible  <bruno@clisp.org>
99844         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99845         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99847 2007-07-13  Jim Meyering  <jim@meyering.net>
99849         df: Don't fail for Tru64's "file-on-file mount".
99850         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99851         so we fall through and use statfs instead.  Details here:
99852         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99853         Reported by Albert Chin.
99855 2007-07-13  Bruno Haible  <bruno@clisp.org>
99857         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99858         * modules/configmake (License): Likewise.
99859         * modules/gettext (License): Likewise.
99860         * modules/gettext-h (License): Likewise.
99861         * modules/include_next (License): Likewise.
99862         * modules/link-warning (License): Likewise.
99863         * modules/localcharset (License): Likewise.
99864         * modules/localename (License): Likewise.
99865         * modules/lock (License): Likewise.
99866         * modules/relocatable-lib-lgpl (License): Likewise.
99867         * modules/size_max (License): Likewise.
99868         * modules/vasnprintf (License): Likewise.
99869         * modules/wchar (License): Likewise.
99870         * modules/xsize (License): Likewise.
99872 2007-07-13  Bruno Haible  <bruno@clisp.org>
99874         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99875         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99877 2007-07-12  Bruno Haible  <bruno@clisp.org>
99879         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99880         in the modules files.
99882 2007-07-11  Karl Berry  <karl@gnu.org>
99884         * MODULES.html.sh (func_module): use
99885          sed -e '\|^'"${includefile}"'$|d'
99886          instead of /.../d, to avoid errors on $includefile's containing /.
99888 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99890         * gnulib-tool (func_import): Avoid duplication of --avoid
99891         statements
99892         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99893         names to `_' in variable names.
99895 2007-07-10  Eric Blake  <ebb9@byu.net>
99897         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99898         * NEWS: Document this change.
99900 2007-07-08  Bruno Haible  <bruno@clisp.org>
99902         Update to Unicode 5.0.
99903         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99904         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99905         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99906         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99907         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99908         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99909         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99910         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99911         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99912         U+10A3F, U+1D242..U+1D244.
99913         (nonspacing_table_ind): Update.
99914         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99915         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99917 2007-07-08  Bruno Haible  <bruno@clisp.org>
99919         Update to Unicode 5.0.
99920         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99921         code transform. Extend the name index field of unicode_name_to_code and
99922         unicode_code_to_name from 16 to 24 bits.
99923         * lib/uniname/uniname.c (unicode_character_name,
99924         unicode_name_character): Add the range 0x12xxx to the code transform.
99925         * lib/uniname/uninames.h: Regenerated.
99926         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99928 2007-07-07  Bruno Haible  <bruno@clisp.org>
99930         * modules/wcwidth-tests: New file.
99931         * tests/test-wcwidth.c: New file.
99933         Work around MacOS X wcwidth() bug.
99934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99935         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99936         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99937         original wcwidth in non-UTF-8 locales.
99938         * modules/wcwidth (Depends-on): Add localcharset, streq,
99939         uniwidth/width.
99940         * doc/functions/wcwidth.texi: Update.
99942 2007-07-07  Bruno Haible  <bruno@clisp.org>
99944         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99945         (wcwidth): New declaration.
99946         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99947         macros.
99948         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99949         here. Prepare for creating <wchar.h> unconditionally.
99950         * modules/wchar (Depends-on): Add link-warning.
99951         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99952         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99953         * lib/wcwidth.h: Remove file.
99954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99955         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99956         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99957         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99958         (Include): Replace wcwidth.h with <wchar.h>.
99959         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99960         * lib/mbchar.h: Don't include wcwidth.h.
99961         * lib/mbswidth.c: Likewise.
99962         * NEWS: Mention the change.
99964 2007-07-07  Bruno Haible  <bruno@clisp.org>
99966         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99967         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99968         definition with an external declaration.
99969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99970         defined as a function. Remove AC_C_INLINE requirement.
99971         * modules/wcwidth (Files): Add lib/wcwidth.c.
99972         (Makefile.am): Remove redundant statement.
99974 2007-07-07  Bruno Haible  <bruno@clisp.org>
99976         * MODULES.html.sh (Unicode string functions): Add the new modules.
99978         * tests/uniwidth/test-u32-strwidth.c: New file.
99979         * modules/uniwidth/u32-strwidth-tests: New file.
99981         * lib/uniwidth/u32-strwidth.c: New file.
99982         * modules/uniwidth/u32-strwidth: New file.
99984         * tests/uniwidth/test-u16-strwidth.c: New file.
99985         * modules/uniwidth/u16-strwidth-tests: New file.
99987         * lib/uniwidth/u16-strwidth.c: New file.
99988         * modules/uniwidth/u16-strwidth: New file.
99990         * tests/uniwidth/test-u8-strwidth.c: New file.
99991         * modules/uniwidth/u8-strwidth-tests: New file.
99993         * lib/uniwidth/u8-strwidth.c: New file.
99994         * modules/uniwidth/u8-strwidth: New file.
99996         * tests/uniwidth/test-u32-width.c: New file.
99997         * modules/uniwidth/u32-width-tests: New file.
99999         * lib/uniwidth/u32-width.c: New file.
100000         * modules/uniwidth/u32-width: New file.
100002         * tests/uniwidth/test-u16-width.c: New file.
100003         * modules/uniwidth/u16-width-tests: New file.
100005         * lib/uniwidth/u16-width.c: New file.
100006         * modules/uniwidth/u16-width: New file.
100008         * tests/uniwidth/test-u8-width.c: New file.
100009         * modules/uniwidth/u8-width-tests: New file.
100011         * lib/uniwidth/u8-width.c: New file.
100012         * modules/uniwidth/u8-width: New file.
100014         * tests/uniwidth/test-uc_width.c: New file.
100015         * modules/uniwidth/width-tests: New file.
100017         * lib/uniwidth/width.c: New file, from GNU libiconv.
100018         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
100019         * modules/uniwidth/width: New file.
100021         * lib/uniwidth.h: New file, from GNU libiconv.
100022         * modules/uniwidth/base: New file.
100024 2007-07-07  Bruno Haible  <bruno@clisp.org>
100026         * lib/uniname.h: New file, from GNU gettext.
100027         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
100028         * lib/uniname/uninames.h: New file, from GNU gettext.
100029         * lib/uniname/uniname.c: New file, from GNU gettext.
100030         * tests/uniname/test-uninames.sh: New file.
100031         * tests/uniname/test-uninames.c: New file, from GNU gettext.
100032         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
100033         * modules/uniname/base: New file.
100034         * modules/uniname/uniname: New file.
100035         * modules/uniname/uniname-tests: New file.
100036         * MODULES.html.sh (Unicode string functions): Add the new modules.
100038 2007-07-06  Bruno Haible  <bruno@clisp.org>
100040         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
100042 2007-07-06  Bruno Haible  <bruno@clisp.org>
100044         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
100045         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
100046         includes <cygwin/sys_time.h> which includes <sys/select.h> which
100047         include <sys/time.h>.
100048         Reported by Eric Blake.
100050 2007-07-06  Eric Blake  <ebb9@byu.net>
100052         Fix testing canonicalize on cygwin.
100053         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100054         Revert patch from 2007-06-19.
100055         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
100056         canonicalize module is also in use.
100057         * tests/test-canonicalize.c: New file.
100058         * tests/test-canonicalize.sh: Likewise.
100059         * modules/canonicalize-tests: Likewise.
100061 2007-07-06  Jim Meyering  <jim@meyering.net>
100063         * lib/getugroups.c (getugroups): Detect getgrent failure.
100064         Adjust comment to reflect reality: this function may return -1.
100066 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
100068         * build-aux/bootstrap (TP_URL,get_translations): Update to use
100069         the new TP address.
100070         (usage): Fix typo
100071         (gnulib_mk): New variable.
100073 2007-07-05  Jim Meyering  <jim@meyering.net>
100075         Don't let endgrent clobber errno, no matter how improbable.
100076         * lib/getugroups.c (getugroups): Save and restore errno around
100077         endgrent call.
100079         Close the group DB even when failing with 2^31 or more members.
100080         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
100082 2007-07-04  Jim Meyering  <jim@meyering.net>
100084         * lib/getugroups.h: New file.
100085         * lib/getugroups.c: Include "getugroups.h".
100086         Remove uses of "register" keyword.
100087         Move local variable, "cp", down into scope where used.
100088         Give "username" parameter the "const" attribute.
100089         * modules/getugroups (Files): Add lib/getugroups.h
100091 2007-07-04  Karl Berry  <karl@gnu.org>
100093         * MODULES.html.sh (func_all_modules): Complete rename of
100094         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
100096 2007-07-02  Bruno Haible  <bruno@clisp.org>
100098         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
100099         mode, when inttypes.h comes from gnulib.
100100         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
100102 2007-07-02  Simon Josefsson  <simon@josefsson.org>
100104         * NEWS: Mention lgpl module name change.
100106         * modules/lgpl-2.1: Renamed from lgpl.
100108         * NEWS: Mention gpl module name change.
100110         * modules/gpl-3.0: New file, based on gpl-2.0.
100112         * modules/gpl-2.0: Renamed from gpl.
100114         * modules/gpl: Fix filename, doc/gpl.texi is now found at
100115         doc/gpl-2.0.texi.
100117 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100119         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
100120         #define __STDC_LIMIT_MACROS temporarily while including
100121         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
100122         Problem reported by Joel E. Denny in
100123         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
100125 2007-07-01  Bruno Haible  <bruno@clisp.org>
100127         * lib/unistdio.h: New file.
100128         * lib/unistdio/u-asnprintf.h: New file.
100129         * lib/unistdio/u-asprintf.h: New file.
100130         * lib/unistdio/u-printf-args.c: New file.
100131         * lib/unistdio/u-printf-args.h: New file.
100132         * lib/unistdio/u-printf-parse.h: New file.
100133         * lib/unistdio/u-snprintf.h: New file.
100134         * lib/unistdio/u-sprintf.h: New file.
100135         * lib/unistdio/u-vasprintf.h: New file.
100136         * lib/unistdio/u-vsnprintf.h: New file.
100137         * lib/unistdio/u-vsprintf.h: New file.
100138         * lib/unistdio/ulc-asnprintf.c: New file.
100139         * lib/unistdio/ulc-asprintf.c: New file.
100140         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
100141         * lib/unistdio/ulc-printf-parse.c: New file.
100142         * lib/unistdio/ulc-snprintf.c: New file.
100143         * lib/unistdio/ulc-sprintf.c: New file.
100144         * lib/unistdio/ulc-vasnprintf.c: New file.
100145         * lib/unistdio/ulc-vasprintf.c: New file.
100146         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
100147         * lib/unistdio/ulc-vsnprintf.c: New file.
100148         * lib/unistdio/ulc-vsprintf.c: New file.
100149         * lib/unistdio/u8-asnprintf.c: New file.
100150         * lib/unistdio/u8-asprintf.c: New file.
100151         * lib/unistdio/u8-printf-parse.c: New file.
100152         * lib/unistdio/u8-snprintf.c: New file.
100153         * lib/unistdio/u8-sprintf.c: New file.
100154         * lib/unistdio/u8-vasnprintf.c: New file.
100155         * lib/unistdio/u8-vasprintf.c: New file.
100156         * lib/unistdio/u8-vsnprintf.c: New file.
100157         * lib/unistdio/u8-vsprintf.c: New file.
100158         * lib/unistdio/u8-u8-asnprintf.c: New file.
100159         * lib/unistdio/u8-u8-asprintf.c: New file.
100160         * lib/unistdio/u8-u8-snprintf.c: New file.
100161         * lib/unistdio/u8-u8-sprintf.c: New file.
100162         * lib/unistdio/u8-u8-vasnprintf.c: New file.
100163         * lib/unistdio/u8-u8-vasprintf.c: New file.
100164         * lib/unistdio/u8-u8-vsnprintf.c: New file.
100165         * lib/unistdio/u8-u8-vsprintf.c: New file.
100166         * lib/unistdio/u16-asnprintf.c: New file.
100167         * lib/unistdio/u16-asprintf.c: New file.
100168         * lib/unistdio/u16-printf-parse.c: New file.
100169         * lib/unistdio/u16-snprintf.c: New file.
100170         * lib/unistdio/u16-sprintf.c: New file.
100171         * lib/unistdio/u16-vasnprintf.c: New file.
100172         * lib/unistdio/u16-vasprintf.c: New file.
100173         * lib/unistdio/u16-vsnprintf.c: New file.
100174         * lib/unistdio/u16-vsprintf.c: New file.
100175         * lib/unistdio/u16-u16-asnprintf.c: New file.
100176         * lib/unistdio/u16-u16-asprintf.c: New file.
100177         * lib/unistdio/u16-u16-snprintf.c: New file.
100178         * lib/unistdio/u16-u16-sprintf.c: New file.
100179         * lib/unistdio/u16-u16-vasnprintf.c: New file.
100180         * lib/unistdio/u16-u16-vasprintf.c: New file.
100181         * lib/unistdio/u16-u16-vsnprintf.c: New file.
100182         * lib/unistdio/u16-u16-vsprintf.c: New file.
100183         * lib/unistdio/u32-asnprintf.c: New file.
100184         * lib/unistdio/u32-asprintf.c: New file.
100185         * lib/unistdio/u32-printf-parse.c: New file.
100186         * lib/unistdio/u32-snprintf.c: New file.
100187         * lib/unistdio/u32-sprintf.c: New file.
100188         * lib/unistdio/u32-vasnprintf.c: New file.
100189         * lib/unistdio/u32-vasprintf.c: New file.
100190         * lib/unistdio/u32-vsnprintf.c: New file.
100191         * lib/unistdio/u32-vsprintf.c: New file.
100192         * lib/unistdio/u32-u32-asnprintf.c: New file.
100193         * lib/unistdio/u32-u32-asprintf.c: New file.
100194         * lib/unistdio/u32-u32-snprintf.c: New file.
100195         * lib/unistdio/u32-u32-sprintf.c: New file.
100196         * lib/unistdio/u32-u32-vasnprintf.c: New file.
100197         * lib/unistdio/u32-u32-vasprintf.c: New file.
100198         * lib/unistdio/u32-u32-vsnprintf.c: New file.
100199         * lib/unistdio/u32-u32-vsprintf.c: New file.
100200         * tests/unistdio/test-ulc-asnprintf1.c: New file.
100201         * tests/unistdio/test-ulc-asnprintf1.h: New file.
100202         * tests/unistdio/test-ulc-printf1.h: New file.
100203         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
100204         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
100205         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
100206         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
100207         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
100208         * tests/unistdio/test-ulc-vasprintf1.c: New file.
100209         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
100210         * tests/unistdio/test-ulc-vsprintf1.c: New file.
100211         * tests/unistdio/test-u8-asnprintf1.c: New file.
100212         * tests/unistdio/test-u8-asnprintf1.h: New file.
100213         * tests/unistdio/test-u8-printf1.h: New file.
100214         * tests/unistdio/test-u8-vasnprintf1.c: New file.
100215         * tests/unistdio/test-u8-vasnprintf2.c: New file.
100216         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
100217         * tests/unistdio/test-u8-vasnprintf3.c: New file.
100218         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
100219         * tests/unistdio/test-u8-vasprintf1.c: New file.
100220         * tests/unistdio/test-u8-vsnprintf1.c: New file.
100221         * tests/unistdio/test-u8-vsprintf1.c: New file.
100222         * tests/unistdio/test-u16-asnprintf1.c: New file.
100223         * tests/unistdio/test-u16-asnprintf1.h: New file.
100224         * tests/unistdio/test-u16-printf1.h: New file.
100225         * tests/unistdio/test-u16-vasnprintf1.c: New file.
100226         * tests/unistdio/test-u16-vasnprintf2.c: New file.
100227         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
100228         * tests/unistdio/test-u16-vasnprintf3.c: New file.
100229         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
100230         * tests/unistdio/test-u16-vasprintf1.c: New file.
100231         * tests/unistdio/test-u16-vsnprintf1.c: New file.
100232         * tests/unistdio/test-u16-vsprintf1.c: New file.
100233         * tests/unistdio/test-u32-asnprintf1.c: New file.
100234         * tests/unistdio/test-u32-asnprintf1.h: New file.
100235         * tests/unistdio/test-u32-printf1.h: New file.
100236         * tests/unistdio/test-u32-vasnprintf1.c: New file.
100237         * tests/unistdio/test-u32-vasnprintf2.c: New file.
100238         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
100239         * tests/unistdio/test-u32-vasnprintf3.c: New file.
100240         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
100241         * tests/unistdio/test-u32-vasprintf1.c: New file.
100242         * tests/unistdio/test-u32-vsnprintf1.c: New file.
100243         * tests/unistdio/test-u32-vsprintf1.c: New file.
100244         * modules/unistdio/base: New file.
100245         * modules/unistdio/u-printf-args: New file.
100246         * modules/unistdio/ulc-asnprintf: New file.
100247         * modules/unistdio/ulc-asprintf: New file.
100248         * modules/unistdio/ulc-fprintf: New file.
100249         * modules/unistdio/ulc-printf-parse: New file.
100250         * modules/unistdio/ulc-snprintf: New file.
100251         * modules/unistdio/ulc-sprintf: New file.
100252         * modules/unistdio/ulc-vasnprintf: New file.
100253         * modules/unistdio/ulc-vasprintf: New file.
100254         * modules/unistdio/ulc-vfprintf: New file.
100255         * modules/unistdio/ulc-vsnprintf: New file.
100256         * modules/unistdio/ulc-vsprintf: New file.
100257         * modules/unistdio/u8-asnprintf: New file.
100258         * modules/unistdio/u8-asprintf: New file.
100259         * modules/unistdio/u8-printf-parse: New file.
100260         * modules/unistdio/u8-snprintf: New file.
100261         * modules/unistdio/u8-sprintf: New file.
100262         * modules/unistdio/u8-vasnprintf: New file.
100263         * modules/unistdio/u8-vasprintf: New file.
100264         * modules/unistdio/u8-vsnprintf: New file.
100265         * modules/unistdio/u8-vsprintf: New file.
100266         * modules/unistdio/u8-u8-asnprintf: New file.
100267         * modules/unistdio/u8-u8-asprintf: New file.
100268         * modules/unistdio/u8-u8-snprintf: New file.
100269         * modules/unistdio/u8-u8-sprintf: New file.
100270         * modules/unistdio/u8-u8-vasnprintf: New file.
100271         * modules/unistdio/u8-u8-vasprintf: New file.
100272         * modules/unistdio/u8-u8-vsnprintf: New file.
100273         * modules/unistdio/u8-u8-vsprintf: New file.
100274         * modules/unistdio/u16-asnprintf: New file.
100275         * modules/unistdio/u16-asprintf: New file.
100276         * modules/unistdio/u16-printf-parse: New file.
100277         * modules/unistdio/u16-snprintf: New file.
100278         * modules/unistdio/u16-sprintf: New file.
100279         * modules/unistdio/u16-vasnprintf: New file.
100280         * modules/unistdio/u16-vasprintf: New file.
100281         * modules/unistdio/u16-vsnprintf: New file.
100282         * modules/unistdio/u16-vsprintf: New file.
100283         * modules/unistdio/u16-u16-asnprintf: New file.
100284         * modules/unistdio/u16-u16-asprintf: New file.
100285         * modules/unistdio/u16-u16-snprintf: New file.
100286         * modules/unistdio/u16-u16-sprintf: New file.
100287         * modules/unistdio/u16-u16-vasnprintf: New file.
100288         * modules/unistdio/u16-u16-vasprintf: New file.
100289         * modules/unistdio/u16-u16-vsnprintf: New file.
100290         * modules/unistdio/u16-u16-vsprintf: New file.
100291         * modules/unistdio/u32-asnprintf: New file.
100292         * modules/unistdio/u32-asprintf: New file.
100293         * modules/unistdio/u32-printf-parse: New file.
100294         * modules/unistdio/u32-snprintf: New file.
100295         * modules/unistdio/u32-sprintf: New file.
100296         * modules/unistdio/u32-vasnprintf: New file.
100297         * modules/unistdio/u32-vasprintf: New file.
100298         * modules/unistdio/u32-vsnprintf: New file.
100299         * modules/unistdio/u32-vsprintf: New file.
100300         * modules/unistdio/u32-u32-asnprintf: New file.
100301         * modules/unistdio/u32-u32-asprintf: New file.
100302         * modules/unistdio/u32-u32-snprintf: New file.
100303         * modules/unistdio/u32-u32-sprintf: New file.
100304         * modules/unistdio/u32-u32-vasnprintf: New file.
100305         * modules/unistdio/u32-u32-vasprintf: New file.
100306         * modules/unistdio/u32-u32-vsnprintf: New file.
100307         * modules/unistdio/u32-u32-vsprintf: New file.
100308         * modules/unistdio/ulc-asnprintf-tests: New file.
100309         * modules/unistdio/ulc-vasnprintf-tests: New file.
100310         * modules/unistdio/ulc-vasprintf-tests: New file.
100311         * modules/unistdio/ulc-vsnprintf-tests: New file.
100312         * modules/unistdio/ulc-vsprintf-tests: New file.
100313         * modules/unistdio/u8-asnprintf-tests: New file.
100314         * modules/unistdio/u8-vasnprintf-tests: New file.
100315         * modules/unistdio/u8-vasprintf-tests: New file.
100316         * modules/unistdio/u8-vsnprintf-tests: New file.
100317         * modules/unistdio/u8-vsprintf-tests: New file.
100318         * modules/unistdio/u16-asnprintf-tests: New file.
100319         * modules/unistdio/u16-vasnprintf-tests: New file.
100320         * modules/unistdio/u16-vasprintf-tests: New file.
100321         * modules/unistdio/u16-vsnprintf-tests: New file.
100322         * modules/unistdio/u16-vsprintf-tests: New file.
100323         * modules/unistdio/u32-asnprintf-tests: New file.
100324         * modules/unistdio/u32-vasnprintf-tests: New file.
100325         * modules/unistdio/u32-vasprintf-tests: New file.
100326         * modules/unistdio/u32-vsnprintf-tests: New file.
100327         * modules/unistdio/u32-vsprintf-tests: New file.
100328         * MODULES.html.sh (Unicode string functions): Add the new modules.
100330 2007-07-01  Bruno Haible  <bruno@clisp.org>
100332         * lib/sprintf.c (sprintf): Limit the available length estimation,
100333         to avoid address wraparound.
100334         * lib/vsprintf.c (vsprintf): Likewise.
100335         * modules/sprintf-posix (Dependencies): Add stdint.
100336         * modules/vsprintf-posix (Dependencies): Likewise.
100338 2007-07-01  Bruno Haible  <bruno@clisp.org>
100340         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
100341         Windows PATH as well. Conservative double-quoting. Comments.
100343 2007-07-01  Bruno Haible  <bruno@clisp.org>
100344             Eric Blake  <ebb9@byu.net>
100345             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100347         * gnulib-tool (self_abspathname): Fix algorithm to cope with
100348         empty components in $PATH, denoting '.'.
100350 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100352         * gnulib-tool: Fix indentation.
100353         (func_create_megatestdir): Likewise.
100354         Report by Bruno Haible.
100356 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100358         Sync from Automake.
100359         * build-aux/gnupload: Fix shell portability issues with for loops.
100360         Report by Karl Berry.
100362 2007-06-29  Simon Josefsson  <simon@josefsson.org>
100364         * build-aux/maint.mk (POURL): Use translationproject.org.
100366 2007-06-27  Simon Josefsson  <simon@josefsson.org>
100367             Bruno Haible  <bruno@clisp.org>
100369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
100370         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
100371         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
100372         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
100373         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
100375 2007-06-27  Bruno Haible  <bruno@clisp.org>
100377         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
100378         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
100380 2007-06-26  Karl Berry  <karl@gnu.org>
100382         * MODULES.html.sh: remove xreadlink-with-size.
100384 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100386         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
100387         method that I hope also handles the double-include problem noted
100388         by Bruno Haible in
100389         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
100391 2007-06-23  Bruno Haible  <bruno@clisp.org>
100393         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100394         Don't let the 'mostlyclean' target fail if the last subdirectory could
100395         not be removed.
100396         Reported by Karl Berry.
100398 2007-06-23  Bruno Haible  <bruno@clisp.org>
100400         * gnulib-tool (echo): Add a speedier workaround for ksh.
100401         * tests/test-echo.sh: Likewise.
100403 2007-06-23  Bruno Haible  <bruno@clisp.org>
100405         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
100406         * tests/test-echo.sh: Likewise.
100408 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100410         * gnulib-tool (IFS): Initialize early, so we don't set it to
100411         empty later.
100412         (self_abspathname): Rewrite algorithm to set it, reindent.
100413         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
100414         (func_create_megatestdir): Merge some sed scripts.
100416 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100418         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
100419         exposed by Sun Studio 11 cc on Solaris 8.
100421 2007-06-22  Bruno Haible  <bruno@clisp.org>
100423         * gnulib-tool (echo): Ensure the echo primitive does not interpret
100424         backslashes.
100425         * tests/test-echo.sh: New file.
100427 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100429         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
100430         simplify `sed_replace_build_aux' scripts, they are portable but
100431         echoing them with `echo' is not.
100432         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
100434 2007-06-21  Karl Berry  <karl@gnu.org>
100436         * config/srclist.txt: guess we can't handle the licenses via
100437         srclist at the moment.
100439 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100441         * MODULES.html.sh: Add include_next.
100442         * modules/include_next: New file.
100444 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
100447         INCLUDE_NEXT.
100448         (gl_CHECK_NEXT_HEADERS): New macro.
100449         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
100450         the obsolescent gl_ABSOLUTE_HEADER.
100451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
100452         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
100453         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
100454         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
100455         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
100456         * m4/math_h.m4 (gl_MATH_H): Likewise.
100457         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
100458         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
100459         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
100460         * m4/stdint.m4 (gl_STDINT_H): Likewise.
100461         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
100462         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
100463         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
100464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
100465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
100466         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
100467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
100468         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
100469         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
100470         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
100471         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
100472         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100473         * m4/inttypes.m4 (gl_INTTYPES_H): Define
100474         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
100475         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
100476         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
100477         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
100478         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
100479         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
100480         * lib/float_.h: Likewise.
100481         * lib/inttypes_.h: Likewise.
100482         * lib/math_.h: Likewise.
100483         * lib/search_.h: Likewise.
100484         * lib/signal_.h: Likewise.
100485         * lib/stdint_.h: Likewise.
100486         * lib/stdio_.h: Likewise.
100487         * lib/stdlib_.h: Likewise.
100488         * lib/string_.h: Likewise.
100489         * lib/sys_stat_.h: Likewise.
100490         * lib/sys_time_.h: Likewise.
100491         * lib/time_.h: Likewise.
100492         * lib/unistd_.h: Likewise.
100493         * lib/wchar_.h: Likewise.
100494         * lib/wctype_.h: Likewise.
100495         * lib/dirent_.h: Likewise.
100496         * lib/iconv_.h: Likewise.
100497         * lib/locale_.h: Likewise.
100498         * lib/netinet_in_.h: Likewise.
100499         * lib/sys_select_.h: Likewise.
100500         * lib/sys_socket_.h: Likewise.
100501         * lib/sysexits_.h: Likewise.
100502         * modules/fcntl (Depends-on): Depend on include_next, not
100503         absolute_header.
100504         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
100505         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
100506         * modules/fchdir: Likewise.
100507         * modules/float: Likewise.
100508         * modules/iconv_open: Likewise.
100509         * modules/inttypes: Likewise.
100510         * modules/locale: Likewise.
100511         * modules/math: Likewise.
100512         * modules/netinet_in: Likewise.
100513         * modules/search: Likewise.
100514         * modules/signal: Likewise.
100515         * modules/stdint: Likewise.
100516         * modules/stdio: Likewise.
100517         * modules/stdlib: Likewise.
100518         * modules/string: Likewise.
100519         * modules/sys_select: Likewise.
100520         * modules/sys_socket: Likewise.
100521         * modules/sys_stat: Likewise.
100522         * modules/sys_time: Likewise.
100523         * modules/sysexits: Likewise.
100524         * modules/time: Likewise.
100525         * modules/unistd: Likewise.
100526         * modules/wchar: Likewise.
100527         * modules/wctype: Likewise.
100528         * modules/sys_stat: Change maintainer to "all".
100529         * modules/unistd: Likewise.
100531 2007-06-20  Karl Berry  <karl@gnu.org>
100533         * config/srclist.txt: track www changes in license files.
100535 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
100537         * build-aux/bootstrap: Remove stray dot.
100538         Make sure build_aux settings are honored when linking
100539         gnulib_extra_files.
100541 2007-06-19  Eric Blake  <ebb9@byu.net>
100543         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100544         Allow compilation on cygwin.
100546 2007-06-19  Jim Meyering  <jim@meyering.net>
100548         xreadlink-with-size: Remove module.  No longer used.
100549         Ex-callers now use xreadlink or mreadlink-with-size.
100550         * modules/xreadlink-with-size: Remove module.
100551         * lib/xreadlink-with-size.c: Remove file.
100552         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
100553         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
100554         just before the function definition *is* accurate.
100556         Eliminate one way canonicalize_filename_mode could exit.
100557         * lib/canonicalize.c (canonicalize_filename_mode):
100558         Use mreadlink_with_size, not xreadlink_with_size.
100560 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
100562         Detect porting problems to FreeBSD/arm, which has time_t wider than
100563         long int.  Original problem reported for GNU diff by Xin Li in
100564         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
100565         * modules/getdate (Depends-on): Add intprops, verify.
100566         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
100567         is an integer type no wider than long int.
100569 2007-06-18  Jim Meyering  <jim@meyering.net>
100571         New module: mreadlink-with-size.
100572         * MODULES.html.sh: Add mreadlink-with-size.
100573         * modules/mreadlink-with-size: New module
100574         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
100575         not xreadlink-with-size.
100576         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
100578 2007-06-16  Bruno Haible  <bruno@clisp.org>
100580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
100581         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
100582         Reported by Gary V. Vaughan <gary@gnu.org>.
100584 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
100586         Revamp lchown so that it lives in unistd.h where it belongs.
100587         * lib/lchown.h: Remove.
100588         * lib/dirchownmod.c: Don't include lib/lchown.h.
100589         * lib/fchownat.c: Likewise.
100590         * lib/openat.c: Likewise.
100591         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100592         does not follow symlinks.
100593         (EOPNOTSUPP): Define if not defined.
100594         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100595         is defined to 0.
100596         (lchown): New decl.
100597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100598         Do not check for lchown decl.
100599         Set REPLACE_LCHOWN.
100600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100601         REPLACE_LCHOWN.
100602         * modules/chown: Make it clear it follows symlinks.
100603         * modules/lchown: Make it clear it doesn't follow symlinks.
100604         (Files): Remove lib/lchown.h
100605         (Depends-on): Add unistd.
100606         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100607         (Include): Include <unistd.h>, not "lchown.h".
100608         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100609         REPLACE_LCHOWN.
100611 2007-06-15  Jim Meyering  <jim@meyering.net>
100613         Change license (GPL to LGPL) of fsusage and dependents.
100614         * modules/fsusage (License): Change to LGPL.
100615         * modules/full-read (License): Likewise.
100616         * modules/full-write (License): Likewise.
100617         * modules/safe-read (License): Likewise.
100618         * modules/safe-write (License): Likewise.
100620 2007-06-14  Ben Pfaff  <blp@gnu.org>
100622         Missing part of allocsa -> malloca transition.
100623         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100624         gl_MALLOCA.
100626 2007-06-12  Bruno Haible  <bruno@clisp.org>
100628         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100629         to ia64, x86_64, i386.
100630         Reported by Eric Blake.
100632 2007-06-12  Bruno Haible  <bruno@clisp.org>
100634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100635         cross-compiling to x86_64.
100637 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100639         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100640         glitch reported by Ralf Wildenhues in
100641         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100643         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100644         Vin Shelton.
100646 2007-06-11  Bruno Haible  <bruno@clisp.org>
100648         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100649         replacement string.
100650         Reported by Eric Blake.
100652 2007-06-10  Bruno Haible  <bruno@clisp.org>
100654         Prepare vasnprintf code for use with Unicode strings.
100655         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100656         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100657         TYPE_U32_STRING.
100658         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100659         a_u32_string variants.
100660         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100661         * lib/printf-args.c: Don't include config.h and the specification
100662         header if PRINTF_FETCHARGS is already defined.
100663         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100664         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100665         TYPE_U16_STRING, TYPE_U32_STRING.
100666         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100667         u16_directive, u16_directives, u32_directive, u32_directives): New
100668         types.
100669         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100670         New declarations.
100671         * lib/printf-parse.c: Don't include config.h and the specification
100672         header if PRINTF_PARSE is already defined. Eliminate the set of
100673         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100674         them now. Include c-ctype.h.
100675         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100676         directive and CHAR_T_ONLY_ASCII.
100677         * lib/vasnprintf.c: Don't include config.h and the specification header
100678         if VASNPRINTF is already defined.
100679         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100680         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100681         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100682         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100683         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100684         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100685         code accordingly.
100686         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100687         pad_ourselves also in this case, with the 'c' and 's' directives, and
100688         with a different notion of "width".
100689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100691 2007-06-10  Bruno Haible  <bruno@clisp.org>
100693         * modules/unistr/u32-mbsnlen: New file.
100694         * lib/unistr/u32-mbsnlen.c: New file.
100696         * modules/unistr/u16-mbsnlen: New file.
100697         * lib/unistr/u16-mbsnlen.c: New file.
100699         * modules/unistr/u8-mbsnlen: New file.
100700         * lib/unistr/u8-mbsnlen.c: New file.
100702         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100703         declarations.
100705 2007-06-10  Bruno Haible  <bruno@clisp.org>
100707         * lib/string_.h (mbsnlen): New declaration.
100708         * lib/mbsnlen.c: New file.
100709         * m4/mbsnlen.m4: New file.
100710         * modules/mbsnlen: New file.
100711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100712         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100713         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100715 2007-06-10  Bruno Haible  <bruno@clisp.org>
100717         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100719 2007-06-10  Bruno Haible  <bruno@clisp.org>
100721         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100722         * lib/mbuiter.h: Likewise.
100724 2007-06-10  Bruno Haible  <bruno@clisp.org>
100726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100727         declaration.
100729 2007-06-10  Karl Berry  <karl@gnu.org>
100731         * config/srclist.txt: remove gettext entries, Bruno prefers
100732         to update individually.
100734 2007-06-10  Bruno Haible  <bruno@clisp.org>
100736         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100737         'maxlen'. Ensure only length + width bytes are allocated, not
100738         length + 1 + width.
100740 2007-06-09  Bruno Haible  <bruno@clisp.org>
100742         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100743         (CHAR_T): Remove macro.
100744         (VASNPRINTF): Update.
100746 2007-06-09  Bruno Haible  <bruno@clisp.org>
100748         * MODULES.html.sh (Unicode string functions): Add the new modules.
100750         * modules/uniconv/u32-conv-to-enc: New file.
100751         * lib/uniconv/u32-conv-to-enc.c: New file.
100752         * modules/uniconv/u32-conv-to-enc-tests: New file.
100753         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100755         * modules/uniconv/u16-conv-to-enc: New file.
100756         * lib/uniconv/u16-conv-to-enc.c: New file.
100757         * lib/uniconv/u-conv-to-enc.h: New file.
100758         * modules/uniconv/u16-conv-to-enc-tests: New file.
100759         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100761         * modules/uniconv/u8-conv-to-enc: New file.
100762         * lib/uniconv/u8-conv-to-enc.c: New file.
100763         * modules/uniconv/u8-conv-to-enc-tests: New file.
100764         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100766         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100767         u32_conv_to_encoding): New declarations.
100769 2007-06-09  Bruno Haible  <bruno@clisp.org>
100771         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100773 2007-06-09  Bruno Haible  <bruno@clisp.org>
100775         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100776         * modules/malloca: Renamed from modules/allocsa, updated.
100777         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100778         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100779         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100780         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100781         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100782         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100783         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100784         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100785         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100786         * modules/c-strcasestr (Depends-on): Update.
100787         * lib/c-strcasestr.c: Update.
100788         * modules/c-strstr (Depends-on): Update.
100789         * lib/c-strstr.c: Update.
100790         * modules/canonicalize-lgpl (Depends-on): Update.
100791         * lib/canonicalize-lgpl.c: Update.
100792         * modules/clean-temp (Depends-on): Update.
100793         * lib/clean-temp.c: Update.
100794         * modules/csharpcomp (Depends-on): Update.
100795         * lib/csharpcomp.c: Update.
100796         * modules/csharpexec (Depends-on): Update.
100797         * lib/csharpexec.c: Update.
100798         * modules/javacomp (Depends-on): Update.
100799         * lib/javacomp.c: Update.
100800         * modules/javaexec (Depends-on): Update.
100801         * lib/javaexec.c: Update.
100802         * modules/mbscasestr (Depends-on): Update.
100803         * lib/mbscasestr.c: Update.
100804         * modules/mbsstr (Depends-on): Update.
100805         * lib/mbsstr.c: Update.
100806         * modules/setenv (Depends-on): Update.
100807         * lib/setenv.c: Update.
100808         * modules/strcasestr (Depends-on): Update.
100809         * lib/strcasestr.c: Update.
100810         * modules/striconveha (Depends-on): Update.
100811         * lib/striconveha.c: Update.
100812         * modules/relocatable-prog-wrapper (Files): Update.
100813         * lib/relocwrapper.c: Update.
100814         * build-aux/install-reloc: Update.
100815         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100817 2007-06-08  Bruno Haible  <bruno@clisp.org>
100819         Port to uClibc.
100820         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100821         * lib/fpurge.c (fpurge): Likewise.
100822         * lib/freading.c (freading): Likewise.
100823         * lib/fseeko.c (rpl_fseeko): Likewise.
100824         * lib/fseterr.c (fseterr): Likewise.
100825         * lib/fwriting.c (fwriting): Likewise.
100826         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100828 2007-06-08  Bruno Haible  <bruno@clisp.org>
100830         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100831         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100832         * modules/gettext (Files): Add m4/intlmacosx.m4.
100834 2007-06-07  Bruno Haible  <bruno@clisp.org>
100836         * modules/localename-tests: New file.
100837         * tests/test-localename.c: New file.
100839         New module 'localename'.
100840         * lib/localename.h: New file.
100841         * lib/localename.c: New file, from GNU gettext.
100842         * m4/localename.m4: New file.
100843         * modules/localename: New file.
100845 2007-06-07  Bruno Haible  <bruno@clisp.org>
100847         Work around the lack of <wchar.h> on some builds of uClibc.
100848         * doc/headers/wchar.texi: Update.
100849         * lib/wchar_.h: Include <wchar.h> only if it exists.
100850         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100851         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100852         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100853         doesn't exist.
100854         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100855         * modules/mbfile (Depends-on): Add wchar.
100856         * modules/mbiter (Depends-on): Likewise.
100857         * modules/mbuiter (Depends-on): Likewise.
100858         Reported by Simon Josefsson.
100860 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100862         Work around problem reported by Steven M. Schweda in
100863         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100864         Tru64 5.1B with the Compaq compiler environment installed declares
100865         an 'isblank' function but does not define it in the C library.
100866         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100867         * lib/regex_internal.h (isblank): Likewise.
100868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100869         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100871 2007-06-05  Bruno Haible  <bruno@clisp.org>
100873         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100874         ia64.
100875         * modules/printf-safe: New file.
100876         * modules/fprintf-posix (Depends-on): Add printf-safe.
100877         * modules/printf-posix (Depends-on): Likewise.
100878         * modules/snprintf-posix (Depends-on): Likewise.
100879         * modules/sprintf-posix (Depends-on): Likewise.
100880         * modules/vasnprintf-posix (Depends-on): Likewise.
100881         * modules/vasprintf-posix (Depends-on): Likewise.
100882         * modules/vfprintf-posix (Depends-on): Likewise.
100883         * modules/vprintf-posix (Depends-on): Likewise.
100884         * modules/vsnprintf-posix (Depends-on): Likewise.
100885         * modules/vsprintf-posix (Depends-on): Likewise.
100886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100887         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100888         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100889         "no" on i386, x86_64, ia64.
100890         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100891         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100892         on i386, x86_64, ia64.
100893         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100894         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100895         on i386, x86_64, ia64.
100896         * tests/test-vasnprintf-posix.c: Include float.h.
100897         (LDBL80_WORDS): New macro.
100898         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100899         on i386, x86_64, ia64.
100900         * tests/test-vasprintf-posix.c: Include float.h.
100901         (LDBL80_WORDS): New macro.
100902         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100903         on i386, x86_64, ia64.
100904         * tests/test-snprintf-posix.c: Include float.h.
100905         * tests/test-sprintf-posix.c: Likewise.
100906         * tests/test-vsnprintf-posix.c: Likewise.
100907         * tests/test-vsprintf-posix.c: Likewise.
100909 2007-06-05  Bruno Haible  <bruno@clisp.org>
100911         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100913         non-IEEE numbers on i386, x86_64, ia64.
100914         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100915         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100916         * tests/test-isnanl.h: Include float.h.
100917         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100919 2007-06-05  Bruno Haible  <bruno@clisp.org>
100921         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100922         also the %a / %A. Handle the %a / %A code before this extra handling.
100924 2007-06-05  Bruno Haible  <bruno@clisp.org>
100926         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100927         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100929 2007-06-05  Bruno Haible  <bruno@clisp.org>
100931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100932         typo in variable name.
100934 2007-06-05  Eric Blake  <ebb9@byu.net>
100936         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100937         Reported by Simon Josefsson.
100939 2007-06-04  Bruno Haible  <bruno@clisp.org>
100941         Avoid test failures on some PowerPC platforms.
100942         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100943         Define differently for PowerPC.
100944         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100945         Reported by Gary V. Vaughan <gary@gnu.org>.
100947 2007-06-02  Bruno Haible  <bruno@clisp.org>
100949         Fix test-stdint failure on FreeBSD/ia64.
100950         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100951         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100952         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100953         * doc/headers/stdint.texi: Update.
100955 2007-06-01  Bruno Haible  <bruno@clisp.org>
100957         * tests/test-binary-io.c (main): Pass a third argument to open().
100958         Reported by Gary V. Vaughan <gary@gnu.org>.
100960 2007-06-01  Bruno Haible  <bruno@clisp.org>
100962         * doc/functions/frexpl.texi: Update for mingw.
100964 2007-06-01  Bruno Haible  <bruno@clisp.org>
100966         * tests/test-lseek.c (main): Disable test of errno for invalid third
100967         argument.
100968         * doc/functions/lseek.texi: Update.
100969         Reported by Gary V. Vaughan <gary@gnu.org>.
100971 2007-05-28  Bruno Haible  <bruno@clisp.org>
100973         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100975 2007-05-31  Eric Blake  <ebb9@byu.net>
100977         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100978         cross compiling.
100980 2007-05-30  Eric Blake  <ebb9@byu.net>
100981         and Bruno Haible  <bruno@clisp.org>
100983         Work around mingw test failures exposed by m4-1.4.9b.
100984         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100985         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100986         moment.
100988 2007-05-30  Bruno Haible  <bruno@clisp.org>
100990         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100991         assuming that they are closed. Needed on HP-UX 11.
100993 2007-05-29  Bruno Haible  <bruno@clisp.org>
100995         Fix a problem with #include_next.
100996         * lib/dirent_.h: Split the double-inclusion guard.
100997         * lib/fcntl_.h: Likewise.
100998         * lib/float_.h: Likewise.
100999         * lib/iconv_.h: Likewise.
101000         * lib/inttypes_.h: Likewise.
101001         * lib/locale_.h: Likewise.
101002         * lib/math_.h: Likewise.
101003         * lib/netinet_in_.h: Likewise.
101004         * lib/search_.h: Likewise.
101005         * lib/signal_.h: Likewise.
101006         * lib/stdint_.h: Likewise.
101007         * lib/stdio_.h: Likewise.
101008         * lib/stdlib_.h: Likewise.
101009         * lib/string_.h: Likewise.
101010         * lib/sys_select_.h: Likewise.
101011         * lib/sys_socket_.h: Likewise.
101012         * lib/sys_stat_.h: Likewise.
101013         * lib/sys_time_.h: Likewise.
101014         * lib/sysexits_.h: Likewise.
101015         * lib/time_.h: Likewise.
101016         * lib/unistd_.h: Likewise.
101017         * lib/wchar_.h: Likewise.
101018         * lib/wctype_.h: Likewise.
101020 2007-05-29  Bruno Haible  <bruno@clisp.org>
101022         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
101023         for the moment.
101025 2007-05-29  Bruno Haible  <bruno@clisp.org>
101027         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
101028         invocation.
101029         Reported by Eric Blake.
101031 2007-05-29  Bruno Haible  <bruno@clisp.org>
101033         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
101034         compiling case.
101036 2007-05-29  Eric Blake  <ebb9@byu.net>
101037             Bruno Haible  <bruno@clisp.org>
101039         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
101040         cross compiles.
101042 2007-05-28  Eric Blake  <ebb9@byu.net>
101044         * modules/closein-tests (test_closein_LDADD): Support test on
101045         cygwin with libtool.
101047 2007-05-28  Bruno Haible  <bruno@clisp.org>
101049         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
101050         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101051         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101052         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101053         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101054         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101055         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101056         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101057         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101059 2007-05-28  Eric Blake  <ebb9@byu.net>
101061         Unconditionally include <config.h> in unit tests.
101062         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
101063         * tests/test-allocsa.c, tests/test-arcfour.c,
101064         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
101065         tests/test-array_list.c, tests/test-array_oset.c,
101066         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
101067         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
101068         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
101069         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
101070         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
101071         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
101072         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
101073         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
101074         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
101075         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
101076         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
101077         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
101078         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
101079         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
101080         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
101081         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
101082         test-md5.c, test-memmem.c, test-printf-posix.c,
101083         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
101084         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
101085         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
101086         test-strcasestr.c, test-striconv.c, test-striconveh.c,
101087         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
101088         test-vasnprintf-posix2.c, test-vasnprintf.c,
101089         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
101090         test-vfprintf-posix.c, test-vprintf-posix.c,
101091         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
101092         test-xvasprintf.c: Likewise.
101094 2007-05-28  Bruno Haible  <bruno@clisp.org>
101096         * gnulib-tool (func_import): Remember the --with-tests command-line
101097         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
101098         Reported by Eric Blake.
101100 2007-05-28  Bruno Haible  <bruno@clisp.org>
101102         * modules/ftell-tests: New file.
101103         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
101104         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
101106         * lib/ftell.c: New file.
101107         * modules/ftell: New file.
101108         * m4/ftell.m4: New file.
101109         * doc/functions/ftell.texi: Update.
101110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
101111         REPLACE_FTELL.
101112         * lib/stdio_.h (rpl_ftell): New declaration.
101113         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
101114         REPLACE_FTELL.
101116 2007-05-28  Eric Blake  <ebb9@byu.net>
101118         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
101120 2007-05-28  Bruno Haible  <bruno@clisp.org>
101122         * modules/fseek-tests: New file.
101123         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
101124         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
101126         * lib/fseek.c: New file.
101127         * modules/fseek: New file.
101128         * m4/fseek.m4: New file.
101129         * doc/functions/fseek.texi: Update.
101130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
101131         REPLACE_FSEEK.
101132         * lib/stdio_.h (rpl_fseek): New declaration.
101133         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
101134         REPLACE_FSEEK.
101136 2007-05-28  Bruno Haible  <bruno@clisp.org>
101138         * lib/stdio_.h (fflush): More comments.
101140 2007-05-28  Bruno Haible  <bruno@clisp.org>
101142         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
101143         runtime test.
101145 2007-05-28  Eric Blake  <ebb9@byu.net>
101147         Improve lseek module.
101148         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
101149         * lib/unistd_.h (lseek): Scale back link warning message.
101150         * tests/test-lseek.c: Beef up test.
101151         * tests/test-lseek.sh: Exercise more facets of lseek.
101152         Reported by Bruno Haible.
101154 2007-05-28  Bruno Haible  <bruno@clisp.org>
101156         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
101157         to define.
101159 2007-05-27  Bruno Haible  <bruno@clisp.org>
101161         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
101163 2007-05-27  Bruno Haible  <bruno@clisp.org>
101165         * modules/openmp: New file.
101166         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
101167         Noah Misch.
101169 2007-05-26  Bruno Haible  <bruno@clisp.org>
101171         * modules/chdir-long (Depends-on): Add fchdir.
101172         * modules/chdir-safer (Depends-on): Likewise.
101173         * modules/fts (Depends-on): Likewise.
101174         * modules/fts-lgpl (Depends-on): Likewise.
101175         * modules/openat (Depends-on): Likewise.
101176         * modules/savewd (Depends-on): Likewise.
101178 2007-05-24  Eric Blake  <ebb9@byu.net>
101180         Fix lseek on mingw.
101181         * modules/lseek: New module.
101182         * m4/lseek.m4: New file.
101183         * lib/lseek.c: New file.
101184         * modules/lseek-tests: New file.
101185         * tests/test-lseek.c: New file.
101186         * tests/test-lseek.sh: New file.
101187         * MODULES.html.sh: Document lseek module.
101188         * modules/fflush (Depends-on): Add lseek, fseeko.
101189         * modules/fseeko (Depends-on): Likewise.
101190         * modules/ftello (Depends-on): Likewise.
101191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
101192         broken.
101193         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
101194         broken.
101195         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
101196         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
101197         * lib/ftello.c (rpl_ftello): Likewise.
101198         * tests/test-fseeko.c (main): Test this.
101199         * tests/test-fseeko.sh: Likewise.
101200         * tests/test-ftello.c (main): Likewise.
101201         * tests/test-ftello.sh: Likewise.
101202         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
101203         implies replacing fseek.
101204         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
101205         HAVE_FTELLO.
101206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
101207         * modules/unistd (Makefile.am): Likewise.
101208         * lib/unistd_.h (lseek): Declare a replacement.
101209         * doc/functions/lseek.texi (lseek): Document this fix.
101210         * doc/functions/fseek.texi (fseek): Likewise.
101211         * doc/functions/ftell.texi (ftell): Likewise.
101213 2007-05-24  Bruno Haible  <bruno@clisp.org>
101215         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
101216         in the printed representation of a NaN.
101217         * tests/test-vasprintf-posix.c (test_function): Likewise.
101218         * tests/test-snprintf-posix.h (test_function): Likewise.
101219         * tests/test-sprintf-posix.h (test_function): Likewise.
101220         Reported by Eric Blake.
101222 2007-05-23  Eric Blake  <ebb9@byu.net>
101224         Fix fseeko/ftello on cygwin 1.5.24.
101225         * doc/functions/fseeko.texi (fseeko): Document the fix.
101226         * doc/functions/ftello.texi (ftello): Document the fix.
101227         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
101228         * doc/functions/stdout.text (stdout): New file.
101229         * doc/functions/stderr.text (stderr): New file.
101230         * doc/gnulib.texi (Function Substitutes): Use new files.
101231         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
101232         prior to 1.7.0.
101233         * tests/test-ftello.c (main): Likewise for ftello.
101234         * tests/test-fseeko.sh: New file.
101235         * tests/test-ftello.sh: New file.
101236         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
101237         with seekable stdin.
101238         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
101239         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
101240         (gl_REPLACE_FSEEKO): New macro.
101241         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
101242         * modules/fseeko (Files): Distribute fseeko.c.
101243         * modules/ftello (Files): Distribute ftello.c.
101244         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
101245         mode.
101246         * lib/ftello.c (rpl_ftello): New file.
101247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
101248         fseeko, ftello.
101249         (gl_STDIN_LARGE_OFFSET): New macro.
101250         * modules/stdio (Makefile.am): Perform the replacement.
101251         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
101253 2007-05-23  Bruno Haible  <bruno@clisp.org>
101255         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
101256         GNULIB_POSIXCHECK is defined.
101258 2007-05-21  Bruno Haible  <bruno@clisp.org>
101260         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
101261         Check also the output for NaN arguments. When cross-compiling, guess
101262         no on IRIX.
101263         * lib/vasnprintf.c: Update comments.
101264         * tests/test-vasnprintf-posix.c (strisnan): New function.
101265         (test_function): Use it.
101266         * tests/test-vasprintf-posix.c (strisnan): New function.
101267         (test_function): Use it.
101268         * tests/test-snprintf-posix.h (strisnan): New function.
101269         (test_function): Use it.
101270         * tests/test-sprintf-posix.h (strisnan): New function.
101271         (test_function): Use it.
101272         Reported by Eric Blake.
101274 2007-05-20  Bruno Haible  <bruno@clisp.org>
101276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
101277         numbers that fails on BeOS.
101278         * doc/functions/frexpl.texi: Update.
101280 2007-05-20  Jim Meyering  <jim@meyering.net>
101282         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
101283         forced upon us by glibc-2.6.
101285 2007-05-20  Bruno Haible  <bruno@clisp.org>
101287         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
101288         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
101289         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
101290         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
101291         NEED_PRINTF_INFINITE.
101292         (is_infinitel): New function.
101293         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
101294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
101295         gl_PREREQ_VASNPRINTF_INFINITE.
101296         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
101297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101298         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
101299         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
101300         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
101301         gl_PREREQ_VASNPRINTF_INFINITE.
101302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101309         * doc/functions/fprintf.texi: Update.
101310         * doc/functions/printf.texi: Update.
101311         * doc/functions/snprintf.texi: Update.
101312         * doc/functions/sprintf.texi: Update.
101313         * doc/functions/vfprintf.texi: Update.
101314         * doc/functions/vprintf.texi: Update.
101315         * doc/functions/vsnprintf.texi: Update.
101316         * doc/functions/vsprintf.texi: Update.
101318 2007-05-20  Bruno Haible  <bruno@clisp.org>
101320         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
101321         was not found in libc.
101322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
101324 2007-05-20  Bruno Haible  <bruno@clisp.org>
101326         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101327         printed as "-nan" instead of "nan".
101328         * tests/test-vasprintf-posix.c (test_function): Likewise.
101329         * tests/test-snprintf-posix.h (test_function): Likewise.
101330         * tests/test-sprintf-posix.h (test_function): Likewise.
101331         Needed for HP-UX 11.
101333 2007-05-20  Jim Meyering  <jim@meyering.net>
101335         Fix buggy test for the fchownat-deref bug.
101336         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
101337         symlink required for the run-test.  Without it, this test would
101338         always declare that fchownat doesn't work, and client code would
101339         unnecessarily use the replacement function with fixed libc.
101340         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
101341         Reported by Greg Schafer.
101343 2007-05-19  Bruno Haible  <bruno@clisp.org>
101345         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
101346         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
101347         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
101348         Needed for IRIX 6.5 and Solaris 2.5.1.
101350 2007-05-19  Bruno Haible  <bruno@clisp.org>
101352         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
101353         (test_function): Skip tests involving -0.0 on platforms where
101354         -0.0 = 0.0.
101355         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
101356         (test_function): Skip tests involving -0.0 on platforms where
101357         -0.0 = 0.0.
101358         * tests/test-snprintf-posix.h (have_minus_zero): New function.
101359         (test_function): Skip tests involving -0.0 on platforms where
101360         -0.0 = 0.0.
101361         * tests/test-sprintf-posix.h (have_minus_zero): New function.
101362         (test_function): Skip tests involving -0.0 on platforms where
101363         -0.0 = 0.0.
101364         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
101365         tests.
101366         * tests/test-printf-posix.h (test_function): Likewise.
101367         * tests/test-printf-posix.output: Remove all -0.0 related results.
101368         Needed for IRIX 6.5.
101370 2007-05-19  Bruno Haible  <bruno@clisp.org>
101372         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101373         printed as "nan0x7fffffff" instead of "nan".
101374         * tests/test-vasprintf-posix.c (test_function): Likewise.
101375         * tests/test-snprintf-posix.h (test_function): Likewise.
101376         * tests/test-sprintf-posix.h (test_function): Likewise.
101377         * tests/test-fprintf-posix.h (NaN): Remove macro.
101378         (test_function): Remove all NaN related tests.
101379         * tests/test-printf-posix.h (NaN): Remove macro.
101380         (test_function): Remove all NaN related tests.
101381         * tests/test-printf-posix.output: Remove all NaN related results.
101382         Needed for IRIX 6.5.
101384 2007-05-19  Bruno Haible  <bruno@clisp.org>
101386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
101387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
101389 2007-05-19  Bruno Haible  <bruno@clisp.org>
101391         * lib/float_.h: New file.
101392         * m4/float_h.m4: New file.
101393         * modules/float: New file.
101394         * modules/isnanl (Dependencies): Add float.
101395         * modules/isnanl-nolibm (Dependencies): Likewise.
101396         * modules/mathl (Dependencies): Likewise.
101397         * modules/printf-frexpl (Dependencies): Likewise.
101398         * modules/signbit (Dependencies): Likewise.
101399         * modules/vasnprintf (Dependencies): Likewise.
101400         * doc/headers/float.texi: Update.
101402 2007-05-19  Jim Meyering  <jim@meyering.net>
101404         * lib/utimens.c (gl_futimens): Rename from futimens,
101405         now that glibc-2.6 declares futimens.
101406         * lib/utimens.h: Likewise.
101408 2007-05-19  Bruno Haible  <bruno@clisp.org>
101410         Avoid test failures on mingw.
101411         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
101412         * tests/test-printf-posix.sh: Likewise.
101413         * tests/test-vfprintf-posix.sh: Likewise.
101414         * tests/test-vprintf-posix.sh: Likewise.
101416 2007-05-19  Bruno Haible  <bruno@clisp.org>
101418         Fix *printf result for NaN, Inf, -0.0 on mingw.
101419         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
101420         * lib/vasnprintf.c: Include math.h and isnan.h.
101421         (is_infinite_or_zero): New function.
101422         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
101423         values in the %f, %F, %e, %E, %g, %G directives.
101424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
101425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101426         gl_PRINTF_INFINITE and test its result. Invoke
101427         gl_PREREQ_VASNPRINTF_INFINITE.
101428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101435         * doc/functions/fprintf.texi: Update.
101436         * doc/functions/printf.texi: Update.
101437         * doc/functions/snprintf.texi: Update.
101438         * doc/functions/sprintf.texi: Update.
101439         * doc/functions/vfprintf.texi: Update.
101440         * doc/functions/vprintf.texi: Update.
101441         * doc/functions/vsnprintf.texi: Update.
101442         * doc/functions/vsprintf.texi: Update.
101444 2007-05-19  Bruno Haible  <bruno@clisp.org>
101446         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
101447         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
101448         Instead of multiplying with 10^k, set extra_zeroes to k.
101449         (scale10_round_long_double): Remove function.
101451 2007-05-18  Bruno Haible  <bruno@clisp.org>
101453         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
101454         introduced on 2007-05-06.
101456 2007-05-18  Bruno Haible  <bruno@clisp.org>
101458         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
101459         %g directives.
101460         * tests/test-vasprintf-posix.c (test_function): Likewise.
101461         * tests/test-snprintf-posix.h (test_function): Likewise.
101462         * tests/test-sprintf-posix.h (test_function): Likewise.
101464 2007-05-18  Bruno Haible  <bruno@clisp.org>
101466         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
101467         (strmatch): New function.
101468         (test_function): Test the %f directive on numbers of various exponents.
101469         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
101470         (strmatch): New function.
101471         (test_function): Test the %f directive on numbers of various exponents.
101472         * tests/test-snprintf-posix.h (strmatch): New function.
101473         (test_function): Test the %f directive on numbers of various exponents.
101474         * tests/test-sprintf-posix.h (strmatch): New function.
101475         (test_function): Test the %f directive on numbers of various exponents.
101476         * tests/test-snprintf-posix.c (SIZEOF): New macro.
101477         * tests/test-sprintf-posix.c (SIZEOF): New macro.
101478         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
101479         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
101481 2007-05-18  Bruno Haible  <bruno@clisp.org>
101483         Add support for 'long double' number output.
101484         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
101485         * lib/vasnprintf.c: Include math.h and float+.h.
101486         (mp_limb_t): New type.
101487         (GMP_LIMB_BITS): New macro.
101488         (mp_twolimb_t): New type.
101489         (GMP_TWOLIMB_BITS): New macro.
101490         (mpn_t): New type.
101491         (multiply, divide, convert_to_decimal, decode_long_double,
101492         scale10_round_long_double, scale10_round_decimal_long_double,
101493         floorlog10l): New functions.
101494         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
101495         for the %f, %F, %e, %E, %g, %G directives.
101496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
101497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101498         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
101499         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
101500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101507         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
101508         * modules/snprintf-posix (Depends-on): Likewise.
101509         * modules/sprintf-posix (Depends-on): Likewise.
101510         * modules/vasnprintf-posix (Depends-on): Likewise.
101511         * modules/vasprintf-posix (Depends-on): Likewise.
101512         * modules/vfprintf-posix (Depends-on): Likewise.
101513         * modules/vsnprintf-posix (Depends-on): Likewise.
101514         * modules/vsprintf-posix (Depends-on): Likewise.
101515         * modules/vasnprintf (Files): Add lib/float+.h.
101516         * doc/functions/fprintf.texi: Update.
101517         * doc/functions/printf.texi: Update.
101518         * doc/functions/snprintf.texi: Update.
101519         * doc/functions/sprintf.texi: Update.
101520         * doc/functions/vfprintf.texi: Update.
101521         * doc/functions/vprintf.texi: Update.
101522         * doc/functions/vsnprintf.texi: Update.
101523         * doc/functions/vsprintf.texi: Update.
101525 2007-05-18  Bruno Haible  <bruno@clisp.org>
101527         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
101529 2007-05-18  Bruno Haible  <bruno@clisp.org>
101531         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
101532         for printing 64-bit integers. Needed for mingw.
101534 2007-05-18  Bruno Haible  <bruno@clisp.org>
101536         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101537         gl_FUNC_FREXPL_WORKS.
101538         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
101540 2007-05-18  Bruno Haible  <bruno@clisp.org>
101542         * modules/frexpl-nolibm-tests: New file.
101544         * modules/frexpl-nolibm: New file.
101545         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
101547 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101549         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
101550         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101551         GCC 4.2, which otherwise issues a lot of warnings.
101552         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
101553         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
101554         Likewise.
101555         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
101556         * modules/iconv_open (iconv.h): Likewise.
101557         * modules/locale (locale.h): Likewise.
101558         * modules/netinet_in (netinet/in.h): Likewise.
101559         * modules/sys_select (sys_select.h): Likewise.
101560         * modules/sys_socket (sys/socket.h): Likewise.
101561         * modules/sys_stat (sys/stat.h): Likewise.
101562         * modules/sysexits (sysexits.h): Likewise.
101563         * modules/unistd (unistd.h): Likewise.
101565 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101567         * modules/closein-tests (Makefile.am): Distribute
101568         `test-closein.sh'.
101570 2007-05-17  Bruno Haible  <bruno@clisp.org>
101572         * tests/test-printf-posix.output: Renamed from
101573         tests/test-fprintf-posix.out.
101574         * modules/fprintf-posix-tests: Update.
101575         * modules/printf-posix-tests: Update.
101576         * modules/vfprintf-posix-tests: Update.
101577         * modules/vprintf-posix-tests: Update.
101578         * tests/test-fprintf-posix.sh: Update.
101579         * tests/test-printf-posix.sh: Update.
101580         * tests/test-vfprintf-posix.sh: Update.
101581         * tests/test-vprintf-posix.sh: Update.
101582         Reported by Ralf Wildenhues.
101584 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101586         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101587         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101588         GCC 4.2, which otherwise issues a lot of warnings.
101589         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101590         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101591         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101592         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101593         it should no longer be needed.
101594         * lib/string_.h: Likewise.
101595         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101596         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101597         * modules/inttypes (inttypes.h): Likewise.
101598         * modules/math (math.h): Likewise.
101599         * modules/search (search.h): Likewise.
101600         * modules/signal (signal.h): Likewise.
101601         * modules/stdint (stdint.h): Likewise.
101602         * modules/stdio (stdio.h): Likewise.
101603         * modules/stdlib (stdlib.h): Likewise.
101604         * modules/string (string.h): Likewise.
101605         * modules/sys_time (sys/time.h): Likewise.
101606         * modules/time (time.h): Likewise.
101607         * modules/wchar (wchar.h): Likewise.
101608         * modules/wctype (wtype.h): Likewise.
101610 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101612         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101614 2007-05-13  Bruno Haible  <bruno@clisp.org>
101616         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101617         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101618         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101619         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101620         (gl_PREREQ_STRTOK_R): Don't require it here.
101622 2007-05-13  Bruno Haible  <bruno@clisp.org>
101624         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101625         when used in C++ mode.
101627 2007-05-12  Bruno Haible  <bruno@clisp.org>
101629         * lib/linebuffer.h: Tweak doc.
101630         * lib/linebuffer.c: Likewise.
101632 2007-05-12  James Youngman  <jay@gnu.org>
101634         * lib/linebuffer.c (readlinebuffer_delim): New function,
101635         like readlinebuffer, but use a caller-specified delimiter.
101636         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101637         as the delimiter.
101638         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101640 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101642         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101643         * modules/openat (Files): Remove openat-die.c.
101644         (Depends-on): Add openat-die.
101645         * modules/openat-die: New module.
101647 2007-05-06  Bruno Haible  <bruno@clisp.org>
101649         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101650         Update with info about Cygwin.
101651         * doc/functions/fprintf.texi: Update.
101652         * doc/functions/printf.texi: Update.
101653         * doc/functions/snprintf.texi: Update.
101654         * doc/functions/sprintf.texi: Update.
101655         * doc/functions/vfprintf.texi: Update.
101656         * doc/functions/vprintf.texi: Update.
101657         * doc/functions/vsnprintf.texi: Update.
101658         * doc/functions/vsprintf.texi: Update.
101659         Reported by Eric Blake.
101661 2007-05-06  Bruno Haible  <bruno@clisp.org>
101663         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101664         padding ourselves for the floating-point directives.
101665         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101668         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101669         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101677         * tests/test-snprintf-posix.h (test_function): Also check the width
101678         and some flags in the %f directive.
101679         * tests/test-sprintf-posix.h (test_function): Likewise.
101680         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101681         * tests/test-vasprintf-posix.c (test_function): Likewise.
101682         * doc/functions/fprintf.texi: Update.
101683         * doc/functions/printf.texi: Update.
101684         * doc/functions/snprintf.texi: Update.
101685         * doc/functions/sprintf.texi: Update.
101686         * doc/functions/vfprintf.texi: Update.
101687         * doc/functions/vprintf.texi: Update.
101688         * doc/functions/vsnprintf.texi: Update.
101689         * doc/functions/vsprintf.texi: Update.
101691 2007-05-06  Bruno Haible  <bruno@clisp.org>
101693         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101694         pass the ' flag character to sprintf or snprintf.
101695         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101698         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101699         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101707         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101708         flag.
101709         * tests/test-sprintf-posix.h (test_function): Likewise.
101710         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101711         * tests/test-vasprintf-posix.c (test_function): Likewise.
101712         * doc/functions/fprintf.texi: Update.
101713         * doc/functions/printf.texi: Update.
101714         * doc/functions/snprintf.texi: Update.
101715         * doc/functions/sprintf.texi: Update.
101716         * doc/functions/vfprintf.texi: Update.
101717         * doc/functions/vprintf.texi: Update.
101718         * doc/functions/vsnprintf.texi: Update.
101719         * doc/functions/vsprintf.texi: Update.
101721 2007-05-01  Bruno Haible  <bruno@clisp.org>
101723         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101725 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101727         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101728         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101730 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101733         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101734         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101736 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101738         * lib/argp-help.c (struct hol_entry): New member `ord'.
101739         (HOL_ENTRY_PTRCMP): Use ord for comparison
101740         (hol_sort): Initialize ord.
101742 2007-05-01  Bruno Haible  <bruno@clisp.org>
101744         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101745         Reported by Eric Blake.
101746         * doc/gnulib.texi (Function Substitutes): Update.
101748 2007-05-01  Bruno Haible  <bruno@clisp.org>
101750         * doc/functions.texi: Remove file, now redundant through
101751         doc/functions/*.texi.
101753 2007-05-01  Bruno Haible  <bruno@clisp.org>
101755         * modules/argp (Depends-on): Add sleep.
101757 2007-05-01  Bruno Haible  <bruno@clisp.org>
101759         * modules/sleep-tests: New file.
101760         * tests/test-sleep.c: New file.
101762         * modules/sleep: New file.
101763         * lib/sleep.c: New file.
101764         * m4/sleep.m4: New file.
101765         * lib/unistd_.h (sleep): New declaration.
101766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101767         HAVE_SLEEP.
101768         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101769         * doc/functions/sleep.texi: Document the sleep module.
101771 2007-05-01  Bruno Haible  <bruno@clisp.org>
101773         * lib/sigprocmask.h: Remove file.
101774         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101775         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101777         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101778         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101779         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101780         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101781         HAVE_SIGSET_T as a shell variable.
101782         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101783         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101784         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101785         (Depends-on): Add signal. Remove verify.
101786         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101787         (Include): Mention <signal.h> instead of sigprocmask.h.
101788         * NEWS: Mention the change.
101789         * lib/fatal-signal.c: Don't include sigprocmask.h.
101791 2007-05-01  Bruno Haible  <bruno@clisp.org>
101793         * modules/signal: New file.
101794         * lib/signal_.h: New file.
101795         * m4/signal_h.m4: New file.
101797 2007-05-01  Bruno Haible  <bruno@clisp.org>
101799         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101800         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101801         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101802         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101804 2007-05-01  Bruno Haible  <bruno@clisp.org>
101806         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101807         configure time.
101808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101809         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101810         * modules/sys_stat (Makefile.am): Substitute their values into
101811         sys/stat.h.
101813 2007-05-01  Bruno Haible  <bruno@clisp.org>
101815         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101816         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101817         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101819 2007-05-01  Bruno Haible  <bruno@clisp.org>
101821         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101822         'assert' module here.
101824 2007-05-01  Bruno Haible  <bruno@clisp.org>
101826         * doc/functions/*.texi: New files.
101827         * doc/functions/google-ranking.txt: New file.
101828         * doc/gnulib.texi (Function Substitutes): New chapter.
101829         (ctime, inet_ntoa): Remove sections.
101830         * doc/ctime.texi: Remove file.
101831         * doc/inet_ntoa.texi: Remove file.
101832         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101833         dependencies.
101834         (%.info): New rule, specifying a --reference-limit.
101836 2007-05-01  Bruno Haible  <bruno@clisp.org>
101838         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101840 2007-05-01  Bruno Haible  <bruno@clisp.org>
101842         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101843         the portability of 'mkdir' to mingw systems.
101845 2007-05-01  Bruno Haible  <bruno@clisp.org>
101847         * doc/headers/google-ranking.txt: New file.
101849 2007-04-30  Eric Blake  <ebb9@byu.net>
101851         Prefer fseeko to fseek.
101852         * modules/getpass (Depends-on): Add fseeko.
101853         * lib/getpass.c (getpass): Use fseeko, not fseek.
101855 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101857         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101858         assumes the sorting is stable, while most qsort implementations
101859         are not.  Use argument addresses to ensure they never compare as
101860         equal.
101862         * tests/test-argp-2.sh (usage-indent test): Fix output
101863         (func_compare): Restore diff options
101864         * tests/test-argp.c: Restore #include "progname.h"
101866 2007-04-29  Bruno Haible  <bruno@clisp.org>
101868         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101870         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101872         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101873         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101874         (TESTS, check_PROGRAMS): Add test-snprintf.
101875         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101876         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101877         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101878         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101879         assertions that fail on HP-UX, OSF/1, or IRIX.
101880         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101882 2007-04-29  Bruno Haible  <bruno@clisp.org>
101884         * MODULES.html.sh (posix_functions): Remove 'contents'.
101886 2007-04-29  Karl Berry  <karl@gnu.org>
101888         * config/srclist.txt (gendocs_template_min): new entry.
101890 2007-04-29  Bruno Haible  <bruno@clisp.org>
101892         Work around fpurge bug on BSD systems.
101893         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101895         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101896         fpurge to rpl_fpurge if the system already has this function.
101897         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101898         the case where the system already has this function. Correct invariants
101899         on BSD systems.
101900         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101901         BSD systems.
101903 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101905         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101906         proposed by Sven Verdoolaege.
101908         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101909         options.
101910         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101911         (usage and help tests): Update
101913 2007-04-29  Bruno Haible  <bruno@clisp.org>
101915         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101916         Print more information in case of failure. Disable a test on BeOS.
101918 2007-04-29  Bruno Haible  <bruno@clisp.org>
101920         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101921         This helps debugging on systems on which no gdb is available.
101923 2007-04-29  Bruno Haible  <bruno@clisp.org>
101925         * lib/freading.h: Improve comments.
101926         * lib/fwriting.h: Likewise.
101927         * tests/test-freading.c (main): Don't check freading immediately after
101928         repositioning. Needed for glibc.
101930 2007-04-29  Bruno Haible  <bruno@clisp.org>
101932         * lib/freading.c (freading): Trivial simplification.
101934 2007-04-28  Bruno Haible  <bruno@clisp.org>
101936         * tests/test-fwriting.c (main): Also test the interaction between
101937         fflush and fwriting.
101938         * modules/fwriting-tests (Depends-on): Add fflush.
101940         * tests/test-freading.c (main): Also test the interaction between
101941         fflush and freading.
101942         * modules/freading-tests (Depends-on): Add fflush.
101944 2007-04-28  Bruno Haible  <bruno@clisp.org>
101946         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101947         fseeko and ftello.
101948         Suggested by Eric Blake.
101950 2007-04-28  Jim Meyering  <jim@meyering.net>
101952         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101953         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101954         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101956 2007-04-27  Eric Blake  <ebb9@byu.net>
101958         * doc/headers/assert.texi (assert.h): Document assert module use.
101960 2007-04-27  Bruno Haible  <bruno@clisp.org>
101962         * doc/headers/*.texi: New files.
101963         * doc/gnulib.texi (Header File Substitutes): New chapter.
101964         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101965         dependencies.
101966         (standards.info ,standards.html, standards.dvi): Update dependencies.
101967         (mostlyclean, clean): New targets.
101969 2007-04-27  Bruno Haible  <bruno@clisp.org>
101971         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101972         * modules/sysexits (Files, Makefile.am): Update.
101974         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101975         * modules/sys_socket (Files, Makefile.am): Update.
101977         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101978         * modules/sys_stat (Files, Makefile.am): Update.
101980 2007-04-27  Eric Blake  <ebb9@byu.net>
101982         * lib/freading.h: Improve comments.
101983         * lib/fwriting.h: Likewise.
101984         * lib/fflush.c: Likewise.
101986         Fix closein for mingw.
101987         * modules/closein-tests: Add tests for closein.
101988         * tests/test-closein.c: New file.
101989         * tests/test-closein.sh: Likewise.
101990         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101991         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101993 2007-04-27  Bruno Haible  <bruno@clisp.org>
101995         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101996         version is < 6.
101997         * lib/math_.h [__DECC]: Likewise.
101998         * lib/stdio_.h [__DECC]: Likewise.
101999         * lib/stdlib_.h [__DECC]: Likewise.
102000         * lib/string_.h [__DECC]: Likewise.
102001         * lib/time_.h [__DECC]: Likewise.
102002         * lib/wchar_.h [__DECC]: Likewise.
102003         * lib/wctype_.h [__DECC]: Likewise.
102005 2007-04-27  Bruno Haible  <bruno@clisp.org>
102007         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
102009 2007-04-27  Bruno Haible  <bruno@clisp.org>
102011         * lib/fflush.c: Add comments.
102012         * modules/fpurge-tests (Depends-on): Add fflush.
102013         * modules/freadable-tests (Depends-on): Likewise.
102014         * modules/fwritable-tests (Depends-on): Likewise.
102016 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
102018         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
102019         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
102020         Report by Bruno Haible <bruno@clisp.org>.
102022 2007-04-26  Eric Blake  <ebb9@byu.net>
102024         Fix fflush on mingw.
102025         * modules/fflush (Depends-on): Add freading.
102026         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
102027         but unread data.
102029 2007-04-26  Eric Blake  <ebb9@byu.net>
102030         and Bruno Haible  <bruno@clisp.org>
102032         Implement freading and fwriting.
102033         * lib/freading.c: New file.
102034         * lib/freading.h: Likewise.
102035         * m4/freading.m4: Likewise.
102036         * modules/freading: Likewise.
102037         * modules/freading-tests: Likewise.
102038         * tests/test-freading.c: Likewise.
102039         * lib/fwriting.c: New file.
102040         * lib/fwriting.h: Likewise.
102041         * m4/fwriting.m4: Likewise.
102042         * modules/fwriting: Likewise.
102043         * modules/fwriting-tests: Likewise.
102044         * tests/test-fwriting.c: Likewise.
102045         * MODULES.html.sh (File stream based Input/Output): Mention them.
102047 2007-04-26  Bruno Haible  <bruno@clisp.org>
102049         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
102050         'long' when we assume it.
102051         Suggested by Eric Blake.
102053 2007-04-26  Bruno Haible  <bruno@clisp.org>
102055         Ensure fseeko, ftello are declared on glibc systems.
102056         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
102057         * modules/fseeko (configure.ac-early): Likewise.
102058         * modules/ftello (configure.ac-early): Likewise.
102059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
102060         AC_FUNC_FSEEKO for this.
102061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
102062         (gl_CHECK_FSEEKO): Remove macro.
102064 2007-04-26  Bruno Haible  <bruno@clisp.org>
102066         * tests/test-fflush.c (main): Also check the ftell result after
102067         fflush and fseek/fseeko.
102068         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
102069         file descriptor position cache in the stream.
102070         * lib/fseeko.c (rpl_fseeko): Likewise.
102072 2007-04-26  Bruno Haible  <bruno@clisp.org>
102074         * modules/fflush-tests (Depends-on): Add fseeko.
102076 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
102077             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102079         * lib/argz_.h: ensure error_t definition is obtained in same
102080         mechanism system argz.h would have.
102081         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
102082         argz facilities are known bad.  Err on the side of caution if
102083         cross-compiling.
102085 2007-04-25  Eric Blake  <ebb9@byu.net>
102087         * lib/fpurge.c (includes): Use stdlib.h for free.
102088         * tests/test-fflush.c (main): Also test fflush-fseeko.
102090 2007-04-25  Bruno Haible  <bruno@clisp.org>
102092         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
102093         * lib/fseeko.c: New file.
102094         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
102095         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
102096         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
102097         gl_FUNC_FSEEKO.
102098         (gl_FUNC_FSEEKO): Invoke it.
102099         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
102100         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
102101         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
102103 2007-04-25  Bruno Haible  <bruno@clisp.org>
102105         * modules/fflush (Depends-on): Add ftello.
102107 2007-04-25  Bruno Haible  <bruno@clisp.org>
102109         * modules/ftello-tests: New file.
102110         * tests/test-ftello.c: New file.
102112         * modules/ftello: New file.
102113         * m4/ftello.m4: New file.
102114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
102115         HAVE_FTELLO.
102116         * lib/stdio_.h (ftello): New declaration.
102117         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
102118         HAVE_FTELLO.
102120 2007-04-25  Bruno Haible  <bruno@clisp.org>
102122         * modules/fseeko-tests: New file.
102123         * tests/test-fseeko.c: New file.
102125         * modules/fseeko: New file.
102126         * m4/fseeko.m4: New file.
102127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
102128         HAVE_FSEEKO.
102129         * lib/stdio_.h (fseeko): New declaration.
102130         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
102131         HAVE_FSEEKO.
102133 2007-04-25  Bruno Haible  <bruno@clisp.org>
102135         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
102137 2007-04-25  Bruno Haible  <bruno@clisp.org>
102139         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
102140         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
102141         * tests/test-unistd.c: Likewise.
102142         * tests/test-fcntl.c: Likewise.
102144 2007-04-23  Eric Blake  <ebb9@byu.net>
102146         * lib/fflush.c: Fix missing include.
102147         Reported by Bruno Haible.
102149 2007-04-23  Bruno Haible  <bruno@clisp.org>
102151         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
102152         Reported by Eric Blake.
102154 2007-04-23  Bruno Haible  <bruno@clisp.org>
102156         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
102158 2007-04-23  Bruno Haible  <bruno@clisp.org>
102160         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
102162 2007-04-23  Bruno Haible  <bruno@clisp.org>
102164         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
102165         Needed on HP-UX 11.
102167 2007-04-16  Eric Blake  <ebb9@byu.net>
102169         Make fflush rely on fpurge.
102170         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
102171         open coding all variants.
102172         * modules/fflush (Depends-on): Add fpurge and unistd.
102173         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
102174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
102176         Fix --with-tests compilation on cygwin.
102177         * modules/argmatch-tests (Makefile.am): List gnulib library first
102178         in LDADD.
102179         * modules/argp-tests (Makefile.am): Likewise.
102180         * modules/array-list-tests (Makefile.am): Likewise.
102181         * modules/array-oset-tests (Makefile.am): Likewise.
102182         * modules/avltree-list-tests (Makefile.am): Likewise.
102183         * modules/avltree-oset-tests (Makefile.am): Likewise.
102184         * modules/avltreehash-list-tests (Makefile.am): Likewise.
102185         * modules/carray-list-tests (Makefile.am): Likewise.
102186         * modules/dirname-tests (Makefile.am): Likewise.
102187         * modules/frexp-tests (Makefile.am): Likewise.
102188         * modules/isnanl-tests (Makefile.am): Likewise.
102189         * modules/linked-list-tests (Makefile.am): Likewise.
102190         * modules/linkedhash-list-tests (Makefile.am): Likewise.
102191         * modules/lock-tests (Makefile.am): Likewise.
102192         * modules/rbtree-list-tests (Makefile.am): Likewise.
102193         * modules/rbtree-oset-tests (Makefile.am): Likewise.
102194         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
102195         * modules/tls-tests (Makefile.am): Likewise.
102196         * modules/tsearch-tests (Makefile.am): Likewise.
102197         * modules/xvasprintf-tests (Makefile.am): Likewise.
102199         Fix fpurge for cygwin.
102200         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
102201         value.
102202         * modules/fpurge-tests (Depends-on): Clean up trash.
102204 2007-04-16  Simon Josefsson  <simon@josefsson.org>
102206         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
102208         * m4/autobuild.m4: Re-indent.
102210 2007-04-13  Bruno Haible  <bruno@clisp.org>
102212         * modules/fpurge-tests: New file.
102213         * tests/test-fpurge.c: New file.
102215         * modules/fpurge: New file.
102216         * lib/fpurge.h: New file.
102217         * lib/fpurge.c: New file.
102218         * m4/fpurge.m4: New file.
102220 2007-04-13  Bruno Haible  <bruno@clisp.org>
102222         * modules/fbufmode-tests: New file.
102223         * tests/test-fbufmode.c: New file.
102225         * modules/fbufmode: New file.
102226         * lib/fbufmode.h: New file.
102227         * lib/fbufmode.c: New file.
102228         * m4/fbufmode.m4: New file.
102230 2007-04-13  Bruno Haible  <bruno@clisp.org>
102232         * modules/fwritable-tests: New file.
102233         * tests/test-fwritable.c: New file.
102235         * modules/fwritable: New file.
102236         * lib/fwritable.h: New file.
102237         * lib/fwritable.c: New file.
102238         * m4/fwritable.m4: New file.
102240 2007-04-13  Bruno Haible  <bruno@clisp.org>
102242         * modules/freadable-tests: New file.
102243         * tests/test-freadable.c: New file.
102245         * modules/freadable: New file.
102246         * lib/freadable.h: New file.
102247         * lib/freadable.c: New file.
102248         * m4/freadable.m4: New file.
102250 2007-04-13  Bruno Haible  <bruno@clisp.org>
102252         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
102253         MOSTLYCLEANFILES.
102255 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102257         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
102258         gzip bootstrap.conf to avoid dragging in i18n machinery.
102259         (gnulib_tool_option): Use it.
102261 2007-04-13  Bruno Haible  <bruno@clisp.org>
102263         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
102264         %F directives.
102265         * tests/test-vasprintf-posix.c (test_function): Likewise.
102266         * tests/test-snprintf-posix.h (test_function): Likewise.
102267         * tests/test-sprintf-posix.h (test_function): Likewise.
102268         * tests/test-fprintf-posix.h (test_function): Likewise.
102269         * tests/test-printf-posix.h (test_function): Likewise.
102270         * tests/test-fprintf-posix.out: Likewise.
102272 2007-04-13  Bruno Haible  <bruno@clisp.org>
102274         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
102275         * modules/tls-tests (configure.ac): Likewise.
102276         Reported by Arto C. Nirkko <anirkko@insel.ch>.
102278 2007-04-13  Bruno Haible  <bruno@clisp.org>
102280         * lib/tls.c (glthread_tls_get): Fix return type.
102281         Patch by Arto C. Nirkko <anirkko@insel.ch>.
102283 2007-04-12  Eric Blake  <ebb9@byu.net>
102285         * modules/gettime (Depends-on): Remove gettime.
102286         Reported by Dmitry V. Levin.
102288 2007-04-12  Bruno Haible  <bruno@clisp.org>
102290         * modules/fflush (Include): Mention <stdio.h>.
102291         * modules/strtoimax (Include): Mention <inttypes.h>.
102292         * modules/strtoumax (Include): Likewise.
102294 2007-04-12  Eric Blake  <ebb9@byu.net>
102296         * .cvsignore: New file.
102297         * .gitignore: Likewise.
102299 2007-04-12  Bruno Haible  <bruno@clisp.org>
102301         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
102302         not before, since $(LDADD) often contains libgnu.a.
102303         * modules/striconv-tests (test_striconv_LDADD): Likewise.
102304         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
102305         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
102306         Needed on Cygwin.
102308 2007-04-12  Eric Blake  <ebb9@byu.net>
102310         Work around glibc's failure to flush stdin on fclose.
102311         * lib/closein.c (close_stdin): Flush stdin before closing.
102313         Work around glibc's failure to reset seekable stdin on exit.
102314         * modules/closein: New module.
102315         * lib/closein.c: New file.
102316         * lib/closein.h: Likewise.
102317         * m4/closein.m4: Likewise.
102318         * MODULES.html.sh (File stream based Input/Output): Document it.
102320 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102322         * gnulib-tool: Rename generated 'autobuild' script to
102323         'do-autobuild' in --create-megatestdir output.
102325         * doc/gnulib.texi (Build robot for gnulib): Fix.
102327 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102329         * modules/sysexits (Depends-on): Add absolute-header.
102331 2007-04-12  Eric Blake  <ebb9@byu.net>
102333         No need to preserve errno on success.
102334         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
102335         Reported by Bruno Haible.
102337 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102339         * MODULES.html.sh (Support for maintaining and releasing
102340         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
102342 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102344         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
102346 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102348         * modules/autobuild: New module.
102350         * m4/autobuild.m4: New file.
102352 2007-04-11  Bruno Haible  <bruno@clisp.org>
102354         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
102355         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
102356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
102357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
102358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102361         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
102365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
102368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
102371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
102374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
102377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
102380         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102381         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102382         Reported by Eric Blake.
102384 2007-04-11  Bruno Haible  <bruno@clisp.org>
102386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
102388 2007-04-10  Bruno Haible  <bruno@clisp.org>
102390         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
102391         for NaN and Infinity. Needed on FreeBSD 6.1.
102392         * tests/test-vasnprintf-posix.c (test_function): Undo last change
102393         regarding results for "%010a" of Infinity and NaN.
102394         * tests/test-vasprintf-posix.c (test_function): Likewise.
102395         * tests/test-snprintf-posix.h (test_function): Likewise.
102396         * tests/test-sprintf-posix.h (test_function): Likewise.
102397         * tests/test-fprintf-posix.h (test_function): Likewise.
102398         * tests/test-printf-posix.h (test_function): Likewise.
102399         * tests/test-fprintf-posix.out: Likewise.
102401 2007-04-10  Bruno Haible  <bruno@clisp.org>
102403         * modules/locale-tests: New file.
102404         * tests/test-locale.c: New file.
102406         * modules/locale: New file.
102407         * lib/locale_.h: New file.
102408         * m4/locale_h.m4: New file.
102410 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
102411             Bruno Haible  <bruno@clisp.org>
102413         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
102414         be determined, test for availability of the copysignf, copysign,
102415         copysignl functions.
102416         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
102417         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
102418         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
102420 2007-04-09  Eric Blake  <ebb9@byu.net>
102422         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
102423         * modules/stdio (Makefile.am): Support fflush.
102424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
102425         * modules/fflush: New file.
102426         * lib/fflush.c: Likewise.
102427         * m4/fflush.m4: Likewise.
102428         * modules/fflush-tests: New test.
102429         * tests/test-fflush.c: Likewise.
102430         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
102432 2007-04-06  Bruno Haible  <bruno@clisp.org>
102434         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
102435         (VASNPRINTF): Use signbit for faster determination whether to print a
102436         minus sign.
102437         * modules/vasnprintf (Files): Remove lib/float+.h.
102438         * modules/fprintf-posix (Depends-on): Add signbit.
102439         * modules/snprintf-posix (Depends-on): Likewise.
102440         * modules/sprintf-posix (Depends-on): Likewise.
102441         * modules/vasnprintf-posix (Depends-on): Likewise.
102442         * modules/vasprintf-posix (Depends-on): Likewise.
102443         * modules/vfprintf-posix (Depends-on): Likewise.
102444         * modules/vsnprintf-posix (Depends-on): Likewise.
102445         * modules/vsprintf-posix (Depends-on): Likewise.
102447 2007-04-06  Bruno Haible  <bruno@clisp.org>
102449         * tests/test-frexp.c (main): Test also the sign bit of zero results.
102450         * tests/test-frexpl.c (main): Likewise.
102451         * tests/test-ldexpl.c (main): Likewise.
102452         * modules/frexp-tests (Depends-on): Add signbit.
102453         * modules/frexpl-tests (Depdends-on): Likewise.
102454         * modules/ldexpl-tests (Depdends-on): Likewise.
102456 2007-04-06  Bruno Haible  <bruno@clisp.org>
102458         * modules/signbit-tests: New file.
102459         * tests/test-signbit.c: New file.
102461         * modules/signbit: New file.
102462         * lib/signbitf.c: New file.
102463         * lib/signbitd.c: New file.
102464         * lib/signbitl.c: New file.
102465         * m4/signbit.m4: New file.
102466         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
102467         (signbit): New macro.
102468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
102469         REPLACE_SIGNBIT.
102470         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
102471         REPLACE_FREXPL into math.h.
102473 2007-04-06  Bruno Haible  <bruno@clisp.org>
102475         * modules/isnanf-nolibm-tests: New file.
102476         * tests/test-isnanf.c: New file.
102478         * modules/isnanf-nolibm: New file.
102479         * lib/isnanf.h: New file.
102480         * lib/isnanf.c: New file.
102481         * lib/isnan.c: Consider the USE_FLOAT macro.
102482         * m4/isnanf.m4: New file.
102484 2007-04-06  Bruno Haible  <bruno@clisp.org>
102486         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
102487         (Link): New section.
102489         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
102491 2007-04-06  Bruno Haible  <bruno@clisp.org>
102493         Assume the 'long double' type.
102494         * m4/longdouble.m4: Remove file.
102495         * config/srclist.txt: Don't mention longdouble.m4.
102496         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
102497         * lib/float+.h: Likewise.
102498         * lib/frexp.c: Likewise.
102499         * lib/printf-args.h: Likewise.
102500         * lib/printf-args.c: Likewise.
102501         * lib/printf-frexp.c: Likewise.
102502         * lib/printf-parse.c: Likewise.
102503         * lib/vasnprintf.c: Likewise.
102504         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
102505         * m4/intl.m4: Likewise.
102506         * m4/isnanl.m4: Likewise.
102507         * m4/printf.m4: Likewise.
102508         * m4/printf-frexpl.m4: Likewise.
102509         * m4/vasnprintf.m4: Likewise.
102510         * modules/allocsa (Files): Remove m4/longdouble.m4.
102511         * modules/gettext (Files): Likewise.
102512         * modules/relocatable-prog-wrapper (Files): Likewise.
102513         * modules/vasnprintf (Files): Likewise.
102514         * modules/isnanl (Files): Likewise.
102515         (Include): Simplify.
102516         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
102517         (Include): Simplify.
102518         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
102519         (Include): Simplify.
102520         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
102521         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102522         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
102523         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102524         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102525         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102526         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
102527         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102528         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102529         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102530         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
102531         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102532         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
102533         * tests/test-isnanl.c: Likewise.
102534         * tests/test-snprintf-posix.h: Likewise.
102535         * tests/test-sprintf-posix.h: Likewise.
102536         * tests/test-vasnprintf-posix.c: Likewise.
102537         * tests/test-vasnprintf-posix2.c: Likewise.
102538         * tests/test-vasprintf-posix.c: Likewise.
102540 2007-04-06  Bruno Haible  <bruno@clisp.org>
102542         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
102543         * lib/math_.h [__DECC]: Include the overridden include file through
102544         #include_next, outside the double-inclusion guard.
102545         * lib/stdio_.h [__DECC]: Likewise.
102546         * lib/stdlib_.h [__DECC]: Likewise.
102547         * lib/string_.h [__DECC]: Likewise.
102548         * lib/time_.h [__DECC]: Likewise.
102549         * lib/wchar_.h [__DECC]: Likewise.
102550         * lib/wctype_.h [__DECC]: Likewise.
102551         * lib/inttypes_.h [__DECC]: Likewise.
102552         Reported by Albert Chin <china@thewrittenword.com> in
102553         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
102555 2007-04-04  Eric Blake  <ebb9@byu.net>
102557         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
102558         1.5.x.
102560 2007-04-04  Bruno Haible  <bruno@clisp.org>
102562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
102563         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
102565 2007-04-04  Bruno Haible  <bruno@clisp.org>
102567         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
102568         results for "%010a" of Infinity and NaN.
102569         * tests/test-vasprintf-posix.c (test_function): Likewise.
102570         * tests/test-snprintf-posix.h (test_function): Likewise.
102571         * tests/test-sprintf-posix.h (test_function): Likewise.
102572         * tests/test-fprintf-posix.h (test_function): Remove these tests.
102573         * tests/test-printf-posix.h (test_function): Likewise.
102574         * tests/test-fprintf-posix.out: Update.
102575         Needed for FreeBSD 6.1.
102577 2007-04-04  Bruno Haible  <bruno@clisp.org>
102579         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
102580         directly used by the gnulib modules nor by gnulib-tool.
102582 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102584         * DEPENDENCIES: Give overall description of version dependency
102585         desirability.  Use more-typical names for apps.
102586         Add shell, coreutils, diffutils, grep, tar, gzip.
102588 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102590         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102592 2007-04-04  Karl Berry  <karl@gnu.org>
102594         * MODULES.html.sh (func_module): missing '.
102596 2007-04-03  Bruno Haible  <bruno@clisp.org>
102598         * modules/argmatch-tests (Makefile.am): New variable
102599         test_argmatch_LDADD.
102600         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102601         * modules/array-list-tests (Makefile.am): New variable
102602         test_array_list_LDADD.
102603         * modules/array-oset-tests (Makefile.am): New variable
102604         test_array_oset_LDADD.
102605         * modules/avltree-list-tests (Makefile.am): New variable
102606         test_avltree_list_LDADD.
102607         * modules/avltree-oset-tests (Makefile.am): New variable
102608         test_avltree_oset_LDADD.
102609         * modules/avltreehash-list-tests (Makefile.am): New variable
102610         test_avltreehash_list_LDADD.
102611         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102612         test_canonicalize_lgpl_LDADD.
102613         * modules/carray-list-tests (Makefile.am): New variable
102614         test_carray_list_LDADD.
102615         * modules/dirname-tests (Makefile.am): New variable
102616         test_dirname_LDADD.
102617         * modules/linked-list-tests (Makefile.am): New variable
102618         test_linked_list_LDADD.
102619         * modules/linkedhash-list-tests (Makefile.am): New variable
102620         test_linkedhash_list_LDADD.
102621         * modules/rbtree-list-tests (Makefile.am): New variable
102622         test_rbtree_list_LDADD.
102623         * modules/rbtree-oset-tests (Makefile.am): New variable
102624         test_rbtree_oset_LDADD.
102625         * modules/rbtreehash-list-tests (Makefile.am): New variable
102626         test_rbtreehash_list_LDADD.
102627         * modules/xvasprintf-tests (Makefile.am): New variable
102628         test_xvasprintf_LDADD.
102629         Reported by Eric Blake.
102631 2007-04-03  Eric Blake  <ebb9@byu.net>
102633         * DEPENDENCIES: Weaken m4 requirements.
102635 2007-04-03  Bruno Haible  <bruno@clisp.org>
102637         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102638         * modules/isnanl-tests (configure.ac): Likewise.
102640 2007-04-03  Ben Pfaff  <blp@gnu.org>
102642         * modules/iconv_open: Add $(srcdir)/ to source directory
102643         references in Makefile fragments that call gperf, to fix VPATH
102644         builds.
102646 2007-04-03  Bruno Haible  <bruno@clisp.org>
102648         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102649         * lib/ldexpl.c: Undo last change.
102651 2007-04-03  Bruno Haible  <bruno@clisp.org>
102653         * modules/printf-frexpl (Depends-on): Undo last change.
102654         (Files): Add m4/ldexpl.m4.
102656 2007-04-03  Bruno Haible  <bruno@clisp.org>
102658         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102659         * modules/isnanl (Link): New section.
102661         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102662         * modules/frexp (Link): New section.
102664         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102665         * modules/frexpl (Link): New section.
102667         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102668         * modules/ldexpl (Link): New section.
102670 2007-04-03  Bruno Haible  <bruno@clisp.org>
102672         * modules/TEMPLATE-EXTENDED: New file.
102673         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102675 2007-04-03  Bruno Haible  <bruno@clisp.org>
102677         * DEPENDENCIES: New file.
102678         Suggested by Simon Josefsson.
102680 2007-04-03  Bruno Haible  <bruno@clisp.org>
102682         * doc/gnulib.texi: Escape @.
102684 2007-04-03  James Youngman  <jay@gnu.org>
102685         and Paul Eggert  <eggert@cs.ucla.edu>
102687         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102688         birthtime on all systems that have birthtime, not just those which
102689         use st_birthtimensec rather than st_birthtim.  Putting zero in
102690         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102691         that the birth time is not available for files on an NFS mount.
102693 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102695         * modules/memxor: Move back from crypto/, suggested by Bruno.
102696         * modules/crypto/hmac-sha1: Fix memxor dependency.
102698         * modules/crypto/gc: Moved from ../.
102700 2007-04-02  Eric Blake  <ebb9@byu.net>
102702         * lib/ldexpl.c (includes): Avoid libm.
102704         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102706 2007-04-02  Bruno Haible  <bruno@clisp.org>
102708         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102709         on IRIX.
102711 2007-04-02  Bruno Haible  <bruno@clisp.org>
102713         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102714         x86 or x86_64 platforms running MacOS X.
102715         Reported by Ryan Schmidt <@ryandesign.com>.
102717 2007-04-02  Bruno Haible  <bruno@clisp.org>
102719         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102720         i386.
102722 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102724         * modules/crypto/arcfour: Moved from ../.
102725         * modules/crypto/arcfour-tests: Moved from ../.
102726         * modules/crypto/arctwo: Moved from ../.
102727         * modules/crypto/arctwo-tests: Moved from ../.
102728         * modules/crypto/des: Moved from ../.
102729         * modules/crypto/des-tests: Moved from ../.
102730         * modules/crypto/gc-arcfour: Moved from ../.
102731         * modules/crypto/gc-arcfour-tests: Moved from ../.
102732         * modules/crypto/gc-arctwo: Moved from ../.
102733         * modules/crypto/gc-arctwo-tests: Moved from ../.
102734         * modules/crypto/gc-des: Moved from ../.
102735         * modules/crypto/gc-des-tests: Moved from ../.
102736         * modules/crypto/gc-hmac-md5: Moved from ../.
102737         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102738         * modules/crypto/gc-hmac-sha1: Moved from ../.
102739         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102740         * modules/crypto/gc-md2: Moved from ../.
102741         * modules/crypto/gc-md2-tests: Moved from ../.
102742         * modules/crypto/gc-md4: Moved from ../.
102743         * modules/crypto/gc-md4-tests: Moved from ../.
102744         * modules/crypto/gc-md5: Moved from ../.
102745         * modules/crypto/gc-md5-tests: Moved from ../.
102746         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102747         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102748         * modules/crypto/gc-random: Moved from ../.
102749         * modules/crypto/gc-rijndael: Moved from ../.
102750         * modules/crypto/gc-rijndael-tests: Moved from ../.
102751         * modules/crypto/gc-sha1: Moved from ../.
102752         * modules/crypto/gc-sha1-tests: Moved from ../.
102753         * modules/crypto/gc-tests: Moved from ../.
102754         * modules/crypto/hmac-md5: Moved from ../.
102755         * modules/crypto/hmac-md5-tests: Moved from ../.
102756         * modules/crypto/hmac-sha1: Moved from ../.
102757         * modules/crypto/hmac-sha1-tests: Moved from ../.
102758         * modules/crypto/md2: Moved from ../.
102759         * modules/crypto/md2-tests: Moved from ../.
102760         * modules/crypto/md4: Moved from ../.
102761         * modules/crypto/md4-tests: Moved from ../.
102762         * modules/crypto/md5: Moved from ../.
102763         * modules/crypto/md5-tests: Moved from ../.
102764         * modules/crypto/memxor: Moved from ../.
102765         * modules/crypto/rijndael: Moved from ../.
102766         * modules/crypto/rijndael-tests: Moved from ../.
102767         * modules/crypto/sha1: Moved from ../.
102769 2007-03-30  James Youngman  <jay@gnu.org>
102771         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102772         rename() to change the ctime of a file (because ctime is unaffected
102773         by rename on jfs2 on AIX 5.1).
102774         (main): Start by doing cleanup, in case a previous run failed leaving
102775         test files behind.
102777 2007-03-31  Bruno Haible  <bruno@clisp.org>
102779         Support old proprietary implementations of iconv.
102780         * modules/iconv_open: New file.
102781         * lib/iconv_.h: New file.
102782         * m4/iconv_h.m4: New file.
102783         * lib/iconv_open.c: New file.
102784         * lib/iconv_open-aix.gperf: New file.
102785         * lib/iconv_open-hpux.gperf: New file.
102786         * lib/iconv_open-irix.gperf: New file.
102787         * lib/iconv_open-osf.gperf: New file.
102788         * m4/iconv_open.m4: New file.
102789         * modules/linebreak (Depends-on): Add iconv_open.
102790         * modules/striconv (Depends-on): Likewise.
102791         * modules/striconveh (Depends-on): Likewise.
102792         * modules/unicodeio (Depends-on): Likewise.
102793         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102794         (iconv_t)(-1).
102795         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102796         conversion if cd is (iconv_t)(-1).
102797         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102798         is not possible.
102800 2007-03-31  Bruno Haible  <bruno@clisp.org>
102802         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102803         work on Solaris either. Protect also second use of "autodetect_jp".
102805 2007-03-31  Bruno Haible  <bruno@clisp.org>
102807         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102808         the function is not present.
102810 2007-03-31  Bruno Haible  <bruno@clisp.org>
102812         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102813         the function is not present.
102815 2007-03-31  Bruno Haible  <bruno@clisp.org>
102817         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102818         a bug in HP-UX iconv_open().
102820 2007-03-31  Bruno Haible  <bruno@clisp.org>
102822         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102823         (Mathematics <math.h>): New section, add fpieee.
102824         (Input/output <stdio.h>): Add fseterr.
102825         (Mathematics <math.h>): New section, add printf-frexp.
102826         (Container data structures): Add sublist.
102827         (Core language properties): Add fpucw, inline.
102828         (Functions for greatest-width integer types <inttypes.h>): Add
102829         imaxabs, imaxdiv, inttypes.
102830         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102831         isnanl-nolibm, ldexp.
102832         (Mathematics <math.h>): New section, add printf-frexpl.
102833         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102834         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102835         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102836         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102837         (Unicode string functions): Add unistr/u*-mbtoucr.
102838         (Java): Add javacomp-script, javaexec-script.
102839         (C#): Add csharpcomp-script, csharpexec-script.
102840         (Support for building libraries and executables): Add havelib,
102841         relocatable-*.
102842         (Support for maintaining and releasing projects): Renamed from
102843         'Support for maintaining and release projects'. Add announce-gen.
102845 2007-03-31  Bruno Haible  <bruno@clisp.org>
102847         * README: Talk primarily about git.
102848         (git and CVS): Renamed from CVS.
102849         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102850         gnulib is available through git.
102851         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102853 2007-03-30  Bruno Haible  <bruno@clisp.org>
102855         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102856         * lib/poll_.h: Likewise.
102857         * lib/stat_.h: Likewise.
102858         * lib/sys_time_.h: Likewise.
102859         * lib/sysexit_.h: Likewise.
102860         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102861         * lib/stdbool_.h: Likewise.
102862         * lib/byteswap_.h: Add double-inclusion guard.
102864 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102866         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102868 2007-03-30  Karl Berry  <karl@gnu.org>
102870         * config/srclist-update: double space after USA in the license
102871         substitution, since that's how it's usually (?) written.
102873 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102875         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102876         reported by Bruno Haible.
102878 2007-03-29  Bruno Haible  <bruno@clisp.org>
102880         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102881         a bug in AIX iconv().
102883 2007-03-29  Bruno Haible  <bruno@clisp.org>
102885         * modules/ldexpl-tests: New file.
102886         * tests/test-ldexpl.c: New file.
102888 2007-03-29  Bruno Haible  <bruno@clisp.org>
102890         * lib/ldexpl.c: Include fpucw.h.
102891         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102892         multiplication.
102893         * modules/ldexpl (Depends-on): Add fpucw.
102895 2007-03-29  Bruno Haible  <bruno@clisp.org>
102897         * modules/ldexpl: New file.
102898         * m4/ldexpl.m4: New file.
102899         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102900         set.
102901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102902         REPLACE_LDEXPL.
102903         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102904         REPLACE_LDEXPL.
102905         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102906         gl_FUNC_LDEXPL_WORKS.
102907         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102908         * modules/mathl (Files): Remove lib/ldexpl.c.
102909         (Depends-on): Add ldexpl.
102911 2007-03-29  Bruno Haible  <bruno@clisp.org>
102913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102915 2007-03-29  Bruno Haible  <bruno@clisp.org>
102917         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102918         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102919         and possibly also HP-UX.
102920         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102921         work on AIX, IRIX, HP-UX, OSF/1.
102922         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102923         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102924         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102925         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102926         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102927         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102929 2007-03-29  Bruno Haible  <bruno@clisp.org>
102931         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102933 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102935         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102936         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102938 2007-03-29  Eric Blake  <ebb9@byu.net>
102940         * lib/acl-internal.h: Remove redundant include.
102941         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102942         Cygwin when a file is locked.
102944 2007-03-29  Bruno Haible  <bruno@clisp.org>
102946         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102947         file.
102948         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102950 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102953         try to remove a parent directory if the child couldn't be removed
102954         (except for the first rmdir, which could fail because the child
102955         doesn't exist).  Problem reported by Jeff Blaine in
102956         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102958 2007-03-28  Bruno Haible  <bruno@clisp.org>
102960         * lib/striconveh.c (utf8conv_carefully): New function.
102961         (mem_cd_iconveh_internal): Invoke it.
102963 2007-03-28  Bruno Haible  <bruno@clisp.org>
102965         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102966         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102967         input.
102968         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102969         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102970         unistr/u8-uctomb.
102972 2007-03-28  Bruno Haible  <bruno@clisp.org>
102974         * modules/unistr/u8-mbtoucr: New file.
102975         * lib/unistr/u8-mbtoucr.c: New file.
102976         * modules/unistr/u16-mbtoucr: New file.
102977         * lib/unistr/u16-mbtoucr.c: New file.
102978         * modules/unistr/u16-mbtoucr: New file.
102979         * lib/unistr/u16-mbtoucr.c: New file.
102980         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102982 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102983             Bruno Haible  <bruno@clisp.org>
102985         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102986         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102987         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102989         * m4/stdio_h.m4: Add stubs for vasprintf too.
102991         * modules/stdio: Support vasprintf in sed command.
102993         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102994         vasprintf.h.  Add stdio module indicator.
102996         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102997         vasprintf.h.
102999         * lib/vasprintf.h: File removed.
103001         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
103002         * lib/vasprintf.c: Ditto.
103003         * lib/xvasprintf.c: Ditto.
103004         * tests/test-vasprintf-posix.c: Ditto.
103005         * tests/test-vasprintf.c: Ditto.
103007 2007-03-27  Bruno Haible  <bruno@clisp.org>
103009         Make vasnprintf multithread-safe.
103010         * lib/vasnprintf.c (decimal_point_char): New function.
103011         (VASNPRINTF): Use it.
103012         Suggested by Simon Josefsson.
103014 2007-03-27  Eric Blake  <ebb9@byu.net>
103016         Support sub-second birthtime on cygwin.
103017         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
103018         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
103019         (get_stat_birthtime): Also work with st_birthtim.
103021 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
103023         * lib/stat-time.h (USE_BIRTHTIME): Remove.
103024         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
103025         (get_stat_birthtime_ns): Do not try to use "spare" fields.
103026         (get_stat_birthtime_ns): Simplify compile-time tests.
103027         (get_stat_birthtime): Change the API to look like
103028         get_stat_mtime etc., except return a negative tv_nsec on error.
103029         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
103030         Don't check for "spare" fields.
103031         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
103032         or for struct stat.st_birthtime, as these tests aren't used.
103033         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
103035 2007-03-27  Bruno Haible  <bruno@clisp.org>
103037         * lib/stat-time.h: Include <sys/stat.h>.
103039 2007-03-27  James Youngman  <jay@gnu.org>
103041         * lib/stat-time.h (get_stat_birthtime): New function for
103042           retrieving st_birthtime as provided by UFS2 (hence *BSD).
103043         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
103044           and its variants.
103045         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
103046         * modules/stat-time-test: New file.
103047         * tests/test-stat-time.c: New test, devised by Bruno Haible.
103049 2007-03-26  Bruno Haible  <bruno@clisp.org>
103051         Better support of signalling NaNs.
103052         * lib/atanl.c: Include isnanl.h.
103053         (atanl): Perform test for NaN at the beginning of the function and
103054         through a call to isnanl.
103055         * lib/cosl.c: Include isnanl.h.
103056         (cosl): Perform test for NaN at the beginning of the function and
103057         through a call to isnanl.
103058         * lib/ldexpl.c: Include isnanl.h.
103059         (ldexpl): Perform test for NaN through a call to isnanl.
103060         * lib/logl.c: Include isnanl.h.
103061         (logl): Perform test for NaN at the beginning of the function and
103062         through a call to isnanl.
103063         * lib/sinl.c: Include isnanl.h.
103064         (sinl): Perform test for NaN at the beginning of the function and
103065         through a call to isnanl.
103066         * lib/sqrtl.c: Include isnanl.h.
103067         (sqrtl): Perform test for NaN at the beginning of the function and
103068         through a call to isnanl.
103069         * lib/tanl.c: Include isnanl.h.
103070         (tanl): Perform test for NaN at the beginning of the function and
103071         through a call to isnanl.
103072         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
103073         * modules/mathl (Depends-on): Add isnanl.
103075 2007-03-26  Eric Blake  <ebb9@byu.net>
103077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
103078         regression in logic sense of previous patch.
103080 2007-03-26  Bruno Haible  <bruno@clisp.org>
103082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
103083         unportable shell command "if ! ...".
103084         Reported by Ralf Wildenhues.
103086 2007-03-25  Bruno Haible  <bruno@clisp.org>
103088         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
103089         <sysexits.h> file, and only add EX_CONFIG.
103090         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
103091         absolute file name and whether it is sufficient. Substitute also
103092         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
103093         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
103094         ABSOLUTE_SYSEXITS_H into sysexits.h.
103096 2007-03-25  Bruno Haible  <bruno@clisp.org>
103098         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
103099         hints is NULL.
103101 2007-03-25  Bruno Haible  <bruno@clisp.org>
103103         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
103104         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
103106 2007-03-25  Bruno Haible  <bruno@clisp.org>
103108         * lib/vasnprintf.c: Include langinfo.h.
103109         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
103110         multithread-safe.
103111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
103112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
103113         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103114         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
103119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103120         Reported by Simon Josefsson.
103122 2007-03-25  Bruno Haible  <bruno@clisp.org>
103124         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
103125         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
103126         * modules/vasnprintf (Depends-on): Add stdint.
103128 2007-03-25  Bruno Haible  <bruno@clisp.org>
103130         * modules/fpieee: New file.
103131         * m4/fpieee.m4: New file.
103132         * modules/isnan-nolibm (Depends-on): Add fpieee.
103133         * modules/isnanl-nolibm (Depends-on): Add fpieee.
103134         * modules/isnanl (Depends-on): Add fpieee.
103136 2007-03-25  Bruno Haible  <bruno@clisp.org>
103138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
103140 2007-03-25  Bruno Haible  <bruno@clisp.org>
103142         Avoid test failures on IRIX 6.5.
103143         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
103144         (main): Use it.
103145         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
103146         macros.
103147         (main): Use them.
103149 2007-03-25  Bruno Haible  <bruno@clisp.org>
103151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
103152         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
103153         exists but doesn't work.
103154         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
103155         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
103156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
103157         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
103158         math.h.
103160 2007-03-25  Bruno Haible  <bruno@clisp.org>
103162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
103163         returns inf. Needed on IRIX 6.5.
103165 2007-03-25  Bruno Haible  <bruno@clisp.org>
103167         * tests/test-frexpl.c: Include isnanl-nolibm.h.
103168         (main): Use isnanl instead of x != x idiom.
103169         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
103171         * tests/test-frexp.c: Include isnan.h.
103172         (main): Use isnan instead of x != x idiom.
103173         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
103175 2007-03-25  Bruno Haible  <bruno@clisp.org>
103177         * tests/test-frexp.c (NaN): New function/macro.
103178         (main): Use it instead of 0.0 / 0.0.
103179         * tests/test-isnan.c (NaN): New function/macro.
103180         (main): Use it instead of 0.0 / 0.0.
103181         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
103182         (test_function): Use it instead of 0.0 / 0.0.
103183         * tests/test-vasprintf-posix.c (NaN): New function/macro.
103184         (test_function): Use it instead of 0.0 / 0.0.
103185         * tests/test-snprintf-posix.h (NaN): New function/macro.
103186         (test_function): Use it instead of 0.0 / 0.0.
103187         * tests/test-sprintf-posix.h (NaN): New function/macro.
103188         (test_function): Use it instead of 0.0 / 0.0.
103189         * tests/test-fprintf-posix.h (NaN): New function/macro.
103190         (test_function): Use it instead of 0.0 / 0.0.
103191         * tests/test-printf-posix.h (NaN): New function/macro.
103192         (test_function): Use it instead of 0.0 / 0.0.
103194         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
103196 2007-03-25  Bruno Haible  <bruno@clisp.org>
103198         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
103200 2007-03-25  Bruno Haible  <bruno@clisp.org>
103202         * lib/regexec.c (merge_state_with_log): Make static.
103204 2007-03-25  Bruno Haible  <bruno@clisp.org>
103206         * lib/trigl.c (kernel_rem_pio2): Make static.
103208 2007-03-25  Bruno Haible  <bruno@clisp.org>
103210         * lib/sincosl.c (sincosl_table): Make static.
103212 2007-03-25  Bruno Haible  <bruno@clisp.org>
103214         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
103215         if the compiler does not support C99.
103217 2007-03-25  Bruno Haible  <bruno@clisp.org>
103219         * modules/time (Makefile.am): Ensure all rule action lines start with a
103220         tab.
103222 2007-03-24  Bruno Haible  <bruno@clisp.org>
103224         * modules/tsearch-tests: New file.
103225         * tests/test-tsearch.sh: New file.
103226         * tests/test-tsearch.c: New file, mostly copied from glibc.
103228         * modules/search-tests: New file.
103229         * tests/test-search.c: New file.
103231         * modules/search: New file.
103232         * lib/search_.h: New file, incorporating lib/tsearch.h.
103233         * m4/search_h.m4: New file.
103234         * lib/tsearch.h: Remove file.
103235         * lib/tsearch.c: Include search.h instead of tsearch.h.
103236         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
103237         HAVE_TSEARCH.
103238         * modules/tsearch (Files): Remove lib/tsearch.h.
103239         (Depends-on): Add search.
103240         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
103241         (Include): Change tsearch.h into search.h.
103243 2007-03-24  Bruno Haible  <bruno@clisp.org>
103245         * modules/fpucw: New file.
103246         * lib/fpucw.h: New file.
103247         * lib/frexp.c: Include fpucw.h.
103248         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103249         (FUNC): Use them.
103250         * lib/printf-frexp.c: Include fpucw.h.
103251         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103252         (FUNC): Use them.
103253         * lib/vasnprintf.c: Include fpucw.h.
103254         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
103255         'long double' calculations.
103256         * tests/test-frexpl.c: Include fpucw.h.
103257         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103258         * tests/test-printf-frexpl.c: Include fpucw.h.
103259         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103260         * modules/frexpl (Depends-on): Add fpucw.
103261         * modules/printf-frexpl (Depends-on): Likewise.
103262         * modules/fprintf-posix (Depends-on): Likewise.
103263         * modules/snprintf-posix (Depends-on): Likewise.
103264         * modules/sprintf-posix (Depends-on): Likewise.
103265         * modules/vasnprintf-posix (Depends-on): Likewise.
103266         * modules/vasprintf-posix (Depends-on): Likewise.
103267         * modules/vfprintf-posix (Depends-on): Likewise.
103268         * modules/vsnprintf-posix (Depends-on): Likewise.
103269         * modules/vsprintf-posix (Depends-on): Likewise.
103270         * modules/frexpl-tests (Depends-on): Likewise.
103271         * modules/printf-frexpl-tests (Depends-on): Likewise.
103273 2007-03-24  Bruno Haible  <bruno@clisp.org>
103275         * lib/float+.h: New file.
103276         * lib/isnan.c: Include float+.h.
103277         (SIZE): New macro.
103278         (FUNC): Compare only SIZE bytes of the value.
103279         * lib/vasnprintf.c: Include float+.h.
103280         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
103281         SIZEOF_LDBL or SIZEOF_DBL bytes.
103282         * modules/isnan-nolibm (Files): Add lib/float+.h.
103283         * modules/isnanl-nolibm (Files): Add lib/float+.h.
103284         * modules/isnanl (Files): Add lib/float+.h.
103285         * modules/vasnprintf (Files): Add lib/float+.h.
103287 2007-03-24  Bruno Haible  <bruno@clisp.org>
103289         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
103290         include isnanl-nolibm.h.
103292 2007-03-24  Bruno Haible  <bruno@clisp.org>
103294         * tests/test-read-file.c (main): Don't produce spurious output for
103295         expected situations. Make the test fail if it encountered unexpected
103296         results.
103298 2007-03-24  Bruno Haible  <bruno@clisp.org>
103300         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
103301         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
103303 2007-03-24  Bruno Haible  <bruno@clisp.org>
103305         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
103307 2007-03-24  Bruno Haible  <bruno@clisp.org>
103309         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
103310         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
103312         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
103313         * modules/utf8-ucs4: Turn into a symbolic link to module
103314         unistr/u8-mbtouc.
103316         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
103317         utf8-ucs4-unsafe.
103318         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
103319         unistr/u8-mbtouc-unsafe.
103321         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
103322         * modules/utf16-ucs4: Turn into a symbolic link to module
103323         unistr/u16-mbtouc.
103325         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
103326         utf16-ucs4-unsafe.
103327         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
103328         unistr/u16-mbtouc-unsafe.
103330         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
103331         * modules/ucs4-utf8: Turn into a symbolic link to module
103332         unistr/u8-ubtomb.
103334         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
103335         * modules/ucs4-utf16: Turn into a symbolic link to module
103336         unistr/u16-ubtomb.
103338 2007-03-24  Bruno Haible  <bruno@clisp.org>
103340         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
103341         Enable the function only if HAVE_INLINE.
103342         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
103343         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103344         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
103345         Enable the function only if HAVE_INLINE.
103346         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
103347         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103348         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
103349         Enable the function only if HAVE_INLINE.
103350         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
103351         Enable the function only if HAVE_INLINE.
103352         * modules/utf8-ucs4: Update.
103353         * modules/utf8-ucs4-unsafe: Update.
103354         * modules/utf16-ucs4: Update.
103355         * modules/utf16-ucs4-unsafe: Update.
103356         * modules/ucs4-utf8: Update.
103357         * modules/ucs4-utf16: Update.
103359 2007-03-24  Bruno Haible  <bruno@clisp.org>
103361         * lib/utf8-ucs4.h: Remove file.
103362         * lib/utf8-ucs4-unsafe.h: Remove file.
103363         * lib/utf16-ucs4.h: Remove file.
103364         * lib/utf16-ucs4-unsafe.h: Remove file.
103365         * lib/ucs4-utf8.h: Remove file.
103366         * lib/ucs4-utf16.h: Remove file.
103367         * lib/unistr.h: Include their previous contents.
103368         * m4/utf-ucs4.m4: Remove file.
103369         * m4/ucs4-utf.m4: Remove file.
103370         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
103371         (Depends-on): Add unistr/base.
103372         (configure.ac): Remove gl_UTF_UCS4.
103373         (Makefile.am): Update.
103374         (Include): Change to unistr.h.
103375         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
103376         (Depends-on): Add unistr/base.
103377         (configure.ac): Remove gl_UTF_UCS4.
103378         (Makefile.am): Update.
103379         (Include): Change to unistr.h.
103380         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
103381         (Depends-on): Add unistr/base.
103382         (configure.ac): Remove gl_UTF_UCS4.
103383         (Makefile.am): Update.
103384         (Include): Change to unistr.h.
103385         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
103386         (Depends-on): Add unistr/base.
103387         (configure.ac): Remove gl_UTF_UCS4.
103388         (Makefile.am): Update.
103389         (Include): Change to unistr.h.
103390         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
103391         (Depends-on): Add unistr/base.
103392         (configure.ac): Remove gl_UCS4_UTF.
103393         (Makefile.am): Update.
103394         (Include): Change to unistr.h.
103395         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
103396         (Depends-on): Add unistr/base.
103397         (configure.ac): Remove gl_UCS4_UTF.
103398         (Makefile.am): Update.
103399         (Include): Change to unistr.h.
103400         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
103401         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
103402         utf8-ucs4-unsafe.h.
103403         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
103404         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
103405         utf16-ucs4-unsafe.h.
103406         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
103407         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
103408         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
103409         * lib/unistr/u8-strchr.c: Likewise.
103410         * lib/unistr/u8-strrchr.c: Likewise.
103411         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
103412         * lib/unistr/u16-strchr.c: Likewise.
103413         * lib/unistr/u16-strrchr.c: Likewise.
103414         * lib/striconveh.c: Update.
103415         * lib/linebreak.c: Update.
103417 2007-03-24  Bruno Haible  <bruno@clisp.org>
103419         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
103420         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
103422 2007-03-22  Bruno Haible  <bruno@clisp.org>
103424         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
103426 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103428         * MODULES.html.sh (File system functions): New module write-any-file.
103429         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
103430         * m4/write-any-file.m4: New files.
103432 2007-03-23  Eric Blake  <ebb9@byu.net>
103434         * gnulib-tool: Rearrange space-tab sequences, since some editors
103435         like to eat them.
103437 2007-03-23  Eric Blake  <ebb9@byu.net>
103439         * lib/version-etc.c (version_etc_va): Update license wording to
103440         be more concise.  Recommended by Richard Stallman.
103442 2007-03-22  Bruno Haible  <bruno@clisp.org>
103444         * lib/poll.c (MSG_PEEK): New fallback definition.
103446 2007-03-22  Bruno Haible  <bruno@clisp.org>
103448         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
103449         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
103450         (main): Update.
103451         Fixes a compilation error on BeOS.
103453 2007-03-22  Bruno Haible  <bruno@clisp.org>
103455         * modules/frexpl-tests: New file.
103456         * tests/test-frexpl.c: New file.
103458         * modules/frexpl: New file.
103459         * m4/frexpl.m4: New file.
103460         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
103461         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
103462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
103463         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
103464         (Depends-on): Add frexpl. Remove isnanl-nolibm.
103465         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
103467 2007-03-22  Bruno Haible  <bruno@clisp.org>
103469         * lib/frexpl.c: Share code with lib/frexp.c.
103470         * modules/mathl (Files): Add lib/frexp.c.
103471         (Depends-on): Add isnanl-nolibm.
103473 2007-03-22  Bruno Haible  <bruno@clisp.org>
103475         * modules/printf-frexp (Files): Add m4/frexp.m4.
103476         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
103477         only if the found frexp function actually works.
103479 2007-03-22  Bruno Haible  <bruno@clisp.org>
103481         * lib/frexp.c: Remove older implementation that uses divisions.
103483 2007-03-21  Bruno Haible  <bruno@clisp.org>
103485         * modules/frexp-tests: New file.
103486         * tests/test-frexp.c: New file.
103488         * modules/frexp: New file.
103489         * lib/frexp.c: New file.
103490         * m4/frexp.m4: New file.
103491         * lib/math_.h (frexp): New declaration.
103492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
103493         REPLACE_FREXP.
103494         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
103496 2007-03-21  Bruno Haible  <bruno@clisp.org>
103498         * modules/isnanl-tests: New file.
103499         * tests/test-isnanl.c: New file.
103501         * modules/isnanl: New file.
103502         * lib/isnanl.h: New file.
103503         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
103504         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
103505         gl_FUNC_ISNANL_WORKS.
103506         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
103507         New macros.
103509 2007-03-21  Bruno Haible  <bruno@clisp.org>
103511         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
103512         lib/isnanl.h.
103513         (Include): Update.
103514         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
103515         * lib/vasnprintf.c: Update.
103516         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
103517         tests/test-isnanl.h, remove tests/test-isnanl.c.
103518         (Makefile.am): Update.
103519         * tests/test-isnanl-nolibm.c: New file.
103520         * tests/test-isnanl.h: New file.
103521         * tests/test-isnanl.c: Remove file.
103523 2007-03-21  Jim Meyering  <jim@meyering.net>
103525         When trying to open ".", treat ESTALE like EACCES.
103526         * lib/savewd.c (savewd_save): Resort to forking not just upon
103527         failure with EACCES, but also when errno is ESTALE.
103529 2007-03-20  Bruno Haible  <bruno@clisp.org>
103531         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
103532         Needed on AIX 5.1. Reported by Matthew Woehlke.
103534 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103536         Suggestions by Bruno Haible:
103537         * lib/acl-internal.h: Include "gettext.h" rather than rolling
103538         our own.
103539         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
103540         * modules/acl (Depends-on): Add gettext.
103542 2007-03-19  Bruno Haible  <bruno@clisp.org>
103544         * modules/iconvme: Remove file.
103545         * lib/iconvme.h: Remove file.
103546         * lib/iconvme.c: Remove file.
103547         * m4/iconvme.m4: Remove file.
103549 2007-03-19  Bruno Haible  <bruno@clisp.org>
103551         * doc/relocatable-maint.texi: Break long shell script line.
103552         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103554 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103556         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
103557         handle file_has_acl.
103558         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
103559         * lib/acl.c: Move header inclusions and related macro defns into
103560         lib/acl-internal.h.
103561         (S_ISLNK): Remove defn, since that's now done for us.
103562         (file_has_acl): Move to lib/file-has-acl.c.
103563         Call acl_trivial if available.  This is the crucial part of the fix.
103564         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
103565         shared within the library.  Rewrite a bit, partly to make it compatible
103566         with the GNU coding style.
103567         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
103568         Remove unnecessary double-quotes.
103569         Don't test for acl_to_text; the build will catch that.
103570         Replace acl_entries if it doesn't exist and it is needed.
103571         Check for -lsec and acl_trivial (as used on Solaris 10).
103572         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
103573         lib/file-has-acl.c.
103574         (Depends-on): Add sys_stat, for S_ISLNK.
103576 2007-03-19  Ben Pfaff  <blp@gnu.org>
103578         * doc/gnulib.texi: Fix typos.
103579         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103581 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103583         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
103584         If size is zero here, buf must be zero.
103586 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103588         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103589         <bruno@clisp.org>.
103591 2007-03-18  Bruno Haible  <bruno@clisp.org>
103593         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103594         Suggested by Eric Blake.
103596 2007-03-18  Ben Pfaff  <blp@gnu.org>
103598         * doc/relocatable.texi: Recommend using as prefix a directory
103599         that does not exist and will never be created.  Based on
103600         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103601         and others.
103603 2007-03-17  Bruno Haible  <bruno@clisp.org>
103605         * lib/fchownat.c: Include lchown.h.
103607 2007-03-17  Bruno Haible  <bruno@clisp.org>
103609         Fix endless loop when the given allocated size was > INT_MAX.
103610         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103611         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103612         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103613         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103614         * lib/sprintf.c (sprintf): Likewise.
103616 2007-03-17  Bruno Haible  <bruno@clisp.org>
103618         * tests/test-argp-2.sh (func_compare): Output a context diff.
103620 2007-03-17  Bruno Haible  <bruno@clisp.org>
103622         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103623         locale's decimal-point character.
103625 2007-03-17  Bruno Haible  <bruno@clisp.org>
103627         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103628         before comparing it. Needed because on some platforms (e.g. x86) a
103629         'long double' occupies less bytes than sizeof (long double).
103631 2007-03-17  Bruno Haible  <bruno@clisp.org>
103633         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103634         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103635         * tests/test-getaddrinfo.c (simple): Likewise.
103636         * tests/test-read-file.c (main): Likewise.
103638 2007-03-17  Bruno Haible  <bruno@clisp.org>
103640         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103642 2007-03-17  Bruno Haible  <bruno@clisp.org>
103644         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103645         unused variable.
103647 2007-03-17  Bruno Haible  <bruno@clisp.org>
103649         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103650         * tests/test-c-strncasecmp.c: Likewise.
103652 2007-03-17  Bruno Haible  <bruno@clisp.org>
103654         * modules/stdlib (Depends-on): Add unistd.
103655         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103656         Needed for MacOS X 10.3.
103658 2007-03-17  Bruno Haible  <bruno@clisp.org>
103660         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103662 2007-03-17  Bruno Haible  <bruno@clisp.org>
103664         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103666 2007-03-17  Bruno Haible  <bruno@clisp.org>
103668         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103669         to reflect files copied from gnulib (with or without modifications).
103670         Suggested by Jim Meyering.
103672 2007-03-17  Eric Blake  <ebb9@byu.net>
103674         * NEWS: Document stdlib change from 2007-02-18.
103676 2007-03-17  Jim Meyering  <jim@meyering.net>
103678         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103679         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103680         someone uses a name containing shell meta-characters.
103681         Reported by Alfred M. Szmidt.
103683         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103685 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103687         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103688         and copy gettext configuration files only if configure.ac contains
103689         a use of AM_GNU_GETTEXT_VERSION.
103691 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103693         * build-aux/bootstrap (gnulib_name): New variable.
103694         (gnulib_tool_options): Use it.
103696 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103698         * tests/test-des.c: Use new namespace.
103700 2007-03-15  Bruno Haible  <bruno@clisp.org>
103702         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103703         Reported by James Youngman <jay@gnu.org>.
103705 2007-03-15  Bruno Haible  <bruno@clisp.org>
103707         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103708         declared prototype. Needed with cc on OSF/1 5.1.
103710 2007-03-15  Bruno Haible  <bruno@clisp.org>
103712         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103713         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103714         (struct gl_list_implementation): Add dispose_fn argument to the
103715         'create_empty', 'create' methods.
103716         (struct gl_list_impl_base): Add field 'dispose_fn'.
103717         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103718         argument.
103719         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103720         dispose_fn argument.
103721         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103722         dispose_fn on the dropped values.
103723         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103724         dispose_fn argument.
103725         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103726         dropped values.
103727         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103728         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103729         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103730         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103731         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103732         argument.
103733         (gl_tree_list_free): Call dispose_fn on the dropped values.
103734         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103735         the dropped values.
103736         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103737         Add dispose_fn argument.
103738         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103739         Call dispose_fn on the dropped values.
103740         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103741         Add dispose_fn argument.
103742         (gl_sublist_create): Initialize the 'dispose_fn' field.
103743         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103744         * tests/test-array_list.c (main): Update.
103745         * tests/test-carray_list.c (main): Update.
103746         * tests/test-avltree_list.c (main): Update.
103747         * tests/test-rbtree_list.c (main): Update.
103748         * tests/test-avltreehash_list.c (main): Update.
103749         * tests/test-rbtreehash_list.c (main): Update.
103750         * tests/test-linked_list.c (main): Update.
103751         * tests/test-linkedhash_list.c (main): Update.
103752         * tests/test-array_oset.c (main): Update.
103754 2007-03-15  Bruno Haible  <bruno@clisp.org>
103756         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103757         (gl_oset_create_empty): Add dispose_fn argument.
103758         (struct gl_oset_implementation): Add dispose_fn argument to
103759         'create_empty' method.
103760         (struct gl_oset_impl_base): Add dispose_fn field.
103761         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103762         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103763         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103764         values.
103765         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103766         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103767         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103768         dropped value.
103769         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103770         dropped value.
103771         * tests/test-array_oset.c (main): Update.
103772         * tests/test-avltree_oset.c (main): Update.
103773         * tests/test-rbtree_oset.c (main): Update.
103774         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103776 2007-03-13  Bruno Haible  <bruno@clisp.org>
103778         * tests/test-stdbool.c (i): Update after last patch.
103780 2007-03-12  Bruno Haible  <bruno@clisp.org>
103782         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103783         the iswprint macro. Needed on Solaris 2.5.1.
103785 2007-03-12  Bruno Haible  <bruno@clisp.org>
103787         * tests/test-printf-frexp.c (main): Declare x as volatile.
103789 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103791         * doc/gnulib.texi (Build robot for gnulib): New section.
103793 2007-03-12  Jim Meyering  <jim@meyering.net>
103795         * build-aux/bootstrap: New file.
103796         * build-aux/bootstrap.conf: New file, from coreutils.
103798 2007-03-11  Bruno Haible  <bruno@clisp.org>
103800         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103802 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103804         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103805         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103806         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103808 2007-03-11  Bruno Haible  <bruno@clisp.org>
103810         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103811         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103813 2007-03-11  Bruno Haible  <bruno@clisp.org>
103815         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103816         formula. Needed for SunPRO C 5.0.
103818 2007-03-11  Bruno Haible  <bruno@clisp.org>
103820         * modules/long-options (Depends-on): Add getopt.
103822 2007-03-11  Bruno Haible  <bruno@clisp.org>
103824         * modules/modechange (Depends-on): Add stdbool.
103826 2007-03-11  Bruno Haible  <bruno@clisp.org>
103828         * modules/i-ring (Depends-on): Add stdbool.
103830 2007-03-11  Bruno Haible  <bruno@clisp.org>
103832         * modules/gc-des (Depends-on): Add stdbool.
103834 2007-03-11  Bruno Haible  <bruno@clisp.org>
103836         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103838 2007-03-11  Bruno Haible  <bruno@clisp.org>
103840         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103842 2007-03-11  Bruno Haible  <bruno@clisp.org>
103844         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103846 2007-03-11  Bruno Haible  <bruno@clisp.org>
103848         * lib/vasnprintf.c (sprintf): Undefine.
103850 2007-03-11  Bruno Haible  <bruno@clisp.org>
103852         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103853         initializers in SunPRO C and Compaq C compilers.
103855 2007-03-11  Bruno Haible  <bruno@clisp.org>
103857         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103858         decrementing code ANSI C compliant.
103860 2007-03-11  Bruno Haible  <bruno@clisp.org>
103862         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103863         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103865 2007-03-11  Bruno Haible  <bruno@clisp.org>
103867         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103868         <stdbool.h> substitute doesn't pass.
103870 2007-03-11  Bruno Haible  <bruno@clisp.org>
103872         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103874 2007-03-11  Bruno Haible  <bruno@clisp.org>
103876         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103877         script, for submission to autobuild.josefsson.org.
103879 2007-03-10  Bruno Haible  <bruno@clisp.org>
103881         * modules/canonicalize-lgpl-tests: New file.
103882         * tests/test-canonicalize-lgpl.sh: New file.
103883         * tests/test-canonicalize-lgpl.c: New file.
103885         * modules/c-strcase-tests: New file.
103886         * tests/test-c-strcase.sh: New file.
103887         * tests/test-c-strcasecmp.c: New file.
103888         * tests/test-c-strncasecmp.c: New file.
103890         * modules/atexit-tests: New file.
103891         * tests/test-atexit.sh: New file.
103892         * tests/test-atexit.c: New file.
103894 2007-03-10  Bruno Haible  <bruno@clisp.org>
103896         * tests/test-binary-io.sh: Use temporary filenames that are not so
103897         likely to clash with those of other tests (in a parallel make).
103898         * tests/test-binary-io.c: Likewise.
103900 2007-03-10  Bruno Haible  <bruno@clisp.org>
103902         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103903         fallback; use #error instead.
103904         Suggested by Simon Josefsson.
103906 2007-03-10  Bruno Haible  <bruno@clisp.org>
103908         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103909         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103910         first and the last.
103912 2007-03-10  Bruno Haible  <bruno@clisp.org>
103914         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103916 2007-03-10  Bruno Haible  <bruno@clisp.org>
103918         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103919         "make distcheck".
103920         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103921         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103922         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103924 2007-03-10  Bruno Haible  <bruno@clisp.org>
103926         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103927         variable.
103928         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103929         variable.
103931 2007-03-09  Eric Blake  <ebb9@byu.net>
103932         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103934         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103935         types are not being provided by gnulib.
103936         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103937         types are supported.
103939 2007-03-10  Bruno Haible  <bruno@clisp.org>
103941         * lib/stdio_.h (__attribute__): New macro.
103942         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103943         vsprintf): Specify __attribute__ __format__ for GCC.
103944         Suggested by Eric Blake.
103946 2007-03-09  Bruno Haible  <bruno@clisp.org>
103948         * modules/printf-posix-tests: New file.
103949         * tests/test-printf-posix.sh: New file.
103950         * tests/test-printf-posix.c: New file.
103952         * modules/printf-posix: New file.
103953         * lib/printf.c: New file.
103954         * m4/printf-posix-rpl.m4: New file.
103955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103956         REPLACE_PRINTF.
103957         * lib/stdio_.h (printf): New declaration.
103958         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103959         ____strfmon____): New macros.
103960         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103961         REPLACE_PRINTF.
103963 2007-03-09  Bruno Haible  <bruno@clisp.org>
103965         * tests/test-vasnprintf-posix2.sh: New file.
103966         * tests/test-vasnprintf-posix2.c: New file.
103967         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103968         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103969         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103971         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103972         a locale dependent decimal point, rather than always '.'.
103974 2007-03-09  Eric Blake  <ebb9@byu.net>
103976         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103977         spite of platforms like Tandem/NSK that define it to -1.
103979 2007-03-08  Bruno Haible  <bruno@clisp.org>
103981         * modules/vprintf-posix-tests: New file.
103982         * tests/test-vprintf-posix.sh: New file.
103983         * tests/test-vprintf-posix.c: New file.
103984         * tests/test-printf-posix.h: New file.
103986         * modules/vprintf-posix: New file.
103987         * lib/vprintf.c: New file.
103988         * m4/vprintf-posix.m4: New file.
103989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103990         REPLACE_VPRINTF.
103991         * lib/stdio_.h (vprintf): New declaration.
103992         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103993         REPLACE_VPRINTF.
103995 2007-03-08  Bruno Haible  <bruno@clisp.org>
103997         * modules/fprintf-posix-tests: New file.
103998         * tests/test-fprintf-posix.sh: New file.
103999         * tests/test-fprintf-posix.c: New file.
104001         * modules/fprintf-posix: New file.
104002         * lib/fprintf.c: New file.
104003         * m4/fprintf-posix.m4: New file.
104004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
104005         REPLACE_FPRINTF.
104006         * lib/stdio_.h (fprintf): New declaration.
104007         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
104008         REPLACE_FPRINTF.
104010 2007-03-08  Bruno Haible  <bruno@clisp.org>
104012         * modules/vfprintf-posix-tests: New file.
104013         * tests/test-vfprintf-posix.sh: New file.
104014         * tests/test-vfprintf-posix.c: New file.
104015         * tests/test-fprintf-posix.h: New file.
104016         * tests/test-fprintf-posix.out: New file.
104018         * modules/vfprintf-posix: New file.
104019         * lib/vfprintf.c: New file.
104020         * m4/vfprintf-posix.m4: New file.
104021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
104022         REPLACE_VFPRINTF.
104023         * lib/stdio_.h (vfprintf): New declaration.
104024         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
104025         REPLACE_VFPRINTF.
104027 2007-03-08  Bruno Haible  <bruno@clisp.org>
104029         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
104031 2007-03-08  Bruno Haible  <bruno@clisp.org>
104033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
104034         instead of 'expr' invocations.
104035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104040         Suggested by Paul Eggert.
104042 2007-03-08  Bruno Haible  <bruno@clisp.org>
104044         * modules/fseterr-tests: New file.
104045         * tests/test-fseterr.c: New file.
104047         * modules/fseterr: New file.
104048         * lib/fseterr.h: New file.
104049         * lib/fseterr.c: New file.
104051 2007-03-08  Bruno Haible  <bruno@clisp.org>
104053         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
104054         * lib/getopt_.h: Likewise.
104055         * lib/mbswidth.h: Likewise.
104056         * lib/setenv.h: Likewise.
104057         * lib/vasnprintf.h: Likewise.
104058         * lib/vasprintf.h: Likewise.
104059         * lib/verror.h: Likewise.
104060         * lib/xsetenv.h: Likewise.
104061         * lib/xvasprintf.h: Likewise.
104063 2007-03-08  Jim Meyering  <jim@meyering.net>
104065         * users.txt: Add parted.
104067         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
104069 2007-03-07  Bruno Haible  <bruno@clisp.org>
104071         * m4/printf.m4: Make the shell script snippets copy&pastable.
104073 2007-03-02  Bruno Haible  <bruno@clisp.org>
104075         * lib/netinet_in_.h: New file.
104076         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
104077         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
104078         * modules/netinet_in (Files): Add lib/netinet_in_.h.
104079         (Depends-on): Add absolute-header.
104080         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
104081         into netinet/in.h.
104083 2007-03-03  Bruno Haible  <bruno@clisp.org>
104085         * lib/sys_select_.h: New file.
104086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
104087         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
104088         * modules/sys_select (Files): Add lib/sys_select_.h.
104089         (Depends-on): Add absolute-header.
104090         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
104091         into sys/select.h.
104093 2007-03-02  Bruno Haible  <bruno@clisp.org>
104095         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
104096         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
104097         values.
104098         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
104099         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
104100         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
104101         * modules/sys_socket (Depends-on): Add absolute-header.
104102         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
104103         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
104104         (Include): Remove requirement of inclusion of <sys/types.h>.
104106 2007-03-02  Bruno Haible  <bruno@clisp.org>
104108         * lib/byteswap_.h (bswap_32): Fix formula.
104110 2007-03-06  Bruno Haible  <bruno@clisp.org>
104112         * modules/sprintf-posix-tests: New file.
104113         * tests/test-sprintf-posix.c: New file.
104115         * modules/sprintf-posix: New file.
104116         * lib/sprintf.c: New file.
104117         * m4/sprintf-posix.m4: New file.
104118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
104119         REPLACE_SPRINTF.
104120         * lib/stdio_.h (sprintf): New declaration.
104121         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
104122         REPLACE_SPRINTF.
104124 2007-03-06  Bruno Haible  <bruno@clisp.org>
104126         * modules/vsprintf-posix-tests: New file.
104127         * tests/test-vsprintf-posix.c: New file.
104128         * tests/test-sprintf-posix.h: New file.
104130         * modules/vsprintf-posix: New file.
104131         * lib/vsprintf.c: New file.
104132         * m4/vsprintf-posix.m4: New file.
104133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
104134         REPLACE_VSPRINTF.
104135         * lib/stdio_.h (vsprintf): New declaration.
104136         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
104137         REPLACE_VSPRINTF.
104139 2007-03-06  Bruno Haible  <bruno@clisp.org>
104141         * modules/vsnprintf (Depend-on): Remove minmax.
104143 2007-03-06  Bruno Haible  <bruno@clisp.org>
104145         * modules/snprintf-posix-tests: New file.
104146         * tests/test-snprintf-posix.c: New file.
104148         * modules/snprintf-posix: New file.
104149         * m4/snprintf-posix.m4: New file.
104150         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
104151         gl_FUNC_SNPRINTF.
104152         (gl_FUNC_SNPRINTF): Invoke it.
104153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
104154         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
104155         is set.
104156         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
104158 2007-03-06  Bruno Haible  <bruno@clisp.org>
104160         * modules/vsnprintf-posix-tests: New file.
104161         * tests/test-vsnprintf-posix.c: New file.
104162         * tests/test-snprintf-posix.h: New file.
104164         * modules/vsnprintf-posix: New file.
104165         * m4/vsnprintf-posix.m4: New file.
104166         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
104167         gl_FUNC_VSNPRINTF.
104168         (gl_FUNC_VSNPRINTF): Invoke it.
104169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
104170         * lib/stdio_.h (vsnprintf): Define as a replacement if
104171         REPLACE_VSNPRINTF is set.
104172         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
104174 2007-03-06  Bruno Haible  <bruno@clisp.org>
104176         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
104177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
104179 2007-03-06  Bruno Haible  <bruno@clisp.org>
104181         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
104182         (asinl): Declare also if HAVE_DECL_ASINL is set.
104183         (atanl): Declare also if HAVE_DECL_ATANL is set.
104184         (ceill): Declare also if HAVE_DECL_CEILL is set.
104185         (cosl): Declare also if HAVE_DECL_COSL is set.
104186         (expl): Declare also if HAVE_DECL_EXPL is set.
104187         (floorl): Declare also if HAVE_DECL_FLOORL is set.
104188         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
104189         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
104190         (logl): Declare also if HAVE_DECL_LOGL is set.
104191         (sinl): Declare also if HAVE_DECL_SINL is set.
104192         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
104193         (tanl): Declare also if HAVE_DECL_TANL is set.
104194         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
104195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
104196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
104197         declaration of frexpl, ldexpl.
104198         * modules/printf-frexpl (Depends-on): Add math.
104199         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
104201 2007-03-05  Bruno Haible  <bruno@clisp.org>
104203         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
104204         frexpl and ldexpl are declared.
104205         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
104207 2007-03-05  Bruno Haible  <bruno@clisp.org>
104209         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
104210         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
104212 2007-03-05  Bruno Haible  <bruno@clisp.org>
104214         * lib/stdio_.h: Include <stddef.h>.
104216 2007-03-05  Bruno Haible  <bruno@clisp.org>
104218         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
104220 2007-03-05  Bruno Haible  <bruno@clisp.org>
104222         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
104223         NetBSD 4, from Ralf Wildenhues.
104225 2007-03-04  Bruno Haible  <bruno@clisp.org>
104227         * lib/vasprintf.h: Update #if logic for the case when the functions
104228         exist but are overridden.
104230 2007-03-04  Bruno Haible  <bruno@clisp.org>
104232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
104233         implementations: glibc-2.4 and MacOS X 10.3.
104234         * tests/test-vasnprintf-posix.c (test_function): Test also the case
104235         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
104236         * tests/test-vasprintf-posix.c (test_function): Likewise.
104238 2007-03-04  Bruno Haible  <bruno@clisp.org>
104240         * modules/vasprintf-posix-tests: New file.
104241         * tests/test-vasprintf-posix.c: New file.
104243         * modules/vasprintf-posix: New file.
104244         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
104245         defined.
104246         * m4/vasprintf-posix.m4: New file.
104247         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
104248         gl_FUNC_VASPRINTF.
104249         (gl_FUNC_VASPRINTF): Invoke it.
104250         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
104251         here.
104252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
104254 2007-03-04  Bruno Haible  <bruno@clisp.org>
104256         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
104257         REPLACE_GETTIMEOFDAY.
104258         * modules/sys_time (Makefile.am): Likewise.
104259         * m4/sys_time_h.m4: Likewise.
104260         * m4/gettimeofday.m4: Likewise.
104262 2007-03-04  Bruno Haible  <bruno@clisp.org>
104264         * modules/vasnprintf-posix-tests: New file.
104265         * tests/test-vasnprintf-posix.c: New file.
104267         * modules/vasnprintf-posix: New file.
104268         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
104269         printf-frexpl.h.
104270         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
104271         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
104272         REPLACE_VASNPRINTF is defined.
104273         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
104274         gl_FUNC_VASNPRINTF.
104275         (gl_FUNC_VASNPRINTF): Invoke it.
104276         * m4/vasnprintf-posix.m4: New file.
104277         * m4/printf.m4: New file.
104279 2007-03-04  Bruno Haible  <bruno@clisp.org>
104281         Compile progreloc.c only if --enable-relocatable is specified.
104282         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
104283         if --enable-relocatable was specified.
104284         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
104285         lib_SOURCES.
104287 2007-03-04  Jim Meyering  <jim@meyering.net>
104289         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
104290         Use it consistently, rather than enumerating errno constants.
104292 2007-03-04  Bruno Haible  <bruno@clisp.org>
104294         * modules/xvasprintf-tests: New file.
104295         * tests/test-xvasprintf.c: New file.
104297         * modules/vasprintf-tests: New file.
104298         * tests/test-vasprintf.c: New file.
104300         * modules/vasnprintf-tests: New file.
104301         * tests/test-vasnprintf.c: New file.
104303         * modules/vsnprintf-tests: New file.
104304         * tests/test-vsnprintf.c: New file.
104306         * modules/snprintf-tests: New file.
104307         * tests/test-snprintf.c: New file.
104309 2007-03-04  Bruno Haible  <bruno@clisp.org>
104311         Compile relocatable.c only if --enable-relocatable is specified.
104312         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
104313         gl_RELOCATABLE_LIBRARY.
104314         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
104315         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
104316         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
104317         gl_RELOCATABLE_LIBRARY.
104318         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
104319         (Makefile.am): Remove lib_SOURCES.
104320         * modules/relocatable-lib-lgpl (configure.ac): Invoke
104321         gl_RELOCATABLE_LIBRARY.
104322         (Makefile.am): Remove lib_SOURCES.
104323         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
104324         always.
104325         * modules/relocatable-prog-wrapper (configure.ac): Invoke
104326         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
104328 2007-03-04  Bruno Haible  <bruno@clisp.org>
104330         * modules/argmatch-tests: New file.
104331         * tests/test-argmatch.c: New file.
104333         * tests/test-allocsa.c (main): Halve the number of loop runs.
104335         * modules/alloca-opt-tests: New file.
104336         * tests/test-alloca-opt.c: New file.
104338 2007-03-04  Jim Meyering  <jim@meyering.net>
104340         Work around difference between Linux ACLs and Solaris 10 ZFS.
104341         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
104342         for EINVAL.
104344 2007-03-03  Bruno Haible  <bruno@clisp.org>
104346         * modules/relocatable-prog (Depends-on): Add back progreloc's
104347         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
104349 2007-03-03  Bruno Haible  <bruno@clisp.org>
104351         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
104352         * modules/relocatable-lib: New file.
104354 2007-03-03  Bruno Haible  <bruno@clisp.org>
104356         * modules/relocatable-prog: Renamed from modules/relocatable.
104357         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
104359 2007-03-03  Bruno Haible  <bruno@clisp.org>
104361         * modules/relocatable-script (Files): Add doc/relocatable.texi,
104362         m4/relocatable-lib.m4.
104363         (Depends-on): Remove 'relocatable'.
104364         (configure.ac): Add gl_RELOCATABLE_NOP.
104366 2007-03-03  Bruno Haible  <bruno@clisp.org>
104368         * modules/relocatable-prog-wrapper: New file.
104369         * modules/relocatable (Depends-on): Add it. Remove all other
104370         dependencies except progname.
104371         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
104373         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
104374         (gl_FUNC_STRERROR): Nop.
104375         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
104377         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
104378         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
104380         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
104381         (gl_FUNC_READLINK): Update.
104383         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
104385 2007-03-03  Bruno Haible  <bruno@clisp.org>
104387         * lib/xreadlink.c: Include <unistd.h> unconditionally.
104388         * modules/xreadlink (Depends-on): Add unistd.
104389         * modules/xreadlink-with-size (Depends-on): Likewise.
104391 2007-03-03  Bruno Haible  <bruno@clisp.org>
104393         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
104394         extracted from gt_FUNC_SETENV.
104395         (gt_FUNC_SETENV): Remove macro.
104396         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
104397         remove gt_FUNC_SETENV.
104399 2007-03-03  Bruno Haible  <bruno@clisp.org>
104401         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
104402         ENABLE_RELOCATABLE here.
104403         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
104405 2007-03-03  Bruno Haible  <bruno@clisp.org>
104407         * modules/rbtreehash-list-tests (Depends-on): Add progname.
104408         * tests/test-rbtreehash_list.c: Include progname.h.
104409         (main): Call set_program_name.
104411         * modules/rbtree-oset-tests (Depends-on): Add progname.
104412         * tests/test-rbtree_oset.c: Include progname.h.
104413         (main): Call set_program_name.
104415         * modules/rbtree-list-tests (Depends-on): Add progname.
104416         * tests/test-rbtree_list.c: Include progname.h.
104417         (main): Call set_program_name.
104419         * modules/linked-list-tests (Depends-on): Add progname.
104420         * tests/test-linked_list.c: Include progname.h.
104421         (main): Call set_program_name.
104423 2007-03-03  Bruno Haible  <bruno@clisp.org>
104425         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
104426         All uses of __restrict changed to _Restrict_.
104427         * lib/glob_.h (__restrict): Remove macro.
104429 2007-03-02  Bruno Haible  <bruno@clisp.org>
104431         * modules/gettext (configure.ac): Require gettext infrastructure
104432         from version 0.16.1.
104434 2007-03-02  Bruno Haible  <bruno@clisp.org>
104436         * modules/linkedhash-list-tests (Depends-on): Add progname.
104437         * tests/test-linkedhash_list.c: Include progname.h.
104438         (main): Call set_program_name.
104440         * modules/carray-list-tests (Depends-on): Add progname.
104441         * tests/test-carray_list.c: Include progname.h.
104442         (main): Call set_program_name.
104444         * modules/avltreehash-list-tests (Depends-on): Add progname.
104445         * tests/test-avltreehash_list.c: Include progname.h.
104446         (main): Call set_program_name.
104448         * modules/avltree-oset-tests (Depends-on): Add progname.
104449         * tests/test-avltree_oset.c: Include progname.h.
104450         (main): Call set_program_name.
104452         * modules/avltree-list-tests (Depends-on): Add progname.
104453         * tests/test-avltree_list.c: Include progname.h.
104454         (main): Call set_program_name.
104456         * modules/array-oset-tests (Depends-on): Add progname.
104457         * tests/test-array_oset.c: Include progname.h.
104458         (main): Call set_program_name.
104460         * modules/array-list-tests (Depends-on): Add progname.
104461         * tests/test-array_list.c: Include progname.h.
104462         (main): Call set_program_name.
104464         * modules/argp-tests (Depends-on): Add progname.
104465         * tests/test-argp.c: Include argp.h first. Include progname.h.
104466         (main): Call set_program_name.
104468 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
104470         * doc/gnulib-tool.texi (Initial import): Reword description of
104471         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
104472         limited effect even if defined after the first system include.
104474 2007-03-01  Bruno Haible  <bruno@clisp.org>
104476         * build-aux/config.libpath: Update to libtool-1.5.22.
104477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
104479 2007-03-01  Bruno Haible  <bruno@clisp.org>
104481         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
104482         foo_CFLAGS.
104483         Reported by Ralf Wildenhues.
104485 2007-03-01  Bruno Haible  <bruno@clisp.org>
104487         * build-aux/install-reloc: Remove object files left over by some
104488         compilers.
104489         Reported by Ralf Wildenhues.
104491 2007-03-01  Bruno Haible  <bruno@clisp.org>
104493         * build-aux/install-reloc: Break long lines.
104495 2007-03-01  Bruno Haible  <bruno@clisp.org>
104497         * doc/relocatable.texi: Document that it may not work on OpenBSD.
104498         Reported by Ralf Wildenhues.
104500 2007-03-01  Bruno Haible  <bruno@clisp.org>
104502         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
104503         include ordering constraints.
104505 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104507         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
104508         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
104509         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
104510         as another example.
104511         * lib/time_.h: Fix misspelling.
104512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104513         Require gl_HEADER_TIME_H_DEFAULTS.
104514         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
104515         * m4/time_r.m4 (gl_TIME_R): Likewise.
104516         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
104518 2007-03-01  Bruno Haible  <bruno@clisp.org>
104520         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
104521         * m4/utimens.m4 (gl_UTIMENS): Likewise.
104523 2007-03-01  Jim Meyering  <jim@meyering.net>
104525         * modules/xreadlink (Maintainer): Add my name.
104526         * modules/xreadlink-with-size (Depends-on): Alphabetize.
104528 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
104529             Bruno Haible  <bruno@clisp.org>
104531         * build-aux/install-reloc: Compile also c-ctype.c.
104532         * build-aux/relocatable.sh.in: New file.
104533         * doc/relocatable.texi: New file.
104534         * doc/relocatable-maint.texi: New file.
104535         * doc/gnulib.texi: Include relocatable-maint.texi.
104536         * lib/progreloc.c: Include unistd.h unconditionally.
104537         * lib/relocwrapper.c: Include unistd.h unconditionally.
104538         Include c-ctype.h.
104539         (add_dotbin): Use c_tolower.
104540         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
104541         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
104542         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
104543         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
104544         to m4/relocatable-lib.m4.
104545         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
104546         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
104547         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
104548         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
104549         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
104550         * modules/relocatable: New file.
104551         * modules/relocatable-lib: New file.
104552         * modules/relocatable-script: New file.
104554 2007-02-28  Bruno Haible  <bruno@clisp.org>
104556         Import --enable-relocatable infrastructure.
104557         * build-aux/config.libpath: New file, from GNU gettext.
104558         * build-aux/install-reloc: New file, from GNU gettext.
104559         * build-aux/reloc-ldflags: New file, from GNU gettext.
104560         * lib/relocatable.h: New file, from GNU gettext.
104561         * lib/relocatable.c: New file, from GNU gettext.
104562         * lib/relocwrapper.c: New file, from GNU gettext.
104563         * m4/relocatable.m4: New file, from GNU gettext.
104565 2007-02-28  Bruno Haible  <bruno@clisp.org>
104567         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
104569         * modules/xreadlink: New file, from GNU gettext with modifications.
104570         * lib/xreadlink.c: New file, from GNU gettext.
104571         * lib/xreadlink.h: Add comments.
104572         (xreadlink): New declaration.
104574         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
104575         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
104576         lib/xreadlink-with-size.c.
104577         (configure.ac): Remove gl_XREADLINK invocation.
104578         (Makefile.am): Augment lib_SOURCES.
104579         * m4/xreadlink.m4: Remove file.
104580         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
104581         (xreadlink_with_size): Renamed from xreadink.
104582         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
104583         * modules/canonicalize (Depends-on): Replace xreadlink with
104584         xreadlink-with-size.
104585         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104587 2007-02-25  Jim Meyering  <jim@meyering.net>
104589         * build-aux/announce-gen: When complaining about excess arguments,
104590         list them.
104592 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104594         * README: Document signed integer overflow situation more
104595         accurately.
104597 2007-02-25  Bruno Haible  <bruno@clisp.org>
104599         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104600         'a' or 'A' conversion.
104602 2007-02-25  Bruno Haible  <bruno@clisp.org>
104604         * modules/filename: Renamed from modules/pathname.
104605         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104606         lib/concatpath.c with lib/concat-filename.c.
104607         (Makefile.am): Update.
104608         (Include): Replace pathname.h with filename.h.
104609         * lib/filename.h: Renamed from lib/pathname.h.
104610         (concatenated_filename): Renamed from concatenated_pathname.
104611         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104612         (concatenated_filename): Renamed from concatenated_pathname.
104613         * lib/findprog.c: Include filename.h instead of pathname.h.
104614         (find_in_path): Update.
104615         * lib/javacomp.c: Include filename.h instead of pathname.h.
104616         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104617         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104618         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104619         is_oldgcj_14_13_usable, is_javac_usable): Update.
104620         * lib/javaexec.c: Include filename.h instead of pathname.h.
104621         (execute_java_class): Update.
104622         * modules/findprog: Update.
104623         * modules/javacomp: Update.
104624         * modules/javaexec: Update.
104625         * MODULES.html.sh (File system functions): Add 'filename', remove
104626         'pathname'.
104628 2007-02-25  Bruno Haible  <bruno@clisp.org>
104630         * modules/printf-frexpl-tests: New file.
104631         * tests/test-printf-frexpl.c: New file.
104633         * modules/printf-frexpl: New file.
104634         * lib/printf-frexpl.h: New file.
104635         * lib/printf-frexpl.c: New file.
104636         * m4/printf-frexpl.m4: New file.
104638 2007-02-25  Bruno Haible  <bruno@clisp.org>
104640         * modules/printf-frexp-tests: New file.
104641         * tests/test-printf-frexp.c: New file.
104643         * modules/printf-frexp: New file.
104644         * lib/printf-frexp.h: New file.
104645         * lib/printf-frexp.c: New file.
104646         * m4/printf-frexp.m4: New file.
104648 2007-02-25  Bruno Haible  <bruno@clisp.org>
104650         Assume automake >= 1.10 for the tests.
104651         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104652         * modules/arctwo-tests: Likewise.
104653         * modules/argp-tests: Likewise.
104654         * modules/avltree-list-tests: Likewise.
104655         * modules/avltree-oset-tests: Likewise.
104656         * modules/avltreehash-list-tests: Likewise.
104657         * modules/carray-list-tests: Likewise.
104658         * modules/crc-tests: Likewise.
104659         * modules/des-tests: Likewise.
104660         * modules/gc-arcfour-tests: Likewise.
104661         * modules/gc-arctwo-tests: Likewise.
104662         * modules/gc-des-tests: Likewise.
104663         * modules/gc-hmac-md5-tests: Likewise.
104664         * modules/gc-hmac-sha1-tests: Likewise.
104665         * modules/gc-md2-tests: Likewise.
104666         * modules/gc-md4-tests: Likewise.
104667         * modules/gc-md5-tests: Likewise.
104668         * modules/gc-pbkdf2-sha1-tests: Likewise.
104669         * modules/gc-rijndael-tests: Likewise.
104670         * modules/gc-sha1-tests: Likewise.
104671         * modules/gc-tests: Likewise.
104672         * modules/getaddrinfo-tests: Likewise.
104673         * modules/hmac-md5-tests: Likewise.
104674         * modules/hmac-sha1-tests: Likewise.
104675         * modules/linked-list-tests: Likewise.
104676         * modules/linkedhash-list-tests: Likewise.
104677         * modules/lock-tests: Likewise.
104678         * modules/md2-tests: Likewise.
104679         * modules/md4-tests: Likewise.
104680         * modules/md5-tests: Likewise.
104681         * modules/rbtree-list-tests: Likewise.
104682         * modules/rbtree-oset-tests: Likewise.
104683         * modules/rbtreehash-list-tests: Likewise.
104684         * modules/read-file-tests: Likewise.
104685         * modules/rijndael-tests: Likewise.
104686         * modules/stdint-tests: Likewise.
104687         * modules/tls-tests: Likewise.
104689 2007-02-24  Bruno Haible  <bruno@clisp.org>
104691         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104692         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104693         function; instead check whether isnan with a double argument links.
104694         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104695         function; instead check whether isnan with a 'long double' argument
104696         links.
104697         Reported by Eric Blake <ebb9@byu.net>.
104699 2007-02-24  Bruno Haible  <bruno@clisp.org>
104701         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104702         defined.
104703         * lib/isnanl.c: Remove all code. Just include isnan.c.
104704         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104706 2007-02-25  Jim Meyering  <jim@meyering.net>
104708         Avoid conflicting types for 'unsetenv' on FreeBSD.
104709         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104710         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104711         in stdlib.h.
104713 2007-02-24  Bruno Haible  <bruno@clisp.org>
104715         * modules/isnanl-nolibm-tests: New file.
104716         * tests/test-isnanl.c: New file.
104718         * modules/isnanl-nolibm: New file.
104719         * lib/isnanl.h: New file.
104720         * lib/isnanl.c: New file.
104721         * m4/isnanl.m4: New file.
104723 2007-02-24  Bruno Haible  <bruno@clisp.org>
104725         * modules/isnan-nolibm-tests: New file.
104726         * tests/test-isnan.c: New file.
104728         * modules/isnan-nolibm: New file.
104729         * lib/isnan.h: New file.
104730         * lib/isnan.c: New file.
104731         * m4/isnan.m4: New file.
104733 2007-02-24  Bruno Haible  <bruno@clisp.org>
104735         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104736         assume that an exponent fits in 20 bits.
104738 2007-02-24  Jim Meyering  <jim@meyering.net>
104740         * m4/regex.m4: Update the description of the configure-time option,
104741         --without-included-regex, to state accurately what the defaults are,
104742         and perhaps to give people an idea why using this option is risky.
104744 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104747         loops on small arguments.  This attempts to avoid the problem
104748         Bruno Haible reported for AIX 4.3.2 in
104749         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104751 2007-02-23  Bruno Haible  <bruno@clisp.org>
104753         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104754         Needed for help2man.
104756 2007-02-23  Karl Berry  <karl@gnu.org>
104758         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104759         exists, foo.h should be cvs-ignored, not committed.
104761 2007-02-23  Eric Blake  <ebb9@byu.net>
104763         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104764         * lib/stat-time.h (includes): Likewise.
104765         * lib/utimecmp.c (includes): Likewise.
104766         * lib/utimens.h (includes): Likewise.
104767         * lib/getdate.y (includes): Also include "timespec.h" for use
104768         internal to the module.
104769         * modules/utimens (Depends-on): Revert yesterday's patch.
104770         * modules/nanosleep (Depends-on): Add missing dependency.
104772 2007-02-22  Bruno Haible  <bruno@clisp.org>
104774         * lib/glob.c: Don't include getlogin_r.h.
104776 2007-02-22  Jim Meyering  <jim@meyering.net>
104778         * modules/utimens (Depends-on): Add timespec, required for
104779         utimens.h's inclusion of timespec.h.
104781 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104783         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104784         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104785         Schwab in
104786         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104787         I'll try to think of a better way to fix the Solaris problem.
104789         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104790         like glibc; on Solaris 10, it fails with errno == EINVAL.
104791         POSIX says the behavior is unspecified if the first argument is NULL,
104792         so play it safe and never pass NULL to the system getcwd.
104794 2007-02-21  Jim Meyering  <jim@meyering.net>
104796         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104797         of gettimeofday.  It would conflict with the one now always
104798         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104799         an IRIX 6.5 build failure.
104801 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104803         Minor fixups to port to Solaris 10 with Sun C 5.8.
104804         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104805         * modules/getcwd (Depends-on): Add dirfd.
104806         * lib/putenv.c (putenv): #undef it.
104807         (rpl_putenv): New decl.
104808         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104810 2007-02-20  Bruno Haible  <bruno@clisp.org>
104812         * modules/stdio-tests: New file.
104813         * tests/test-stdio.c: New file.
104815         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104816         (Depends-on): Add stdio.
104817         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104818         (Include): Use <stdio.h> instead of vsnprintf.h.
104819         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104820         HAVE_DECL_VSNPRINTF.
104821         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104823         * modules/snprintf (Files): Remove lib/snprintf.h.
104824         (Depends-on): Add stdio.
104825         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104826         (Include): Use <stdio.h> instead of snprintf.h.
104827         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104828         HAVE_DECL_SNPRINTF.
104829         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104830         * lib/getaddrinfo.c: Likewise.
104832         * modules/stdio: New file.
104833         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104834         * lib/snprintf.h: Remove file.
104835         * lib/vsnprintf.h: Remove file.
104836         * lib/.cppi-disable: Remove snprintf.h.
104837         * m4/stdio_h.m4: New file.
104838         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104840 2007-02-20  Jim Meyering  <jim@meyering.net>
104842         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104843         used by e.g., mingw.  From Bruno Haible.
104845 2007-02-19  Bruno Haible  <bruno@clisp.org>
104847         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104848         warnings.
104849         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104851 2007-02-19  Bruno Haible  <bruno@clisp.org>
104853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104854         from mingw users.
104856 2007-02-19  Bruno Haible  <bruno@clisp.org>
104858         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104859         warnings.
104860         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104862 2007-02-19  Jim Meyering  <jim@meyering.net>
104864         Don't use FD after a successful "fdopendir (fd)".
104865         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104866         Reset it by calling dirfd on the just-obtained DIR*.
104868         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104869         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104871 2007-02-18  Bruno Haible  <bruno@clisp.org>
104873         * lib/readlink.c: Include <unistd.h>.
104874         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104875         HAVE_READLINK.
104876         * modules/readlink (Depends-on): Add unistd.
104877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104878         (Include): Add <unistd.h>.
104880         * lib/getlogin_r.h: Remove file.
104881         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104882         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104883         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104884         HAVE_DECL_GETLOGIN_R.
104885         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104887         (Include): Use <unistd.h> instead of getlogin_r.h.
104889         * lib/getcwd.h: Remove file.
104890         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104891         * lib/xgetcwd.c: Likewise.
104892         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104893         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104894         * modules/getcwd (Files): Remove lib/getcwd.h.
104895         (Depends-on): Add unistd.
104896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104897         (Include): Use <unistd.h> instad of getcwd.h.
104899         * lib/ftruncate.c: Include <unistd.h> first.
104900         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104901         Set HAVE_FTRUNCATE.
104902         * modules/ftruncate (Depends-on): Add unistd.
104903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104905         * lib/fchdir.c: Include <unistd.h> first.
104906         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104908         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104909         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104910         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104912         * lib/dup2.c: Include <unistd.h> first.
104913         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104914         HAVE_DUP2.
104915         * modules/dup2 (Depends-on): Add unistd.
104916         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104918         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104919         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104920         REPLACE_CHOWN. Don't define chown as a macro here.
104921         * modules/chown (Depends-on): Add unistd.
104922         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104924         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104925         Add definition for GL_LINK_WARNING.
104926         (chown, dup2): New declarations.
104927         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104928         link warning.
104929         (ftruncate): New declaration.
104930         (getcwd): New declaration, taken from old getcwd.h.
104931         (getlogin_r): New declaration, taken from old getlogin_r.h.
104932         (readlink): New declaration.
104933         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104934         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104935         (gl_PREREQ_UNISTD): Remove macro.
104936         (gl_UNISTD_MODULE_INDICATOR): New macro.
104937         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104938         many new variables. Don't set UNISTD_H.
104939         * modules/unistd (Description): Change.
104940         (Depends-on): Add link-warning.
104941         (configure.ac): Update.
104942         (Makefile.am): Create unistd.h always. Substitute many new variables
104943         into it.
104945 2007-02-18  Bruno Haible  <bruno@clisp.org>
104947         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104948         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104949         HAVE_GETSUBOPT.
104950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104951         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104952         * lib/getsubopt.h: Remove file.
104953         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104954         (Depends-on): Add stdlib.
104955         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104956         (Includes): Use <stdlib.h> instead of getsubopt.h.
104957         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104958         Set HAVE_GETSUBOPT.
104959         * lib/getsubopt.c: Don't include getsubopt.h.
104961 2007-02-18  Bruno Haible  <bruno@clisp.org>
104963         * modules/fchdir (Depends-on): Add dup2.
104965 2007-02-18  Bruno Haible  <bruno@clisp.org>
104967         * lib/stdlib_.h: Handle glibc's special invocation convention
104968         specially.
104970 2007-02-18  Bruno Haible  <bruno@clisp.org>
104972         * modules/stdlib-tests: New file.
104973         * tests/test-stdlib.c: New file.
104975         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104976         (Depends-on): Add stdlib.
104977         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104978         (Includes): Use <stdlib.h> instead of mkstemp.h.
104979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104980         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104981         * lib/mkstemp.c: Don't include mkstemp.h.
104982         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104983         * lib/stdlib--.h: Don't include mkstemp.h.
104985         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104986         (Depends-on): Add stdlib.
104987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104988         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104989         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104990         HAVE_MKDTEMP.
104991         * lib/mkdtemp.c: Don't include mkdtemp.h.
104992         * lib/clean-temp.c: Don't include mkdtemp.h.
104994         * modules/exit (Files): Remove lib/exit.h.
104995         (Depends-on): Add stdlib.
104996         (Makefile.am): Remove lib_SOURCES.
104997         (Include): Use <stdlib.h> instead of exit.h.
104998         * lib/argmatch.c: Don't include exit.h.
104999         * lib/execute.c: Likewise.
105000         * lib/pagealign_alloc.c: Likewise.
105001         * lib/pipe.c: Likewise.
105002         * lib/wait-process.c: Likewise.
105003         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
105004         * lib/exitfail.c: Likewise.
105005         * lib/savewd.c: Likewise.
105006         * lib/xsetenv.c: Likewise.
105008         * modules/stdlib: New file.
105009         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
105010         and extra comments about mkstemp().
105011         * lib/exit.h: Remove file.
105012         * lib/mkdtemp.h: Remove file.
105013         * lib/mkstemp.h: Remove file.
105014         * m4/stdlib_h.m4: New file.
105015         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
105017 2007-02-18  Bruno Haible  <bruno@clisp.org>
105019         * modules/math-tests: New file.
105020         * tests/test-math.c: New file.
105022         * modules/math: New file.
105023         * modules/mathl (Files): Remove lib/mathl.h.
105024         (Depends-on): Add math.
105025         (Makefile.am): Don't mention mathl.h.
105026         (Include): Use <math.h> instead of mathl.h.
105027         * lib/math_.h: New file.
105028         * lib/mathl.h: Remove file.
105029         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
105030         mathl.h.
105031         * lib/asinl.c: Likewise.
105032         * lib/atanl.c: Likewise.
105033         * lib/ceill.c: Likewise.
105034         * lib/cosl.c: Likewise.
105035         * lib/expl.c: Likewise.
105036         * lib/floorl.c: Likewise.
105037         * lib/frexpl.c: Likewise.
105038         * lib/ldexpl.c: Likewise.
105039         * lib/logl.c: Likewise.
105040         * lib/sincosl.c: Likewise.
105041         * lib/sinl.c: Likewise.
105042         * lib/sqrtl.c: Likewise.
105043         * lib/tanl.c: Likewise.
105044         * lib/trigl.c: Likewise.
105045         * m4/math_h.m4: New file.
105046         * MODULES.html.sh (Mathematics): Add math.
105048 2007-02-17  Bruno Haible  <bruno@clisp.org>
105050         * modules/wctype-tests: New file.
105051         * tests/test-wctype.c: New file.
105053         * modules/wchar-tests: New file.
105054         * tests/test-wchar.c: New file.
105056         * modules/unistd-tests: New file.
105057         * tests/test-unistd.c: New file.
105059         * modules/time-tests: New file.
105060         * tests/test-time.c: New file.
105062         * modules/sysexits-tests: New file.
105063         * tests/test-sysexits.c: New file.
105065         * modules/sys_time-tests: New file.
105066         * tests/test-sys_time.c: New file.
105068         * modules/sys_stat-tests: New file.
105069         * tests/test-sys_stat.c: New file.
105071         * modules/sys_socket-tests: New file.
105072         * tests/test-sys_socket.c: New file.
105074         * modules/sys_select-tests: New file.
105075         * tests/test-sys_select.c: New file.
105077         * modules/string-tests: New file.
105078         * tests/test-string.c: New file.
105080         * modules/stdbool-tests: New file.
105081         * tests/test-stdbool.c: New file.
105083         * modules/netinet_in-tests: New file.
105084         * tests/test-netinet_in.c: New file.
105086         * modules/inttypes-tests: New file.
105087         * tests/test-inttypes.c: New file.
105089         * modules/fcntl-tests: New file.
105090         * tests/test-fcntl.c: New file.
105092         * modules/byteswap-tests: New file.
105093         * tests/test-byteswap.c: New file.
105095         * modules/arpa_inet-tests: New file.
105096         * tests/test-arpa_inet.c: New file.
105098 2007-02-17  Bruno Haible  <bruno@clisp.org>
105100         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
105101         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
105102         if the corresponding module is not enabled. Emit link warnings if
105103         the function is used nevertheless.
105104         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
105105         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
105106         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
105107         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
105108         * modules/inttypes (Depends-on): Add link-warning.
105109         (Makefile.am): Copy the contents of build-aux/link-warning.h into
105110         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
105111         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
105112         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
105113         * modules/imaxdiv (configure.ac): Likewise.
105114         * modules/strtoimax (configure.ac): Likewise.
105115         * modules/strtoumax (configure.ac): Likewise.
105117 2007-02-17  Bruno Haible  <bruno@clisp.org>
105119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
105120         gl_STRING_MODULE_INDICATOR_DEFAULTS.
105121         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
105122         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
105124 2007-02-17  Bruno Haible  <bruno@clisp.org>
105126         * modules/link-warning: New file.
105127         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
105128         * lib/string_.h (GL_LINK_WARNING): Remove definition.
105129         * modules/string (Depends-on): Add link-warning.
105130         (Makefile.am): Copy the contents of build-aux/link-warning.h into
105131         string.h.
105132         * MODULES.html.sh (Support for building libraries and executables): Add
105133         link-warning.
105135 2007-02-17  Bruno Haible  <bruno@clisp.org>
105137         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
105138         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
105139         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
105140         long lines.
105142 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
105143             Bruno Haible  <bruno@clisp.org>
105145         * modules/tmpfile: New file.
105146         * lib/tmpfile.c: New file.
105147         * m4/tmpfile.m4: New file.
105148         * MODULES.html.sh (func_all_modules): New section "Input/output".
105150 2007-02-15  Bruno Haible  <bruno@clisp.org>
105152         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
105153         (supports_delete_on_close): New function.
105154         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
105156 2007-02-14  Bruno Haible  <bruno@clisp.org>
105158         * modules/mbspcasecmp-tests: New file.
105159         * tests/test-mbspcasecmp.sh: New file.
105160         * tests/test-mbspcasecmp.c: New file.
105162         New module mbspcasecmp.
105163         * modules/mbspcasecmp: New file.
105164         * lib/mbspcasecmp.c: New file.
105165         * lib/string_.h (strncasecmp): Change warning message.
105166         (mbspcasecmp): New declaration.
105167         * m4/mbspcasecmp.m4: New file.
105168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105169         GNULIB_MBSPCASECMP.
105170         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
105171         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
105173 2007-02-14  Bruno Haible  <bruno@clisp.org>
105175         * modules/mbsncasecmp-tests: New file.
105176         * tests/test-mbsncasecmp.sh: New file.
105177         * tests/test-mbsncasecmp.c: New file.
105179         New module mbsncasecmp.
105180         * modules/mbsncasecmp: New file.
105181         * lib/mbsncasecmp.c: New file.
105182         * lib/string_.h (mbsncasecmp): New declaration.
105183         * m4/mbsncasecmp.m4: New file.
105184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105185         GNULIB_MBSNCASECMP.
105186         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
105187         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
105189 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
105191         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
105192         Verify that it doesn't overlap with our flags.
105193         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
105194         do not have the desired effect in multibyte locales; instead, use
105195         mbscasecmp.
105196         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
105197         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
105198         we don't require GNU fnmatch ourselves (if our users require it, they
105199         should do so explicitly).
105201         Fix regex code so it doesn't rely on strcasecmp.
105202         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
105203         Otherwise, include gnulib's langinfo.h.
105204         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
105205         undesirable behavior in non-C locales.  Instead, rely on localecharset.
105206         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
105207         * modules/regex (FILES): Remove m4/codeset.m4.
105208         (Depends-on): Add localcharset.  Remove strcase.
105210 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105212         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
105213         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
105215 2007-02-13  Bruno Haible  <bruno@clisp.org>
105217         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
105218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105220 2007-02-12  Bruno Haible  <bruno@clisp.org>
105222         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105223         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
105224         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
105225         time warning rather than a link error.
105227 2007-02-12  Bruno Haible  <bruno@clisp.org>
105229         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
105230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
105231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105233 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105235         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
105236         args, not 2.
105238 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105240         New module 'time', so that apps can include <time.h> as per
105241         POSIX and GNU instead of separate include files like time_r.h
105242         and timegm.h.  This implementation tries out a simpler approach
105243         for replacing decls in standard include files (as compared to
105244         the string module), somewhat as an experiment.
105246         * config/srclist.txt: Comment out mktime.c for now.
105247         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
105248         since it doesn't apply any more.  Use generic wording instead.
105249         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
105250         'time'.
105251         * lib/time_.h, m4/time_h.m4, modules/time: New files.
105252         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
105253         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
105254         Don't include <sys/types.h>; no longer needed since we assume C89.
105255         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
105256         * lib/strftime.c: Likewise.
105257         * lib/time_r.c: Likewise.
105258         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
105259         * lib/nanosleep.c: Include <time.h> first, to check interface.
105260         * lib/strptime.c: Likewise.
105261         * lib/time_r.c: Likewise.
105262         * lib/timegm.c: Likewise.
105263         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
105264         needed.
105265         * lib/timegm.c: Don't include timegm.h; no longer needed.
105266         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
105267         time.h now handles any problems in that area.
105268         (struct timespec, nanosleep): Remove; time.h now arranges for these.
105269         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
105270         that time.h defines struct timespec.
105271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
105272         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
105273         handles that.
105274         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
105275         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
105276         needed.  Set REPLACE_LOCALTIME.
105277         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
105278         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
105279         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
105280         nanosleep; time_h.m4 now does that.  Don't require
105281         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
105282         module handles this now.
105283         * modules/getdate (Depends-on): Remove timespec.  Add time.
105284         * modules/nanosleep (Depends-on): Likewise.
105285         * modules/stat-time (Depends-on): Likewise.
105286         * modules/nanosleep (Include): Include time.h, not timespec.h.
105287         * modules/strptime (Files): Remove lib/strptime.h.
105288         (Depends-on): Add extensions, time.
105289         (Include): Include time.h, not strptime.h.
105290         * modules/time_r (Files): Remove lib/time_r.h.
105291         (Depends-on): Add time.
105292         (Include): Include time.h, not time_r.h.
105293         * modules/timegm: Likewise.
105294         * modules/timespec (Description): Now does timespec-related decls
105295         of our own, instead of struct timespec itself.
105296         (Depends-on): Add time; remove extensions.
105297         (Maintainer): Add self.
105298         * modules/utimecmp (Depends-on): Add time; remove timespec.
105299         * modules/utimens (Depends-on): Likewise.
105300         * modules/xnanosleep (Depends-on): Likewise.
105302 2007-02-11  Bruno Haible  <bruno@clisp.org>
105304         * lib/c-strstr.c: Include allocsa.h.
105305         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105306         * lib/c-strcasestr.c: Include allocsa.h.
105307         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105308         * lib/strcasestr.c: Include allocsa.h.
105309         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105310         * lib/mbsstr.c: Include allocsa.h.
105311         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105312         allocsa/freesa instead of malloc/free.
105313         * lib/mbscasestr.c: Include allocsa.h.
105314         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105315         allocsa/freesa instead of malloc/free.
105316         * modules/c-strstr (Depends-on): Add allocsa.
105317         * modules/c-strcasestr (Depends-on): Likewise.
105318         * modules/strcasestr (Depends-on): Likewise.
105319         * modules/mbsstr (Depends-on): Likewise.
105320         * modules/mbscasestr (Depends-on): Likewise.
105322 2007-02-11  Bruno Haible  <bruno@clisp.org>
105324         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
105326         * modules/mbsspn-tests: New file.
105327         * tests/test-mbsspn.sh: New file.
105328         * tests/test-mbsspn.c: New file.
105330 2007-02-11  Bruno Haible  <bruno@clisp.org>
105332         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
105334         * modules/mbspbrk-tests: New file.
105335         * tests/test-mbspbrk.sh: New file.
105336         * tests/test-mbspbrk.c: New file.
105338 2007-02-11  Bruno Haible  <bruno@clisp.org>
105340         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
105341         unneeded cast.
105343         * modules/mbscspn-tests: New file.
105344         * tests/test-mbscspn.sh: New file.
105345         * tests/test-mbscspn.c: New file.
105347 2007-02-11  Bruno Haible  <bruno@clisp.org>
105349         * modules/mbscasecmp-tests: New file.
105350         * tests/test-mbscasecmp.sh: New file.
105351         * tests/test-mbscasecmp.c: New file.
105353 2007-02-11  Bruno Haible  <bruno@clisp.org>
105355         Ensure O(n) worst-case complexity of mbscasestr.
105356         * lib/mbscasestr.c: Include stdbool.h.
105357         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105358         functions.
105359         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
105360         the bookkeeping indicates that it's worth it.
105361         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
105363         * modules/mbscasestr-tests: New file.
105364         * tests/test-mbscasestr1.c: New file.
105365         * tests/test-mbscasestr2.sh: New file.
105366         * tests/test-mbscasestr2.c: New file.
105367         * tests/test-mbscasestr3.sh: New file.
105368         * tests/test-mbscasestr3.c: New file.
105369         * tests/test-mbscasestr4.sh: New file.
105370         * tests/test-mbscasestr4.c: New file.
105371         * m4/locale-tr.m4: New file.
105373 2007-02-11  Bruno Haible  <bruno@clisp.org>
105375         Ensure O(n) worst-case complexity of mbsstr.
105376         * lib/mbsstr.c: Include stdbool.h.
105377         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105378         functions.
105379         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
105380         bookkeeping indicates that it's worth it.
105381         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
105383         * modules/mbsstr-tests: New file.
105384         * tests/test-mbsstr1.c: New file.
105385         * tests/test-mbsstr2.sh: New file.
105386         * tests/test-mbsstr2.c: New file.
105387         * tests/test-mbsstr3.sh: New file.
105388         * tests/test-mbsstr3.c: New file.
105389         * m4/locale-fr.m4: New file.
105391 2007-02-11  Bruno Haible  <bruno@clisp.org>
105393         * lib/mbsrchr.c (mbsrchr): Fix bug.
105395         * modules/mbsrchr-tests: New file.
105396         * tests/test-mbsrchr.sh: New file.
105397         * tests/test-mbsrchr.c: New file.
105399 2007-02-11  Bruno Haible  <bruno@clisp.org>
105401         * lib/mbschr.c (mbschr): Fix bug.
105403         * modules/mbschr-tests: New file.
105404         * tests/test-mbschr.sh: New file.
105405         * tests/test-mbschr.c: New file.
105406         * m4/locale-zh.m4: New file.
105408 2007-02-11  Bruno Haible  <bruno@clisp.org>
105410         Support for copying multibyte string iterators.
105411         * lib/mbiter.h: Include <string.h>.
105412         (mbiter_multi_copy): New function.
105413         (mbi_copy): New macro.
105414         * lib/mbuiter.h: Include <string.h>.
105415         (mbuiter_multi_copy): New function.
105416         (mbui_copy): New macro.
105418 2007-02-11  Bruno Haible  <bruno@clisp.org>
105420         New module mbslen.
105421         * modules/mbslen: New file.
105422         * lib/mbslen.c: New file.
105423         * lib/string_.h (mbslen): New declaration.
105424         * m4/mbslen.m4: New file.
105425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105426         GNULIB_MBSLEN.
105427         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
105428         * MODULES.html.sh (Internationalization functions): Add mbslen.
105430 2007-02-11  Bruno Haible  <bruno@clisp.org>
105432         Ensure O(n) worst-case complexity of strcasestr substitute.
105433         * lib/strcasestr.c: Include stdbool.h.
105434         (knuth_morris_pratt): New function.
105435         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105436         bookkeeping indicates that it's worth it.
105437         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
105439         * modules/strcasestr-tests: New file.
105440         * tests/test-strcasestr.c: New file.
105442 2007-02-11  Bruno Haible  <bruno@clisp.org>
105444         Ensure O(n) worst-case complexity of c_strcasestr.
105445         * lib/c-strcasestr.c: Include stdbool.h, string.h.
105446         (knuth_morris_pratt): New function.
105447         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
105448         the bookkeeping indicates that it's worth it.
105449         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
105451         * modules/c-strcasestr-tests: New file.
105452         * tests/test-c-strcasestr.c: New file.
105454 2007-02-11  Bruno Haible  <bruno@clisp.org>
105456         Ensure O(n) worst-case complexity of c_strstr.
105457         * lib/c-strstr.c: Include stdbool.h, string.h.
105458         (knuth_morris_pratt): New function.
105459         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105460         bookkeeping indicates that it's worth it.
105461         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
105463         * lib/c-strstr.c: Complete rewrite for maintainability.
105465         * modules/c-strstr-tests: New file.
105466         * tests/test-c-strstr.c: New file.
105468 2007-02-11  Bruno Haible  <bruno@clisp.org>
105470         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
105471         5.2.1 and earlier, whereby \055 was treated just like the range
105472         delimiter '-'.
105473         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
105475 2007-02-08  Bruno Haible  <bruno@clisp.org>
105477         * modules/regex (Depends-on): Add stdbool.
105478         Reported by Dalibor Topic <robilad@kaffe.org>.
105480 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
105482         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
105483         Prefer returning from main to exiting from it.
105484         Remove unnecessary parens after sizeof.
105486 2007-02-05  Bruno Haible  <bruno@clisp.org>
105488         New module mbssep.
105489         * modules/mbssep: New file.
105490         * lib/mbssep.c: New file.
105491         * lib/string_.h (strsep): Add a conditional link warning.
105492         (mbssep): New declaration.
105493         * m4/mbssep.m4: New file.
105494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105495         GNULIB_MBSSEP.
105496         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
105497         * MODULES.html.sh (Internationalization functions): Add mbssep.
105499 2007-02-05  Bruno Haible  <bruno@clisp.org>
105501         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
105502         Optimize search in case of 1 delimiter.
105504 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105506         * lib/acl.h: Include sys/types.h before sys/acl.h.
105508 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105510         Merge upstream fix for glibc bugzilla #3957:
105512         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
105514         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
105515         bit for RE_HAT_LISTS_NOT_NEWLINE.
105516         (build_charclass_op): Remove bogus comment.
105518 2007-02-05  Simon Josefsson  <simon@josefsson.org>
105520         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
105522 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105524         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
105525         * lib/memmem.c [!defined _LIBC]: Include config.h.
105527 2007-02-04  Bruno Haible  <bruno@clisp.org>
105529         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
105530         warning message.
105532 2007-02-04  Bruno Haible  <bruno@clisp.org>
105534         New module mbstok_r.
105535         * modules/mbstok_r: New file.
105536         * lib/mbstok_r.c: New file.
105537         * lib/string_.h (strtok_r): Change argument names to match the
105538         comments. Add a conditional link warning.
105539         (mbstok_r): New declaration.
105540         * m4/mbstok_r.m4: New file.
105541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105542         GNULIB_MBSTOK_R.
105543         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
105544         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
105546 2007-02-04  Bruno Haible  <bruno@clisp.org>
105548         New module mbsspn.
105549         * modules/mbsspn: New file.
105550         * lib/mbsspn.c: New file.
105551         * lib/string_.h (strspn): Add a conditional link warning.
105552         (mbsspn): New declaration.
105553         * m4/mbsspn.m4: New file.
105554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105555         GNULIB_MBSSPN.
105556         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
105557         * MODULES.html.sh (Internationalization functions): Add mbsspn.
105559 2007-02-04  Bruno Haible  <bruno@clisp.org>
105561         New module mbspbrk.
105562         * modules/mbspbrk: New file.
105563         * lib/mbspbrk.c: New file.
105564         * lib/string_.h (strpbrk): Add a conditional link warning.
105565         (mbspbrk): New declaration.
105566         * m4/mbspbrk.m4: New file.
105567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105568         GNULIB_MBSPBRK.
105569         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
105570         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
105572 2007-02-04  Bruno Haible  <bruno@clisp.org>
105574         New module mbscspn.
105575         * modules/mbscspn: New file.
105576         * lib/mbscspn.c: New file.
105577         * lib/string_.h (strcspn): Add a conditional link warning.
105578         (mbscspn): New declaration.
105579         * m4/mbscspn.m4: New file.
105580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105581         GNULIB_MBSCSPN.
105582         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
105583         * MODULES.html.sh (Internationalization functions): Add mbscspn.
105585 2007-02-04  Bruno Haible  <bruno@clisp.org>
105587         New module mbscasestr, reduced goal of strcasestr.
105588         * modules/mbscasestr: New file.
105589         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105590         (mbscasestr): Renamed from strcasestr.
105591         * lib/strcasestr.c: Don't include mbuiter.h.
105592         (strcasestr): Remove support for multibyte locales.
105593         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105594         Change the conditional link warning.
105595         (mbscasestr): New declaration.
105596         * m4/mbscasestr.m4: New file.
105597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105598         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105599         REPLACE_STRCASESTR.
105600         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105602         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105604         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105605         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105606         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105607         (Depends-on): Remove mbuiter.
105608         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105610 2007-02-04  Bruno Haible  <bruno@clisp.org>
105612         Simplify handling of strncasecmp.
105613         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105614         the conditional link warning.
105615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105616         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105618         * modules/strcase (configure.ac): Don't invoke
105619         gl_STRING_MODULE_INDICATOR.
105620         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105622 2007-02-04  Bruno Haible  <bruno@clisp.org>
105624         New module mbscasecmp, reduced goal of strcasecmp.
105625         * modules/mbscasecmp: New file.
105626         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105627         (mbscasecmp): Renamed from strcasecmp.
105628         * lib/strcasecmp.c: Don't include mbuiter.h.
105629         (strcasecmp): Remove support for multibyte locales.
105630         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105631         Change the conditional link warning.
105632         (mbscasecmp): New declaration.
105633         * m4/mbscasecmp.m4: New file.
105634         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105635         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105636         REPLACE_STRCASECMP.
105637         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105639         GNULIB_MBSCASECMP.
105640         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105641         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105642         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105643         (Depends-on): Remove mbuiter.
105644         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105646 2007-02-04  Bruno Haible  <bruno@clisp.org>
105648         New module mbsstr. Remove module strstr.
105649         * modules/mbsstr: New file.
105650         * modules/strstr: Remove file.
105651         * lib/mbsstr.c: Renamed from lib/strstr.c.
105652         (mbsstr): Renamed from strstr.
105653         * lib/string_.h (strstr): Remove declaration. Change the conditional
105654         link warning.
105655         (mbsstr): New declaration.
105656         * m4/mbsstr.m4: New file.
105657         * m4/strstr.m4: Remove file.
105658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105659         REPLACE_STRSTR.
105660         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105661         Don't initialize GNULIB_STRSTR.
105662         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105663         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105664         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105665         (Support for systems lacking ANSI C 89): Remove strstr.
105667 2007-02-04  Bruno Haible  <bruno@clisp.org>
105669         New module mbsrchr.
105670         * modules/mbsrchr: New file.
105671         * lib/mbsrchr.c: New file.
105672         * lib/string_.h (strrchr): Add a conditional link warning.
105673         (mbsrchr): New declaration.
105674         * m4/mbsrchr.m4: New file.
105675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105676         GNULIB_MBSRCHR.
105677         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105678         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105680 2007-02-04  Bruno Haible  <bruno@clisp.org>
105682         New module mbschr.
105683         * modules/mbschr: New file.
105684         * lib/mbschr.c: New file.
105685         * lib/string_.h (strchr): Add a conditional link warning.
105686         (mbschr): New declaration.
105687         * m4/mbschr.m4: New file.
105688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105689         GNULIB_MBSCHR.
105690         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105691         * MODULES.html.sh (Internationalization functions): Add mbschr.
105693 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105695         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105697         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105699 2007-02-04  Bruno Haible  <bruno@clisp.org>
105701         New module description section 'configure.ac-early'.
105702         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105703         (func_get_autoconf_early_snippet): New function.
105704         (func_import, func_create_testdir): Use it. Remove special cases for
105705         modules 'extensions' and 'lock'.
105706         * modules/extensions (configure.ac-early): Require
105707         gl_USE_SYSTEM_EXTENSIONS.
105708         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105710 2007-02-04  Bruno Haible  <bruno@clisp.org>
105712         Make use of gcj-4.3's -fsource and -ftarget option.
105713         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105714         and if so try the options -fsource and -ftarget.
105715         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105716         source_version, ftarget_option, target_version arguments.
105717         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105718         (is_envjavac_oldgcj_14_14_usable): Renamed from
105719         is_envjavac_gcj_14_14_usable.
105720         (is_envjavac_oldgcj_14_13_usable): Renamed from
105721         is_envjavac_gcj_14_13_usable.
105722         (is_gcj_present): Update.
105723         (is_gcj_43, is_gcj43_usable): New functions.
105724         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105725         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105726         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105727         try the options -fsource and -ftarget.
105729 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105731         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105732         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105733         larger value.
105735 2007-02-03  Jim Meyering  <jim@meyering.net>
105737         Give tools a better chance to allocate space for very large buffers.
105738         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105740         Make pwd and readlink work also when run with an unreadable parent dir
105741         on systems with openat support.
105742         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105743         provided getcwd function, even when we have openat support.
105744         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105746 2007-02-02  Bruno Haible  <bruno@clisp.org>
105748         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105749         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105750         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105751         portability problems if one of these functions is only used on specific
105752         platforms.
105753         Reported by Paul Eggert.
105755 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105757         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105758         is causing more trouble than it's curing.
105759         * lib/regex_internal.h (__mempcpy): Remove.
105760         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105761         (and make the code a tad smaller to boot).
105762         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105764 2007-02-02  Jim Meyering  <jim@meyering.net>
105766         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105767         section, not in the Makefile.am: one.
105769 2007-02-02  Eric Blake  <ebb9@byu.net>
105771         * lib/strchrnul.c: Always include config.h first.
105773         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105774         gnulib strstr is not necessary here.
105776 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105778         * m4/socklen.m4: Fix typo.
105780 2007-02-02  Eric Blake  <ebb9@byu.net>
105782         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105783         * modules/netinet_in (Makefile.am): Likewise.
105785 2007-02-01  Bruno Haible  <bruno@clisp.org>
105787         * lib/string_.h (GL_LINK_WARNING): New macro.
105788         (strcasecmp, strstr, strcasestr): If provided by the system,
105789         conditionally define as a macro that leads to a warning instead of to
105790         an error.
105791         (strncasecmp): Conditionally define as a macro that leads to a warning.
105793 2007-02-01  Karl Berry  <karl@gnu.org>
105795         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105797 2007-02-01  Bruno Haible  <bruno@clisp.org>
105799         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105800         renamings.
105802 2007-02-01  Eric Blake  <ebb9@byu.net>
105804         * modules/regex (Depends-on): Revert dependence on mempcpy.
105805         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105806         module's definition of mempcpy.
105807         Reported by Paul Eggert.
105809 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105811         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105812         the symbol XYZ before redefining it.  This fixes a problem with
105813         programs that don't use XYZ, when compiled on systems that define
105814         XYZ to something else.
105816 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105818         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105819         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105820         writeable to group or other and (2) is intended to have a special
105821         mode bit that is set or cleared.  In such a case, the directory
105822         should be neither group- nor other-writeable until the special
105823         mode bits are right.
105825 2007-01-31  Eric Blake  <ebb9@byu.net>
105827         * modules/mountlist (Depends-on): Add strstr.
105829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105830         bug.
105831         * modules/string (Makefile.am): Remove redundant replacement.
105832         * modules/regex (Depends-on): Add mempcpy.
105834 2007-01-31  Bruno Haible  <bruno@clisp.org>
105836         New module description field 'Link'.
105837         * gnulib-tool (func_usage): Document --extract-link-directive.
105838         (sed_extract_prog): Recognize 'Link' directive.
105839         (func_get_link_directive): New function.
105840         (func_import): Show summary of link directives.
105841         Handle --extract-link-directive option.
105842         * modules/acl (Link): New section.
105843         * modules/clock-time (Link): New section.
105844         * modules/euidaccess (Link): New section.
105845         * modules/gettext (Link): New section.
105846         * modules/iconv (Link): New section.
105847         * modules/lock (Link): New section.
105848         * modules/nanosleep (Link): New section.
105849         * modules/readline (Link): New section.
105851 2007-01-27  Bruno Haible  <bruno@clisp.org>
105853         Enforce the use of gnulib modules for unportable <string.h> functions.
105854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105855         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105856         (gl_HEADER_STRING_H_BODY): Require it.
105857         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105858         the symbol XYZ to one that gives a link error.
105859         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105860         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105861         * modules/mempcpy (configure.ac): Likewise.
105862         * modules/memrchr (configure.ac): Likewise.
105863         * modules/stpcpy (configure.ac): Likewise.
105864         * modules/stpncpy (configure.ac): Likewise.
105865         * modules/strcase (configure.ac): Likewise.
105866         * modules/strcasestr (configure.ac): Likewise.
105867         * modules/strchrnul (configure.ac): Likewise.
105868         * modules/strdup (configure.ac): Likewise.
105869         * modules/strndup (configure.ac): Likewise.
105870         * modules/strnlen (configure.ac): Likewise.
105871         * modules/strpbrk (configure.ac): Likewise.
105872         * modules/strsep (configure.ac): Likewise.
105873         * modules/strstr (configure.ac): Likewise.
105874         * modules/strtok_r (configure.ac): Likewise.
105876 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105878         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105880 2007-01-30  Jim Meyering  <jim@meyering.net>
105882         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105884 2007-01-29  Bruno Haible  <bruno@clisp.org>
105886         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105887         * lib/execute.c: Likewise.
105888         * lib/pipe.c: Likewise.
105889         * lib/printf-args.h: Likewise.
105890         * lib/printf-args.c: Likewise.
105891         * lib/printf-parse.c: Likewise.
105892         * lib/vasnprintf.c: Likewise.
105894 2007-01-29  Eric Blake  <ebb9@byu.net>
105896         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105897         declaration.
105899 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105901         * lib/strptime.h (strptime): Use 'restrict' for args where
105902         POSIX requires this.
105903         * lib/strptime.c (strptime): Likewise.
105904         Change license notice from LGPL to GPL, since gnulib-tool will
105905         change this as needed.
105906         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105907         defined.
105908         Include "strptime.h" first, to check interface.
105909         Do not #undef _LIBC and _NL_CURRENT.
105910         Do not include <stdlib.h>; no longer needed.
105911         Include "time_r.h" and declare ptime_locale_status
105912         only if _LIBC is not defined.
105913         (__P): Remove unused macro.
105914         (match_string): Bring back glibc version, but use it only if _LIBC
105915         is defined.
105916         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105917         Remove unnecessary assertion and abort() call.
105918         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105919         * m4/strptime.m4: Fix serial number comment.
105920         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105921         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105922         (Depends-on): Add time_r.
105924 2007-01-29  Bruno Haible  <bruno@clisp.org>
105926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105927         strptime.
105928         * modules/strptime (Depends-on): Add stdbool.
105929         * lib/strptime.h: Include <time.h> always. Add comments.
105931 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105933         * modules/strptime: New file.
105934         * lib/strptime.h: New file.
105935         * lib/strptime.c: New file.
105936         * m4/strptime.m4: New file.
105938 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105940         * MODULES.html.sh: New module mpsort.
105941         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105943         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105944         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105945         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105946         All uses changed.
105947         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105948         All uses changed.
105949         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105950         to _Restrict_.
105951         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105952         the parameter matches the prototype.
105954 2007-01-28  Jim Meyering  <jim@meyering.net>
105956         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105957         sys/time.h here, reverting that part of the previous patch:
105958         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105960 2007-01-28  Bruno Haible  <bruno@clisp.org>
105962         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105963         value of $(SYS_TIME_H).
105964         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105965         remove it conditionally, too. [added by Jim Meyering]
105966         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105968         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105969         GETTIMEOFDAY_REPLACEMENT to 1.
105971 2007-01-28  Bruno Haible  <bruno@clisp.org>
105973         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105974         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105976         Set UNISTD_H instead of UNISTD_H2.
105977         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105979 2007-01-28  Bruno Haible  <bruno@clisp.org>
105981         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105982         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105984 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105986         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105987         (func_create_testdir): Ensure C locale for `grep' and `tr'
105988         character ranges.
105989         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105990         ACLOCAL_AMFLAGS parsing state machine.
105992 2007-01-27  Bruno Haible  <bruno@clisp.org>
105994         * modules/unistr/base: Update.
105996 2007-01-27  Bruno Haible  <bruno@clisp.org>
105998         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105999         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
106000         * modules/unistr/u32-mbtouc-unsafe: Renamed from
106001         modules/unistr/u32-mbtouc.
106002         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
106003         * lib/unistr.h: Update.
106004         * lib/linebreak.c: Update.
106005         * modules/unistr/u32-mbtouc: Renamed from
106006         modules/unistr/u32-mbtouc-safe.
106007         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
106008         * lib/unistr.h: Update.
106009         * lib/unistr/u32-to-u8.c: Update.
106010         * lib/unistr/u32-to-u16.c: Update.
106012 2007-01-27  Bruno Haible  <bruno@clisp.org>
106014         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
106015         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
106016         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
106017         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
106018         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
106019         * modules/unistr/u16-mbtouc-unsafe: Renamed from
106020         modules/unistr/u16-mbtouc.
106021         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
106022         * lib/unistr.h: Update.
106023         * lib/linebreak.c: Update.
106024         * modules/linebreak: Update.
106025         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
106026         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
106027         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
106028         * modules/unistr/u16-mbtouc: Renamed from
106029         modules/unistr/u16-mbtouc-safe.
106030         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
106031         * lib/unistr.h: Update.
106032         * lib/unistr/u16-to-u8.c: Update.
106033         * modules/unistr/u16-to-u8: Update.
106034         * lib/unistr/u16-to-u32.c: Update.
106035         * modules/unistr/u16-to-u32: Update.
106037 2007-01-27  Bruno Haible  <bruno@clisp.org>
106039         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
106040         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
106041         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
106042         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
106043         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
106044         * modules/unistr/u8-mbtouc-unsafe: Renamed from
106045         modules/unistr/u8-mbtouc.
106046         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
106047         * lib/unistr.h: Update.
106048         * lib/striconveh.c: Update.
106049         * modules/striconveh: Update.
106050         * lib/linebreak.c: Update.
106051         * modules/linebreak: Update.
106052         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
106053         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
106054         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
106055         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
106056         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
106057         * lib/unistr.h: Update.
106058         * lib/striconveh.c: Update.
106059         * modules/striconveh: Update.
106060         * lib/unistr/u8-to-u16.c: Update.
106061         * modules/unistr/u8-to-u16: Update.
106062         * lib/unistr/u8-to-u32.c: Update.
106063         * modules/unistr/u8-to-u32: Update.
106065 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106067         Sync from Libtool.
106068         * lib/argz.c: Do not include strings.h nor memory.h, include
106069         string.h unconditionally.  Patch by Simon Josefsson.
106071 2007-01-27  Bruno Haible  <bruno@clisp.org>
106073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
106074         from gl_HEADER_STRING_H_BODY.
106075         (gl_HEADER_STRING_H_BODY): Require it.
106076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
106077         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
106078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
106079         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
106080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
106081         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
106082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
106083         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
106084         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
106085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
106086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
106087         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
106088         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
106089         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
106090         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
106092 2007-01-27  Bruno Haible  <bruno@clisp.org>
106094         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
106095         check_PROGRAMS into noinst_PROGRAMS.
106096         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
106097         check_PROGRAMS in this case.
106098         (func_import): Set for_test to false.
106099         (func_create_testdir): Set for_test to true.
106101 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106102             Bruno Haible  <bruno@clisp.org>
106104         * modules/strcasestr (Files): Remove lib/strcasestr.h.
106105         (Depends-on): Add string.
106106         (Includes): Use <string.h> instead of strcasestr.h.
106107         * modules/string (Makefile.am): Also substitute the value of
106108         REPLACE_STRCASESTR.
106109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
106110         assume strcasestr is declared in <string.h> not <strings.h>. Also
106111         set REPLACE_STRCASESTR.
106112         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
106113         REPLACE_STRCASESTR.
106114         * lib/strcasestr.h: Remove file.
106115         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
106116         * lib/string_.h (strcasestr): New declaration.
106118 2007-01-27  Bruno Haible  <bruno@clisp.org>
106120         * lib/string_.h: Use 'extern'.
106122 2007-01-27  Jim Meyering  <jim@meyering.net>
106124         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
106125         of set-but-not-used local, "q".
106127         * lib/mempcpy.c: Include <config.h> before <string.h>.
106128         This fixes a compilation error on HP-UX, due to the system's
106129         "restrict"-using mempcpy prototype.
106131 2007-01-26  Bruno Haible  <bruno@clisp.org>
106133         Small optimization.
106134         * lib/javacomp.c: Include c-strstr.h.
106135          (is_envjavac_gcj): Use c_strstr instead of strstr.
106136         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
106138 2007-01-26  Bruno Haible  <bruno@clisp.org>
106140         * MODULES.html.sh (Unicode string functions): Add the new modules.
106142         * modules/uniconv/u32-strconv-to-locale: New file.
106143         * lib/uniconv/u32-strconv-to-locale.c: New file.
106145         * modules/uniconv/u16-strconv-to-locale: New file.
106146         * lib/uniconv/u16-strconv-to-locale.c: New file.
106148         * modules/uniconv/u8-strconv-to-locale: New file.
106149         * lib/uniconv/u8-strconv-to-locale.c: New file.
106151         * modules/uniconv/u32-strconv-from-locale: New file.
106152         * lib/uniconv/u32-strconv-from-locale.c: New file.
106154         * modules/uniconv/u16-strconv-from-locale: New file.
106155         * lib/uniconv/u16-strconv-from-locale.c: New file.
106157         * modules/uniconv/u8-strconv-from-locale: New file.
106158         * lib/uniconv/u8-strconv-from-locale.c: New file.
106160         * modules/uniconv/u32-strconv-to-enc: New file.
106161         * lib/uniconv/u32-strconv-to-enc.c: New file.
106162         * modules/uniconv/u32-strconv-to-enc-tests: New file.
106163         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
106165         * modules/uniconv/u16-strconv-to-enc: New file.
106166         * lib/uniconv/u16-strconv-to-enc.c: New file.
106167         * lib/uniconv/u-strconv-to-enc.h: New file.
106168         * modules/uniconv/u16-strconv-to-enc-tests: New file.
106169         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
106171         * modules/uniconv/u8-strconv-to-enc: New file.
106172         * lib/uniconv/u8-strconv-to-enc.c: New file.
106173         * modules/uniconv/u8-strconv-to-enc-tests: New file.
106174         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
106176         * modules/uniconv/u32-strconv-from-enc: New file.
106177         * lib/uniconv/u32-strconv-from-enc.c: New file.
106178         * modules/uniconv/u32-strconv-from-enc-tests: New file.
106179         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
106181         * modules/uniconv/u16-strconv-from-enc: New file.
106182         * lib/uniconv/u16-strconv-from-enc.c: New file.
106183         * modules/uniconv/u16-strconv-from-enc-tests: New file.
106184         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
106186         * modules/uniconv/u8-strconv-from-enc: New file.
106187         * lib/uniconv/u8-strconv-from-enc.c: New file.
106188         * lib/uniconv/u-strconv-from-enc.h: New file.
106189         * modules/uniconv/u8-strconv-from-enc-tests: New file.
106190         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
106192         * modules/uniconv/u32-conv-from-enc: New file.
106193         * lib/uniconv/u32-conv-from-enc.c: New file.
106194         * modules/uniconv/u32-conv-from-enc-tests: New file.
106195         * tests/uniconv/test-u32-conv-from-enc.c: New file.
106197         * modules/uniconv/u16-conv-from-enc: New file.
106198         * lib/uniconv/u16-conv-from-enc.c: New file.
106199         * lib/uniconv/u-conv-from-enc.h: New file.
106200         * modules/uniconv/u16-conv-from-enc-tests: New file.
106201         * tests/uniconv/test-u16-conv-from-enc.c: New file.
106203         * modules/uniconv/u8-conv-from-enc: New file.
106204         * lib/uniconv/u8-conv-from-enc.c: New file.
106205         * modules/uniconv/u8-conv-from-enc-tests: New file.
106206         * tests/uniconv/test-u8-conv-from-enc.c: New file.
106208         * modules/uniconv/base: New file.
106209         * lib/uniconv.h: New file.
106211 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106213         * doc/gnulib-tool.texi (Initial import): Update to match current
106214         behavior with strdup module.
106215         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
106216         * lib/memmem.h: Remove; all uses removed.  This is now done
106217         by <string.h>.
106218         * lib/mempcpy.h: Likewise.
106219         * lib/memrchr.h: Likewise.
106220         * lib/stpcpy.h: Likewise.
106221         * lib/stpncpy.h: Likewise.
106222         * lib/strcase.h: Likewise.
106223         * lib/strchrnul.h: Likewise.
106224         * lib/strdup.h: Likewise.
106225         * lib/strndup.h: Likewise.
106226         * lib/strnlen.h: Likewise.
106227         * lib/strpbrk.h: Likewise.
106228         * lib/strsep.h: Likewise.
106229         * lib/strstr.h: Likewise.
106230         * lib/strtok_r.h: Likewise.
106231         * lib/string_.h: New file.
106232         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
106233         Rely on <string.h> instead.
106234         * lib/canon-host.c: Likewise.
106235         * lib/chdir-long.c: Likewise.
106236         * lib/concatpath.c: Likewise.
106237         * lib/exclude.c: Likewise.
106238         * lib/fchdir.c: Likewise.
106239         * lib/getaddrinfo.c: Likewise.
106240         * lib/getcwd.c: Likewise.
106241         * lib/getsubopt.c: Likewise.
106242         * lib/glob.c: Likewise.
106243         * lib/hard-locale.c: Likewise.
106244         * lib/iconvme.c: Likewise.
106245         * lib/javacomp.c: Likewise.
106246         * lib/mempcpy.c: Likewise.
106247         * lib/memrchr.c: Likewise.
106248         * lib/regex_internal.h: Likewise.
106249         * lib/stpncpy.c: Likewise.
106250         * lib/strcasecmp.c: Likewise.
106251         * lib/strchrnul.c: Likewise.
106252         * lib/strdup.c: Likewise.
106253         * lib/striconv.c: Likewise.
106254         * lib/striconveh.c: Likewise.
106255         * lib/striconveha.c: Likewise.
106256         * lib/strncasecmp.c: Likewise.
106257         * lib/strndup.c: Likewise.
106258         * lib/strnlen.c: Likewise.
106259         * lib/strsep.c: Likewise.
106260         * lib/strstr.c: Likewise.
106261         * lib/strtok_r.c: Likewise.
106262         * lib/userspec.c: Likewise.
106263         * lib/w32spawn.h: Likewise.
106264         * lib/xstrndup.c: Likewise.
106265         * lib/mountlist.c (strstr): Remove decl.
106266         * m4/string_h.m4: New file.
106267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
106268         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
106269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
106270         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
106271         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
106272         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
106273         Set REPLACE_STRCASECMP if necessary.
106274         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
106275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
106276         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
106277         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
106278         HAVE_DECL_STRDUP if necessary.
106279         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
106280         since gl_FUNC_STRNDUP does that now.
106281         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
106282         Check for decl here...
106283         (gl_PREREQ_STRNLEN): ... not here.
106284         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
106285         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
106286         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
106287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
106288         necessary.
106289         * modules/string: New file.
106290         * modules/memmem (Files): Remove special-purpose include file.
106291         (Depends-on): Add string.
106292         (Include): Include <string.h>, not the removed file.
106293         * modules/mempcpy: Likewise.
106294         * modules/memrchr: Likewise.
106295         * modules/stpcpy: Likewise.
106296         * modules/stpncpy: Likewise.
106297         * modules/strcase: Likewise.
106298         * modules/strchrnul: Likewise.
106299         * modules/strdup: Likewise.
106300         * modules/strndup: Likewise.
106301         * modules/strnlen: Likewise.
106302         * modules/strpbrk: Likewise.
106303         * modules/strsep: Likewise.
106304         * modules/strstr: Likewise.
106305         * modules/strtok_r: Likewise.
106306         * tests/test-dirname.c: Don't include "strdup.h", since
106307         <string.h> now suffices.
106308         * tests/test-memmem.c: Don't include "memmem.h", since
106309         <string.h> now suffices.
106311 2007-01-25  Bruno Haible  <bruno@clisp.org>
106313         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
106314         *resultp is 0.
106316         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
106317         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
106318         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
106319         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
106321         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
106322         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
106323         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
106324         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
106325         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
106326         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
106328 2007-01-24  Bruno Haible  <bruno@clisp.org>
106330         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
106331         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
106332         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
106333         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
106334         gl_FUNC_FTS_CORE.
106335         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
106336         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
106337         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
106338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
106339         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
106340         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
106341         gl_FUNC_FCHOWNAT.
106342         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
106343         gl_FUNC_STRFTIME.
106344         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
106345         Reported by Ralf Wildenhues.
106347 2007-01-24  Bruno Haible  <bruno@clisp.org>
106349         Drop AC_REQUIRE calls that are redundant with the module dependencies.
106350         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
106351         gl_GETADDRINFO.
106352         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
106353         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
106354         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
106356 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
106358         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
106359         Don't use 'exit'; just return from 'main'.
106360         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
106362         * lib/fnmatch_.h: Readjust white space and comments to match
106363         glibc, to avoid spurious diffs.
106365 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106367         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
106368         2004-12-01 change by Jakub Jelinek, since this code won't compile
106369         if !LIBC.  Problem reported by Bob Proulx.
106371 2007-01-23  Bruno Haible  <bruno@clisp.org>
106373         * lib/striconveh.c: Include c-strcaseeq.h.
106374         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
106375         * modules/striconveh (Depends-on): Add c-strcaseeq.
106377 2007-01-23  Bruno Haible  <bruno@clisp.org>
106379         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
106381         * modules/c-strcaseeq: New file.
106382         * lib/c-strcaseeq.h: New file.
106384         * modules/streq: New file.
106385         * lib/streq.h: New file.
106387 2007-01-23  Bruno Haible  <bruno@clisp.org>
106389         * modules/striconveha-tests: New file.
106390         * tests/test-striconveha.c: New file.
106392         * lib/striconveha.h: Include <stdbool.h>.
106393         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
106394         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
106395         (mem_iconveha_notranslit): Renamed from mem_iconveha.
106396         (mem_iconveha): New function.
106397         (str_iconveha_notranslit): Renamed from str_iconveha.
106398         (str_iconveha): New function.
106399         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
106400         c-strcase.
106402 2007-01-23  Bruno Haible  <bruno@clisp.org>
106404         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
106405         encodings without forgiving before trying any encoding with handler.
106406         (str_iconveha): Try all encodings without forgiving before trying any
106407         encoding with handler.
106409 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106411         Import the following changes from libc.
106413         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106415         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
106417         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
106419         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
106420         normal_bracket label.
106422         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
106424         [BZ #361]
106425         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
106426         to normal_bracket after fetching the next character.
106428 2007-01-22  Bruno Haible  <bruno@clisp.org>
106430         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
106431         argument.
106432         * lib/striconveh.c (iconv_carefully_1): New function.
106433         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
106434         argument.
106435         (str_cd_iconveh): Update.
106436         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
106437         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
106438         * tests/test-striconveh.c (MAGIC): New macro.
106439         (new_offsets): New function.
106440         (main): Test call with and without offsets.
106442 2007-01-22  Bruno Haible  <bruno@clisp.org>
106444         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
106445         * modules/sys_select (Makefile.am): Likewise.
106446         * modules/sys_socket (Makefile.am): Likewise.
106447         * modules/sys_time (Makefile.am): Likewise.
106449 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106451         * modules/gettimeofday (License): Change from GPL to LGPL, since
106452         gettimeofday is a library function.
106454 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106456         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
106458 2007-01-21  Bruno Haible  <bruno@clisp.org>
106460         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
106462 2007-01-21  Bruno Haible  <bruno@clisp.org>
106464         * modules/striconveha: New file.
106465         * lib/striconveha.h: New file.
106466         * lib/striconveha.c: New file.
106467         * MODULES.html.sh (Internationalization functions): Add striconveha.
106468         * lib/striconv.c (str_iconv): Optimize the case of an empty input
106469         string.
106470         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
106472 2007-01-21  Bruno Haible  <bruno@clisp.org>
106474         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
106475         * lib/striconveh.c (str_iconveh): Likewise.
106477 2007-01-21  Bruno Haible  <bruno@clisp.org>
106479         * lib/striconveh.h (mem_iconveh): New declaration.
106480         * lib/striconveh.c (mem_iconveh): New function.
106481         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
106483 2007-01-21  Bruno Haible  <bruno@clisp.org>
106485         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
106487         * lib/striconveh.h (mem_cd_iconveh): Change specification.
106488         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
106489         original result buffer.
106490         (str_cd_iconveh): Update.
106491         * tests/test-striconveh.c (main): Update.
106493         * lib/striconv.h (mem_cd_iconv): Change specification.
106494         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
106495         result buffer.
106496         (str_cd_iconv): Update.
106497         * tests/test-striconv.c (main): Update.
106499 2007-01-21  Bruno Haible  <bruno@clisp.org>
106501         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
106503 2007-01-20  Jim Meyering  <jim@meyering.net>
106505         * lib/userspec.c (parse_with_separator): If a user or group string
106506         starts with "+", skip the corresponding name-to-ID look-up, since
106507         such a look-up must fail: user and group names may not include "+".
106509 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106511         * lib/poll.c: Include sys/time.h and time.h unconditionally,
106512         since we now assume the sys_time module.
106513         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
106514         check for sys/time.h; no longer needed.
106515         * modules/poll (Depends-on): Depend on sys_time.
106517 2007-01-18  Bruno Haible  <bruno@clisp.org>
106519         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
106520         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106522         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
106523         gettimeofday.
106525         * tests/test-gettimeofday.c: Include <time.h>.
106526         (dummy): Remove variable.
106528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
106529         gl_HEADER_SYS_TIME_H.
106530         (gl_HEADER_SYS_TIME_H): New macro.
106532         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
106533         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
106535         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
106536         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106537         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
106538         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
106539         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106540         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
106541         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
106542         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106544         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
106545         last change; it caused a compilation error when cross-compiling to
106546         Cygwin.
106548 2007-01-18  Jim Meyering  <jim@meyering.net>
106550         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
106551         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
106552         than the race-prone "test -d sys || mkdir sys".
106553         (configure.ac): Use AC_PROG_MKDIR_P.
106554         * modules/sys_select: Likewise.
106555         * modules/sys_socket: Likewise.
106556         * modules/sys_time: Likewise.
106558 2007-01-18  Eric Blake  <ebb9@byu.net>
106560         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
106561         replace gettimeofday.
106562         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
106563         name, to avoid infinite recursion.
106565 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
106567         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
106568         module sys_time.
106569         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
106570         assume timespec.h defines struct timeval.
106571         * lib/settime.c: Likewise.
106572         * lib/utimens.c: Likewise.
106573         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
106574         since we now assume the gettimeofday module.
106575         * lib/tempname.c (__gen_tempname): Likewise.
106576         * lib/gettimeofday.h: Remove.
106577         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
106578         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
106579         Include <time.h>, for 'time()'.
106580         (localtime_buffer_addr): Also use this workaround if
106581         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
106582         to simplify the uses.  All uses changed.
106583         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
106584         that #undef is inside {}, and 'const' follows type name consistently.
106585         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
106586         (gettimeofday): Do not use the maximum possible value for
106587         tv->tv_usec, since that might break usages other than ls.c.
106588         Instead, we'll leave ls.c alone.  This undoes today's patch
106589         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106590         we've never observed the problem but might as well keep the
106591         canary.
106592         * lib/nanosleep.c: Include timespec.h first, for interface check.
106593         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106594         now assume the sys_time module.
106595         * lib/tempname.c: Likewise.
106596         * lib/timespec.h: Likewise.
106597         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106598         needed.
106599         * lib/strftime.c: Likewise.
106600         * lib/timespec.h: Likewise.
106601         * lib/posixtm.c: Include posixtm.h first, for interface check.
106602         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106603         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106604         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106605         * lib/sys_time_.h: New file.
106606         * lib/timespec.h (struct timespec): Use long int, not long.
106607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106608         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106609         Remove obsolescent call to AC_HEADER_TIME.
106610         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106613         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106614         Likewise.
106615         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106616         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106618         into the sys_time module.  Check for gettimeofday just once.
106619         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106620         for gettimeofday signature to just check the signature.  Merely
106621         compile it, since linking doesn't test signature.  Improve test for
106622         whether gettimeofday.o is actually needed.
106623         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106624         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106625         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106626         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106627         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106628         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106629         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106630         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106631         than worrying about sys/time.h.
106632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106633         Don't bother worrying about TIME_WITH_SYS_TIME.
106634         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106635         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106636         * m4/sys_time_h.m4: New file.
106637         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106638         Don't include sys/time.h.  Return from main rather than exiting.
106639         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106640         all uses changed.
106641         * modules/gethrxtime (Depends-on): Add sys_time.
106642         * modules/gettime (Depends-on): Likewise.
106643         * modules/gettimeofday (Depends-on): Likewise.
106644         * modules/nanosleep (Depends-on): Likewise.
106645         * modules/settime (Depends-on): Likewise.
106646         * modules/tempname (Depends-on): Likewise.
106647         * modules/utimens (Depends-on): Likewise.
106648         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106649         (Include): Change back to <sys/time.h>.
106650         (Maintainer): Add self.
106651         * modules/sys_time: New file.
106652         * modules/tempname (Depends-on): Add gettimeofday.
106653         * tests/test-gettimeofday.c: Include <sys/time.h>
106654         rather than gettimeofday.h.
106656 2007-01-17  Bruno Haible  <bruno@clisp.org>
106658         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106659         the license default to GPL.
106660         (func_create_testdir): Don't complain if a module is LGPL and its
106661         tests module depends on GPLed modules.
106663 2007-01-17  Bruno Haible  <bruno@clisp.org>
106665         * lib/gettimeofday.c (gettimeofday): Add code for the case
106666         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106667         maximum possible value for tv->tv_usec, rather than the minimum one.
106669 2005-10-08  Martin Lambers  <marlam@marlam.de>
106670 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106671 2007-01-16  Bruno Haible  <bruno@clisp.org>
106673         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106674         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106675         gl_FUNC_GETTIMEOFDAY.
106676         (Include): Add gettimeofday.h.
106677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106678         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106679         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106680         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106681         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106682         * lib/gettimeofday.h: New file.
106683         * lib/gettimeofday.c: Include <sys/timeb.h>.
106684         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106685         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106686         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106687         fall back on time().
106689         * tests/test-gettimeofday.c: New file.
106690         * modules/gettimeofday-tests: New file.
106692 2007-01-16  Eric Blake  <ebb9@byu.net>
106694         * modules/fnmatch (Depends-on): Depend on wchar.
106695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106696         * m4/fnmatch.m4: Likewise.
106697         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106698         * m4/mbchar.m4: Likewise.
106699         * modules/mbswidth (Depends-on): Depend on wchar.
106700         * lib/mbswidth.c: Assume <wchar.h>.
106701         * m4/mbswidth.m4: Likewise.
106702         * modules/quotearg (Depends-on): Depend on wchar.
106703         * lib/quotearg.c: Assume <wchar.h>.
106704         * m4/quotearg.m4: Likewise.
106705         * modules/regex (Depends-on): Depend on wchar.
106706         * lib/regex_internal.h: Assume <wchar.h>.
106707         * m4/regex.m4: Likewise.
106708         * modules/stdint (Depends-on): Depend on wchar.
106709         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106710         * m4/stdint.m4: Likewise.
106711         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106712         * modules/strftime (Depends-on): Depend on wchar.
106713         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106714         * modules/strtol (Depends-on): Depend on wchar.
106715         * lib/strtol.c: Assume <wchar.h>.
106716         * modules/wcwidth (Depends-on): Depend on wchar.
106717         * lib/wcwidth.h: Assume <wchar.h>.
106718         * m4/wcwidth.m4: Likewise.
106720 2007-01-16  Bruno Haible  <bruno@clisp.org>
106722         * modules/csharpexec-script: New, created from...
106723         * modules/csharpexec: ... this.
106725 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106727         * modules/javaexec-script: New, created from...
106728         * modules/javaexec: ... this.
106730 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106732         * modules/poll (Dependencies): Add sys_select.
106734 2007-01-15  Jim Meyering  <jim@meyering.net>
106736         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106737         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106738         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106739         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106741 2007-01-15  Bruno Haible  <bruno@clisp.org>
106743         * modules/striconveh: New file.
106744         * lib/striconveh.h: New file.
106745         * lib/striconveh.c: New file.
106746         * MODULES.html.sh (Internationalization functions): Add striconveh.
106748         * modules/striconveh-tests: New file.
106749         * tests/test-striconveh.c: New file.
106751 2007-01-15  Bruno Haible  <bruno@clisp.org>
106753         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106754         not from GNU libiconv or GNU libc.
106756 2007-01-15  Bruno Haible  <bruno@clisp.org>
106758         * doc/gnulib-intro.texi (Copyright): Explain the different license
106759         terms for module descriptions, autoconf macros, tests, documentation.
106761 2007-01-14  Bruno Haible  <bruno@clisp.org>
106763         * modules/striconv-tests: New file.
106764         * tests/test-striconv.c: New file.
106766 2007-01-14  Bruno Haible  <bruno@clisp.org>
106768         * modules/iconv-tests: New file.
106769         * tests/test-iconv.c: New file.
106771 2007-01-14  Bruno Haible  <bruno@clisp.org>
106773         * gnulib-tool (func_get_license): For test modules, use the license of
106774         the main module.
106776 2007-01-14  Bruno Haible  <bruno@clisp.org>
106778         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106779         if iconv is found to exist.
106781 2007-01-14  Bruno Haible  <bruno@clisp.org>
106783         * modules/c-ctype-tests: New file.
106784         * tests/test-c-ctype.c: New file.
106786 2007-01-14  Bruno Haible  <bruno@clisp.org>
106788         * modules/binary-io-tests: New file.
106789         * tests/test-binary-io.sh: New file.
106790         * tests/test-binary-io.c: New file.
106792 2007-01-14  Bruno Haible  <bruno@clisp.org>
106794         * modules/array-oset-tests: New file.
106795         * tests/test-array_oset.c: New file.
106797 2007-01-14  Bruno Haible  <bruno@clisp.org>
106799         * modules/array-list-tests: New file.
106800         * tests/test-array_list.c: New file.
106802 2007-01-14  Bruno Haible  <bruno@clisp.org>
106804         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106805         and make.
106806         Reported by Simon Josefsson in
106807         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106809 2007-01-14  Bruno Haible  <bruno@clisp.org>
106811         * modules/allocsa-tests: New file.
106812         * tests/test-allocsa.c: New file.
106814 2007-01-14  Bruno Haible  <bruno@clisp.org>
106816         * modules/fchdir (Depends-on): Add absolute-header.
106817         * modules/unistd (Depends-on): Likewise.
106819 2006-12-30  Bruno Haible  <bruno@clisp.org>
106821         * modules/fchdir: New file.
106822         * modules/unistd (Files): Add lib/unistd_.h.
106823         (Makefile.am): Generate unistd.h from unistd_.h.
106824         * lib/fchdir.c: New file.
106825         * lib/dirent_.h: New file.
106826         * lib/unistd_.h: New file.
106827         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106828         * m4/fchdir.m4: New file.
106829         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106830         (gl_HEADER_UNISTD): Invoke it.
106831         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106832         function.
106833         * lib/backupfile.c (opendir, closedir): Undefine.
106834         * lib/chown.c (open, close): Undefine.
106835         * lib/clean-temp.c (open, close): Undefine.
106836         * lib/copy-file.c (open, close): Undefine.
106837         * lib/execute.c (open, close): Undefine.
106838         * lib/fsusage.c (open, close): Undefine.
106839         * lib/gc-gnulib.c (open, close): Undefine.
106840         * lib/getcwd.c (opendir, closedir): Undefine.
106841         * lib/glob.c (opendir, closedir): Undefine.
106842         * lib/javacomp.c (open, close): Undefine.
106843         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106844         * lib/openat-proc.c (open, close): Undefine.
106845         * lib/pagealign_alloc.c (open, close): Undefine.
106846         * lib/pipe.c (open, close): Undefine.
106847         * lib/progreloc.c (open, close): Undefine.
106848         * lib/savedir.c (opendir, closedir): Undefine.
106849         * lib/utime.c (open, close): Undefine.
106850         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106852 2007-01-10  Bruno Haible  <bruno@clisp.org>
106854         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106856 2007-01-12  Eric Blake  <ebb9@byu.net>
106858         Provide a robust <wchar.h>.  Further simplifications are now
106859         possible in other modules, but not included here.
106860         * modules/wchar: New module.
106861         * m4/wchar.m4: New file.
106862         * lib/wchar_.h: Likewise.
106863         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106864         of the new module.
106865         * MODULES.html.sh (Extended multibyte and wide character utilities):
106866         New section.
106868 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106870         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106871         to a reasonable default for memory allocation.
106872         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106873         file system that reports garbage st_size values for symlinks.
106874         Problem reported by Liyang Hu.
106876 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106878         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106879         Emacs .#* auto-save files).
106881 2007-01-11  Bruno Haible  <bruno@clisp.org>
106883         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106884         directory.
106886 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106888         Use @...@ consistently in lib/wctype_.h.
106889         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106890         on it being set to 1 or 0.
106891         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106892         go back to AC_SUBSTing it.
106893         * modules/wctype (Makefile.am): Undo previous change.
106895 2007-01-10  Eric Blake  <ebb9@byu.net>
106897         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106898         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106899         * modules/wctype (Makefile.am): Likewise.
106900         Reported by Chris McGuire.
106902 2007-01-10  Jim Meyering  <jim@meyering.net>
106904         fts.c: a small readability/maintainability improvement
106905         * lib/fts.c (fts_read): Make this code slightly more readable and
106906         maintainable by hoisting the "sp->fts_cur = p" assignments to
106907         immediately follow the statements that set P.  Derived from
106908         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106910 2007-01-10  Eric Blake  <ebb9@byu.net>
106912         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106913         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106915         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106916         Reported by Chris McGuire.
106918 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106920         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106921         in sed script.
106923 2007-01-09  Bruno Haible  <bruno@clisp.org>
106925         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106926         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106927         variables.
106928         (func_module): Use them.
106930 2007-01-09  Bruno Haible  <bruno@clisp.org>
106932         * modules/unistr/base: New file.
106933         * lib/unistr.h: New file.
106935         * modules/unistr/u8-to-u16: New file.
106936         * lib/unistr/u8-to-u16.c: New file.
106938         * modules/unistr/u8-to-u32: New file.
106939         * lib/unistr/u8-to-u32.c: New file.
106941         * modules/unistr/u16-to-u8: New file.
106942         * lib/unistr/u16-to-u8.c: New file.
106944         * modules/unistr/u16-to-u32: New file.
106945         * lib/unistr/u16-to-u32.c: New file.
106947         * modules/unistr/u32-to-u8: New file.
106948         * lib/unistr/u32-to-u8.c: New file.
106950         * modules/unistr/u32-to-u16: New file.
106951         * lib/unistr/u32-to-u16.c: New file.
106953         * modules/unistr/u8-check: New file.
106954         * modules/unistr/u16-check: New file.
106955         * modules/unistr/u32-check: New file.
106956         * lib/unistr/u8-check.c: New file.
106957         * lib/unistr/u16-check.c: New file.
106958         * lib/unistr/u32-check.c: New file.
106960         * modules/unistr/u8-chr: New file.
106961         * modules/unistr/u16-chr: New file.
106962         * modules/unistr/u32-chr: New file.
106963         * lib/unistr/u8-chr.c: New file.
106964         * lib/unistr/u16-chr.c: New file.
106965         * lib/unistr/u32-chr.c: New file.
106967         * modules/unistr/u8-cmp: New file.
106968         * modules/unistr/u16-cmp: New file.
106969         * modules/unistr/u32-cmp: New file.
106970         * lib/unistr/u8-cmp.c: New file.
106971         * lib/unistr/u16-cmp.c: New file.
106972         * lib/unistr/u32-cmp.c: New file.
106974         * modules/unistr/u8-cpy: New file.
106975         * modules/unistr/u16-cpy: New file.
106976         * modules/unistr/u32-cpy: New file.
106977         * lib/unistr/u8-cpy.c: New file.
106978         * lib/unistr/u16-cpy.c: New file.
106979         * lib/unistr/u32-cpy.c: New file.
106980         * lib/unistr/u-cpy.h: New file.
106982         * modules/unistr/u8-cpy-alloc: New file.
106983         * modules/unistr/u16-cpy-alloc: New file.
106984         * modules/unistr/u32-cpy-alloc: New file.
106985         * lib/unistr/u8-cpy-alloc.c: New file.
106986         * lib/unistr/u16-cpy-alloc.c: New file.
106987         * lib/unistr/u32-cpy-alloc.c: New file.
106988         * lib/unistr/u-cpy-alloc.h: New file.
106990         * modules/unistr/u8-endswith: New file.
106991         * modules/unistr/u16-endswith: New file.
106992         * modules/unistr/u32-endswith: New file.
106993         * lib/unistr/u8-endswith.c: New file.
106994         * lib/unistr/u16-endswith.c: New file.
106995         * lib/unistr/u32-endswith.c: New file.
106996         * lib/unistr/u-endswith.h: New file.
106998         * modules/unistr/u8-mblen: New file.
106999         * modules/unistr/u16-mblen: New file.
107000         * modules/unistr/u32-mblen: New file.
107001         * lib/unistr/u8-mblen.c: New file.
107002         * lib/unistr/u16-mblen.c: New file.
107003         * lib/unistr/u32-mblen.c: New file.
107005         * modules/unistr/u8-mbtouc: New file.
107006         * modules/unistr/u16-mbtouc: New file.
107007         * modules/unistr/u32-mbtouc: New file.
107008         * lib/unistr/u8-mbtouc.c: New file.
107009         * lib/unistr/u16-mbtouc.c: New file.
107010         * lib/unistr/u32-mbtouc.c: New file.
107012         * modules/unistr/u8-mbtouc-safe: New file.
107013         * modules/unistr/u16-mbtouc-safe: New file.
107014         * modules/unistr/u32-mbtouc-safe: New file.
107015         * lib/unistr/u8-mbtouc-safe.c: New file.
107016         * lib/unistr/u16-mbtouc-safe.c: New file.
107017         * lib/unistr/u32-mbtouc-safe.c: New file.
107019         * modules/unistr/u8-move: New file.
107020         * modules/unistr/u16-move: New file.
107021         * modules/unistr/u32-move: New file.
107022         * lib/unistr/u8-move.c: New file.
107023         * lib/unistr/u16-move.c: New file.
107024         * lib/unistr/u32-move.c: New file.
107025         * lib/unistr/u-move.h: New file.
107027         * modules/unistr/u8-next: New file.
107028         * modules/unistr/u16-next: New file.
107029         * modules/unistr/u32-next: New file.
107030         * lib/unistr/u8-next.c: New file.
107031         * lib/unistr/u16-next.c: New file.
107032         * lib/unistr/u32-next.c: New file.
107034         * modules/unistr/u8-prev: New file.
107035         * modules/unistr/u16-prev: New file.
107036         * modules/unistr/u32-prev: New file.
107037         * lib/unistr/u8-prev.c: New file.
107038         * lib/unistr/u16-prev.c: New file.
107039         * lib/unistr/u32-prev.c: New file.
107041         * modules/unistr/u8-set: New file.
107042         * modules/unistr/u16-set: New file.
107043         * modules/unistr/u32-set: New file.
107044         * lib/unistr/u8-set.c: New file.
107045         * lib/unistr/u16-set.c: New file.
107046         * lib/unistr/u32-set.c: New file.
107047         * lib/unistr/u-set.h: New file.
107049         * modules/unistr/u8-startswith: New file.
107050         * modules/unistr/u16-startswith: New file.
107051         * modules/unistr/u32-startswith: New file.
107052         * lib/unistr/u8-startswith.c: New file.
107053         * lib/unistr/u16-startswith.c: New file.
107054         * lib/unistr/u32-startswith.c: New file.
107055         * lib/unistr/u-startswith.h: New file.
107057         * modules/unistr/u8-stpcpy: New file.
107058         * modules/unistr/u16-stpcpy: New file.
107059         * modules/unistr/u32-stpcpy: New file.
107060         * lib/unistr/u8-stpcpy.c: New file.
107061         * lib/unistr/u16-stpcpy.c: New file.
107062         * lib/unistr/u32-stpcpy.c: New file.
107063         * lib/unistr/u-stpcpy.h: New file.
107065         * modules/unistr/u8-stpncpy: New file.
107066         * modules/unistr/u16-stpncpy: New file.
107067         * modules/unistr/u32-stpncpy: New file.
107068         * lib/unistr/u8-stpncpy.c: New file.
107069         * lib/unistr/u16-stpncpy.c: New file.
107070         * lib/unistr/u32-stpncpy.c: New file.
107071         * lib/unistr/u-stpncpy.h: New file.
107073         * modules/unistr/u8-strcat: New file.
107074         * modules/unistr/u16-strcat: New file.
107075         * modules/unistr/u32-strcat: New file.
107076         * lib/unistr/u8-strcat.c: New file.
107077         * lib/unistr/u16-strcat.c: New file.
107078         * lib/unistr/u32-strcat.c: New file.
107079         * lib/unistr/u-strcat.h: New file.
107081         * modules/unistr/u8-strchr: New file.
107082         * modules/unistr/u16-strchr: New file.
107083         * modules/unistr/u32-strchr: New file.
107084         * lib/unistr/u8-strchr.c: New file.
107085         * lib/unistr/u16-strchr.c: New file.
107086         * lib/unistr/u32-strchr.c: New file.
107088         * modules/unistr/u8-strcmp: New file.
107089         * modules/unistr/u16-strcmp: New file.
107090         * modules/unistr/u32-strcmp: New file.
107091         * lib/unistr/u8-strcmp.c: New file.
107092         * lib/unistr/u16-strcmp.c: New file.
107093         * lib/unistr/u32-strcmp.c: New file.
107095         * modules/unistr/u8-strcpy: New file.
107096         * modules/unistr/u16-strcpy: New file.
107097         * modules/unistr/u32-strcpy: New file.
107098         * lib/unistr/u8-strcpy.c: New file.
107099         * lib/unistr/u16-strcpy.c: New file.
107100         * lib/unistr/u32-strcpy.c: New file.
107101         * lib/unistr/u-strcpy.h: New file.
107103         * modules/unistr/u8-strcspn: New file.
107104         * modules/unistr/u16-strcspn: New file.
107105         * modules/unistr/u32-strcspn: New file.
107106         * lib/unistr/u8-strcspn.c: New file.
107107         * lib/unistr/u16-strcspn.c: New file.
107108         * lib/unistr/u32-strcspn.c: New file.
107109         * lib/unistr/u-strcspn.h: New file.
107111         * modules/unistr/u8-strdup: New file.
107112         * modules/unistr/u16-strdup: New file.
107113         * modules/unistr/u32-strdup: New file.
107114         * lib/unistr/u8-strdup.c: New file.
107115         * lib/unistr/u16-strdup.c: New file.
107116         * lib/unistr/u32-strdup.c: New file.
107117         * lib/unistr/u-strdup.h: New file.
107119         * modules/unistr/u8-strlen: New file.
107120         * modules/unistr/u16-strlen: New file.
107121         * modules/unistr/u32-strlen: New file.
107122         * lib/unistr/u8-strlen.c: New file.
107123         * lib/unistr/u16-strlen.c: New file.
107124         * lib/unistr/u32-strlen.c: New file.
107125         * lib/unistr/u-strlen.h: New file.
107127         * modules/unistr/u8-strmblen: New file.
107128         * modules/unistr/u16-strmblen: New file.
107129         * modules/unistr/u32-strmblen: New file.
107130         * lib/unistr/u8-strmblen.c: New file.
107131         * lib/unistr/u16-strmblen.c: New file.
107132         * lib/unistr/u32-strmblen.c: New file.
107134         * modules/unistr/u8-strmbtouc: New file.
107135         * modules/unistr/u16-strmbtouc: New file.
107136         * modules/unistr/u32-strmbtouc: New file.
107137         * lib/unistr/u8-strmbtouc.c: New file.
107138         * lib/unistr/u16-strmbtouc.c: New file.
107139         * lib/unistr/u32-strmbtouc.c: New file.
107141         * modules/unistr/u8-strncat: New file.
107142         * modules/unistr/u16-strncat: New file.
107143         * modules/unistr/u32-strncat: New file.
107144         * lib/unistr/u8-strncat.c: New file.
107145         * lib/unistr/u16-strncat.c: New file.
107146         * lib/unistr/u32-strncat.c: New file.
107147         * lib/unistr/u-strncat.h: New file.
107149         * modules/unistr/u8-strncmp: New file.
107150         * modules/unistr/u16-strncmp: New file.
107151         * modules/unistr/u32-strncmp: New file.
107152         * lib/unistr/u8-strncmp.c: New file.
107153         * lib/unistr/u16-strncmp.c: New file.
107154         * lib/unistr/u32-strncmp.c: New file.
107156         * modules/unistr/u8-strncpy: New file.
107157         * modules/unistr/u16-strncpy: New file.
107158         * modules/unistr/u32-strncpy: New file.
107159         * lib/unistr/u8-strncpy.c: New file.
107160         * lib/unistr/u16-strncpy.c: New file.
107161         * lib/unistr/u32-strncpy.c: New file.
107162         * lib/unistr/u-strncpy.h: New file.
107164         * modules/unistr/u8-strnlen: New file.
107165         * modules/unistr/u16-strnlen: New file.
107166         * modules/unistr/u32-strnlen: New file.
107167         * lib/unistr/u8-strnlen.c: New file.
107168         * lib/unistr/u16-strnlen.c: New file.
107169         * lib/unistr/u32-strnlen.c: New file.
107170         * lib/unistr/u-strnlen.h: New file.
107172         * modules/unistr/u8-strpbrk: New file.
107173         * modules/unistr/u16-strpbrk: New file.
107174         * modules/unistr/u32-strpbrk: New file.
107175         * lib/unistr/u8-strpbrk.c: New file.
107176         * lib/unistr/u16-strpbrk.c: New file.
107177         * lib/unistr/u32-strpbrk.c: New file.
107178         * lib/unistr/u-strpbrk.h: New file.
107180         * modules/unistr/u8-strrchr: New file.
107181         * modules/unistr/u16-strrchr: New file.
107182         * modules/unistr/u32-strrchr: New file.
107183         * lib/unistr/u8-strrchr.c: New file.
107184         * lib/unistr/u16-strrchr.c: New file.
107185         * lib/unistr/u32-strrchr.c: New file.
107187         * modules/unistr/u8-strspn: New file.
107188         * modules/unistr/u16-strspn: New file.
107189         * modules/unistr/u32-strspn: New file.
107190         * lib/unistr/u8-strspn.c: New file.
107191         * lib/unistr/u16-strspn.c: New file.
107192         * lib/unistr/u32-strspn.c: New file.
107193         * lib/unistr/u-strspn.h: New file.
107195         * modules/unistr/u8-strstr: New file.
107196         * modules/unistr/u16-strstr: New file.
107197         * modules/unistr/u32-strstr: New file.
107198         * lib/unistr/u8-strstr.c: New file.
107199         * lib/unistr/u16-strstr.c: New file.
107200         * lib/unistr/u32-strstr.c: New file.
107201         * lib/unistr/u-strstr.h: New file.
107203         * modules/unistr/u8-strtok: New file.
107204         * modules/unistr/u16-strtok: New file.
107205         * modules/unistr/u32-strtok: New file.
107206         * lib/unistr/u8-strtok.c: New file.
107207         * lib/unistr/u16-strtok.c: New file.
107208         * lib/unistr/u32-strtok.c: New file.
107209         * lib/unistr/u-strtok.h: New file.
107211         * modules/unistr/u8-uctomb: New file.
107212         * modules/unistr/u16-uctomb: New file.
107213         * modules/unistr/u32-uctomb: New file.
107214         * lib/unistr/u8-uctomb.c: New file.
107215         * lib/unistr/u16-uctomb.c: New file.
107216         * lib/unistr/u32-uctomb.c: New file.
107218         * MODULES.html.sh (Unicode string functions): Add the new modules.
107220 2007-01-08  Bruno Haible  <bruno@clisp.org>
107222         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
107223         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
107224         subdirectories.
107226 2007-01-08  Karl Berry  <karl@gnu.org>
107228         * doc/error.texi: mention that main() fns must set program_name
107229         when progname is used.
107231 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
107233         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
107234         WCTYPE_H is empty, for the benefit of builds from non-distclean
107235         directories.  Problem reported by Eric Blake in
107236         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
107238 2007-01-08  Bruno Haible  <bruno@clisp.org>
107240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
107241         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
107242         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
107243         PROVIDE_CANONICALIZE_FILENAME_MODE.
107244         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
107246 2007-01-08  Bruno Haible  <bruno@clisp.org>
107248         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
107249         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
107250         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
107251         * lib/fts.c: Likewise.
107252         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
107254 2006-12-25  Bruno Haible  <bruno@clisp.org>
107256         * modules/utf8-ucs4-safe: New file.
107257         * lib/utf8-ucs4-safe.h: New file.
107258         * lib/unistr/utf8-ucs4-safe.c: New file.
107260         * modules/utf16-ucs4-safe: New file.
107261         * lib/utf16-ucs4-safe.h: New file.
107262         * lib/unistr/utf16-ucs4-safe.c: New file.
107264         * MODULES.html.sh (Unicode string functions): Add the new modules.
107266 2007-01-08  Bruno Haible  <bruno@clisp.org>
107268         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
107269         (Depends-on): Add unitypes.
107270         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107271         (u8_mbtouc_aux): Move out to separate file.
107272         (u8_mbtouc): Use ucs4_t, uint8_t types.
107273         * lib/unistr/utf8-ucs4.c: New file.
107275         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
107276         (Depends-on): Add unitypes.
107277         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107278         (u16_mbtouc_aux): Move out to separate file.
107279         (u16_mbtouc): Use ucs4_t, uint16_t types.
107280         * lib/unistr/utf16-ucs4.c: New file.
107282         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
107283         (Depends-on): Add unitypes.
107284         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
107285         (u8_uctomb_aux): Move out to separate file.
107286         (u8_uctomb): Use ucs4_t, uint8_t types.
107287         * lib/unistr/ucs4-utf8.c: New file.
107289         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
107290         (Depends-on): Add unitypes.
107291         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
107292         (u16_uctomb_aux): Move out to separate file.
107293         (u16_uctomb): Use ucs4_t, uint16_t types.
107294         * lib/unistr/ucs4-utf16.c: New file.
107296 2006-12-25  Bruno Haible  <bruno@clisp.org>
107298         * modules/unitypes: New file.
107299         * lib/unitypes.h: New file.
107300         * MODULES.html.sh (func_all_modules): New section "Unicode string
107301         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
107302         this section. Add unitypes.
107304 2007-01-08  Bruno Haible  <bruno@clisp.org>
107306         Avoid variable names that conflict with those from libtool.
107307         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
107308         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
107309         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
107310         library_names_spec to acl_library_names_spec, hardcode_* to
107311         acl_hardcode_*.
107312         Reported by Ralf Wildenhues.
107314 2007-01-08  Bruno Haible  <bruno@clisp.org>
107316         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
107317         definition.
107318         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
107319         definition.
107320         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
107321         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
107322         definition.
107323         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
107324         definition.
107325         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
107326         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
107327         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
107328         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
107329         definition.
107330         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
107331         definition.
107332         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
107333         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
107334         GC_USE_<algorithm>.
107335         * lib/gc-libgcrypt.c: Likewise.
107336         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
107337         * modules/gc-arctwo (configure.ac): Likewise.
107338         * modules/gc-des (configure.ac): Likewise.
107339         * modules/gc-hmac-md5 (configure.ac): Likewise.
107340         * modules/gc-hmac-sha1 (configure.ac): Likewise.
107341         * modules/gc-md2 (configure.ac): Likewise.
107342         * modules/gc-md4 (configure.ac): Likewise.
107343         * modules/gc-md5 (configure.ac): Likewise.
107344         * modules/gc-random (configure.ac): Likewise.
107345         * modules/gc-rijndael (configure.ac): Likewise.
107346         * modules/gc-sha1 (configure.ac): Likewise.
107348 2007-01-08  Bruno Haible  <bruno@clisp.org>
107350         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
107351         macro definition.
107352         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
107353         definition.
107354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
107355         definition.
107356         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
107357         * modules/fcntl-safer (configure.ac): Likewise.
107358         * modules/fopen-safer (configure.ac): Likewise.
107359         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
107360         GNULIB_FWRITEERROR macro definition.
107362 2007-01-08  Bruno Haible  <bruno@clisp.org>
107364         * m4/gnulib-common.m4: New file.
107365         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
107366         (func_get_filelist): Add m4/gnulib-common.m4.
107368 2007-01-08  Bruno Haible  <bruno@clisp.org>
107370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
107371         command.
107373 2007-01-08  Jim Meyering  <jim@meyering.net>
107375         Use a more robust test for a "can't happen" condition.
107376         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
107377         narrowed the st_size value.  Presuming the "can't happen" condition
107378         is true, that narrowing could conceivably convert an invalid st_size
107379         value into a valid one.  Instead, use a change based on Matthew
107380         Woehlke's original patch.
107382         Slight readability improvement: use an assert-like macro
107383         in place of literal "abort ()" uses.
107384         * lib/fts.c (fts_assert): Define.
107385         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
107386         Use this macro instead of a bare 'abort'.
107388 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
107390         Don't worry about using IRIX 5.3's wctype.h broken definitions;
107391         simply work around them.
107392         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
107393         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
107394         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
107395         declaring.
107396         Don't bother to define as macros, since the standard doesn't require it.
107397         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
107398         longer worry about IRIX 5.3.
107399         (HAVE_WCTYPE_CTMP_BUG): Remove.
107401 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107403         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
107404         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
107405         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
107406         Problems reported by Georg Schwarz for IRIX 5.3.
107408         * gnulib-tool (autoconf_minversion): Take the maximum version number
107409         found, not the minimum.  Problem reported by James Youngman.
107411 2007-01-03  Karl Berry  <karl@gnu.org>
107413         * doc/error.texi: new file, explaining interaction with progname.
107414         * doc/gnulib.texi: include it.  Update copyright.
107416 2007-01-03  Simon Josefsson  <simon@josefsson.org>
107418         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
107419         AC_CANONICAL_HOST, to improve autobuild outputs.
107421 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
107422             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
107424         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
107425         sockets, server sockets, and other file descriptors.  Count errors
107426         to compute the return value.  Reorder the code a bit to be easier
107427         to follow.  Don't set event bits that were not requested (except
107428         POLLERR and POLLHUP).
107430 2007-01-01  Bruno Haible  <bruno@clisp.org>
107432         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
107434 2007-01-03  Jim Meyering  <jim@meyering.net>
107436         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
107438 2007-01-02  Bruno Haible  <bruno@clisp.org>
107440         * modules/settime (Include): Require timespec.h.
107441         * modules/nanosleep (Include): Likewise.
107443 2007-01-01  Bruno Haible  <bruno@clisp.org>
107445         * gnulib-tool (func_emit_copyright_notice): Bump year.
107446         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
107448 2007-01-01  Bruno Haible  <bruno@clisp.org>
107450         Improve support for OpenBSD.
107451         * build-aux/config.rpath (libname_spec): Export.
107452         (library_names_spec): New variable. Export.
107453         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
107454         library_names_spec from the config.rpath output. Locate shared library
107455         through the name pattern in library_names_spec.
107457 2007-01-01  Eric Blake  <ebb9@byu.net>
107459         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
107461 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
107463         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
107464         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
107465         assume the C locale, and avoid an "eval" that could cause trouble.
107466         Problem with SORT reported by Bob Proulx.
107468         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
107469         Define.  Trivial patch from Henning Nielsen Lund, originally
107470         sent to bug-grep@gnu.org today.
107472 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
107474         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
107475         struct stat.  Problem reported by Henning Nielsen Lund.
107476         * lib/acl.c: Include acl.h first, to check interface.  Don't
107477         bother to include sys/types.h and sys/stat.h again.
107479 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107481         Import the following change from libc; problem reported by
107482         Sven Verdoolaege.
107484         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
107486         [BZ #1373]
107487         * lib/argp.h: Remove __NTH for __argp_usage inline function.
107489 2006-12-28  Jim Meyering  <jim@meyering.net>
107491         * build-aux/announce-gen: Do not assume that the package
107492         builds any of tar.gz, tar.bz2, and .xdelta files.
107493         Suggestion from Simon Josefsson.
107495 2006-12-28  Simon Josefsson  <simon@josefsson.org>
107497         * modules/announce-gen: New file.
107499 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107501         * lib/mbchar.h: Just include <wctype.h>; the wctype module
107502         handles its gotchas now.
107503         * lib/mbswidth.c: Likewise.
107504         * lib/wcwidth.h: Likewise.
107505         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
107506         and iswcntrl; the wctype module does this stuff now.
107507         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107509         * modules/mbchar (Depends-on): Add wctype.
107510         * modules/mbswidth (Depends-on): Likewise.
107511         * modules/wcwidth (Depends-on): Likewise.
107513 2006-12-27  Eric Blake  <ebb9@byu.net>
107515         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
107516         module uses more than what <wctype.h> is required to provide.
107518 2006-12-26  Eric Blake  <ebb9@byu.net>
107520         * gnulib-tool (sed_extract_prog): Avoid space-tab.
107522 2006-12-26  Eric Blake  <ebb9@byu.net>
107524         * modules/absolute-header: New module.
107525         * modules/fcntl (Depends-on): Depend on it.
107526         * modules/inttypes (Depends-on): Likewise.
107527         * modules/stdint (Depends-on): Likewise.
107528         * modules/sys_stat (Depends-on): Likewise.
107529         * modules/wctype (Depends-on): Likewise.
107530         * MODULES.html.sh (Support for building libraries and
107531         executables): Document it.
107533 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
107535         * gnulib-tool (SED): Remove, undoing previous change.
107536         The problem was that it broke coreutils on Solaris, because
107537         "sed --posix" leaked into a makefile.
107538         (sed): New alias, if 'alias' and GNU sed.
107540 2006-12-24  Jim Meyering  <jim@meyering.net>
107542         Work around an fchownat bug in glibc-2.4:
107543         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
107544         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
107545         in spite of the -P option.
107546         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
107547         New macros.
107548         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
107549         * modules/openat (Files): Add lib/fchownat.c.
107550         * lib/openat.c (fchownat): Don't define here.  Move to...
107551         * lib/fchownat.c: ...this new file.
107553 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107555         Fix bug reported by Bruno Haible in
107556         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
107557         where quotearg.c didn't compile on Mac OS X 10.2 because it
107558         lacks <wchar.h> and wint_t.
107559         * lib/wctype_.h (__wctype_wint_t): New type.
107560         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
107561         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
107562         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
107563         Arg is now of type __wctype_wint_t, not wint_t.
107564         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
107565         substitute HAVE_WINT_T.
107566         * modules/wctype (Files): Add m4/wint_t.m4.
107567         (wctype.h): Substitute HAVE_WINT_T.
107569 2006-12-23  Bruno Haible  <bruno@clisp.org>
107571         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
107573 2006-12-23  Bruno Haible  <bruno@clisp.org>
107575         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
107576         S_ISLNK.
107577         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
107578         mingw.
107580 2006-12-22  Bruno Haible  <bruno@clisp.org>
107582         * lib/copy-file.c: Include acl.h.
107583         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
107584         Close the file descriptors only after being done with copy_acl.
107585         * modules/copy-file (Depends-on): Add acl.
107587 2006-12-22  Bruno Haible  <bruno@clisp.org>
107589         * gnulib-tool (SED): New variable.
107590         Use $SED instead of sed everywhere.
107592 2006-12-22  Bruno Haible  <bruno@clisp.org>
107594         * modules/no-c++: New file.
107595         * m4/no-c++.m4: New file.
107596         * MODULES.html.sh (Support for building libraries and executables):
107597         Add no-c++.
107599 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107601         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107602         Include <limits.h>, and use its INT_MAX to rewrite the
107603         j loop so that it does not overflow 'int'.  Problem reported by
107604         Ralf Wildenhues in
107605         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107606         Play it safe by shifting left by 1 rather than multiplying by 2,
107607         as GCC is less likely to optimize this away when the value
107608         is signed (when it assumes overflow leads to undefined behavior).
107609         Also, don't assume time_t uses two's complement.
107611 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107613         * MODULES.html.sh: New module wctype.
107614         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107615         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107616         <wctype.h>, since the new wctype module should fix this.
107617         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107618         the wctype module should arrange for it.
107619         * lib/regex_internal.h: Likewise.
107620         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107621         since the wctype module should handle this now.
107622         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107623         * modules/fnmatch (Depends-on): Add wctype.
107624         * modules/quotearg (Depends-on): Likewise.
107625         * modules/regex (Depends-on): Likewise.
107627 2006-12-19  Bruno Haible  <bruno@clisp.org>
107629         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107630         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107632 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107634         * modules/savewd (Depends-on): Fix dependency on fcntl.
107636 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107638         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107639         conforms to C99, rather than relying on the user's environment
107640         setting of STDINT_H.
107642 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107643         and Eric Blake  <ebb9@byu.net>
107645         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107646         This is more consistent with the other defines here.
107647         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107648         Port to z/OS.  Problem reported by Paul Gilmartin.
107649         Change local vars to use gl_ prefix rather than ac_.
107650         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107651         with other defines.
107652         * modules/double-slash-root: New module.
107653         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107654         (Depends-on): Add double-slash-root.
107655         * MODULES.html.sh (File system functions): Mention new module.
107657 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107659         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107660         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107661         This is for the benefit of gzip, which doesn't do i18n.
107663 2006-12-12  Jim Meyering  <jim@meyering.net>
107665         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107666         Reported by Andreas Schwab <schwab@suse.de>.
107668 2006-12-12  Bruno Haible  <bruno@clisp.org>
107670         Merge these changes.
107671         2006-09-05  Bruno Haible  <bruno@clisp.org>
107672         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107673         iconv_alloc succeeded.
107674         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107675         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107676         test for " && dest " at the end - dest is always != NULL there. Call
107677         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107678         with 2xNULL arguments, also to flush the state storage. Handle the
107679         IRIX iconv behaviour. Realloc the final result, to throw away unused
107680         memory.
107682 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107684         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107685         and fchmodat unconditionally, since glibc 2.4 has them.
107686         Problem reported by Arkadiusz Miskiewicz.
107688 2006-12-10  Bruno Haible  <bruno@clisp.org>
107690         * gnulib-tool (func_import): Show the include files only for those
107691         modules that are copied and specified.
107692         Reported by Karl Berry.
107694 2006-12-08  Jim Meyering  <jim@meyering.net>
107696         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107697         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107699         * build-aux/announce-gen: Add two new options, both optional:
107700         --bootstrap-tools=TOOL_LIST
107701               a comma-separated list of tools, e.g.,
107702               autoconf,automake,bison,gnulib
107703         --gnulib-snapshot-date=DATE
107704               if gnulib is in the bootstrap tool list,
107705               then report this as the snapshot date.
107706               If not specified, use the current date/time.
107707               If you specify a date here, be sure it's UTC.
107709 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107711         * tests/test-argp-2.sh: Fix test to match actual output.
107712         (func_compare): Fix sed script to be portable.
107714 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107716         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107717         workaround for this case.  It is not autoconfigured now; offhand
107718         it's hard to see how to autoconfigure it.
107720 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107722         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107723         a directory that is about to be chowned.  Such a directory's
107724         initial file permissions should permit the owner only and this
107725         should not be changed until after the chown, since the group and
107726         other bits would be incorrect if they granted permission before
107727         the chown.
107729         Fix porting problem for iswctype reported by Georg Schwarz in:
107730         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107731         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107732         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107733         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107734         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107736 2006-12-03  Jim Meyering  <jim@meyering.net>
107738         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107739         p->fts_statp may not yet be defined.
107740         (fts_read): Instead, set it in the caller, once p->fts_statp is
107741         sure to be defined, and corresponds to a top-level directory.
107742         This bug made du -x fail.  Here's the coreutils test case:
107743         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107744         Reported by Mike Frysinger.
107746 2006-12-01  Jim Meyering  <jim@meyering.net>
107748         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107749         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107750         Reported by Simon Josefsson.
107752 2006-11-30  Jim Meyering  <jim@meyering.net>
107754         * m4/warning.m4: Use the all-permissive copyright notice
107755         recommended by RMS (rather than LGPL).
107756         * m4/vararrays.m4: Likewise.
107757         * m4/flexmember.m4: Likewise.
107759 2006-11-29  Bruno Haible  <bruno@clisp.org>
107761         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107762         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107763         using +=.
107764         Reported by Simon Josefsson <simon@josefsson.org>.
107766 2006-11-28  James Youngman  <jay@gnu.org>
107768         * README: Advise users that they might find the bug-gnulib@gnu.org
107769         and autotools-announce@gnu.org mailing lists useful.
107771 2006-11-28  Bruno Haible  <bruno@clisp.org>
107773         * m4/ptrdiff_max.m4: Remove file.
107775 2006-11-21  Bruno Haible  <bruno@clisp.org>
107777         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107778         _AC_COMPUTE_INT.
107779         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107780         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107781         _AC_COMPUTE_INT.
107782         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107783         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107784         _AC_COMPUTE_INT.
107785         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107787 2006-11-28  Jim Meyering  <jim@meyering.net>
107789         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107790         warning from "gcc -Wshadow" about shadowing the builtin.
107792 2006-11-27  Bruno Haible  <bruno@clisp.org>
107794         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107795         _AC_COMPUTE_INT.
107796         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107798 2006-11-27  Bruno Haible  <bruno@clisp.org>
107799             Paul Eggert  <eggert@cs.ucla.edu>
107801         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107803 2006-11-26  Bruno Haible  <bruno@clisp.org>
107805         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107806         noinst_LTLIBRARIES.
107808 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107809             Bruno Haible  <bruno@clisp.org>
107811         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107812         if compiling with "gcc -ansi".
107814 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107816         Fix some incompatibilities with gcc -ansi -pedantic.
107817         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107818         if compiling pedantically with GCC, unless it's C99 or later.
107819         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107820         it mishandles gcc -ansi -pedantic as well.
107821         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107822         if gcc -pedantic.
107823         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107824         initializers for struct if -pedantic, unless it's C99 or later.
107826 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107828         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107829         Don't close an fd more than once. Identical atimes indicate
107830         success, not failure.
107832 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107834         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107836 2006-11-23  Jim Meyering  <jim@meyering.net>
107838         * build-aux/announce-gen: New file.  From coreutils.
107840 2006-11-22  Jim Meyering  <jim@meyering.net>
107842         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107843         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107844         (fts_read): Use a temporary to narrow the overused st_size member
107845         before using it in a switch statement.  Reported by Matthew Woehlke.
107847         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107848         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107850 2006-11-20  Bruno Haible  <bruno@clisp.org>
107852         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107853         changequote instead of pairs of brackets.
107854         Reported by Andreas Schwab <schwab@suse.de>.
107856 2006-11-21  Jim Meyering  <jim@meyering.net>
107858         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107859         so as to remain compatible with older compilers.
107860         Patch from Michael Deutschmann.
107862 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107864         * MODULES.html.sh (File system functions): Add openat.
107866         * lib/openat.h (rpl_fstatat): New macro, if
107867         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107868         (fstatat): Define to rpl_fstatat under the same conditions,
107869         unless COMPILING_FSTATAT.
107870         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107871         seems to have the bug.
107872         * lib/fstatat.c: New file.
107873         * modules/openat (Files): Add it.
107875 2006-11-20  Bruno Haible  <bruno@clisp.org>
107877         * Makefile: New file.
107879 2006-11-20  Jim Meyering  <jim@meyering.net>
107881         The beginnings of syntax-related checks for gnulib.
107882         * lib/Makefile: New file.
107883         * lib/t-idcache: New script.  Ensure that the two halves of
107884         idcache.c stay in sync.
107886         * lib/idcache.c: Adjust comments in user- and group- portions to
107887         be more accurate, and to be consistent with one another.
107889 2006-11-20  Jim Meyering  <jim@meyering.net>
107891         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107892         continue using the flexible array member (thus, this module performs
107893         half as many malloc calls), with the addition that...
107894         (getgroup, getuser): Consistently record a non-match via an empty
107895         "name" string, and map an empty string match to a NULL return value.
107896         * modules/idcache (Depends-on): Re-add flexmember.
107898         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107899         (getuidbyname, getgroup, getgidbyname): Likewise.
107901         Use cleaner syntax: NULL rather than 0.
107902         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107904 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107906         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107907         It mishandled the case where the group was missing.
107908         Problem reported by Greg Schafer.
107909         * modules/idcache: Likewise.
107911 2006-11-18  Jim Meyering  <jim@meyering.net>
107913         * check-module (%exempt_header): Add exception for some
107914         conditionally-included headers.
107916         * modules/i-ring (Depends-on): Add verify.
107917         (License): Change to LGPL.
107919 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107921         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107922         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107923         and inttostr.h.  Use snprintf rather than uinttostr, so that
107924         LGPLed code doesn't depend on GPLed.
107926 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107928         * modules/inline (License): Change from GPL to LGPL.
107930 2006-11-17  Jim Meyering  <jim@meyering.net>
107932         * modules/d-type (License): Switch to LGPL.
107934 2006-11-15  Bruno Haible  <bruno@clisp.org>
107936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107938 2006-11-15  Eric Blake  <ebb9@byu.net>
107940         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107941         the module dependency.
107943 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107944             Bruno Haible  <bruno@clisp.org>
107946         * gnulib-tool (func_create_testdir): Add license consistency check.
107948 2006-11-15  Eric Blake  <ebb9@byu.net>
107950         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107951         random "(cached)" in configure output.
107953 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107955         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107956         test for conforming inttypes.h is both announced and cached.
107958         * MODULES.html.sh (seen_modules, seen_files): New variables.
107959         (func_module): Rewrite to use a few less gnulib-tool and sed
107960         invocations.  Avoid a couple of quadratic algorithms for ...
107961         (missed_modules, missed_files): ... these, with ...
107962         (func_append, func_tmpdir): ... these new functions, from
107963         gnulib-tool.  Analogously, install traps for cleanup.
107965         * tests/test-gc.c (main): Remove unused variables.
107966         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107968 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107970         * modules/inttostr (License): Change to LGPL.
107972 2006-11-14  Eric Blake  <ebb9@byu.net>
107974         * modules/tempname (License): Change to LGPL.
107976 2006-11-14  Eric Blake  <ebb9@byu.net>
107978         * doc/functions.texi (Function Portability): *printf functions on
107979         Cygwin now understand all POSIX size specifiers.
107981 2006-11-14  Bruno Haible  <bruno@clisp.org>
107983         * modules/c-ctype (License): Change to LGPL.
107985 2006-11-12  Bruno Haible  <bruno@clisp.org>
107987         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107988         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107989         for GNOME libraries, for which the include files are installed in
107990         subdirectories of $prefix/include.
107992 2006-11-12  Bruno Haible  <bruno@clisp.org>
107994         * m4/lib-link.m4: Require at least autoconf-2.54.
107995         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107996         name to underscores for the --with option.
107998 2006-11-13  Bruno Haible  <bruno@clisp.org>
108000         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
108001         the tests directory.
108002         Reported by Ralf Wildenhues.
108004 2006-11-13  Bruno Haible  <bruno@clisp.org>
108006         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
108007         (func_emit_initmacro_end): Undo the override here.
108008         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
108009         Works around the famous automake error in coreutils.
108011 2006-11-13  Eric Blake  <ebb9@byu.net>
108013         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
108014         element, not its node.
108016 2006-11-12  Bruno Haible  <bruno@clisp.org>
108018         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
108019         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
108021 2006-11-12  Bruno Haible  <bruno@clisp.org>
108023         * gnulib-tool: New option --local-symlink.
108024         (func_usage): Document it.
108025         (lsymbolic): New variable.
108026         (func_import, func_create_testdir): If --symlink was not specified,
108027         test whether --local-symlink was specified and the file comes from
108028         the local_gnulib_dir.
108030 2006-11-12  Bruno Haible  <bruno@clisp.org>
108032         * gnulib-tool (func_ln): New function.
108033         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
108035 2006-11-12  Bruno Haible  <bruno@clisp.org>
108037         Finish support for source files in subdirectories.
108038         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
108039         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
108040         AUTOMAKE_OPTIONS.
108041         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
108043 2006-11-12  Bruno Haible  <bruno@clisp.org>
108045         * gnulib-tool (func_get_automake_snippet): Synthesize also an
108046         EXTRA_lib_SOURCES augmentation.
108047         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
108049 2006-11-12  Jim Meyering  <jim@meyering.net>
108051         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
108052         file descriptors.  This also averts a failure on systems with
108053         native openat support when a traversed directory lacks "x" access.
108054         * lib/fts_.h: Include "i-ring.h"
108055         (struct FTS) [fts_fd_ring]: New member.
108056         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
108057         (FCHDIR): Add parentheses.
108058         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
108059         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
108060         When descending, rather than simply closing the previous
108061         fts_cwd_fd value, push that file descriptor onto the ring.
108062         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
108063         (fts_open): Initialize the new fd_ring member.
108064         (fts_close): Clear the ring.
108065         (fts_safe_changedir): When possible, use our new fd_ring to skip
108066         the diropen and fstat and dev/ino comparison that would normally
108067         accompany a virtual `chdir ("..")'.
108069         * modules/fts (Depends-on): Add i-ring.
108070         * modules/i-ring: New module.
108071         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
108072         * m4/i-ring.m4: New file.
108074 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108076         * gnulib-tool (func_create_testdir): Fix replacement of
108077         `build-aux' in configure.ac.  Run autotools in gltests
108078         subdirectory.
108079         (func_create_testdir, func_create_megatestdir, test): There is
108080         no need for '--force' in most autotool invocations in a new
108081         tree.  Actually fail the whole test if any of the tools, or the
108082         configure or make stages fail.
108084         Sync from Automake.
108085         * build-aux/gnupload: Revert last change.  Add pointer to upload
108086         instructions of the GNU Maintenance Instructions.
108087         Suggestion by Karl Berry.
108089 2006-11-10  Jim Meyering  <jim@meyering.net>
108091         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
108093 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108095         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
108096         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
108097         (bind_textdomain_codeset) [! ENABLE_NLS]:
108098         Evaluate all the arguments.  That way, callers get compatible behavior
108099         if the arguments have side effects.  Also, it avoids some GCC
108100         diagnostics in some cases; Joel E. Denny reported problems when Bison
108101         was configured with --enable-gcc-warnigs.
108103 2006-11-10  Jim Meyering  <jim@meyering.net>
108105         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
108106         relevant options in CFLAGS (like -O, -fno-inline) are taken into
108107         account.
108109 2006-11-10  Jim Meyering  <jim@meyering.net>
108111         * modules/inline: New file/module.
108112         * modules/xalloc (Files): Remove m4/inline.m4.
108113         (Depends-on): Add inline, instead.
108114         * modules/oset: Likewise.
108115         * modules/list: Likewise.
108117 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108119         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
108120         Problem reported by Matthew Woehlke.
108122 2006-11-09  Bruno Haible  <bruno@clisp.org>
108124         * lib/tempname.c (gen_tempname): Remove variant that invokes
108125         __gen_tempname.
108126         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
108127         __gen_tempname.
108129 2006-11-08  Bruno Haible  <bruno@clisp.org>
108131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
108132         to 'yes' instead of 'cross-compiling'.
108134 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
108136         * lib/quotearg.h (quotearg_free): New decl.
108137         * lib/quotearg.c (quotearg_free): New function.
108138         (slot0, nslots, slotvec0, slotvec):
108139         Now file-scope so that quotearg_free can get at them.
108141 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108143         Sync from Automake.
108144         * build-aux/gnupload: Add missing 'gnu' to example URL.
108145         Report by Karl Berry.
108147 2006-11-08  Bruno Haible  <bruno@clisp.org>
108149         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
108150         Suggested by Paul Eggert.
108152 2006-11-08  Jim Meyering  <jim@meyering.net>
108154         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
108155         It's already included if !_LIBC.
108156         (fts_safe_changedir): Add a comment.
108158 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
108161         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
108162         Matthew Woehlke.
108164         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
108165         definitions up, to avoid colliding with change below.
108166         (static_inline) [HAVE_INLINE]: New macro.
108167         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
108168         Provide extern decls when !HAVE_INLINE.  Do not define unless
108169         static_inline is defined, either by us or by xmalloc.c.  Use
108170         static_inline rather than static inline.
108171         (XCALLOC): Optimize sizeof(T) = 1 case.
108172         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
108174 2006-11-07  Bruno Haible  <bruno@clisp.org>
108176         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
108177         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
108178         AC_C_INLINE.
108179         * modules/xalloc (Files): Add m4/inline.m4.
108181 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108183         * README: Fix typo.
108184         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
108185         (Miscellanous Notes): ...from this.
108187 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108189         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
108190         Mention that offsetof should be used instead of sizeof.
108191         From Bruno Haible.
108193 2006-11-07  Bruno Haible  <bruno@clisp.org>
108195         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
108197 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108199         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108200         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
108201         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108202         (gl_tree_add_before, gl_tree_add_after):
108203         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
108204         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
108205         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
108206         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
108207         (gl_linked_add_after, gl_linked_add_at): Likewise.
108208         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
108209         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108210         (gl_tree_add_before, gl_tree_add_after): Likewise.
108211         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
108212         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
108213         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
108215 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108217         * lib/gl_oset.h: Use C comment style, not C++ comment style.
108219 2006-11-06  Bruno Haible  <bruno@clisp.org>
108221         * m4/inline.m4: New file.
108222         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
108223         * modules/list (Files): Add m4/inline.m4.
108224         * modules/oset (Files): Likewise.
108226 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108228         * lib/idcache.c: Include <stddef.h>, for offsetof.
108229         (struct userid.name): Change from char * to a flexible array member.
108230         All uses changed.
108231         * modules/idcache (Depends-on): Add flexmember.
108233         * MODULES.html.sh (Core language properties): New module flexmember.
108234         * modules/flexmember, m4/flexmember.m4: New files.
108236         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
108237         inline functions that are identical with the old xnmalloc_inline,
108238         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
108239         that we can avoid some unnecessary integer multiplications and
108240         divisions in the common case where the element size is known at
108241         compile time.
108242         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
108243         needed.
108244         (xnboundedmalloc): Remove.
108245         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
108246         arguments, for consistency with rest of this header.
108247         (xcharalloc): Rewrite using XNMALLOC.
108248         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
108249         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
108250         versions have been moved to lib/xalloc.h and renamed to be the
108251         non-*_inline versions.
108252         (xmalloc, xrealloc): Implement without reference to the xnmalloc
108253         and xnrealloc functions, since those functions are now inline and
108254         now call us.
108255         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
108256         renaming described above.
108257         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
108258         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
108259         captures the dependency in AC_C_INLINE.
108261         New module canonicalize-lgpl, proposed by Charles Wilson in
108262         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
108263         with a few small changes afterwards.
108264         * MODULES.html.sh (File system functions): New module
108265         canonicalize-lgpl.
108266         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
108267         and canonicalize_file_name.
108268         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
108269         * modules/canonicalize-lgpl: New files.
108271 2006-11-05  Bruno Haible  <bruno@clisp.org>
108273         * gnulib-tool (func_import, func_create_testdir): Create directories
108274         also for files in subdirectories of lib/.
108276 2006-11-05  Bruno Haible  <bruno@clisp.org>
108278         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
108279         ANSI C compliant.
108281 2006-11-03  Bruno Haible  <bruno@clisp.org>
108283         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108284         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
108285         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
108286         (xnboundedmalloc): New inline function.
108287         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
108288         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
108289         xmalloc.
108290         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
108291         xmalloc.
108292         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
108293         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
108294         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
108295         xmalloc.
108296         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108297         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
108298         xmalloc.
108299         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
108300         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108301         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
108302         xmalloc.
108303         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108304         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
108305         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108306         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
108307         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
108308         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
108309         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
108311 2006-11-03  Bruno Haible  <bruno@clisp.org>
108313         * lib/c-ctype.h [C++]: Define functions without name mangling.
108314         * lib/fwriteerror.h [C++]: Likewise.
108315         * lib/gcd.h [C++]: Likewise.
108316         * lib/linebreak.h [C++]: Likewise.
108318 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108320         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
108321         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
108322         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
108323         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108324         Check for functions and headers just once.
108325         Check for declaration of canonicalize_file_name.
108326         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
108328 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108330         * gnulib-tool (func_import): Fix typo in actioncmd.
108332 2006-11-02  Bruno Haible  <bruno@clisp.org>
108334         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
108335         newline sequence in the Makefile.am snippet as a space, like "make"
108336         does.
108337         Reported by Roger Persson <perrog@gmail.com>.
108339 2006-11-01  Bruno Haible  <bruno@clisp.org>
108341         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
108342         already declared in <string.h>.
108343         * lib/strcase.h (strncasecmp): Don't declare it if yes.
108345 2006-11-01  Bruno Haible  <bruno@clisp.org>
108347         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
108348         * lib/strcase.h: Include <string.h>.
108349         (strcasecmp): Define to rpl_strcasecmp here.
108351 2006-11-01  Bruno Haible  <bruno@clisp.org>
108353         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
108355 2006-11-01  Eric Blake  <ebb9@byu.net>
108357         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
108359         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
108361 2006-10-29  Bruno Haible  <bruno@clisp.org>
108363         Make it compile in C++ mode.
108364         * lib/full-write.c (full_rw): Add a cast.
108366 2006-11-01  Bruno Haible  <bruno@clisp.org>
108368         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
108369         be POSIX compliant.
108370         Reported by Roger Persson <perrog@gmail.com>.
108372 2006-11-01  Eric Blake  <ebb9@byu.net>
108374         * lib/getopt_.h: Fix comments.
108376 2006-10-31  Eric Blake  <ebb9@byu.net>
108378         * modules/tmpdir (Depends-on): Add sys_stat.
108379         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
108380         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
108381         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
108382         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
108383         tempname.
108385 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
108387         Avoid some C++ diagnostics reported by Bruno Haible.
108388         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
108389         xmalloc.
108390         (quotearg_alloc): Use xcharalloc rather than xmalloc.
108391         (struct slotvec): Move to top level.
108392         (quotearg_n_options): Rewrite to avoid xmalloc.
108393         * lib/xalloc.h (xcharalloc): New function.
108394         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
108395         [defined __cplusplus]: Add function template that provides result
108396         type propagation.  This part of the change is from Bruno Haible.
108398 2006-10-29  Bruno Haible  <bruno@clisp.org>
108400         Make it compile in C++ mode.
108401         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
108402         * lib/strnlen1.c (strnlen1): Cast memchr result.
108403         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
108404         * lib/clean-temp.c (string_equals, string_hash): Add casts.
108405         (create_temp_dir): Rename local variable 'template'.
108406         (compile_csharp_using_sscli): Add cast.
108407         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
108408         * lib/findprog.c (find_in_path): Likewise.
108409         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
108410         * lib/wait-process.c (register_slave_subprocess): Likewise.
108412 2006-10-22  Bruno Haible  <bruno@clisp.org>
108414         * modules/tsearch: New file.
108415         * lib/tsearch.h: New file.
108416         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
108417         * m4/tsearch.m4: New file.
108418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
108420 2006-10-29  Eric Blake  <ebb9@byu.net>
108422         * lib/arcfour.c: Assume config.h.
108423         * lib/arctwo.c: Likewise.
108424         * lib/base64.c: Likewise.
108425         * lib/check-version.c: Likewise.
108426         * lib/crc.c: Likewise.
108427         * lib/des.c: Likewise.
108428         * lib/gc-gnulib.c: Likewise.
108429         * lib/gc-libgcrypt.c: Likewise.
108430         * lib/gc-pbkdf2-sha1.c: Likewise.
108431         * lib/getaddrinfo.c: Likewise.
108432         * lib/getdelim.c: Likewise.
108433         * lib/getline.c: Likewise.
108434         * lib/hmac-md5.c: Likewise.
108435         * lib/hmac-sha1.c: Likewise.
108436         * lib/iconvme.c: Likewise.
108437         * lib/md2.c: Likewise.
108438         * lib/md4.c: Likewise.
108439         * lib/memxor.c: Likewise.
108440         * lib/read-file.c: Likewise.
108441         * lib/readline.c: Likewise.
108442         * lib/rijndael-alg-fst.c: Likewise.
108443         * lib/rijndael-api-fst.c: Likewise.
108444         * lib/xgetdomainname.c: Likewise.
108446 2006-10-28  Eric Blake  <ebb9@byu.net>
108448         * lib/xstrndup.c: Assume config.h.
108450 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108452         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
108453         stat-macros.h is now for our own macros, whereas stat_h is for
108454         macros in the <sys/stat.h> name space.
108455         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
108456         (STAT_MACROS_H): Remove.
108457         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
108458         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
108459         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
108460         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
108461         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
108462         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
108463         Move these macros to ...
108464         * lib/stat_.h: here.  Don't include stat-macros.h.
108465         * lib/canonicalize.c: Don't include stat-macros.h.
108466         * lib/chown.c: Likewise.
108467         * lib/euidaccess.c: Likewise.
108468         * lib/file-type.c: Likewise.
108469         * lib/filemode.c: Likewise.
108470         * lib/glob.c: Likewise.
108471         * lib/isapipe.c: Likewise.
108472         * lib/lchown.c: Likewise.
108473         * lib/lstat.c: Likewise.
108474         * lib/mkdir-p.c: Likewise.
108475         * lib/rmdir.c: Likewise.
108476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
108477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
108478         unless mkdir isn't declared, to speed up 'configure'.
108479         Always create sys/stat.h, since it's unlikely any real sys/stat.h
108480         would define all the S_* symbols.
108481         * modules/canonicalize (Depends-on):
108482         Depend on sys_stat, not stat-macros.
108483         * modules/chown: Likewise.
108484         * modules/euidaccess: Likewise.
108485         * modules/filemode: Likewise.
108486         * modules/file-type: Likewise.
108487         * modules/glob: Likewise.
108488         * modules/isapipe: Likewise.
108489         * modules/lchown: Likewise.
108490         * modules/lstat: Likewise.
108491         * modules/mkancesdirs: Likewise.
108492         * modules/rmdir: Likewise.
108493         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
108494         * modules/modechange: Likewise.
108495         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
108496         (configure.ac): Remove gl_STAT_MACROS.
108497         * modules/sys_stat (Depends-on): Remove stat-macros.
108499 2006-10-27  Bruno Haible  <bruno@clisp.org>
108501         * m4/signed.m4: Remove file.
108502         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
108503         invocation.
108504         * modules/vasnprintf (Files): Remove m4/signed.m4.
108506 2006-10-27  Bruno Haible  <bruno@clisp.org>
108508         Update to GNU gettext 0.16.
108509         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
108510         m4/inttypes-h.m4, m4/signed.m4.
108511         * m4/gettext.m4: Update to GNU gettext 0.16.
108512         * m4/intl.m4: New file, from GNU gettext.
108513         * m4/intldir.m4: New file, from GNU gettext.
108514         * config/srclist.txt: Update
108516 2006-10-27  Eric Blake  <ebb9@byu.net>
108518         * MODULES.html.sh: Document tempname.
108519         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
108520         dependencies.
108521         (Files): Move lib/tempname.c...
108522         * modules/tempname: ...to this new module.
108523         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
108524         (gl_PREREQ_TEMPNAME): Move...
108525         * m4/tempname.m4: ...to this new file.
108526         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
108527         * modules/sys_stat (Depends-on): Add stat-macros.
108528         * lib/stat_.h (includes): Pick up stat macros.
108529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
108530         if stat macros are broken.
108531         * lib/tempname.c (includes): No need to include "stat-macros.h".
108532         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
108533         (direxists, __path_search) [!_LIBC]: Don't compile these in
108534         gnulib; the tmpdir module covers that.
108535         * lib/tempname.h: New file.
108537 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
108539         * COPYING: Explain how gnulib-tool converts licence headers.
108540         Almost all wording by Eric Blake.
108542 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
108544         * lib/mbchar.h (is_basic_table): Make read-only.
108545         * lib/mbchar.c (is_basic_table): Likewise.
108546         Reported by John Darrington.
108548 2006-10-25  Bruno Haible  <bruno@clisp.org>
108550         * lib/progname.h (set_program_name): Undefine before defining.
108552 2006-10-25  Bruno Haible  <bruno@clisp.org>
108554         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
108555         false for non-gcc C++ compilers.
108556         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108558 2006-10-24  Bruno Haible  <bruno@clisp.org>
108560         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
108561         iconv implementations like Irix iconv.
108563 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108565         * modules/vararrays: New file.
108566         * m4/vararrays.m4: New file, taken from diffutils.
108567         * MODULES.html.sh: New module vararrays.
108569 2006-10-24  Karl Berry  <karl@gnu.org>
108571         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
108572         Don't call GNU Unix.
108574 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108576         * users.txt: Add Libtool.
108578         Sync from Libtool:
108580         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108582         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
108583         to gnulib's policy of including config.h unconditionally.
108585 2006-10-24  Bruno Haible  <bruno@clisp.org>
108587         * modules/wcwidth (Files): Add m4/wint_t.m4.
108588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108589         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108591 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108593         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108594         to pacify GCC with some -W flags enabled.  Problem reported by
108595         Bruno Haible.
108597 2006-10-24  Jim Meyering  <jim@meyering.net>
108599         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108600         Reported by Karl Berry.
108602 2006-10-23  Bruno Haible  <bruno@clisp.org>
108604         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108606 2006-10-24  Bruno Haible  <bruno@clisp.org>
108608         * lib/gl_list.h: Use C comment style, not C++ comment style.
108610 2006-10-23  Eric Blake  <ebb9@byu.net>
108612         * lib/getaddrinfo.c (includes): Add missing include.
108614 2006-10-23  Bruno Haible  <bruno@clisp.org>
108615             Paul Eggert  <eggert@cs.ucla.edu>
108617         Ability to rename obstack_free.
108618         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108619         obstack_free.
108620         (obstack_free): Invoke the __obstack_free macro.
108621         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108623 2006-10-23  Bruno Haible  <bruno@clisp.org>
108624             Paul Eggert  <eggert@cs.ucla.edu>
108626         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108627         __argc, __argv from the declaration. (They are defined as macros on
108628         mingw.)
108630 2006-10-22  Bruno Haible  <bruno@clisp.org>
108632         * doc/gnulib-intro.texi: New file.
108633         * doc/gnulib.texi: Include it.
108635 2006-10-21  Bruno Haible  <bruno@clisp.org>
108637         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108638         "Introduction", "Miscellanous Notes", "Particular Modules".
108640 2006-10-21  Bruno Haible  <bruno@clisp.org>
108642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108643         Change mostlyclean-local rule to avoid sh syntax error from bash
108644         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108646 2006-10-23  Jim Meyering  <jim@meyering.net>
108648         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108649         in place of snprintf.
108651         * modules/inttostr (Files): Add lib/uinttostr.c.
108652         * lib/uinttostr.c (inttostr): New file/function.
108653         * lib/inttostr.h (uinttostr): Declare.
108654         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108655         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108656         Add uinttostr.
108657         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108659 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108661         * lib/canonicalize.c (ELOOP): Define if not already defined.
108662         Problem reported by Bruno Haible in
108663         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108665 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108667         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108668         Problem reported by Perry Smith and Ville Laurikari.
108670         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108671         uses.
108673 2006-10-19  Bruno Haible  <bruno@clisp.org>
108675         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108676         for mingw.
108678 2006-10-19  Bruno Haible  <bruno@clisp.org>
108680         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108681         Needed for mingw.
108683 2006-10-19  Bruno Haible  <bruno@clisp.org>
108685         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108687 2006-10-19  Bruno Haible  <bruno@clisp.org>
108689         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108690         it.
108692 2006-10-19  Bruno Haible  <bruno@clisp.org>
108694         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108695         invocation.
108697 2006-10-19  Bruno Haible  <bruno@clisp.org>
108699         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108700         mountlist by default.
108702 2006-10-16  Bruno Haible  <bruno@clisp.org>
108704         * lib/c-strstr.c: Include c-strstr.h.
108706 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108708         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108709         in a slash.
108711 2006-10-18  Bruno Haible  <bruno@clisp.org>
108713         * lib/lock.h [C++]: Wrap definitions in extern "C".
108715 2006-10-18  Bruno Haible  <bruno@clisp.org>
108717         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108718         gl_LIBOBJS list.
108720 2006-10-18  Bruno Haible  <bruno@clisp.org>
108722         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108724 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108726         * lib/xstrtol.h: Include gettext.h.
108727         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108728         Problem reported by Eric Blake.
108729         * modules/xstrtol (Depends-on): Add gettext-h.
108731 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108733         * lib/strftime.c (advance): New macro.
108734         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108735         incomplete type, so you can't add 0 to it.  Problem and patch
108736         reported by Eelco Dolstra for dietlibc.
108738 2006-10-18  Jim Meyering  <jim@meyering.net>
108740         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108741         type for a local, and rename it: s/up/user_proc/.
108743 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108745         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108746         READ_UTMP_USER_PROCESS.
108747         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108749 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108751         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108752         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108754 2006-10-17  Eric Blake  <ebb9@byu.net>
108756         * lib/sigprocmask.c (sigprocmask): Fix typo.
108758         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108760         * modules/clean-temp (Makefile.am): Don't add to make output...
108761         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108762         config.h.
108764 2006-10-17  Bruno Haible  <bruno@clisp.org>
108766         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108767         differently if DEFAULT_TEXT_DOMAIN is set.
108769 2006-10-16  Bruno Haible  <bruno@clisp.org>
108771         * lib/clean-temp.c: Include fwriteerror.h.
108773 2006-10-16  Bruno Haible  <bruno@clisp.org>
108775         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108777 2006-10-16  Bruno Haible  <bruno@clisp.org>
108779         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108780         * lib/sigprocmask.h: Include <sys/types.h>.
108781         (sigset_t): Use the system's definition if present.
108783 2006-10-17  Eric Blake  <ebb9@byu.net>
108785         * lib/xvasprintf.c (includes): Assume config.h.
108786         * lib/xasprintf.c (includes): Likewise.
108788 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108790         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108791         at least as wide as intmax_t.
108793 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108795         (Imported from Automake.)
108796         * build-aux/gnupload: Update to version 1.1 of directive file.
108798 2006-10-16  Eric Blake  <ebb9@byu.net>
108800         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108801         match Automake 1.10a.
108803 2006-10-14  Bruno Haible  <bruno@clisp.org>
108805         * modules/sigprocmask: New file.
108806         * lib/sigprocmask.h: New file.
108807         * lib/sigprocmask.c: New file.
108808         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108809         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108810         request sigprocmask.o.
108811         (gl_PREREQ_SIGPROCMASK): New macro.
108812         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108813         (Depends-on): Add sigprocmask.
108814         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108815         gt_SIGNALBLOCKING. Test for 'raise' only once.
108816         * lib/fatal-signal.c: Include sigprocmask.h.
108817         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108818         unblock_fatal_signals): Define always.
108819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108820         sigprocmask.
108822 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108824         Sync from Automake.
108825         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108826         which incorrectly sets the mode of an existing destination
108827         directory.  In some cases the unpatched install-sh could do the
108828         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108829         system.  We hope this is rare in practice, but it's clearly worth
108830         fixing.  Problem reported by Alex Unleashed in
108831         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108832         Also, don't bother to check for -m bugs unless we're using -m;
108833         suggested by Stepan Kasal.
108835 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108837         Sync from Automake.
108838         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108839         `-c' flag, so they appear at the same position as in %FASTDEP%
108840         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108841         which ignores unknown options only after the first non-option.
108842         Bug report against M4 by Nelson H. F. Beebe.
108844 2006-10-13  Jim Meyering  <jim@meyering.net>
108846         Fix a bug in yesterday's change.
108847         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108848         p->fts_statp->st_dev would be used uninitialized.
108849         Ensures that we always call fts_stat on the very first entry.
108850         Miklos Szeredi reported that find -xdev stopped working.
108852 2006-10-12  Bruno Haible  <bruno@clisp.org>
108854         * gnulib-tool (func_get_automake_snippet): Append an automatically
108855         computed EXTRA_DIST augmentation.
108856         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108857         * modules/alloca-opt (Makefile.am): Likewise.
108858         * modules/allocsa (Makefile.am): Likewise.
108859         * modules/arcfour (Makefile.am): Likewise.
108860         * modules/arctwo (Makefile.am): Likewise.
108861         * modules/argmatch (Makefile.am): Likewise.
108862         * modules/argz (Makefile.am): Likewise.
108863         * modules/atexit (Makefile.am): Likewise.
108864         * modules/backupfile (Makefile.am): Likewise.
108865         * modules/byteswap (Makefile.am): Likewise.
108866         * modules/c-strtod (Makefile.am): Likewise.
108867         * modules/c-strtold (Makefile.am): Likewise.
108868         * modules/calloc (Makefile.am): Likewise.
108869         * modules/canon-host (Makefile.am): Likewise.
108870         * modules/canonicalize (Makefile.am): Likewise.
108871         * modules/chdir-long (Makefile.am): Likewise.
108872         * modules/chdir-safer (Makefile.am): Likewise.
108873         * modules/check-version (Makefile.am): Likewise.
108874         * modules/chown (Makefile.am): Likewise.
108875         * modules/cloexec (Makefile.am): Likewise.
108876         * modules/close-stream (Makefile.am): Likewise.
108877         * modules/closeout (Makefile.am): Likewise.
108878         * modules/crc (Makefile.am): Likewise.
108879         * modules/csharpexec (Makefile.am): Likewise.
108880         * modules/cycle-check (Makefile.am): Likewise.
108881         * modules/des (Makefile.am): Likewise.
108882         * modules/dev-ino (Makefile.am): Likewise.
108883         * modules/dirfd (Makefile.am): Likewise.
108884         * modules/dirname (Makefile.am): Likewise.
108885         * modules/dup2 (Makefile.am): Likewise.
108886         * modules/eealloc (Makefile.am): Likewise.
108887         * modules/error (Makefile.am): Likewise.
108888         * modules/euidaccess (Makefile.am): Likewise.
108889         * modules/exclude (Makefile.am): Likewise.
108890         * modules/exitfail (Makefile.am): Likewise.
108891         * modules/fcntl-safer (Makefile.am): Likewise.
108892         * modules/fcntl (Makefile.am): Likewise.
108893         * modules/file-type (Makefile.am): Likewise.
108894         * modules/fileblocks (Makefile.am): Likewise.
108895         * modules/filemode (Makefile.am): Likewise.
108896         * modules/filenamecat (Makefile.am): Likewise.
108897         * modules/fnmatch (Makefile.am): Likewise.
108898         * modules/fopen-safer (Makefile.am): Likewise.
108899         * modules/fpending (Makefile.am): Likewise.
108900         * modules/fprintftime (Makefile.am): Likewise.
108901         * modules/free (Makefile.am): Likewise.
108902         * modules/fsusage (Makefile.am): Likewise.
108903         * modules/ftruncate (Makefile.am): Likewise.
108904         * modules/fts (Makefile.am): Likewise.
108905         * modules/gc-arcfour (Makefile.am): Likewise.
108906         * modules/gc-des (Makefile.am): Likewise.
108907         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108908         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108909         * modules/gc-md4 (Makefile.am): Likewise.
108910         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108911         * modules/gc-sha1 (Makefile.am): Likewise.
108912         * modules/gc (Makefile.am): Likewise.
108913         * modules/getaddrinfo (Makefile.am): Likewise.
108914         * modules/getcwd (Makefile.am): Likewise.
108915         * modules/getdelim (Makefile.am): Likewise.
108916         * modules/getdomainname (Makefile.am): Likewise.
108917         * modules/getgroups (Makefile.am): Likewise.
108918         * modules/gethostname (Makefile.am): Likewise.
108919         * modules/gethrxtime (Makefile.am): Likewise.
108920         * modules/getline (Makefile.am): Likewise.
108921         * modules/getloadavg (Makefile.am): Likewise.
108922         * modules/getlogin_r (Makefile.am): Likewise.
108923         * modules/getndelim2 (Makefile.am): Likewise.
108924         * modules/getopt (Makefile.am): Likewise.
108925         * modules/getpagesize (Makefile.am): Likewise.
108926         * modules/getpass-gnu (Makefile.am): Likewise.
108927         * modules/getpass (Makefile.am): Likewise.
108928         * modules/getsubopt (Makefile.am): Likewise.
108929         * modules/gettime (Makefile.am): Likewise.
108930         * modules/gettimeofday (Makefile.am): Likewise.
108931         * modules/getugroups (Makefile.am): Likewise.
108932         * modules/getusershell (Makefile.am): Likewise.
108933         * modules/glob (Makefile.am): Likewise.
108934         * modules/group-member (Makefile.am): Likewise.
108935         * modules/hard-locale (Makefile.am): Likewise.
108936         * modules/hash (Makefile.am): Likewise.
108937         * modules/hmac-md5 (Makefile.am): Likewise.
108938         * modules/hmac-sha1 (Makefile.am): Likewise.
108939         * modules/human (Makefile.am): Likewise.
108940         * modules/idcache (Makefile.am): Likewise.
108941         * modules/imaxabs (Makefile.am): Likewise.
108942         * modules/imaxdiv (Makefile.am): Likewise.
108943         * modules/inet_ntop (Makefile.am): Likewise.
108944         * modules/inet_pton (Makefile.am): Likewise.
108945         * modules/intprops (Makefile.am): Likewise.
108946         * modules/inttostr (Makefile.am): Likewise.
108947         * modules/inttypes (Makefile.am): Likewise.
108948         * modules/isapipe (Makefile.am): Likewise.
108949         * modules/javaversion (Makefile.am): Likewise.
108950         * modules/lchmod (Makefile.am): Likewise.
108951         * modules/lchown (Makefile.am): Likewise.
108952         * modules/localcharset (Makefile.am): Likewise.
108953         * modules/long-options (Makefile.am): Likewise.
108954         * modules/lstat (Makefile.am): Likewise.
108955         * modules/malloc (Makefile.am): Likewise.
108956         * modules/mathl (Makefile.am): Likewise.
108957         * modules/mbchar (Makefile.am): Likewise.
108958         * modules/md2 (Makefile.am): Likewise.
108959         * modules/md4 (Makefile.am): Likewise.
108960         * modules/md5 (Makefile.am): Likewise.
108961         * modules/memcasecmp (Makefile.am): Likewise.
108962         * modules/memchr (Makefile.am): Likewise.
108963         * modules/memcmp (Makefile.am): Likewise.
108964         * modules/memcoll (Makefile.am): Likewise.
108965         * modules/memcpy (Makefile.am): Likewise.
108966         * modules/memmem (Makefile.am): Likewise.
108967         * modules/memmove (Makefile.am): Likewise.
108968         * modules/mempcpy (Makefile.am): Likewise.
108969         * modules/memrchr (Makefile.am): Likewise.
108970         * modules/memset (Makefile.am): Likewise.
108971         * modules/memxor (Makefile.am): Likewise.
108972         * modules/mkancesdirs (Makefile.am): Likewise.
108973         * modules/mkdir-p (Makefile.am): Likewise.
108974         * modules/mkdir (Makefile.am): Likewise.
108975         * modules/mkdtemp (Makefile.am): Likewise.
108976         * modules/mkstemp (Makefile.am): Likewise.
108977         * modules/mktime (Makefile.am): Likewise.
108978         * modules/modechange (Makefile.am): Likewise.
108979         * modules/mountlist (Makefile.am): Likewise.
108980         * modules/nanosleep (Makefile.am): Likewise.
108981         * modules/obstack (Makefile.am): Likewise.
108982         * modules/openat (Makefile.am): Likewise.
108983         * modules/pagealign_alloc (Makefile.am): Likewise.
108984         * modules/pathmax (Makefile.am): Likewise.
108985         * modules/physmem (Makefile.am): Likewise.
108986         * modules/poll (Makefile.am): Likewise.
108987         * modules/posixtm (Makefile.am): Likewise.
108988         * modules/posixver (Makefile.am): Likewise.
108989         * modules/putenv (Makefile.am): Likewise.
108990         * modules/quote (Makefile.am): Likewise.
108991         * modules/quotearg (Makefile.am): Likewise.
108992         * modules/raise (Makefile.am): Likewise.
108993         * modules/read-file (Makefile.am): Likewise.
108994         * modules/readline (Makefile.am): Likewise.
108995         * modules/readlink (Makefile.am): Likewise.
108996         * modules/readtokens (Makefile.am): Likewise.
108997         * modules/readutmp (Makefile.am): Likewise.
108998         * modules/realloc (Makefile.am): Likewise.
108999         * modules/regex (Makefile.am): Likewise.
109000         * modules/rename-dest-slash (Makefile.am): Likewise.
109001         * modules/rename (Makefile.am): Likewise.
109002         * modules/rijndael (Makefile.am): Likewise.
109003         * modules/rmdir (Makefile.am): Likewise.
109004         * modules/rpmatch (Makefile.am): Likewise.
109005         * modules/safe-read (Makefile.am): Likewise.
109006         * modules/safe-write (Makefile.am): Likewise.
109007         * modules/same-inode (Makefile.am): Likewise.
109008         * modules/same (Makefile.am): Likewise.
109009         * modules/save-cwd (Makefile.am): Likewise.
109010         * modules/savedir (Makefile.am): Likewise.
109011         * modules/setenv (Makefile.am): Likewise.
109012         * modules/settime (Makefile.am): Likewise.
109013         * modules/sha1 (Makefile.am): Likewise.
109014         * modules/sig2str (Makefile.am): Likewise.
109015         * modules/snprintf (Makefile.am): Likewise.
109016         * modules/stat-macros (Makefile.am): Likewise.
109017         * modules/stat-time (Makefile.am): Likewise.
109018         * modules/stdbool (Makefile.am): Likewise.
109019         * modules/stdint (Makefile.am): Likewise.
109020         * modules/stdlib-safer (Makefile.am): Likewise.
109021         * modules/stpcpy (Makefile.am): Likewise.
109022         * modules/stpncpy (Makefile.am): Likewise.
109023         * modules/strcase (Makefile.am): Likewise.
109024         * modules/strcasestr (Makefile.am): Likewise.
109025         * modules/strchrnul (Makefile.am): Likewise.
109026         * modules/strcspn (Makefile.am): Likewise.
109027         * modules/strdup (Makefile.am): Likewise.
109028         * modules/strerror (Makefile.am): Likewise.
109029         * modules/strftime (Makefile.am): Likewise.
109030         * modules/strndup (Makefile.am): Likewise.
109031         * modules/strnlen (Makefile.am): Likewise.
109032         * modules/strpbrk (Makefile.am): Likewise.
109033         * modules/strsep (Makefile.am): Likewise.
109034         * modules/strstr (Makefile.am): Likewise.
109035         * modules/strtod (Makefile.am): Likewise.
109036         * modules/strtoimax (Makefile.am): Likewise.
109037         * modules/strtok_r (Makefile.am): Likewise.
109038         * modules/strtol (Makefile.am): Likewise.
109039         * modules/strtoll (Makefile.am): Likewise.
109040         * modules/strtoul (Makefile.am): Likewise.
109041         * modules/strtoull (Makefile.am): Likewise.
109042         * modules/strtoumax (Makefile.am): Likewise.
109043         * modules/strverscmp (Makefile.am): Likewise.
109044         * modules/sys_socket (Makefile.am): Likewise.
109045         * modules/sys_stat (Makefile.am): Likewise.
109046         * modules/sysexits (Makefile.am): Likewise.
109047         * modules/time_r (Makefile.am): Likewise.
109048         * modules/timegm (Makefile.am): Likewise.
109049         * modules/timespec (Makefile.am): Likewise.
109050         * modules/tmpfile-safer (Makefile.am): Likewise.
109051         * modules/trim (Makefile.am): Likewise.
109052         * modules/unistd-safer (Makefile.am): Likewise.
109053         * modules/unlinkdir (Makefile.am): Likewise.
109054         * modules/unlocked-io (Makefile.am): Likewise.
109055         * modules/userspec (Makefile.am): Likewise.
109056         * modules/utime (Makefile.am): Likewise.
109057         * modules/utimecmp (Makefile.am): Likewise.
109058         * modules/utimens (Makefile.am): Likewise.
109059         * modules/vasnprintf (Makefile.am): Likewise.
109060         * modules/vasprintf (Makefile.am): Likewise.
109061         * modules/vsnprintf (Makefile.am): Likewise.
109062         * modules/xalloc (Makefile.am): Likewise.
109063         * modules/xgetcwd (Makefile.am): Likewise.
109064         * modules/xnanosleep (Makefile.am): Likewise.
109065         * modules/xreadlink (Makefile.am): Likewise.
109066         * modules/xstrtod (Makefile.am): Likewise.
109067         * modules/xstrtol (Makefile.am): Likewise.
109068         * modules/xstrtold (Makefile.am): Likewise.
109069         * modules/yesno (Makefile.am): Likewise.
109070         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
109072 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109074         * modules/error (Makefile.am): Distribute files through
109075         EXTRA_DIST, not lib_SOURCES.
109077 2006-10-12  Eric Blake  <ebb9@byu.net>
109079         * modules/error (Makefile.am): Distribute files in /lib.
109080         * modules/obstack (Makefile.am): Likewise.
109082 2006-10-12  Bruno Haible  <bruno@clisp.org>
109084         * modules/acl (Makefile.am): Distribute all files in lib/ through
109085         EXTRA_DIST.
109086         * modules/arcfour (Makefile.am): Likewise.
109087         * modules/arctwo (Makefile.am): Likewise.
109088         * modules/argmatch (Makefile.am): Likewise.
109089         * modules/argz (Makefile.am): Likewise.
109090         * modules/atexit (Makefile.am): Likewise.
109091         * modules/backupfile (Makefile.am): Likewise.
109092         * modules/c-strtod (Makefile.am): Likewise.
109093         * modules/c-strtold (Makefile.am): Likewise.
109094         * modules/calloc (Makefile.am): Likewise.
109095         * modules/canon-host (Makefile.am): Likewise.
109096         * modules/canonicalize (Makefile.am): Likewise.
109097         * modules/chdir-long (Makefile.am): Likewise.
109098         * modules/chdir-safer (Makefile.am): Likewise.
109099         * modules/check-version (Makefile.am): Likewise.
109100         * modules/chown (Makefile.am): Likewise.
109101         * modules/cloexec (Makefile.am): Likewise.
109102         * modules/close-stream (Makefile.am): Likewise.
109103         * modules/closeout (Makefile.am): Likewise.
109104         * modules/crc (Makefile.am): Likewise.
109105         * modules/cycle-check (Makefile.am): Likewise.
109106         * modules/des (Makefile.am): Likewise.
109107         * modules/dirfd (Makefile.am): Likewise.
109108         * modules/dirname (Makefile.am): Likewise.
109109         * modules/dup2 (Makefile.am): Likewise.
109110         * modules/euidaccess (Makefile.am): Likewise.
109111         * modules/exclude (Makefile.am): Likewise.
109112         * modules/exitfail (Makefile.am): Likewise.
109113         * modules/fcntl-safer (Makefile.am): Likewise.
109114         * modules/file-type (Makefile.am): Likewise.
109115         * modules/fileblocks (Makefile.am): Likewise.
109116         * modules/filemode (Makefile.am): Likewise.
109117         * modules/filenamecat (Makefile.am): Likewise.
109118         * modules/fnmatch (Makefile.am): Likewise.
109119         * modules/fopen-safer (Makefile.am): Likewise.
109120         * modules/fpending (Makefile.am): Likewise.
109121         * modules/fprintftime (Makefile.am): Likewise.
109122         * modules/free (Makefile.am): Likewise.
109123         * modules/fsusage (Makefile.am): Likewise.
109124         * modules/ftruncate (Makefile.am): Likewise.
109125         * modules/fts (Makefile.am): Likewise.
109126         * modules/gc (Makefile.am): Likewise.
109127         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
109128         * modules/getaddrinfo (Makefile.am): Likewise.
109129         * modules/getcwd (Makefile.am): Likewise.
109130         * modules/getdelim (Makefile.am): Likewise.
109131         * modules/getdomainname (Makefile.am): Likewise.
109132         * modules/getgroups (Makefile.am): Likewise.
109133         * modules/gethostname (Makefile.am): Likewise.
109134         * modules/gethrxtime (Makefile.am): Likewise.
109135         * modules/getline (Makefile.am): Likewise.
109136         * modules/getloadavg (Makefile.am): Likewise.
109137         * modules/getlogin_r (Makefile.am): Likewise.
109138         * modules/getopt (Makefile.am): Likewise.
109139         * modules/getpass (Makefile.am): Likewise.
109140         * modules/getpass-gnu (Makefile.am): Likewise.
109141         * modules/getsubopt (Makefile.am): Likewise.
109142         * modules/gettime (Makefile.am): Likewise.
109143         * modules/gettimeofday (Makefile.am): Likewise.
109144         * modules/getugroups (Makefile.am): Likewise.
109145         * modules/getusershell (Makefile.am): Likewise.
109146         * modules/glob (Makefile.am): Likewise.
109147         * modules/group-member (Makefile.am): Likewise.
109148         * modules/hard-locale (Makefile.am): Likewise.
109149         * modules/hash (Makefile.am): Likewise.
109150         * modules/hmac-md5 (Makefile.am): Likewise.
109151         * modules/hmac-sha1 (Makefile.am): Likewise.
109152         * modules/human (Makefile.am): Likewise.
109153         * modules/idcache (Makefile.am): Likewise.
109154         * modules/imaxabs (Makefile.am): Likewise.
109155         * modules/imaxdiv (Makefile.am): Likewise.
109156         * modules/inet_ntop (Makefile.am): Likewise.
109157         * modules/inet_pton (Makefile.am): Likewise.
109158         * modules/inttostr (Makefile.am): Likewise.
109159         * modules/isapipe (Makefile.am): Likewise.
109160         * modules/lchown (Makefile.am): Likewise.
109161         * modules/long-options (Makefile.am): Likewise.
109162         * modules/lstat (Makefile.am): Likewise.
109163         * modules/malloc (Makefile.am): Likewise.
109164         * modules/mathl (Makefile.am): Likewise.
109165         * modules/mbchar (Makefile.am): Likewise.
109166         * modules/md2 (Makefile.am): Likewise.
109167         * modules/md4 (Makefile.am): Likewise.
109168         * modules/md5 (Makefile.am): Likewise.
109169         * modules/memcasecmp (Makefile.am): Likewise.
109170         * modules/memchr (Makefile.am): Likewise.
109171         * modules/memcmp (Makefile.am): Likewise.
109172         * modules/memcoll (Makefile.am): Likewise.
109173         * modules/memcpy (Makefile.am): Likewise.
109174         * modules/memmem (Makefile.am): Likewise.
109175         * modules/memmove (Makefile.am): Likewise.
109176         * modules/mempcpy (Makefile.am): Likewise.
109177         * modules/memrchr (Makefile.am): Likewise.
109178         * modules/memset (Makefile.am): Likewise.
109179         * modules/memxor (Makefile.am): Likewise.
109180         * modules/mkancesdirs (Makefile.am): Likewise.
109181         * modules/mkdir (Makefile.am): Likewise.
109182         * modules/mkdir-p (Makefile.am): Likewise.
109183         * modules/mkdtemp (Makefile.am): Likewise.
109184         * modules/mkstemp (Makefile.am): Likewise.
109185         * modules/mktime (Makefile.am): Likewise.
109186         * modules/modechange (Makefile.am): Likewise.
109187         * modules/mountlist (Makefile.am): Likewise.
109188         * modules/nanosleep (Makefile.am): Likewise.
109189         * modules/openat (Makefile.am): Likewise.
109190         * modules/pagealign_alloc (Makefile.am): Likewise.
109191         * modules/physmem (Makefile.am): Likewise.
109192         * modules/poll (Makefile.am): Likewise.
109193         * modules/posixtm (Makefile.am): Likewise.
109194         * modules/posixver (Makefile.am): Likewise.
109195         * modules/putenv (Makefile.am): Likewise.
109196         * modules/quote (Makefile.am): Likewise.
109197         * modules/quotearg (Makefile.am): Likewise.
109198         * modules/raise (Makefile.am): Likewise.
109199         * modules/read-file (Makefile.am): Likewise.
109200         * modules/readline (Makefile.am): Likewise.
109201         * modules/readlink (Makefile.am): Likewise.
109202         * modules/readtokens (Makefile.am): Likewise.
109203         * modules/readutmp (Makefile.am): Likewise.
109204         * modules/realloc (Makefile.am): Likewise.
109205         * modules/regex (Makefile.am): Likewise.
109206         * modules/rename (Makefile.am): Likewise.
109207         * modules/rename-dest-slash (Makefile.am): Likewise.
109208         * modules/rijndael (Makefile.am): Likewise.
109209         * modules/rmdir (Makefile.am): Likewise.
109210         * modules/rpmatch (Makefile.am): Likewise.
109211         * modules/safe-read (Makefile.am): Likewise.
109212         * modules/safe-write (Makefile.am): Likewise.
109213         * modules/same (Makefile.am): Likewise.
109214         * modules/save-cwd (Makefile.am): Likewise.
109215         * modules/savedir (Makefile.am): Likewise.
109216         * modules/setenv (Makefile.am): Likewise.
109217         * modules/settime (Makefile.am): Likewise.
109218         * modules/sha1 (Makefile.am): Likewise.
109219         * modules/sig2str (Makefile.am): Likewise.
109220         * modules/snprintf (Makefile.am): Likewise.
109221         * modules/stdlib-safer (Makefile.am): Likewise.
109222         * modules/stpcpy (Makefile.am): Likewise.
109223         * modules/stpncpy (Makefile.am): Likewise.
109224         * modules/strcase (Makefile.am): Likewise.
109225         * modules/strcasestr (Makefile.am): Likewise.
109226         * modules/strchrnul (Makefile.am): Likewise.
109227         * modules/strcspn (Makefile.am): Likewise.
109228         * modules/strdup (Makefile.am): Likewise.
109229         * modules/strerror (Makefile.am): Likewise.
109230         * modules/strftime (Makefile.am): Likewise.
109231         * modules/strndup (Makefile.am): Likewise.
109232         * modules/strnlen (Makefile.am): Likewise.
109233         * modules/strpbrk (Makefile.am): Likewise.
109234         * modules/strsep (Makefile.am): Likewise.
109235         * modules/strstr (Makefile.am): Likewise.
109236         * modules/strtod (Makefile.am): Likewise.
109237         * modules/strtoimax (Makefile.am): Likewise.
109238         * modules/strtok_r (Makefile.am): Likewise.
109239         * modules/strtol (Makefile.am): Likewise.
109240         * modules/strtoll (Makefile.am): Likewise.
109241         * modules/strtoul (Makefile.am): Likewise.
109242         * modules/strtoull (Makefile.am): Likewise.
109243         * modules/strtoumax (Makefile.am): Likewise.
109244         * modules/strverscmp (Makefile.am): Likewise.
109245         * modules/time_r (Makefile.am): Likewise.
109246         * modules/timegm (Makefile.am): Likewise.
109247         * modules/tmpfile-safer (Makefile.am): Likewise.
109248         * modules/unistd-safer (Makefile.am): Likewise.
109249         * modules/unlinkdir (Makefile.am): Likewise.
109250         * modules/userspec (Makefile.am): Likewise.
109251         * modules/utime (Makefile.am): Likewise.
109252         * modules/utimecmp (Makefile.am): Likewise.
109253         * modules/utimens (Makefile.am): Likewise.
109254         * modules/vasnprintf (Makefile.am): Likewise.
109255         * modules/vasprintf (Makefile.am): Likewise.
109256         * modules/vsnprintf (Makefile.am): Likewise.
109257         * modules/xalloc (Makefile.am): Likewise.
109258         * modules/xgetcwd (Makefile.am): Likewise.
109259         * modules/xnanosleep (Makefile.am): Likewise.
109260         * modules/xreadlink (Makefile.am): Likewise.
109261         * modules/xstrtod (Makefile.am): Likewise.
109262         * modules/xstrtol (Makefile.am): Likewise.
109263         * modules/xstrtold (Makefile.am): Likewise.
109264         * modules/yesno (Makefile.am): Likewise.
109266 2006-10-12  Jim Meyering  <jim@meyering.net>
109268         * m4/getloadavg.m4: Revert the change below.
109270         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
109271         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
109272         fail with a symlink, which is what coreutils' ./bootstrap now
109273         creates by default.
109275 2006-10-12  Bruno Haible  <bruno@clisp.org>
109277         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
109278         mingw.
109279         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
109280         MSVC and mingw explicitly.
109282 2006-10-11  Simon Josefsson  <jas@extundo.com>
109283             Bruno Haible  <bruno@clisp.org>
109285         Add support for multiple gnulib-tool invocations in the scope of a
109286         single configure.ac file.
109287         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
109288         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
109289         with the same contents as the _LIBADD variable.
109290         (func_emit_initmacro_start, func_emit_initmacro_end,
109291         func_emit_initmacro_done): New functions.
109292         (func_import, func_create_testdir): Invoke them. Allow the identifiers
109293         gl_LIBOBJS and gl_LTLIBOBJS.
109295 2006-10-11  Bruno Haible  <bruno@clisp.org>
109297         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
109298         (func_create_testdir): Don't create po/Makefile.am, don't invoke
109299         autoreconf. Instead, invoke autopoint explicitly but move back the
109300         *.m4 files from gnulib.
109302 2006-10-11  Bruno Haible  <bruno@clisp.org>
109304         * gnulib-tool (func_usage): Make module names after --create-testdir
109305         optional.
109306         (func_create_testdir): If no module was specified, use nearly all
109307         modules.
109309 2006-10-12  Jim Meyering  <jim@meyering.net>
109311         Big performance improvement for fts-based tools that use FTS_NOSTAT.
109312         Avoid spurious inode-mismatch problems on non-POSIX file systems.
109313         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
109314         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
109315         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
109316         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
109317         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
109318         (fts_set_stat_required): New function.
109319         (fts_open): Defer the calls to fts_stat, if possible or requested.
109320         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
109321         into fts_stat itself.
109322         (fts_read): Perform any required (deferred) fts_stat call.
109323         (fts_build): Likewise, for the directory we're about to open and read.
109324         In the readdir loop, carefully decide whether each entry will require
109325         an eventual call to fts_stat, using dirent.d_type info if available.
109326         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
109327         a command line argument into this function.  Update all callers.
109328         Map a return value of FTS_DOT to FTS_D for a command line argument.
109329         * modules/fts (Depends-on): Add d-type.  Alphabetize.
109330         Thanks to Miklos Szeredi for his tenacity and for the initial
109331         bug report about "find" failing on a FUSE-based file system.
109333         * lib/fts.c (fts_open): Use consistent indentation.
109335 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
109338         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
109339         reported by Jim Meyering.  All uses of cache variables renamed
109340         to match Autoconf's.
109341         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
109342         the other one.
109344         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
109345         Fix misspelling in diagnostic.
109347 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109349         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
109350         defined.  Problem reported by Matthew Woehlke.
109352         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
109353         Add support for Tandem NonStop R series.
109354         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
109355         Use new macro.
109357         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
109358         (has_trailing_slash): Omit size arg; all callers changed.
109359         Omit 'inline', since it doesn't help performance and we'd
109360         need to configure it.
109361         Don't count //, ///, etc. as having a trailing slash.
109362         As a side effect, this removes a C99ism reported by Matthew Woehlke.
109363         (rpl_rename_dest_slash): On failure, use rename's errno rather
109364         than (in some cases) an incorrect or junk errno.
109365         Simplify code by removing need to compute length; this does
109366         cause it to make two passes instead of one over the file name,
109367         but it's worth it.
109369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
109370         change, since Autoconf's version may no longer be appropriate now
109371         that we are using CVS Autoconf's version.  Add support for Tandem.
109373 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109374             Bruno Haible  <bruno@clisp.org>
109376         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
109377         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
109378         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
109379         gl_AC_TYPE_LONG_LONG.
109381         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
109382         instead of HAVE_LONG_LONG.
109383         * lib/printf-args.c (printf_fetchargs): Likewise.
109384         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
109385         * lib/vasnprintf.c (VASNPRINTF): Likewise.
109386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
109387         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
109388         gl_AC_TYPE_LONG_LONG.
109390 2006-10-11  Bruno Haible  <bruno@clisp.org>
109392         * m4/longlong.m4: Add comments.
109393         * m4/ulonglong.m4: Likewise.
109395 2006-10-10  Bruno Haible  <bruno@clisp.org>
109397         Make it possible to #define stpcpy, strdup to aliases.
109398         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
109399         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
109401 2006-10-10  Bruno Haible  <bruno@clisp.org>
109403         Make it possible to #define gcd to an alias.
109404         * lib/gcd.c: Include config.h.
109406 2006-10-10  Bruno Haible  <bruno@clisp.org>
109408         Make it possible to #define c_isascii to an alias.
109409         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
109410         defined. Undefine the macros before defining them, to avoid gcc
109411         warnings.
109412         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
109413         define NO_C_CTYPE_MACROS early.
109415 2006-10-10  Bruno Haible  <bruno@clisp.org>
109417         Make it possible to #define set_program_name to an alias.
109418         * lib/progname.c: Don't undefine set_program_name; instead, undefine
109419         ENABLE_RELOCATABLE early.
109421 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
109423         Port to Tandem NSK OSS, which has 64-bit signed int but at most
109424         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
109425         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
109426         More generally, don't assume that 64-bit signed int is available
109427         if unsigned int is, and vice versa.
109428         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
109429         unsigned symbols, not on their signed counterparts.
109430         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
109431         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
109432         (UINT64_C, UINTMAX_C):
109433         Likewise.
109434         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
109435         unsigned counterparts.
109436         (Have_long_long, Unsigned): New macros.
109437         (Int): Renamed from INT.
109438         (strtoimax): Use the new macros.
109439         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
109440         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
109441         * modules/inttypes (inttypes.h): Substitute
109442         HAVE_UNSIGNED_LONG_LONG_INT.
109443         * modules/stdint (stdint.h): Likewise.
109444         (Files): Add m4/ulonglong.m4.
109446 2006-10-10  Bruno Haible  <bruno@clisp.org>
109448         Fix a gcc -Wshadow warning.
109449         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
109450         to 'bucket'.
109451         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
109452         gl_linked_indexof_from_to): Likewise.
109453         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
109454         Likewise.
109455         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
109456         Likewise.
109457         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
109458         Reported by Eric Blake.
109460 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
109462         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
109463         for NetBSD.  Problem reported by Bruno Haible.
109465 2006-10-09  Jim Meyering  <jim@meyering.net>
109467         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
109468         Patch from Bruno Haible.
109470 2006-10-09  Jim Meyering  <jim@meyering.net>
109472         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
109473         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
109474         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
109476 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109478         Don't include <config.h> twice; this doesn't work in some cases,
109479         e.g., when config.h has "#define intmax_t long long int" and
109480         we include <config.h>, <inttypes.h>, <config.h> in that order.
109481         Problem reported by Matthew Woehlke in:
109482         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
109483         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
109484         * lib/fts-cycle.c: Don't include config.h.
109485         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
109486         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
109487         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
109488         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
109489         inttypes.h.
109490         * lib/xstrtoumax.c: Likewise.
109491         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
109492         __strtol and the like, so that this module is more like its siblings.
109493         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
109494         Remove; no longer needed now that we assume gnulib inttypes.h.
109496 2006-10-08  Bruno Haible  <bruno@clisp.org>
109498         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
109499         option.
109501 2006-10-07  Jim Meyering  <jim@meyering.net>
109503         * modules/inttypes (inttypes.h): Revert what seems to have been
109504         an inadvertent part of today's change: use "|", not "/" in the
109505         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
109507 2006-10-07  Bruno Haible  <bruno@clisp.org>
109509         * modules/sublist: New file.
109511 2006-10-07  Bruno Haible  <bruno@clisp.org>
109513         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109514         * modules/argz (argz.h): Likewise.
109515         * modules/arpa_inet (arpa/inet.h): Likewise.
109516         * modules/byteswap (byteswap.h): Likewise.
109517         * modules/configmake (configmake.h): Likewise.
109518         * modules/fcntl (fcntl.h): Likewise.
109519         * modules/fnmatch (fnmatch.h): Likewise.
109520         * modules/getopt (getopt.h): Likewise.
109521         * modules/glob (glob.h): Likewise.
109522         * modules/inttypes (inttypes.h): Likewise.
109523         * modules/netinet_in (netinet/in.h): Likewise.
109524         * modules/poll (poll.h): Likewise.
109525         * modules/stdbool (stdbool.h): Likewise.
109526         * modules/stdint (stdint.h): Likewise.
109527         * modules/sys_select (sys/select.h): Likewise.
109528         * modules/sys_socket (sys/socket.h): Likewise.
109529         * modules/sys_stat (sys/stat.h): Likewise.
109530         * modules/sysexits (sysexits.h): Likewise.
109531         * modules/unistd (unistd.h): Likewise.
109532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109533         Add a "DO NOT EDIT" comment to the generated file.
109534         (func_import): Likewise for gnulib-comp.m4.
109536 2006-10-07  Bruno Haible  <bruno@clisp.org>
109538         * lib/gl_sublist.h: New file.
109539         * lib/gl_sublist.c: New file.
109541 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109543         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
109544         name (relative to the original working directory) and the file
109545         name component (relative to the temporary working directory).  All
109546         callers changed.
109547         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
109548         * lib/mkdir-p.c (make_dir_parents): Likewise.
109549         * lib/mkdir-p.h (make_dir_parents): Likewise.
109551 2006-10-06  Eric Blake  <ebb9@byu.net>
109553         Define several macros for use by the clean-temp module.
109554         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
109555         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
109556         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
109558         * lib/clean-temp.h (close_stream_temp): New declaration.
109559         * lib/clean-temp.c (includes): Pull in headers according to what
109560         other modules are in use.
109561         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
109563 2006-10-06  Bruno Haible  <bruno@clisp.org>
109565         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
109566         instead of fopen, fwriteerror.
109568 2006-10-06  Bruno Haible  <bruno@clisp.org>
109570         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
109571         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
109572         int.
109573         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
109574         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
109575         Return an error indicator.
109576         Suggested by Eric Blake.
109578 2006-10-06  Bruno Haible  <bruno@clisp.org>
109580         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
109581         Reported by Eric Blake.
109583 2006-10-06  Bruno Haible  <bruno@clisp.org>
109585         * modules/closeout (Description): Mention stderr too.
109587 2006-10-06  Bruno Haible  <bruno@clisp.org>
109588         and Paul Eggert  <eggert@cs.ucla.edu>
109590         * lib/closeout.c (close_stdout): Also close stderr.
109591         * lib/closeout.h: Update comment.
109593 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109595         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109596         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109597         * lib/dirchownmod.c: Include lchown.h.
109598         * lib/lchown.c: Don't include files that lchown.h now includes.
109599         Don't declare chown, since lchown.h now does that.
109600         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109601         (lchown): Define to rpl_chown if lchown is declared but
109602         does not exist.  Declare using a prototype if lchown is not
109603         declared.  Add a copyright notice.
109604         * lib/mkstemp.h: Include <unistd.h>.
109605         * lib/openat.c: Include lchown.h.
109607         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109608         we now test for that separately.
109609         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109610         rather than O_NOFOLLOW, when testing whether it's possible to
109611         avoid a race condition reliably.
109612         * lib/savewd.c (savewd_chdir): Likewise.
109614         Remove macros that are no longer needed now that stdint.h is
109615         reliable.
109616         * lib/fsusage.c (UINTMAX_MAX): Remove.
109617         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109618         * lib/utimecmp.c (SIZE_MAX): Remove.
109620         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109622         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109623         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109624         O_NOATIME works.
109626 2006-10-05  Bruno Haible  <bruno@clisp.org>
109628         * lib/gl_list.h (gl_sortedlist_search_from_to,
109629         gl_sortedlist_indexof_from_to): New declarations.
109630         (gl_list_implementation): New fields sortedlist_search_from_to,
109631         sortedlist_indexof_from_to.
109632         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109633         inline functions.
109634         * lib/gl_list.c (gl_sortedlist_search_from_to,
109635         gl_sortedlist_indexof_from_to): New functions.
109636         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109637         function.
109638         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109639         (gl_array_sortedlist_search_from_to): New function.
109640         (gl_array_list_implementation): Update.
109641         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109642         function.
109643         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109644         (gl_carray_sortedlist_search_from_to): New function.
109645         (gl_carray_list_implementation): Update.
109646         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109647         gl_linked_sortedlist_indexof_from_to): New functions.
109648         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109649         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109650         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109651         gl_tree_sortedlist_indexof_from_to): New functions.
109652         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109653         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109654         Update.
109655         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109656         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109657         Update.
109659 2006-10-05  Bruno Haible  <bruno@clisp.org>
109661         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109662         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109663         (struct gl_list_implementation): Add fields search_from_to,
109664         indexof_from_to. Remove fields search, indexof.
109665         (gl_list_search): Use the search_from_to method.
109666         (gl_list_search_from, gl_list_search_from_to): New functions.
109667         (gl_list_indexof): Use the indexof_from_to method.
109668         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109669         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109670         (gl_list_search_from, gl_list_search_from_to): New functions.
109671         (gl_list_indexof): Use the indexof_from_to method.
109672         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109673         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109674         gl_array_indexof. Add start_index, end_index arguments.
109675         (gl_array_search_from_to): Renamed from gl_array_search. Add
109676         start_index, end_index arguments.
109677         (gl_array_remove, gl_array_list_implementation): Update.
109678         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109679         gl_carray_indexof. Add start_index, end_index arguments.
109680         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109681         start_index, end_index arguments.
109682         (gl_carray_remove, gl_carray_list_implementation): Update.
109683         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109684         gl_linked_search. Add start_index, end_index arguments.
109685         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109686         start_index, end_index arguments.
109687         (gl_linked_remove): Update.
109688         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109689         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109690         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109691         field to 'size_t'.
109692         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109693         gl_tree_search. Add start_index, end_index arguments.
109694         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109695         start_index, end_index arguments.
109696         (gl_tree_remove): Update.
109697         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109698         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109699         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109700         function.
109701         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109702         gl_tree_search. Add start_index, end_index arguments.
109703         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109704         start_index, end_index arguments.
109705         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109706         Update.
109707         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109709 2006-10-05  Bruno Haible  <bruno@clisp.org>
109711         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109713         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109714         fwriteerror_temp): New declarations.
109715         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109716         (descriptors): New variable.
109717         (cleanup): First, close the descriptors.
109718         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109719         fclose_temp, fwriteerror_temp): New functions.
109721 2006-10-04  Jim Meyering  <jim@meyering.net>
109723         * lib/fts.c (fts_open): Tiny comment change.
109725 2006-10-04  Bruno Haible  <bruno@clisp.org>
109727         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109728         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109729         gl_LOCK_BODY.
109730         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109731         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109732         gl_LOCK_EARLY_BODY.
109733         (gl_LOCK): Require gl_LOCK_BODY.
109735 2006-10-04  Bruno Haible  <bruno@clisp.org>
109737         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109738         (gl_oset_search_atleast): New declaration.
109739         (struct gl_oset_implementation): Add field 'search_atleast'.
109740         (gl_oset_search_atleast): New inline function.
109741         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109742         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109743         (gl_array_oset_implementation): Update.
109744         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109745         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109746         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109748 2006-10-04  Bruno Haible  <bruno@clisp.org>
109750         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109752 2006-10-03  Bruno Haible  <bruno@clisp.org>
109754         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109755         from gl_avltreehash_list_implementation.
109757 2006-10-03  Bruno Haible  <bruno@clisp.org>
109759         * lib/gl_oset.c (gl_oset_add): Fix return type.
109761 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109763         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109765 2006-10-02  Eric Blake  <ebb9@byu.net>
109767         * modules/strnlen (Depends-on): Add extensions.
109769 2006-10-02  Eric Blake  <ebb9@byu.net>
109771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109772         definition in 2.60+.
109774 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109776         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109777         checks.
109779 2006-10-02  Bruno Haible  <bruno@clisp.org>
109781         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109782         to the AUTOMAKE_OPTIONS.
109783         Reported by Jim Meyering.
109785 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109787         Work around bug in Solaris 10 /proc file system:
109788         /proc/self/fd/NNN/.. isn't the parent directory of
109789         the directory whose file descriptor is NNN.  This needs to
109790         be worked around at run time, not compile time, since a
109791         program might be built on Solaris 8, where things work, and
109792         run on Solaris 10.
109793         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109794         to use the following interface instead:
109795         (OPENAT_BUFFER_SIZE): New macro.
109796         (openat_proc_name): New function.
109797         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109798         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109799         Likewise.
109800         * lib/openat-proc.c: New file.
109801         * modules/openat (Files): Add lib/openat-proc.c.
109802         (Depends-on): Add same-inode, stdbool.
109803         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109805 2006-09-29  Bruno Haible  <bruno@clisp.org>
109807         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109808         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109809         argument. Set stdout_closed before testing for ferror, not after.
109810         (fwriteerror, fwriteerror_no_ebadf): New functions.
109812 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109814         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109816 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109818         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109819         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109821 2006-09-28  Jim Meyering  <jim@meyering.net>
109823         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109824         Include <unistd.h>.
109826 2006-09-28  Bruno Haible  <bruno@clisp.org>
109828         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109829         * modules/linkedhash-list (Depends-on): Likewise.
109830         * modules/rbtreehash-list (Depends-on): Likewise.
109832 2006-09-28  Bruno Haible  <bruno@clisp.org>
109834         * lib/strndup.h: Simplify the redefinition of strndup.
109835         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109836         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109838 2006-09-28  Bruno Haible  <bruno@clisp.org>
109840         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109841         * lib/gl_linkedhash_list.c: Likewise.
109842         * lib/gl_rbtreehash_list.c: Likewise.
109844 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109846         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109847         getaddrinfo.
109849         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109850         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109851         it causes <stdio_ext.h> to cause a compile-time error.
109852         Problem reported by Nelson H. F. Beebe.
109853         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109854         of HAVE_DECL___PENDING.
109856         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109857         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109858         declaration.
109860 2006-09-27  Jim Meyering  <jim@meyering.net>
109862         This file could end up with a definition for a function
109863         named __strndup, rather than rpl_strndup on a system with
109864         incomplete weak_alias support.
109865         * lib/strndup.c (strndup): Rename from __strndup.
109866         Remove #defines that used to map __strndup to strndup.
109867         Don't use K&R prototypes.
109868         Remove LIBC-related code, since this file is not sync'd with glibc.
109869         * lib/strndup.h: Revamp, accordingly.
109870         * m4/strndup.m4: Modernize.
109872 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109874         * modules/savewd (Depends-on): Add 'raise'.
109875         * lib/savewd.c: Include <signal.h>, for 'raise'.
109877 2006-09-26  Jim Meyering  <jim@meyering.net>
109879         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109880         when we detect Darwin 8.7.0's acl_get_file bug.
109881         Rearrange to perform the new (below) run-test while $LIBS
109882         contains any acl-related library.  Set USE_ACL at the end.
109883         (gl_ACL_GET_FILE): New function.
109885 2006-09-26  Eric Blake  <ebb9@byu.net>
109887         * lib/verror.c: Include <config.h> unconditionally.
109889 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109891         * modules/clock-time (Maintainer): Add self.
109892         * modules/getlogin_r (Depends-on): Add extensions.
109894 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109896         * modules/clock-time: New module.
109897         * modules/nanosleep (Depends-on): Add clock-time.
109898         * modules/gethrxtime (Depends-on): Likewise.
109899         * modules/gettime (Depends-on): Likewise.
109900         * modules/settime (Depends-on): Likewise.
109902         * modules/fts-lgpl: Depend on openat.
109903         * modules/mkancesdirs: Depend on savewd.
109904         * modules/mkdir-p: Likewise.
109906 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109908         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109910         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109911         `gl_have_arbitrary_file_name_length_limit' to
109912         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109913         actually works between configure runs.
109915 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109916             Bruno Haible  <bruno@clisp.org>
109918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109920 2006-09-25  Jim Meyering  <jim@meyering.net>
109922         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109923         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109925 2006-09-25  Eric Blake  <ebb9@byu.net>
109927         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109928         exec's in 2006-09-18 patch when shuffling fds.
109930 2006-09-25  Bruno Haible  <bruno@clisp.org>
109932         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109933         Reported by Jim Meyering.
109935 2006-09-24  Jim Meyering  <jim@meyering.net>
109937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109938         compare a pointer against a literal "0".  That caused failures with
109939         at least HP-UX's hpcc.
109941 2006-09-22  Simon Josefsson  <jas@extundo.com>
109943         * modules/gc-sha1:
109944         * modules/gc-md4:
109945         * modules/gc-hmac-sha1:
109946         * modules/gc-hmac-md5:
109947         * modules/gc-des:
109948         * modules/gc-arcfour: Distribute more files.
109950 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109952         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109953         (gl_linked_iterator_from_to): Initialize struct completely.
109954         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109955         (gl_tree_iterator_from_to): Likewise
109956         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109957         * lib/gl_array_list.c [lint] (gl_array_iterator)
109958         (gl_array_iterator_from_to): Likewise.
109959         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109960         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109961         (gl_carray_iterator_from_to): Likewise.
109963         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109964         * lib/md4.c (md4_process_block): Remove unused variable.
109965         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109966         parentheses for clarity.
109968 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109970         * modules/bison-i18n (Depends-on): Add gettext.
109972 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109974         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109975         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109976         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109977         also add missing comma that caused broken test.
109978         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109979         stdlib.h, for `abort'.
109980         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109981         variables.
109982         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109983         include unistd.h if present, for `rmdir'.
109984         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109985         variables.
109986         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109987         in the process include standard headers for prototypes.
109988         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109989         gets declared on GNU/Linux.
109990         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109991         unistd.h, for `rmdir'.
109992         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109994         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109995         always true.
109996         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109998         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
110000 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110002         * gnulib-tool (func_version): Create output all at once.  This
110003         may help avoid triggering unnecessary SIGPIPEs, and at any
110004         rate it doesn't hurt.
110006 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110007             Bruno Haible  <bruno@clisp.org>
110009         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
110010         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110011         * m4/signed.m4 (bh_C_SIGNED): Likewise.
110013         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
110014         (gl_FUNC_VASPRINTF): Invoke it.
110016 2006-09-22  Bruno Haible  <bruno@clisp.org>
110018         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
110019         getloadavg.c as first argument.
110021 2006-09-22  Bruno Haible  <bruno@clisp.org>
110023         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
110024         at the beginning of the gl_INIT macro.
110025         * modules/getloadavg (configure.ac): Pass $gl_source_base to
110026         gl_GETLOADAVG.
110028 2006-09-22  Bruno Haible  <bruno@clisp.org>
110030         * gnulib-tool (func_create_megatestdir): Don't include the config-h
110031         module.
110032         Suggested by Ralf Wildenhues.
110034 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
110036         Import this patch from libc:
110038         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
110040         * lib/regex_internal.c (re_string_reconstruct): Handle
110041         offset < pstr->valid_raw_len && pstr->offsets_needed case.
110042         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
110043         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
110044         re_string_context_at.
110046         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
110047         now requires it.
110048         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
110049         gl_REGEX now does it for us.
110050         (gl_REGEX): Add test taken from
110051         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
110053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
110054         Check that large offsets work.  Modernize Autoconf usages.
110055         Prefer "yes" to mean a good thing rather than a bad.
110056         Don't put "#define mkstemp" in config.h, as this might interfere
110057         with standard system headers that "#define mkstemp mkstemp64".
110059         * modules/mkstemp (Depends-on): Add extensions, so that
110060         mkstemp is visible on some platforms.
110061         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
110062         (Include): Change to "mkstemp.h" from <stdlib.h>.
110063         (Files): Add mkstemp.h.
110065         * lib/mkstemp.h: New file, since some standard headers
110066         #define mkstemp.
110067         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
110068         Include "mkstemp.h".
110069         Make the _LIBC code resemble glibc original more,
110070         e.g., use K&R style.
110071         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
110072         (mkstemp): Remove, since mkstemp.h does this for us.
110073         * lib/stdlib--.h: Include mkstemp.h.
110075         Import this patch from libc:
110077         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
110079         * lib/tempname.c (__gen_tempname): Change attempts_min
110080         into a macro.  Use preprocessor to decide how to initialize
110081         attempts [Coverity CID 67].
110083 2006-09-20  Bruno Haible  <bruno@clisp.org>
110085         * lib/mkdtemp.c: Import from libc.
110086         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
110087                 * sysdeps/posix/tempname.c (__gen_tempname): Change
110088                 attempts_min into a macro.  Use preprocessor to decide how to
110089                 initialize attempts [Coverity CID 67].
110090         2001-11-27  Paul Eggert  <eggert@twinsun.com>
110091                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
110092                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
110094 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110096         * gnulib-tool (func_exit): New function, to allow to pass the
110097         exit status portably through the trap.  Use everywhere.
110098         (--help, --version): Signal a write error.
110099         (trap): catch SIGPIPE, for write errors.
110100         Exit at the end of the trap, with the correct exit status.
110102 2006-09-19  Karl Berry  <karl@gnu.org>
110104         * doc/gnulib.texi: note about the license texinfo files.
110106 2006-09-19  Eric Blake  <ebb9@byu.net>
110108         * gnulib-tool: Avoid space-tab.
110110 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
110112         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
110113         that prevented coreutils 6.1 from building.  Problem reported
110114         by Petter Reinholdtsen.
110116 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
110118         * gnulib-tool (avoidlist): Fix typo that broke options like
110119         --avoid=lock that are used by coreutils bootstrap.
110121 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
110123         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
110124         more systematically.
110126 2006-09-18  Jim Meyering  <jim@meyering.net>
110128         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
110130 2006-09-18  Bruno Haible  <bruno@clisp.org>
110132         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
110134 2006-09-18  Bruno Haible  <bruno@clisp.org>
110136         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
110137         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
110138         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
110139         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
110140         * m4/gettext.m4: Require autoconf >= 2.52.
110141         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
110142         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
110143         of gl_cv_header_inttypes_h.
110145 2006-09-18  Bruno Haible  <bruno@clisp.org>
110147         * lib/javaversion.c: Include configmake.h.
110149 2006-09-18  Bruno Haible  <bruno@clisp.org>
110151         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
110152         avoid that the while loops be executed in a subshell.
110154 2006-09-18  Bruno Haible  <bruno@clisp.org>
110156         * MODULES.html.sh (func_module): Break long lines.
110157         Suggested by Bruce Korb <bkorb@gnu.org>.
110159 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110161         Speed up by a factor of 1.12.
110162         * gnulib-tool (nl): New variable.
110163         (func_import): Rewrite include directive extraction to only read each
110164         directive once.
110166 2006-09-17  Bruno Haible  <bruno@clisp.org>
110168         * modules/javaversion (Makefile.am): Remove DEFS setting.
110169         (Depends-on): Add configmake, for PKGDATADIR definition.
110171 2006-09-17  Bruno Haible  <bruno@clisp.org>
110173         * gnulib-tool (func_create_testdir): Rewrite all files at once.
110175 2006-09-17  Bruno Haible  <bruno@clisp.org>
110177         * gnulib-tool (func_append): New function, stolen from libtool.m4.
110178         (func_modules_transitive_closure, func_modules_add_dummy,
110179         func_modules_to_filelist, func_import, func_create_testdir,
110180         func_create_megatestdir, ...): Use it wherever possible.
110181         Suggested by Ralf Wildenhues.
110183 2006-09-16  Karl Berry  <karl@gnu.org>
110185         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
110186         to avoid sectioning errors.
110187         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
110188         [ifinfo]: blank line after @center-ed titles.
110189         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
110190         Spell FSF address consistently with others.
110191         (These changes approved by rms.)
110193 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110195         Speed up by a factor of 1.61.
110196         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
110197         already checked module names again.
110199 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110201         Speed up by a factor of 1.13.
110202         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
110203         for new_files, and the input to func_add_or_update.
110205 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110207         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
110208         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
110210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110212         * modules/mkancesdirs (Depends-on): Add fcntl.
110213         * modules/savewd: New file.
110214         * MODULES.html.sh (File system functions): Add savewd.
110216         * modules/configmake (Makefile.am): Add support for the
110217         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
110219 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110221         * m4/savewd.m4: New file.
110223 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110225         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
110226         (dirchownmod): New arg FD.  All callers changed.
110227         Use FD rather than opening the directory ourself, as opening is
110228         now the caller's responsibility.
110229         * lib/dirchownmod.h: Likewise.
110230         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
110231         hosts that require <sys/types.h> before <sys/stat.h>.  Include
110232         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
110233         (test_dir): Remove.
110234         (mkancesdirs): Return length of prefix of FILE that has already
110235         been made, or -2 if there is a child doing the work.  Redo
110236         algorithm so that it is O(N) rather than O(N**2).  Optimize away
110237         ".", and treat ".." specially since it might stray back into
110238         already-created areas.  Use a subprocess if necessary.  New arg
110239         WD; all users changed.  MAKE_DIR function should now return 1
110240         if it creates a directory that is not readable.  Return -2 if
110241         a child process is spun off.
110242         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
110243         Adjust signature to match code.
110244         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
110245         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
110246         all users changed.
110247         * lib/savewd.c, lib/savewd.h: New files.
110249 2006-09-15  Jim Meyering  <jim@meyering.net>
110251         * modules/rename-dest-slash: New module.
110252         * MODULES.html.sh (posix_compat): Add it here.
110254         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
110256 2006-09-15  Jim Meyering  <jim@meyering.net>
110258         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
110259         file.
110261         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
110263 2006-09-15  Jim Meyering  <jim@meyering.net>
110265         * lib/rename-dest-slash.c (has_trailing_slash): Use
110266         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
110267         (rpl_rename_dest_slash): Perform the cheaper trailing slash
110268         test before testing whether SRC is a directory.
110269         Suggestions from Bruno Haible.
110271         Avoid a warning about an unused variable.
110272         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
110273         into the #ifdef block where it's used.
110275         * lib/rename-dest-slash.c: New file.
110277 2006-09-14  Bruno Haible  <bruno@clisp.org>
110279         * lib/allocsa.c: Include <config.h> unconditionally.
110280         * lib/asnprintf.c: Likewise.
110281         * lib/asprintf.c: Likewise.
110282         * lib/c-strcasecmp.c: Likewise.
110283         * lib/c-strcasestr.c: Likewise.
110284         * lib/c-strncasecmp.c: Likewise.
110285         * lib/c-strstr.c: Likewise.
110286         * lib/classpath.c: Likewise.
110287         * lib/clean-temp.c: Likewise.
110288         * lib/concatpath.c: Likewise.
110289         * lib/copy-file.c: Likewise.
110290         * lib/csharpcomp.c: Likewise.
110291         * lib/csharpexec.c: Likewise.
110292         * lib/execute.c: Likewise.
110293         * lib/fatal-signal.c: Likewise.
110294         * lib/findprog.c: Likewise.
110295         * lib/fwriteerror.c: Likewise.
110296         * lib/gl_array_list.c: Likewise.
110297         * lib/gl_array_oset.c: Likewise.
110298         * lib/gl_avltree_list.c: Likewise.
110299         * lib/gl_avltree_oset.c: Likewise.
110300         * lib/gl_avltreehash_list.c: Likewise.
110301         * lib/gl_carray_list.c: Likewise.
110302         * lib/gl_linked_list.c: Likewise.
110303         * lib/gl_linkedhash_list.c: Likewise.
110304         * lib/gl_list.c: Likewise.
110305         * lib/gl_oset.c: Likewise.
110306         * lib/gl_rbtree_list.c: Likewise.
110307         * lib/gl_rbtree_oset.c: Likewise.
110308         * lib/gl_rbtreehash_list.c: Likewise.
110309         * lib/imaxabs.c: Likewise.
110310         * lib/imaxdiv.c: Likewise.
110311         * lib/javacomp.c: Likewise.
110312         * lib/javaexec.c: Likewise.
110313         * lib/javaversion.c: Likewise.
110314         * lib/linebreak.c: Likewise.
110315         * lib/localcharset.c: Likewise.
110316         * lib/lock.c: Likewise.
110317         * lib/mbchar.c: Likewise.
110318         * lib/mbswidth.c: Likewise.
110319         * lib/mkdtemp.c: Likewise.
110320         * lib/pipe.c: Likewise.
110321         * lib/printf-args.c: Likewise.
110322         * lib/printf-parse.c: Likewise.
110323         * lib/progname.c: Likewise.
110324         * lib/progreloc.c: Likewise.
110325         * lib/readlink.c: Likewise.
110326         * lib/sh-quote.c: Likewise.
110327         * lib/stpcpy.c: Likewise.
110328         * lib/stpncpy.c: Likewise.
110329         * lib/strcasecmp.c: Likewise.
110330         * lib/strcasestr.c: Likewise.
110331         * lib/strcspn.c: Likewise.
110332         * lib/striconv.c: Likewise.
110333         * lib/strncasecmp.c: Likewise.
110334         * lib/strnlen1.c: Likewise.
110335         * lib/strstr.c: Likewise.
110336         * lib/strtok_r.c: Likewise.
110337         * lib/tls.c: Likewise.
110338         * lib/tmpdir.c: Likewise.
110339         * lib/unicodeio.c: Likewise.
110340         * lib/unsetenv.c: Likewise.
110341         * lib/vasnprintf.c: Likewise.
110342         * lib/vasprintf.c: Likewise.
110343         * lib/wait-process.c: Likewise.
110344         * lib/xallocsa.c: Likewise.
110345         * lib/xsetenv.c: Likewise.
110346         * lib/xstriconv.c: Likewise.
110348 2006-09-13  Simon Josefsson  <jas@extundo.com>
110350         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
110351         that internally, suggested by Ralf Wildenhues
110352         <Ralf.Wildenhues@gmx.de>.
110354 2006-09-13  Simon Josefsson  <jas@extundo.com>
110356         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
110357         @LIBOBJS@.
110358         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110360 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
110362         * lib/_fpending.c: Include <config.h> unconditionally, since we no
110363         longer worry about uses that don't define HAVE_CONFIG_H.
110364         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
110365         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
110366         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
110367         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
110368         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
110369         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
110370         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
110371         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
110372         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
110373         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
110374         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
110375         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
110376         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
110377         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
110378         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
110379         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
110380         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
110381         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
110382         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
110383         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
110384         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
110385         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
110386         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
110387         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
110388         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
110389         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
110390         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
110391         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
110392         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
110393         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
110394         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
110395         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
110396         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
110397         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
110398         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
110399         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
110400         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
110401         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
110402         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
110403         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
110404         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
110405         Likewise.
110407 2006-09-13  Eric Blake  <ebb9@byu.net>
110409         * lib/getopt.c: Fix typo in last commit.
110411 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
110413         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
110414         dgettext.
110416 2006-09-12  Jim Meyering  <jim@meyering.net>
110418         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
110419         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
110420         Reported by Nelson H. F. Beebe.
110422 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110424         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
110425         program_invocation_name and program_invocation_short_name are
110426         initialized.
110427         * lib/argp-namefrob.h: Move declarations of program_invocation_name
110428         and program_invocation_short_name to argp.h, so they are visible
110429         to user programs.
110430         * lib/argp.h: Likewise
110432 2006-09-10  Bruno Haible  <bruno@clisp.org>
110434         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110435         m4/inttypes_h.m4, m4/uintmax_t.m4.
110437 2006-09-10  Bruno Haible  <bruno@clisp.org>
110439         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
110440         gl_AC_TYPE_UINTMAX_T.
110442 2006-09-10  Bruno Haible  <bruno@clisp.org>
110444         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
110446 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110448         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
110449         convention.  Text proposed by Bruno Haible.
110450         (struct argp_option): Document the use of N_() wrappers.
110452         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
110453         '\v', and translate the two parts separately, instead of feeding
110454         the whole string to gettext.  This allows to exclude
110455         '\v' from the strings visible to the translator by writing doc
110456         strings as N_("..") "\v" N_("..").
110458 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
110460         * config/srclist.txt: Undo latest change; the bug was fixed.
110462 2006-09-09  Bruno Haible  <bruno@clisp.org>
110464         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
110465         assignments if building a library without libtool.
110466         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
110467         in func_emit_lib_Makefile_am.
110468         (func_import): When building a static library libfoo.a, arrange to
110469         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
110470         (func_create_testdir): Likewise.
110471         * modules/gc (configure.ac, Makefile.am): If building statically,
110472         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
110473         * modules/iconvme (configure.ac, Makefile.am): Likewise.
110474         * modules/striconv (configure.ac, Makefile.am): Likewise.
110475         Based on a suggestion by Ralf Wildenhues.
110477 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110479         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110480         Check for unistd.h too, since Autoconf doesn't assume POSIX.
110481         Also:
110483         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110484         Add year_2050_test to catch glibc bug 2821
110485         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110487         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110488         Prefer #ifdef to #if.
110490         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
110491         Return from 'main' instead of calling 'exit'.
110493 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110495         * lib/mktime.c (guess_time_tm): Fix bug where mktime
110496         returned the maximum time_t value rather than (time_t) -1.
110497         Problem originally reported by William Bardwell
110498         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110500         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110501         Moved to here ...
110502         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110503         ... from here.
110505 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110507         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
110508         2821 is fixed.
110510 2006-09-08  Jim Meyering  <jim@meyering.net>
110512         Don't make generated files read-only.  That would bother too many
110513         people.  However, do retain the ability to work when targets are
110514         read-only: remove the destination and temporary files before writing
110515         them (when generated via sed or echo), or by using the -f option for
110516         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
110517         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110518         * modules/byteswap, modules/configmake, modules/fcntl:
110519         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110520         * modules/localcharset, modules/netinet_in, modules/poll:
110521         * modules/stdbool, modules/stdint, modules/sys_select:
110522         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110524 2006-09-08  Jim Meyering  <jim@meyering.net>
110526         Avoid new build failure on FreeBSD 6.0.
110527         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
110528         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
110529         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
110531 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
110535 2006-09-07  Jim Meyering  <jim@meyering.net>
110537         Fix global typo in last change: use chmod u-w, not chmod u-x.
110538         Spotted by Paul Eggert and Bruce Korb.
110539         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110540         * modules/byteswap, modules/configmake, modules/fcntl:
110541         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110542         * modules/localcharset, modules/netinet_in, modules/poll:
110543         * modules/stdbool, modules/stdint, modules/sys_select:
110544         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110546 2006-09-06  Jim Meyering  <jim@meyering.net>
110548         Make generated files be read-only.
110549         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
110550         Ensure that each generated file is now read-only.
110551         * modules/argz: Likewise.
110552         * modules/arpa_inet: Likewise.
110553         * modules/byteswap: Likewise.
110554         * modules/configmake: Likewise.
110555         * modules/fcntl: Likewise.
110556         * modules/fnmatch: Likewise.
110557         * modules/getopt: Likewise.
110558         * modules/glob: Likewise.
110559         * modules/inttypes: Likewise.
110560         * modules/netinet_in: Likewise.
110561         * modules/poll: Likewise.
110562         * modules/stdbool: Likewise.
110563         * modules/stdint: Likewise.
110564         * modules/sys_select: Likewise.
110565         * modules/sys_socket: Likewise.
110566         * modules/sys_stat: Likewise.
110567         * modules/sysexits: Likewise.
110568         * modules/localcharset: Same as above, but continue using temporary
110569         file named "t-$@" (why different?) rather than the "$@-t" used
110570         everywhere else.
110572         * modules/sysexits (Makefile.am): Replace literal occurrences
110573         of "sysexit.h" more readable, and more consistent, "$@".
110575 2006-09-06  Bruno Haible  <bruno@clisp.org>
110577         * modules/striconv: New file.
110578         * modules/xstriconv: New file.
110579         * MODULES.html.sh (Internationalization functions): Add striconv,
110580         xstriconv.
110582 2006-09-06  Bruno Haible  <bruno@clisp.org>
110584         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
110585         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
110586         not using libtool correctly.
110588 2006-09-06  Bruno Haible  <bruno@clisp.org>
110590         * lib/striconv.h: New file.
110591         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110592         iconvstring.c.
110593         * lib/xstriconv.h: New file.
110594         * lib/xstriconv.c: New file.
110596 2006-09-06  Bruno Haible  <bruno@clisp.org>
110598         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110599         lib_..._LDFLAGS.
110601 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110603         * lib/argz_.h: Sync from Libtool.
110605         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110606                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110608         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110610 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110612         * modules/trim: New file.
110614 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110616         * lib/trim.h: New file.
110617         * lib/trim.c: New file.
110619 2006-09-05  Bruno Haible  <bruno@clisp.org>
110621         * MODULES.html.sh (String handling): Add trim.
110623 2006-09-04  Karl Berry  <karl@gnu.org>
110625         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110626         until next release.
110628 2006-09-03  Bruno Haible  <bruno@clisp.org>
110630         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110631         correctly.
110633 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110635         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110636         not gl_GETLOADAVG.  Omit unneeded semicolons.
110637         Problems reported by Ralf Wildenhues in
110638         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110639         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110640         at the end, which is the usual gnulib style.
110642         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110643         of doing all the work ourselves.
110644         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110645         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110647 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110649         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110650         Problem reported by Ralf Wildenhues in
110651         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110653         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110654         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110656 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110658         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110659         yesterday's patch by changing test -n to test -z.
110661 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110663         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110664         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110665         the former is now obsolescent.
110667         * modules/chdir-long (Depends-on): Add fcntl.
110669 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110671         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110672         obsolescent, and programs should use gnulib instead.
110673         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110674         but with prefixes changed.
110676 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110678         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110679         or stdbool.h, because they might not exist while configuring.
110681         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110682         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110683         does that for us.
110684         (O_DIRECTORY): Remove.
110686 2006-08-31  Eric Blake  <ebb9@byu.net>
110688         * gnulib-tool: Don't let emacs change spaces to TAB.
110690 2006-08-31  Bruno Haible  <bruno@clisp.org>
110692         * gnulib-tool: When calling func_import more than once, do it in a
110693         subshell.
110694         Reported by Eric Blake <ebb9@byu.net>.
110696 2006-08-31  Bruno Haible  <bruno@clisp.org>
110698         * gnulib-tool (nl): Remove variable.
110699         (sed_transform_lib_file): Use more robust test for config-h module.
110700         (func_import): Fix typo in 2006-08-25 patch.
110702 2006-08-31  Bruno Haible  <bruno@clisp.org>
110704         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110705         specified, augment Makefile.am variables instead of assigning them.
110707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110709         Work around a bug in both the Linux and SunOS 64-bit kernels:
110710         nanosleep mishandles sleeps for longer than 2**31 seconds.
110711         Problem reported by Frank v Waveren in
110712         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110714         Check for nanosleep bug.
110715         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110717 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110719         Work around a bug in both the Linux and SunOS 64-bit kernels:
110720         nanosleep mishandles sleeps for longer than 2**31 seconds.
110721         Problem reported by Frank v Waveren in
110722         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110723         * lib/nanosleep.c (BILLION): New constant.
110724         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110725         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110726         implementation.
110728 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110730         * modules/nanosleep (Depends-on): Add gettime.
110732 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110733         and Simon Josefsson  <jas@extundo.com>
110734         and Oskar Liljeblad  <oskar@osk.mine.nu>
110736         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110737         * gnulib-tool (func_import): New license type 'unmodifiable license
110738         text'.
110739         * modules/fdl: Use it.  Longer description.
110740         * module/gpl, module/lgpl: New files.
110742 2006-08-30  Jim Meyering  <jim@meyering.net>
110744         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110745         shadowing the parameter.
110747 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110749         Sync from Libtool:
110751         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110753         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110754         sharing with gnulib.  Report by Eric Blake.
110756 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110758         * modules/isapipe: New file.
110759         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110761 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110763         * modules/configmake (Makefile.am): Add a comment, and omit
110764         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110765         by Bruno Haible.
110767 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110769         * m4/isapipe.m4: New file.
110771 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110773         * lib/isapipe.c, lib/isapipe.h: New files.
110775 2006-08-29  Jim Meyering  <jim@meyering.net>
110777         * modules/configmake (Makefile.am): Make configmake.h depend on
110778         Makefile.  Otherwise, a stale configmake.h could hang around.
110780 2006-08-29  Eric Blake  <ebb9@byu.net>
110782         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110783         resolution of upstream bug 3044.
110785 2006-08-29  Bruno Haible  <bruno@clisp.org>
110787         * modules/localcharset (Depends-on): Add configmake.
110788         (Makefile.am): Remove setting of LIBDIR through DEFS.
110790 2006-08-29  Bruno Haible  <bruno@clisp.org>
110792         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110793         defined.
110795 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110797         * modules/fcntl: New file.
110798         * modules/chdir-safer (Depends-on): Add fcntl.
110799         * modules/fts: Likewise.
110800         * modules/mkdir-p: Likewise.
110802         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110803         This undoes the most recent change, since we're now addressing the
110804         problem in a different way.
110806         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110807         into output, since the output might be called Makefile.am even
110808         if $makefile_name is something different.
110809         (func_import): Use $makefile_am rather than
110810         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110811         empty.
110813         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110815 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110817         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110818         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110819         recent change to stdint.m4, since we're now addressing the problem in a
110820         different way.
110822 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110824         * m4/fcntl_h.m4: New file.
110826 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110828         * lib/fcntl_.h: New file.
110829         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110830         the fcntl module.
110831         * lib/dirchownmod.c: Likewise.
110832         * lib/fts.c: Likewise.
110834         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110835         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110836         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110837         just before including <inttypes.h>, to avoid circular inclusion.
110839 2006-08-28  Jim Meyering  <jim@meyering.net>
110841         * doc/visibility.texi: Actually read and correct the grammar of the
110842         sentence affected by yesterday's change.
110844 2006-08-28  Eric Blake  <ebb9@byu.net>
110846         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110847         needs wrapper.
110849 2006-08-28  Eric Blake  <ebb9@byu.net>
110851         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110853 2006-08-28  Eric Blake  <ebb9@byu.net>
110855         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110857 2006-08-28  Bruno Haible  <bruno@clisp.org>
110859         * modules/c-strstr: New file, from GNU gettext.
110860         * MODULES.html.sh (String handling): Add c-strstr.
110862 2006-08-28  Bruno Haible  <bruno@clisp.org>
110864         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110865         macros.
110866         Reported by Eric Blake.
110868 2006-08-28  Bruno Haible  <bruno@clisp.org>
110870         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110871         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110872         * lib/vasprintf.c: Include errno.h, limits.h.
110873         (EOVERFLOW): New fallback definition.
110874         (vasprintf): Test here whether the string length is > INT_MAX.
110875         * lib/vsnprintf.c: Include errno.h, limits.h.
110876         (EOVERFLOW): New fallback definition.
110877         (vsnprintf): Fix bug when generated string was too long for the buffer.
110878         Test here whether the string length is > INT_MAX.
110880 2006-08-28  Bruno Haible  <bruno@clisp.org>
110882         * lib/inttypes_.h (SCNX*): Remove definitions.
110883         Reported by Eric Blake.
110885 2006-08-28  Bruno Haible  <bruno@clisp.org>
110887         * lib/c-strstr.h: New file, from GNU gettext.
110888         * lib/c-strstr.c: New file, from GNU gettext.
110890 2006-08-28  Bruno Haible  <bruno@clisp.org>
110892         * gnulib-tool: Reorder some statements.
110894 2006-08-28  Bruno Haible  <bruno@clisp.org>
110896         * gnulib-tool: New option --makefile-name.
110897         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110898         $makefile_name.
110899         (func_import): Write $makefile_name to the cache file, and read it from
110900         there unless explicitly specified. Use $makefile_name as file name
110901         instead of Makefile.am. Adjust the recommendations accordingly.
110903 2006-08-28  Bruno Haible  <bruno@clisp.org>
110905         * gnulib-tool (func_verify_module): Check against misapplying patch.
110907 2006-08-28  Bruno Haible  <bruno@clisp.org>
110909         * gnulib-tool (func_relativize, func_relconcat): New functions.
110910         Give an error if --local-dir is given with --update.
110911         Remove trailing slashes from $local_gnulib_dir.
110912         (func_import): Store the relativized $local_gnulib_dir in
110913         gnulib-cache.m4, and read it from there if not specified explicitly.
110915 2006-08-28  Bruno Haible  <bruno@clisp.org>
110917         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110918         is the current directory. Respect also $local_gnulib_dir.
110920 2006-08-28  Bruno Haible  <bruno@clisp.org>
110921             Simon Josefsson  <jas@extundo.com>
110923         BeOS portability.
110924         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110926 2006-08-27  Jim Meyering  <jim@meyering.net>
110928         * doc/visibility.texi: Remove duplicate word: "pointer".
110930 2006-08-26  Bruno Haible  <bruno@clisp.org>
110932         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110933         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110934         (Makefile.am): Create inttypes.h from inttypes_.h.
110935         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110937         * modules/imaxabs: New file.
110939         * modules/imaxdiv: New file.
110941 2006-08-26  Bruno Haible  <bruno@clisp.org>
110943         * m4/inttypes.m4: New file.
110944         * m4/_inttypes_h.m4: Remove file.
110945         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110946         PRI_MACROS_BROKEN.
110947         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110949         * m4/imaxabs.m4: New file.
110951         * m4/imaxdiv.m4: New file.
110953 2006-08-26  Bruno Haible  <bruno@clisp.org>
110955         * lib/inttypes_.h: New file.
110956         * lib/inttypes.h: Remove file.
110957         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110959         * lib/imaxabs.c: New file.
110961         * lib/imaxdiv.c: New file.
110963 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110965         New config-h module, so that "make" output needn't be cluttered
110966         by -DHAVE_CONFIG_H.
110967         * MODULES.html.sh (Support for building libraries and executables):
110968         Add config-h.
110969         * modules/config-h: New file.
110970         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110971         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110972         the config-h module is used.
110974         New configmake module, so that "make" output needn't be cluttered
110975         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110976         * MODULES.html.sh (Support for building libraries and executables):
110977         Add configmake.
110978         * modules/configmake: New file.
110980 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110982         * m4/config-h.m4: New file.
110984 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110986         * config/srclist.txt: Add elisp-comp.
110988 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110990         * MODULES.html.sh (Support for building libraries and executables):
110991         Add elisp-comp.
110992         * build-aux/elisp-comp: New file.
110993         * modules/elisp-comp: New file.
110995 2006-08-24  Bruno Haible  <bruno@clisp.org>
110997         * gnulib-tool (func_create_testdir): Use non-default values of
110998         sourcebase and m4base.
111000 2006-08-24  Bruno Haible  <bruno@clisp.org>
111002         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
111003         HTML structure.
111005 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
111007         * modules/openat (Depends-on): Add lchown.
111009 2006-08-23  Bruno Haible  <bruno@clisp.org>
111011         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
111012         of gl_LOCK_EARLY instead of gl_LOCK.
111014 2006-08-23  Bruno Haible  <bruno@clisp.org>
111016         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
111017         on OSF/1 to no.
111018         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
111020 2006-08-23  Bruno Haible  <bruno@clisp.org>
111022         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
111023         as unusable.
111025         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
111026         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
111027         (gl_LOCK): New macro.
111029 2006-08-22  Simon Josefsson  <jas@extundo.com>
111031         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
111032         to md5 module.
111034 2006-08-22  Simon Josefsson  <jas@extundo.com>
111036         * MODULES.html.sh: Add "Support for maintaining and release
111037         projects".
111039         * build-aux/gnupload: New file, from coreutils.
111041 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111043         Avoid the need for AC_LIBSOURCES in m4 macros.
111044         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
111045         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
111046         * modules/check-version (EXTRA_DIST): Add check-version.h.
111047         * modules/crc (EXTRA_DIST): Add crc.h.
111048         * modules/des (EXTRA_DIST): Add des.h.
111049         * modules/gc (EXTRA_DIST): Add gc.h.
111050         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
111051         * modules/getline (EXTRA_DIST): Add getline.h.
111052         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
111053         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
111054         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
111055         * modules/md2 (EXTRA_DIST): Add md2.h.
111056         * modules/md4 (EXTRA_DIST): Add md4.h.
111057         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
111058         * modules/read-file (EXTRA_DIST): Add read-file.h.
111059         * modules/readline (EXTRA_DIST): Add readline.h.
111060         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
111061         rijndael-api-fst.h.
111063 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111065         * m4/rijndael.m4 (gl_ARCFOUR):
111066         * m4/arctwo.m4 (gl_ARCTWO):
111067         * m4/check-version.m4 (gl_CHECK_VERSION):
111068         * m4/crc.m4 (gl_CRC):
111069         * m4/des.m4 (gl_DES):
111070         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
111071         * m4/gc.m4 (gl_GC):
111072         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
111073         * m4/getline.m4 (gl_FUNC_GETLINE):
111074         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
111075         * m4/hmac-md5.m4 (gl_HMAC_MD5):
111076         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
111077         * m4/md2.m4 (gl_MD2):
111078         * m4/md4.m4 (gl_MD4):
111079         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
111080         * m4/read-file.m4 (gl_FUNC_READ_FILE):
111081         * m4/readline.m4 (gl_FUNC_READLINE):
111082         * m4/rijndael.m4 (gl_RIJNDAEL):
111083         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111084         to get the necessary .h files and whatnot.
111086 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111088         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
111089         gnulib rather than the other way around.
111090         * config/srclistvars.sh (COREUTILS): Remove.
111092 2006-08-22  Jim Meyering  <jim@meyering.net>
111094         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
111096         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
111098 2006-08-22  Eric Blake  <ebb9@byu.net>
111100         * modules/regexprops-generic: New file.
111101         * MODULES.html.sh (Support for building documentation): List it.
111103 2006-08-22  Eric Blake  <ebb9@byu.net>
111105         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
111106         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
111107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
111108         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
111110 2006-08-22  Bruno Haible  <bruno@clisp.org>
111112         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
111113         and lib_LTLIBRARIES like the other lib_* variables.
111115 2006-08-22  Bruno Haible  <bruno@clisp.org>
111117         * build-aux/x-to-1.in: New file, from GNU gettext.
111119 2006-08-22  Bruno Haible  <bruno@clisp.org>
111121         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
111122         <utmpx.h> exists.
111124 2006-08-22  Bruno Haible  <bruno@clisp.org>
111126         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
111127         <utmpx.h> exists.
111129 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111131         BeOS portability.
111132         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
111133         exist.
111134         Problem reported by Bruno Haible.
111136 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111138         Avoid the need for AC_LIBSOURCES in m4 macros.
111139         * modules/acl (EXTRA_DIST): Add acl.h.
111140         * modules/argmatch (Files): Add m4/argmatch.m4.
111141         (configure.ac): Add gl_ARGMATCH.
111142         (EXTRA_DIST): Renamed from lib_SOURCES, for
111143         consistency with the other modules.  Remove argmatch.c.
111144         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
111145         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
111146         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
111147         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
111148         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
111149         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
111150         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
111151         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
111152         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
111153         * modules/closeout (EXTRA_DIST): Add closeout.h.
111154         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
111155         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
111156         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
111157         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
111158         dirname.h; remove basename.c and stripslash.c.
111159         * modules/exclude (EXTRA_DIST): Add exclude.h.
111160         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
111161         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
111162         * modules/file-type (EXTRA_DIST): Add file-type.h.
111163         * modules/filemode (EXTRA_DIST): Add filemode.h.
111164         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
111165         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111166         * modules/fpending (EXTRA_DIST): Add __fpending.h.
111167         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
111168         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
111169         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
111170         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
111171         * modules/getdate (EXTRA_DIST): Add getdate.c.
111172         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
111173         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
111174         * modules/getpass (EXTRA_DIST): Add getpass.h.
111175         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
111176         * modules/group-member (EXTRA_DIST): Add group-member.h.
111177         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
111178         * modules/hash (EXTRA_DIST): Add hash.h.
111179         * modules/human (EXTRA_DIST): Add human.h.
111180         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
111181         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
111182         * modules/lchown (EXTRA_DIST): Add lchown.h.
111183         * modules/long-options (EXTRA_DIST): Add long-options.h.
111184         * modules/lstat (EXTRA_DIST): Add lstat.h.
111185         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
111186         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
111187         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
111188         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
111189         * modules/memxor (EXTRA_DIST): Add memxor.h.
111190         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
111191         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
111192         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
111193         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
111194         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
111195         * modules/physmem (EXTRA_DIST): Add physmem.h.
111196         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
111197         * modules/posixver (EXTRA_DIST): Add posixver.h.
111198         * modules/quote (EXTRA_DIST): Add quote.h.
111199         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
111200         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
111201         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
111202         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
111203         regex_internal.h regexec.c.
111204         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
111205         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
111206         * modules/same (EXTRA_DIST): Add same.h.
111207         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
111208         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
111209         * modules/savedir (EXTRA_DIST): Add savedir.h.
111210         * modules/sha1 (EXTRA_DIST): Add sha1.h.
111211         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
111212         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
111213         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
111214         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
111215         * modules/strdup (EXTRA_DIST): Add strdup.h.
111216         * modules/strftime (EXTRA_DIST): Add strftime.h.
111217         * modules/strndup (EXTRA_DIST): Add strndup.h.
111218         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
111219         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
111220         * modules/time_r (EXTRA_DIST): Add time_r.h.
111221         * modules/timespec (EXTRA_DIST): Add timespec.h.
111222         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111223         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
111224         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
111225         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
111226         * modules/userspec (EXTRA_DIST): Add userspec.h.
111227         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
111228         * modules/utimens (EXTRA_DIST): Add utimens.h.
111229         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
111230         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
111231         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
111232         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
111233         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
111234         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
111235         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
111236         * modules/yesno (EXTRA_DIST): Add yesno.h.
111238 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111240         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
111242         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
111243         * m4/dev-ino.m4, same-inode.m4: Remove.
111245         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
111246         * m4/acl.m4 (AC_FUNC_ACL):
111247         * m4/backupfile.m4 (gl_BACKUPFILE):
111248         * m4/c-strtod.m4 (gl_C99_STRTOLD):
111249         * m4/canon-host.m4 (gl_CANON_HOST):
111250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111251         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
111252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
111253         * m4/cloexec.m4 (gl_CLOEXEC):
111254         * m4/close-stream.m4 (gl_CLOSE_STREAM):
111255         * m4/closeout.m4 (gl_CLOSEOUT):
111256         * m4/dirfd.m4 (gl_FUNC_DIRFD):
111257         * m4/dirname.m4 (gl_DIRNAME):
111258         * m4/exclude.m4 (gl_EXCLUDE):
111259         * m4/exitfail.m4 (gl_EXITFAIL):
111260         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
111261         * m4/file-type.m4 (gl_FILE_TYPE):
111262         * m4/filemode.m4 (gl_FILEMODE):
111263         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
111264         * m4/fpending.m4 (gl_FUNC_FPENDING):
111265         * m4/fprintftime.m4 (gl_FPRINTFTIME):
111266         * m4/fts.m4 (gl_FUNC_FTS):
111267         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
111268         * m4/getdate.m4 (gl_GETDATE):
111269         * m4/gethrxtime.m4 (gl_GETHRXTIME):
111270         * m4/getpagesize.m4 (gl_GETPAGESIZE):
111271         * m4/getpass.m4 (gl_FUNC_GETPASS):
111272         * m4/gettime.m4 (gl_GETTIME):
111273         * m4/getugroups.m4 (gl_GETUGROUPS):
111274         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
111275         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
111276         * m4/hard-locale.m4 (gl_HARD_LOCALE):
111277         * m4/hash.m4 (gl_HASH):
111278         * m4/idcache.m4 (gl_IDCACHE):
111279         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
111280         * m4/lchown.m4 (gl_FUNC_LCHOWN):
111281         * m4/long-options.m4 (gl_LONG_OPTIONS):
111282         * m4/lstat.m4 (gl_FUNC_LSTAT):
111283         * m4/md5.m4 (gl_MD5):
111284         * m4/memcasecmp.m4 (gl_MEMCASECMP):
111285         * m4/memcoll.m4 (gl_MEMCOLL):
111286         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
111287         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
111288         * m4/memxor.m4 (gl_MEMXOR):
111289         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
111290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
111291         * m4/modechange.m4 (gl_MODECHANGE):
111292         * m4/mountlist.m4 (gl_MOUNTLIST):
111293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
111294         * m4/openat.m4 (gl_FUNC_OPENAT):
111295         * m4/pathmax.m4 (gl_PATHMAX):
111296         * m4/physmem.m4 (gl_PHYSMEM):
111297         * m4/posixtm.m4 (gl_POSIXTM):
111298         * m4/posixver.m4 (gl_POSIXVER):
111299         * m4/quote.m4 (gl_QUOTE):
111300         * m4/quotearg.m4 (gl_QUOTEARG):
111301         * m4/readtokens.m4 (gl_READTOKENS):
111302         * m4/readutmp.m4 (gl_READUTMP):
111303         * m4/regex.m4 (gl_REGEX):
111304         * m4/safe-read.m4 (gl_SAFE_READ):
111305         * m4/safe-write.m4 (gl_SAFE_WRITE):
111306         * m4/same.m4 (gl_SAME):
111307         * m4/save-cwd.m4 (gl_SAVE_CWD):
111308         * m4/savedir.m4 (gl_SAVEDIR):
111309         * m4/settime.m4 (gl_SETTIME):
111310         * m4/sha1.m4 (gl_SHA1):
111311         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
111312         * m4/stat-macros.m4 (gl_STAT_MACROS):
111313         * m4/stat-time.m4 (gl_STAT_TIME):
111314         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
111315         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
111316         * m4/strdup.m4 (gl_FUNC_STRDUP):
111317         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
111318         * m4/strndup.m4 (gl_FUNC_STRNDUP):
111319         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
111320         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
111321         * m4/time_r.m4 (gl_TIME_R):
111322         * m4/timespec.m4 (gl_TIMESPEC):
111323         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
111324         * m4/unlinkdir.m4 (gl_UNLINKDIR):
111325         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
111326         * m4/userspec.m4 (gl_USERSPEC):
111327         * m4/utimecmp.m4 (gl_UTIMECMP):
111328         * m4/utimens.m4 (gl_UTIMENS):
111329         * m4/xalloc.m4 (gl_XALLOC):
111330         * m4/xgetcwd.m4 (gl_XGETCWD):
111331         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
111332         * m4/xreadlink.m4 (gl_XREADLINK):
111333         * m4/xstrtod.m4 (gl_XSTRTOD):
111334         * m4/yesno.m4 (gl_YESNO):
111335         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111336         to get the necessary .h files and whatnot.
111338 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
111339             Bruno Haible  <bruno@clisp.org>
111341         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
111342         /bin/sh understanding of '!' conditional negation.
111344 2006-08-21  Jim Meyering  <jim@meyering.net>
111346         * modules/openat (Depends-on): Really alphabetize.
111348         * modules/acl (Depends-on): Add error and quote.
111350         * check-module (find_included_lib_files): Add at-func.c to the
111351         ok-to-include-more-than-once white list.
111353         * modules/openat (Depends-on): Add lstat.  Alphabetize.
111355 2006-08-21  Bruno Haible  <bruno@clisp.org>
111357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111358         Emit a pkgdata_DATA variable only if some snippets add contents to it.
111359         Reported by Martin Lambers <marlam@marlam.de>.
111361 2006-08-21  Bruno Haible  <bruno@clisp.org>
111363         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
111364         specify an installation location, don't emit a noinst_LIBRARIES or
111365         noinst_LTLIBRARIES assignment.
111367 2006-08-21  Bruno Haible  <bruno@clisp.org>
111369         BeOS portability.
111370         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
111371         BeOS has mbrtowc() but no <wctype.h>.
111373 2006-08-21  Bruno Haible  <bruno@clisp.org>
111375         BeOS portability.
111376         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
111377         exist.
111379 2006-08-21  Bruno Haible  <bruno@clisp.org>
111381         BeOS portability.
111382         * lib/mbchar.h: Include <wctype.h> only if it exists.
111384 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111386         Remove files that are no longer needed by their respective modules.
111387         * m4/obstack.m4: Remove.
111388         * m4/strerror_r.m4: Remove.
111389         * m4/uint32_t.m4: Remove.
111390         * m4/uintptr_t.m4: Remove.
111391         * m4/ullong_max.m4: Remove.
111392         * m4/xstrtoimax.m4: Remove.
111393         * m4/xstrtoumax.m4: Remove.
111395         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
111396         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
111397         dependencies now capture this.
111399         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
111400         Do not use AC_LIBSOURCES, since gnulib modules now do this.
111401         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
111402         * m4/human.m4 (gl_HUMAN): Likewise.
111403         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
111404         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
111406         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
111408         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
111409         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
111410         stdint.
111411         * m4/human.m4 (gl_HUMAN): Likewise.
111412         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
111413         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
111414         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111415         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111416         * m4/xstrtol (gl_XSTRTOL): Likewise.
111418         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
111419         AC_TYPE_LONG_LONG_INT.
111420         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111421         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
111422         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
111423         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111425         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
111426         on stdbool.
111428         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
111429         (gl_PREREQ_XSTRTOUL): Remove.
111431         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
111433         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
111434         mode.
111436 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111438         Add and change modules to make it easier for coreutils to use
111439         gnulib-tool.
111440         * modules/backupfile (Files): Remove m4/d-ino.m4.
111441         (Depends-on): Add d-ino.
111442         * modules/cycle-check (Depends-on): Add stdint.
111443         (lib_SOURCES): Add cycle-check.h.
111444         * modules/d-ino: New module.
111445         * modules/d-type: New module.
111446         * modules/error (Files): Remove m4/strerror_r.m4.
111447         * modules/filemode (Files): Add m4/st_dm_mode.m4.
111448         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111449         m4/inttypes_h.m4, m4/uintmax_t.m4.
111450         (Depends-on): Add stdint.
111451         (lib_SOURCES): Add fsusage.h.
111452         * modules/getcwd (Files): Remove d-ino.m4.
111453         (Depends-on): Add d-ino.
111454         * modules/getndelim2 (Depends-on): Add stdint.
111455         * modules/glob (Files): Remove m4/d-type.m4.
111456         (Depends-on): Add d-type.
111457         * modules/host-os: New module.
111458         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
111459         m4/inttypes_h.m4, m4/uintmax_t.m4.
111460         * Depends-on: Add stdint.
111461         (lib_SOURCES): Add human.h.
111462         * modules/inttostr (Files): Remove m4/intmax_t.m4,
111463         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
111464         m4/uintmax_t.m4, m4/ulonglong.m4.
111465         (Depends-on): Add stdint.
111466         (EXTRA_DIST): Add inttostr.h.
111467         * modules/lchmod: New module.
111468         * modules/link-follow: New module.
111469         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
111470         (Depends-on): Add lchmod.
111471         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
111472         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
111473         (Depends-on): Add stdint.
111474         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
111475         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
111476         (Depends-on): Add stdint.
111477         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
111478         * modules/perl: New module.
111479         * modules/regex (Depends-on): Add stdint.
111480         * modules/rmdir-errno: New module.
111481         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111482         m4/intmax_t.m4.
111483         (Depends-on): Add stdint.
111484         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111485         m4/uintmax_t.m4.
111486         (Depends-on): Add stdint.
111487         * modules/unlink-busy: New module.
111488         * modules/utimecmp (Depends-on): Add stdint.
111489         * modules/uptime: New module.
111490         * modules/winsz-ioctl: New module.
111491         * modules/winsz-termios: New module.
111492         * modules/xnanosleep (Depends-on): Add nanosleep.
111493         * modules/ullong_max: Remove.
111494         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
111495         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
111496         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
111497         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
111498         (Depends-on): Add inttypes.
111499         (lib_SOURCES): Add xstrtol.h.
111500         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
111501         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
111502         * MODULES.html.sh: Move 'assert' into the assert section.
111503         Move 'dummy' into the linking section.
111504         Remove ullong_max.
111505         Add section for compatibility checks for POSIX:2001 functions,
111506         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
111507         winsz-ioctl, and winsz-termios into it.
111508         Add lchmod.
111509         Add top-level Misc section and put host-os, perl, and uptime
111510         into it.
111512 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111514         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
111515         now assume the stdint module.  Do not include inttypes.h.
111516         * lib/fsusage.h: Likewise.
111517         * lib/getndelim2.c: Likewise.
111518         * lib/human.h: Likewise.
111519         * lib/inttostr.h: Likewise.
111520         * lib/obstack.c: Likewise.
111521         * lib/regex_internal.h: Likewise.
111522         * lib/tempname.c: Likewise.
111523         * lib/utimecmp.c: Likewise.
111524         * lib/xstrtol.h: Likewise.
111526         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
111528         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
111529         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
111530         * lib/xtime.h: Likewise.
111532 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111534         * modules/openat (Files): Add lib/fchmodat.c.
111535         Fixes problem reported by Jay Youngman.
111537 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111539         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
111540         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
111542 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
111543             Bruno Haible  <bruno@clisp.org>
111545         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
111546         and is a script that invokes bison. Tighten the code. Add comments.
111548 2006-08-18  Jim Meyering  <jim@meyering.net>
111550         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
111551         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
111552         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
111553         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
111555 2006-08-18  Bruno Haible  <bruno@clisp.org>
111557         * modules/bison-i18n: New file.
111558         * MODULES.html.sh (Internationalization functions): Add it.
111560 2006-08-18  Bruno Haible  <bruno@clisp.org>
111562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
111563         sys/statvfs.h. When getmntinfo was found, check its declaration and
111564         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
111566 2006-08-18  Bruno Haible  <bruno@clisp.org>
111568         * m4/bison-i18n.m4: New file, from bison.
111570 2006-08-18  Bruno Haible  <bruno@clisp.org>
111572         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
111573         (ME_DUMMY): Treat "kernfs" as a dummy.
111574         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
111576 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111578         Update from coreutils.
111580         2006-08-15  Jim Meyering  <jim@meyering.net>
111582         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
111584         2006-01-17  Jim Meyering  <jim@meyering.net>
111586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111588         2006-01-11  Jim Meyering  <jim@meyering.net>
111590         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111591         Check for the lchmod function.
111593 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111595         Update from coreutils.
111597         * lib/__fpending.h: Add copyright notice.
111598         * lib/fprintftime.h: Likewise.
111599         * lib/savedir.c: Use (C) in copyright notice.
111600         * lib/savedir.h: Likewise.
111602         2006-08-15  Jim Meyering  <jim@meyering.net>
111604         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111605         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111606         in support of the EXPECTED_ERRNO macro.
111607         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111608         definitions.  Instead, define the appropriate symbols and include
111609         "at-func.c".
111610         * lib/mkdirat.c (mkdirat): Likewise.
111611         * lib/fchmodat.c (fchmodat): Likewise.
111612         (ENOSYS): Remove definition.
111613         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111614         it.  Don't include "unistd--.h" -- it wasn't ever used.
111616         2006-01-17  Jim Meyering  <jim@meyering.net>
111618         Rewrite fts.c not to change the current working directory,
111619         by using openat, fstatat, fdopendir, etc..
111621         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111622         (HAVE_OPENAT_SUPPORT): Define.
111623         [_LIBC] (fchdir): Don't undef or define; no longer used.
111624         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111625         Now, this `function' always succeeds, and consumes its file descriptor
111626         parameter -- so callers must not close such FDs.  Update callers.
111627         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111628         (diropen): Add parameter, SP.  Adjust all callers.
111629         Implement using diropen_fd, rather than open.
111630         (fts_open): Initialize new member, fts_cwd_fd.
111631         Remove fts_rft-setting code.
111632         (fts_close): Close fts_cwd_fd, if necessary.
111633         (__opendir2): Define in terms of opendir or opendirat,
111634         depending on whether the FST_NOCHDIR flag is set.
111635         (fts_build): Since fts_safe_changedir consumes its FD, and since
111636         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111637         and close the dup'd file descriptor upon failure.
111638         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111639         (fts_safe_changedir): Tweak semantics to reflect that this function
111640         now calls cwd_advance_fd and hence consumes its FD argument.
111641         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111642         [struct FTS] (fts_rft): Remove now-unused member.
111643         [struct FTS] (fts_cycle.state): Improve comment.
111645         * lib/openat.c (openat_needs_fchdir): New function.
111646         * lib/openat.h (openat_needs_fchdir): Declare it.
111648 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111650         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111651         Problem and fix reported by Pádraig Brady in
111652         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111654 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111656         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111658 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111660         * lib/memcoll.c (memcoll): Optimize for the common case where the
111661         arguments are bytewise equal.
111663 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111665         * doc/regexprops-generic.texi: Add a copyright notice.
111667 2006-08-15  Bruno Haible  <bruno@clisp.org>
111669         * modules/tmpdir (License): Change to LGPL.
111671 2006-08-15  Bruno Haible  <bruno@clisp.org>
111673         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111674         module.
111676 2006-08-14  Simon Josefsson  <jas@extundo.com>
111678         * config/srclist.txt: Add gnupload.
111680 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111682         Change copyright notice from LGPL 2 to GPL 2, since that's the
111683         standard form used in the gnulib repository.
111684         * tests/test-lock.c: Likewise.
111685         * tests/test-stdint.c: Likewise.
111686         * tests/test-tls.c: Likewise.
111688         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111689         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111690         Add copyright notice.
111692         * check-module: Add copyright notice.  Output a copyright
111693         notice if "--version" is specified.
111694         * modules/COPYING: New file.
111695         * tests/test-getaddrinfo.c: Add copyright notice.
111696         * tests/test-verify.c: Likewise.
111698 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111700         Change copyright notice from LGPL 2 to GPL 2, since that's the
111701         standard form used in the gnulib repository.
111702         * lib/lock.c: LGPL -> GPL.
111703         * lib/lock.h: Likewise.
111704         * lib/strnlen1.c: Likewise.
111705         * lib/strnlen1.h: Likewise.
111706         * lib/tls.c: Likewise.
111707         * lib/tls.h: Likewise.
111708         * lib/tmpdir.c: Likewise.
111710         * lib/TODO: Remove; this belongs only in coreutils.
111712 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111714         Add copyright notices to long-enough files that lack them, since
111715         otherwise the files aren't clearly free.  Use the same notice that
111716         getdate.texi already uses.
111717         * doc/alloca-opt.texi: Add copyright notice.
111718         * doc/alloca.texi: Likewise.
111719         * doc/ctime.texi: Likewise.
111720         * doc/functions.texi: Likewise.
111721         * doc/gcd.texi: Likewise.
111722         * doc/gnulib-tool.texi: Likewise.
111723         * doc/inet_ntoa.texi: Likewise.
111724         * doc/visibility.texi: Likewise.
111726         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111727         * doc/quote.texi: Add copyright notice.
111729         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111730         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111731         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111732         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111733         is now obsolete, and give a pointer to the Sun list.
111734         Add copyright notice.
111736 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111738         * config/srclistvars.sh: Add copyright notice.
111740 2006-08-14  Eric Blake  <ebb9@byu.net>
111742         Import the following change from libc:
111744         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111746         Upstream bug 2997.
111747         * lib/misc/error.c: Add space between program name and message if file
111748         name is missing.
111750 2006-08-12  Karl Berry  <karl@gnu.org>
111752         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111753         remove, these originate in gnulib now.
111755 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111757         * doc/Makefile (standards.info standards.html standards.dvi):
111758         Also depend on make-stds.texi.
111760 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111762         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111763         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111765         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111766         in wchar_t.  Problem reported by Eric Blake.
111768         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111769         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111770         Also, help the compiler to keep LEN in a register.
111772 2006-08-11  Eric Blake  <ebb9@byu.net>
111774         * users.txt: Sort.  Add tar.
111776 2006-08-11  Bruno Haible  <bruno@clisp.org>
111778         * users.txt: New file.
111780 2006-08-11  Bruno Haible  <bruno@clisp.org>
111782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111783         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111785 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111787         * modules/snprintf (Depends-on): Remove minmax.
111788         (Maintainer): Add self and Bruno.
111790 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111792         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111793         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111794         (EOVERFLOW): Define if the system does not.
111795         Do not include "minmax.h"; it wasn't used.
111796         (snprintf): Don't assume size_t promotes to an unsigned type.
111797         Fix bug when generated string was too long for the buffer: the
111798         buffer's contents are supposed to be the initial prefix of the
111799         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111800         exceeds INT_MAX; do the check ourselves.
111802         Import the following changes from libc:
111804         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111806         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111807         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111808         set wc to the byte which couldn't be converted.
111809         (re_string_reconstruct): Don't clear valid_raw_len before calling
111810         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111811         tip_context using re_string_context_at.
111813         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111815         * lib/posix/regex.h: g++ still cannot handled [restrict].
111817         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111819         * lib/posix/regex.h: Remove special handling for VMS.
111821 2006-08-10  Jim Meyering  <jim@meyering.net>
111823         * modules/same-inode: New module.
111824         * modules/dev-ino: New module.
111825         * modules/cycle-check: Depend on these modules, rather than simply
111826         including their .h files.
111827         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111828         required via m4/cycle-check.m4.
111829         * modules/same: Depend on new same-inode module, rather than
111830         including same-inode.h.
111831         * modules/chdir-safer: New file.
111833         * modules/chown (Depends-on): Add stat-macros.
111835 2006-08-10  Jim Meyering  <jim@meyering.net>
111837         * m4/cycle-check.m4: New file.
111838         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111839         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111841 2006-08-10  Eric Blake  <ebb9@byu.net>
111843         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111844         in from original proposal.
111846 2006-08-10  Eric Blake  <ebb9@byu.net>
111847         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111849         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111850         namespace.
111852 2006-08-10  Bruno Haible  <bruno@clisp.org>
111854         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111855         as well.
111857 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111859         Sync from coreutils.
111861         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111863         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111864         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111866 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111868         * modules/restrict: Remove; no longer needed now that we assume
111869         Autoconf 2.59 or later.
111870         * MODULES.html.sh: Remove 'restrict'.
111871         * modules/argp (Depends-on): Remove 'restrict'.
111872         * modules/base64 (Depends-on): Likewise.
111873         * modules/gc (Depends-on): Likewise.
111874         * modules/getaddrinfo (Depends-on): Likewise.
111875         * modules/glob (Depends-on): Likewise.
111876         * modules/inet_ntop (Depends-on): Likewise.
111877         * modules/inet_pton (Depends-on): Likewise.
111878         * modules/memxor (Depends-on): Likewise.
111879         * modules/regex (Depends-on): Likewise.
111880         * modules/strtok_r (Depends-on): Likewise.
111881         * modules/time_r (Depends-on): Likewise.
111883 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111885         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111886         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111887         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111888         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111889         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111890         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111891         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111892         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111894         Merge from coreutils.
111895         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111896         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111898         * m4/time_r.m4 (gl_TIME_R): Likewise.
111900 2006-08-09  Karl Berry  <karl@gnu.org>
111902         * config/srclist.txt: no more gettext-tools, per Bruno.
111904 2006-08-08  Eric Blake  <ebb9@byu.net>
111906         * modules/verror: New module.
111907         * MODULES.html.sh: Document it.
111909 2006-08-08  Eric Blake  <ebb9@byu.net>
111911         * lib/verror.h, lib/verror.c: New files.
111913 2006-08-08  Eric Blake  <ebb9@byu.net>
111915         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111916         verror_at_line output complies with GNU Coding Standards even when
111917         file is NULL.
111919 2006-08-07  Bruno Haible  <bruno@clisp.org>
111921         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111922         versions of AIX.
111923         Reported by Ralf Wildenhues.
111925 2006-08-07  Bruno Haible  <bruno@clisp.org>
111927         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111928         in an AC_DEFUN. Needed so that the autoconf snippets can use
111929         AC_REQUIRE.
111931 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111934         Initialize pkgdata_DATA.
111935         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111936         overriding it.
111938 2006-08-06  Eric Blake  <ebb9@byu.net>
111940         * lib/error.h: Fold in some upstream changes from glibc.
111941         * lib/error.c: Likewise.
111943 2006-08-04  Bruno Haible  <bruno@clisp.org>
111945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111946         Make the mostlyclean-local rule depend on mostlyclean-generic.
111947         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111949 2006-07-31  Bruno Haible  <bruno@clisp.org>
111951         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111952         <stdlib.h>, <string.h>.
111954 2006-07-30  Bruno Haible  <bruno@clisp.org>
111956         * modules/readlink (License): Change to LGPL.
111958 2006-07-30  Bruno Haible  <bruno@clisp.org>
111960         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111961         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111962         set PKGDATADIR to point to it.
111964 2006-07-30  Bruno Haible  <bruno@clisp.org>
111966         * modules/csharpexec (configure.ac): Comment out macro invocation.
111967         * modules/javaexec (configure.ac): Likewise.
111968         * modules/javacomp-script (configure.ac): Likewise.
111970         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111972 2006-07-30  Bruno Haible  <bruno@clisp.org>
111974         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111975         linked-list.
111977 2006-07-30  Bruno Haible  <bruno@clisp.org>
111979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111981 2006-07-30  Bruno Haible  <bruno@clisp.org>
111983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111984         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111985         get removed.
111987 2006-07-29  Bruno Haible  <bruno@clisp.org>
111989         Make it possible for gnulib-tool to work with locally modified or
111990         augmented gnulib repositories.
111991         * gnulib-tool (func_usage): Document --local-dir option.
111992         (local_gnulib_dir): New variable.
111993         Handle --local-dir option.
111994         (func_lookup_file): New function.
111995         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111996         (func_get_description, func_get_filelist, func_get_description,
111997         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111998         func_get_automake_snippet, func_get_include_directive,
111999         func_get_license, func_get_maintainer): Use func_lookup_file.
112000         (func_import, func_create_testdir): Use func_lookup_file.
112002 2006-07-29  Bruno Haible  <bruno@clisp.org>
112004         * modules/setenv (Depends-on): Add unistd.
112006 2006-07-29  Bruno Haible  <bruno@clisp.org>
112008         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
112010 2006-07-29  Bruno Haible  <bruno@clisp.org>
112012         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
112014 2006-07-29  Bruno Haible  <bruno@clisp.org>
112016         * gnulib-tool (import, update): If there is no Makefile.am, look at
112017         aclocal.m4, instead of bailing out.
112019 2006-07-29  Bruno Haible  <bruno@clisp.org>
112021         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
112022         Categorize the options by when they are useful.
112024 2006-07-29  Bruno Haible  <bruno@clisp.org>
112026         * gnulib-tool (func_usage): Document option --no-libtool.
112027         Handle option --no-libtool.
112028         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
112029         for changed semantics of $libtool variable.
112030         (func_import): Likewise. If libtool is not used, show this through
112031         an option --no-libtool.
112032         (func_create_testdir): Update.
112034 2006-07-29  Bruno Haible  <bruno@clisp.org>
112036         * gnulib-tool (func_import): Extend error message about missing
112037         --doc-base.
112039 2006-07-29  Bruno Haible  <bruno@clisp.org>
112041         * gnulib-tool (func_import): Don't create the $docbase directory if
112042         there is no file to store there.
112044 2006-07-29  Bruno Haible  <bruno@clisp.org>
112046         * gnulib-tool (autoconf_minversion): If a --dir option is given and
112047         relevant, look for configure.ac there, not in the current directory.
112048         Also use a simple search for AC_PREREQ, not "autoconf --trace".
112050 2006-07-29  Bruno Haible  <bruno@clisp.org>
112052         * gnulib-tool (SORT): New variable.
112053         (func_usage): Undocument --assume-autoconf option.
112054         Remove --assume-autoconf option handling.
112055         (autoconf_minversion): Determine from the contents of configure.ac.
112056         (func_import): Remove autoconf_minversion handling.
112057         Suggested by Eric Blake.
112059 2006-07-29  Bruno Haible  <bruno@clisp.org>
112061         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
112063 2006-07-29  Bruno Haible  <bruno@clisp.org>
112065         * config/srclist.txt (*setenv.[ch]): Remove rules.
112067 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112069         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
112071 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112073         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
112074         arpa/inet.h.
112076 2006-07-28  Simon Josefsson  <jas@extundo.com>
112078         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
112079         * modules/inet_pton (Depends-on): Likewise.
112081 2006-07-28  Simon Josefsson  <jas@extundo.com>
112083         * m4/netinet_in_h.m4: New file.
112085 2006-07-28  Simon Josefsson  <jas@extundo.com>
112087         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
112088         #include's.
112090 2006-07-28  Simon Josefsson  <jas@extundo.com>
112092         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
112093         #include's.
112095 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
112097         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
112098         setgid on directories only if they set these bits.
112099         * lib/modechange.h: Remove obsolete comment about masks.
112101 2006-07-28  Eric Blake  <ebb9@byu.net>
112103         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
112104         macro expansion.
112106 2006-07-28  Bruno Haible  <bruno@clisp.org>
112108         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
112110 2006-07-28  Bruno Haible  <bruno@clisp.org>
112112         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
112114 2006-07-28  Bruno Haible  <bruno@clisp.org>
112116         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
112117         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
112118         Define fallbacks.
112119         Avoids link error on FreeBSD 4.x.
112120         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112122         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
112123         encoding.
112124         * lib/mbswidth.c (iswcntrl): Likewise.
112126 2006-07-27  Bruno Haible  <bruno@clisp.org>
112128         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
112129         test.
112131 2006-07-27  Bruno Haible  <bruno@clisp.org>
112133         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
112134         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
112135         defined.
112137 2006-07-26  Eric Blake  <ebb9@byu.net>
112139         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
112141 2006-07-26  Eric Blake  <ebb9@byu.net>
112143         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
112144         like mingw that lack mkstemp.
112145         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
112146         avoid compilation warning on mingw.
112148 2006-07-26  Bruno Haible  <bruno@clisp.org>
112150         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
112151         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
112152         INT_FAST*_MIN, INTPTR_MIN.
112154 2006-07-25  Bruno Haible  <bruno@clisp.org>
112156         * modules/version-etc (Depends-on): Add stdarg.
112158 2006-07-25  Bruno Haible  <bruno@clisp.org>
112160         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
112161         complex commands.
112163 2006-07-25  Bruno Haible  <bruno@clisp.org>
112165         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
112166         defined in <stdarg.h> or config.h.
112168 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112170         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
112171         (gl_STDIO_SAFER): Remove.
112173 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112175         * MODULES.html.sh (File stream based Input/Output):
112176         Add fopen-safer, tmpfile-safer; remove stdio-safer.
112177         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
112178         * modules/fopen-safer, modules/tmpfile-safer: New files.
112179         * modules/stdio-safer: Remove.
112181 2006-07-24  Bruno Haible  <bruno@clisp.org>
112183         * modules/tmpdir: New file.
112184         * MODULES.html.sh (File system functions): Add it.
112186 2006-07-24  Bruno Haible  <bruno@clisp.org>
112188         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
112189         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
112191 2006-07-24  Bruno Haible  <bruno@clisp.org>
112193         * modules/clean-temp: New file.
112195 2006-07-24  Bruno Haible  <bruno@clisp.org>
112197         * m4/tmpdir.m4: New file, from GNU gettext.
112199 2006-07-24  Bruno Haible  <bruno@clisp.org>
112201         * lib/tmpdir.h: New file, from GNU gettext.
112202         * lib/tmpdir.c: New file, from GNU gettext.
112204 2006-07-24  Bruno Haible  <bruno@clisp.org>
112206         * lib/clean-temp.h: New file, from GNU gettext.
112207         * lib/clean-temp.c: New file, from GNU gettext.
112209 2006-07-23  Eric Blake  <ebb9@byu.net>
112211         * modules/stdio-safer (Files): Add tmpfile-safer.c.
112212         (Depends-on): Add binary-io.
112214 2006-07-23  Eric Blake  <ebb9@byu.net>
112216         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
112218 2006-07-23  Eric Blake  <ebb9@byu.net>
112220         * lib/tmpfile-safer.c: New file.
112221         * lib/stdio-safer.h (fopen_safer): Add prototype.
112222         * lib/stdio--.h (tmpfile): Make safer.
112224 2006-07-23  Bruno Haible  <bruno@clisp.org>
112226         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
112227         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
112228         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
112229         gl_linked_remove_at): Use it.
112231 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112232         and Simon Josefsson <jas@extundo.com>
112234         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
112236         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
112238 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112240         * modules/close-stream: New file.
112241         * modules/closeout (Description): Make it clear that it exits
112242         with a diagnostic on error.
112243         (Depends-on): Add close-stream.  Remove fpending, stdbool.
112244         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
112246 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112248         * m4/close-stream.m4: New file.
112250 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112252         * lib/close-stream.c, lib/close-stream.h: New files.
112254 2006-07-22  Bruno Haible  <bruno@clisp.org>
112256         Merge from GNU gettext 0.15.
112258         2006-05-01  Bruno Haible  <bruno@clisp.org>
112260                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
112262         2006-07-22  Bruno Haible  <bruno@clisp.org>
112264                 * modules/javaversion: New file.
112265                 * MODULES.html.sh (Java): Add javaversion.
112267         2006-03-12  Bruno Haible  <bruno@clisp.org>
112269                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
112271         2005-12-04  Bruno Haible  <bruno@clisp.org>
112273                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
112274                 (untested).
112276         2006-06-21  Bruno Haible  <bruno@clisp.org>
112278                 Avoid warnings from recent versions of mcs.
112279                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
112280                 -o, -L, -r any more. Use options documented since mcs-1.0
112281                 instead. Similarly for -g.
112283         2005-12-04  Bruno Haible  <bruno@clisp.org>
112285                 * build-aux/csharpcomp.sh.in: Suffix for resources is
112286                 .resources, not .resource.
112288         2005-07-09  Bruno Haible  <bruno@clisp.org>
112290                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
112291                 add a .dll suffix.
112292                 Reported by Mark Junker <mjscod@gmx.de>.
112294         2006-07-22  Bruno Haible  <bruno@clisp.org>
112296                 * modules/gettext: Upgrade to gettext-0.15.
112297                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
112298                 m4/visibility.m4.
112299                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
112301 2006-07-22  Bruno Haible  <bruno@clisp.org>
112303         Merge from GNU gettext 0.15.
112305         2006-03-25  Bruno Haible  <bruno@clisp.org>
112307                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
112309         2006-07-21  Bruno Haible  <bruno@clisp.org>
112311                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
112312                 "1.1".
112314         2006-05-09  Bruno Haible  <bruno@clisp.org>
112316                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
112317                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
112318                 for the conftestver execution.
112320         2006-05-01  Bruno Haible  <bruno@clisp.org>
112322                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
112323                 optional target-version argument. Verify that the compiler
112324                 groks source of the specified source-version, or add -source
112325                 option as necessary. Verify that the compiler produces
112326                 bytecode in the specified target-version, or add -target and
112327                 -source options as necessary. Make the result of the test
112328                 available as variable CONF_JAVAC. Also log error output in
112329                 config.log.
112331         2006-03-11  Bruno Haible  <bruno@clisp.org>
112333                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
112335         2006-05-09  Bruno Haible  <bruno@clisp.org>
112337                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
112338                 CLASSPATH_SEPARATOR to a semicolon.
112340         2006-03-12  Bruno Haible  <bruno@clisp.org>
112342                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
112343                 available as variable CONF_JAVA, for subsequent autoconf
112344                 tests. Also log error output in config.log.
112346         2006-07-19  Bruno Haible  <bruno@clisp.org>
112348                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
112349                 that getline works on glibc2 systems. Needed to avoid trouble
112350                 in relocatable.c.
112351                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
112353         2005-12-04  Bruno Haible  <bruno@clisp.org>
112355                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
112356                 launcher (untested).
112358         2005-12-04  Bruno Haible  <bruno@clisp.org>
112360                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
112362         2006-07-22  Bruno Haible  <bruno@clisp.org>
112364                 * gettext.m4: Update from GNU gettext-0.15.
112365                 * nls.m4: Likewise.
112366                 * po.m4: Likewise.
112367                 * inttypes-pri.m4: Likewise.
112368                 * inttypes-h.m4: Renamed from inttypes.m4.
112369                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
112371 2006-07-22  Bruno Haible  <bruno@clisp.org>
112373         Merge from GNU gettext 0.15.
112375         2005-07-05  Bruno Haible  <bruno@clisp.org>
112377                 * printf-args.c (printf_fetchargs): Work around broken
112378                 definition of wint_t on mingw.
112380         2005-02-12  Bruno Haible  <bruno@clisp.org>
112382                 * xallocsa.h: Add extern "C" for C++.
112384         2006-05-17  Bruno Haible  <bruno@clisp.org>
112386                 Cygwin portability.
112387                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
112389         2006-04-30  Bruno Haible  <bruno@clisp.org>
112391                 * progreloc.c: Include <mach-o/dyld.h> if available.
112392                 (find_executable): Use _NSGetExecutablePath when possible.
112394         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112396                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
112397                 function.
112399         2005-12-29  Bruno Haible  <bruno@clisp.org>
112401                 * progreloc.c (set_program_name_and_installdir): Fix
112402                 compilation error.
112404         2005-12-04  Bruno Haible  <bruno@clisp.org>
112406                 Cygwin portability.
112407                 * progreloc.c: Include <windows.h> also on Cygwin.
112408                 (find_executable): Add support for Cygwin.
112409                 (set_program_name_and_installdir): Handle also platforms with
112410                 nonempty EXEEXT.
112412         2006-07-11  Bruno Haible  <bruno@clisp.org>
112414                 * javacomp.c: Fix a comment.
112415                 Reported by Jim Meyering.
112417         2006-04-30  Bruno Haible  <bruno@clisp.org>
112419                 * javacomp.h (compile_java_class): Add source_version,
112420                 target_version arguments.
112421                 * javacomp.c: Rewritten to choose only a compiler that
112422                 respects the specified source_version and target_version.
112424         2006-06-27  Bruno Haible  <bruno@clisp.org>
112426                 Assume correct S_ISDIR macro.
112427                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
112429         2006-07-22  Bruno Haible  <bruno@clisp.org>
112431                 * javaversion.h: New file, from GNU gettext.
112432                 * javaversion.c: New file, from GNU gettext.
112433                 * javaversion.java: New file, from GNU gettext.
112434                 * javaversion.class: New file, from GNU gettext.
112436         2006-05-17  Bruno Haible  <bruno@clisp.org>
112438                 Cygwin portability.
112439                 * javaexec.c (execute_java_class): Test for jview program
112440                 also on Cygwin.
112442         2006-04-09  Bruno Haible  <bruno@clisp.org>
112444                 * fatal-signal.c: Don't include string.h.
112445                 (at_fatal_signal): Use a copying loop instead of memcpy.
112447         2005-12-04  Bruno Haible  <bruno@clisp.org>
112449                 * csharpexec.c: Add support for 'clix' launcher (untested).
112450                 (execute_csharp_using_sscli): New function.
112451                 (execute_csharp_program): Call it.
112453         2006-06-21  Bruno Haible  <bruno@clisp.org>
112455                 Avoid warnings from recent versions of mcs.
112456                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
112457                 -o, -L, -r any more. Use options documented since mcs-1.0
112458                 instead. Similarly for -g.
112460         2005-07-09  Bruno Haible  <bruno@clisp.org>
112462                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
112463                 add a .dll suffix.
112464                 Reported by Mark Junker <mjscod@gmx.de>.
112466         2006-06-17  Bruno Haible  <bruno@clisp.org>
112468                 * config.charset: Update for NetBSD 3.0.
112470         2006-05-17  Bruno Haible  <bruno@clisp.org>
112472                 Cygwin portability.
112473                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
112475         2006-05-16  Bruno Haible  <bruno@clisp.org>
112477                 * localcharset.c [CYGWIN]: Include <windows.h>.
112478                 (get_charset_aliases): For Cygwin, return the same CPxxx
112479                 aliases list as under WIN32.
112480                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
112481                 the environment variables. Fall back to GetACP().
112483         2006-04-05  Bruno Haible  <bruno@clisp.org>
112485                 * config.charset: Update Juan Manuel Guerrero's address.
112487         2005-02-12  Bruno Haible  <bruno@clisp.org>
112489                 * allocsa.h: Add extern "C" for C++.
112491         2005-02-10  Bruno Haible  <bruno@clisp.org>
112493                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
112494                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
112496         2006-07-22  Bruno Haible  <bruno@clisp.org>
112498                 * gettext.h: Update to GNU gettext-0.15.
112500 2006-07-22  Bruno Haible  <bruno@clisp.org>
112502         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
112503         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
112504         lib-prefix.m4, longdouble.m4, ssize_t.m4.
112506 2006-07-21  Eric Blake  <ebb9@byu.net>
112508         * modules/stdlib-safer: New file.
112509         * MODULES.html.sh (File stream based Input/Output): Add
112510         stdlib-safer.
112512 2006-07-21  Eric Blake  <ebb9@byu.net>
112514         * lib/stdlib-safer.h: New file from coreutils, required by
112515         stdlib--.h.
112517 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
112519         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
112521 2006-07-20  Bruno Haible  <bruno@clisp.org>
112523         * gnulib-tool: Recognize new option --assume-autoconf.
112524         (autoconf_minversion): New variable.
112525         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
112527 2006-07-20  Bruno Haible  <bruno@clisp.org>
112529         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
112531 2006-07-19  Derek R. Price  <derek@ximbiot.com>
112533         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
112534         Reindent and repaginate.
112536 2006-07-19  Derek Price  <derek@ximbiot.com>
112538         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
112539         Correct grammar.
112541 2006-07-17  Bruno Haible  <bruno@clisp.org>
112543         * modules/list: New file.
112544         * modules/array-list: New file.
112545         * modules/carray-list, modules/carray-list-tests: New files.
112546         * modules/linked-list, modules/linked-list-tests: New files.
112547         * modules/avltree-list, modules/avltree-list-tests: New files.
112548         * modules/rbtree-list, modules/rbtree-list-tests: New files.
112549         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
112550         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
112551         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
112552         * modules/oset: New file.
112553         * modules/array-oset: New file.
112554         * modules/avltree-oset, modules/avltree-oset-tests: New files.
112555         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
112556         * tests/test-carray_list.c: New file.
112557         * tests/test-linked_list.c: New file.
112558         * tests/test-avltree_list.c: New file.
112559         * tests/test-rbtree_list.c: New file.
112560         * tests/test-linkedhash_list.c: New file.
112561         * tests/test-avltreehash_list.c: New file.
112562         * tests/test-rbtreehash_list.c: New file.
112563         * tests/test-avltree_oset.c: New file.
112564         * tests/test-rbtree_oset.c: New file.
112565         * MODULES.html.sh (Container data structures): New section.
112567 2006-07-17  Bruno Haible  <bruno@clisp.org>
112569         * m4/gl_list.m4: New file.
112571 2006-07-17  Bruno Haible  <bruno@clisp.org>
112573         * lib/gl_list.h: New file.
112574         * lib/gl_list.c: New file.
112575         * lib/gl_array_list.h: New file.
112576         * lib/gl_array_list.c: New file.
112577         * lib/gl_carray_list.h: New file.
112578         * lib/gl_carray_list.c: New file.
112579         * lib/gl_linked_list.h: New file.
112580         * lib/gl_linked_list.c: New file.
112581         * lib/gl_anylinked_list1.h: New file.
112582         * lib/gl_anylinked_list2.h: New file.
112583         * lib/gl_avltree_list.h: New file.
112584         * lib/gl_avltree_list.c: New file.
112585         * lib/gl_anyavltree_list1.h: New file.
112586         * lib/gl_anyavltree_list2.h: New file.
112587         * lib/gl_rbtree_list.h: New file.
112588         * lib/gl_rbtree_list.c: New file.
112589         * lib/gl_anyrbtree_list1.h: New file.
112590         * lib/gl_anyrbtree_list2.h: New file.
112591         * lib/gl_anytree_list1.h: New file.
112592         * lib/gl_anytree_list2.h: New file.
112593         * lib/gl_linkedhash_list.h: New file.
112594         * lib/gl_linkedhash_list.c: New file.
112595         * lib/gl_anyhash_list1.h: New file.
112596         * lib/gl_anyhash_list2.h: New file.
112597         * lib/gl_avltreehash_list.h: New file.
112598         * lib/gl_avltreehash_list.c: New file.
112599         * lib/gl_rbtreehash_list.h: New file.
112600         * lib/gl_rbtreehash_list.c: New file.
112601         * lib/gl_anytreehash_list1.h: New file.
112602         * lib/gl_anytreehash_list2.h: New file.
112604         * lib/gl_oset.h: New file.
112605         * lib/gl_oset.c: New file.
112606         * lib/gl_array_oset.h: New file.
112607         * lib/gl_array_oset.c: New file.
112608         * lib/gl_avltree_oset.h: New file.
112609         * lib/gl_avltree_oset.c: New file.
112610         * lib/gl_rbtree_oset.h: New file.
112611         * lib/gl_rbtree_oset.c: New file.
112612         * lib/gl_anytree_oset.h: New file.
112614 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112616         * m4/mkancesdirs.m4: New file.
112617         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112618         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112619         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112620         it.
112622 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112624         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112625         * lib/mkancesdirs.h: New files.
112626         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112627         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112628         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112629         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112630         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112631         callers changed.  Revamp internals significantly, by not
112632         attempting to create directories that are temporarily more
112633         permissive than the final results.  Do not attempt to use
112634         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112635         This removes some race conditions, fixes some bugs, and simplifies
112636         things.  Use new dirchownmod function to do owner and mode changes.
112637         * lib/mkdir-p.h: Likewise.
112638         * lib/modechange.c (octal_to_mode): New function.
112639         (struct mode_change): New member mentioned.
112640         (make_node_op_equals): New arg mentioned.  All callers changed.
112641         (mode_compile): Keep track of which mode bits the user has explicitly
112642         mentioned.
112643         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112644         New arg PMODE_BITS, to keep track of which mode bits the user
112645         mentioned; it treats S_ISUID and S_ISGID speciall.
112646         All callers changed.
112647         * lib/modechange.h: Likewise.
112649 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112651         * MODULES.html.sh: Add mkancestors.
112652         * modules/mkancesdirs: New module.
112653         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112654         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112655         The chdir-safer and afs files are now orphans; I'll remove them
112656         unless someone speaks up.
112657         Add lib/dirchownmod.c, lib/dirchownmod.h.
112658         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112659         Add lchown, mkancesdirs.
112660         (Maintainer): Add self.
112662 2006-07-15  Karl Berry  <karl@gnu.org>
112664         * gnulib-tool: help message wording/arrangement.
112666 2006-07-14  Simon Josefsson  <jas@extundo.com>
112668         * doc/gnulib.texi (Libtool and Windows): New section.
112670 2006-07-12  Simon Josefsson  <jas@extundo.com>
112672         * modules/gendocs (License): Fix license, approved by Karl.
112674 2006-07-12  Eric Blake  <ebb9@byu.net>
112676         * MODULES.html.sh: Add gendocs.
112678 2006-07-11  Eric Blake  <ebb9@byu.net>
112680         * modules/fdl: New module, to install doc/fdl.texi.
112681         * MODULES.html.sh: Add new section for documentation modules.
112682         * gnulib-tool: Avoid space-tab.
112683         (--doc-base): New option, to manage files from doc.
112685 2006-07-11  Eric Blake  <ebb9@byu.net>
112687         * m4/absolute-header.m4: Fix comments to match recent change.
112689 2006-07-11  Eric Blake  <ebb9@byu.net>
112691         * gnulib-tool: List --doc-base before --tests-base.
112693 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112695         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112697 2006-07-11  Bruno Haible  <bruno@clisp.org>
112699         * README: Mention where to put documentation.
112701 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112703         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112705 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112708         to stdint.m4.
112710 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112712         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112713         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112714         "no/such/file/stdint.h" when there is no such file, so that
112715         the resulting C code can be parsed by dodgy compilers.
112716         Problems reported by Bob Proulx.
112718 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112720         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112721         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112722         macros into the GNU _D_EXACT_NAMLEN.
112723         * lib/savedir.c:  Likewise.
112724         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112726 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112727         and Paul Eggert  <eggert@cs.ucla.edu>
112729         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112730         * m4/savedir.m4:
112731         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112732         macros into the GNU _D_EXACT_NAMLEN.
112734 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112736         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112737         around the absolute name, to work around a problem with the HP-UX
112738         11.23 native C compiler, reported by Bob Proulx.
112740 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112742         * doc/maintain.texi, make-stds.texi: Sync from
112743         <http://savannah.gnu.org/projects/gnustandards>.
112745 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112747         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112749 2006-07-09  Jim Meyering  <jim@meyering.net>
112751         * m4/glob.m4: Remove a doubled word in a comment.
112753 2006-07-09  Jim Meyering  <jim@meyering.net>
112755         * lib/argp-pv.c: Remove a doubled word in a comment.
112756         * lib/check-version.c (check_version): Likewise.
112757         * lib/javacomp.c (compile_java_class): Likewise.
112759 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112761         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112762         for the benefit of people using Autoconf 2.60.  If you want to
112763         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112764         (or m4/onceonly.m4, if pre-2.57) manually.
112766 2006-07-08  Jim Meyering  <jim@meyering.net>
112768         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112769         comment.
112770         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112771         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112772         comment.
112774 2006-07-08  Jim Meyering  <jim@meyering.net>
112776         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112778 2006-07-07  Simon Josefsson  <jas@extundo.com>
112780         * tests/test-crc.c: Change expected crc value, the test vector
112781         were probably computed using the old broken crc.c?
112783 2006-07-06  Simon Josefsson  <jas@extundo.com>
112785         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112786         now the canonical place for the M4 file).
112788         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112789         from the sys_socket dependency now.
112791         * modules/inet_pton (Files): Ditto.
112793         * modules/inet_ntop (Files): Ditto.
112795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112797         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112798         not gl_PREREQ_GETUSERSHELL.
112800 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112803         with only one argument, for Autoconf 2.60.
112804         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112805         expand to nothing, so add a shell command to avoid syntax error.
112806         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112808 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112810         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112812 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112814         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112815         no longer needed.  Check for isblank decl.
112816         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112817         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112818         of existence.
112820 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112822         * lib/getloadavg.c: Use __VMS, not VMS.
112823         * lib/getopt.c: Likewise.
112824         * lib/getpagesize.h: Likewise.
112825         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112826         and probably does not work.
112828 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112830         * lib/.cppi-disable: Add wcwidth.
112831         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112832         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112833         (ISGRAPH): Remove.  All uses changed to isgraph.
112834         (FOLD) [!defined _LIBC]: Remove special case.
112835         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112836         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112837         HAVE_ISBLANK.
112838         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112839         case.
112841 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112843         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112844         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112845         brackets.  Other minor changes to suppress some compiler
112846         warnings.
112848 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112849         and Paul Eggert  <eggert@cs.ucla.edu>
112851         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112852         of invoking obsolescent AC_HEADER_DIRENT macro.
112853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112854         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112855         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112856         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112857         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112858         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112859         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112860         * m4/readdir.m4: Remove; no longer needed.
112862 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112863         and Paul Eggert  <eggert@cs.ucla.edu>
112865         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112866         Don't worry about this obsolete case any more.
112867         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112868         directories.
112869         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112870         worry about this obsolete case any more.
112871         * lib/fts.c: Likewise.
112872         * lib/getcwd.c: Likewise.
112873         * lib/glob.h: Likewise.
112874         * lib/savedir.c: Likewise.
112876 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112878         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112879         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112880         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112881         needed.
112882         All uses removed.
112883         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112884         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112885         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112886         needed.
112887         * m4/getdate.m4 (gl_GETDATE): Likewise.
112888         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112889         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112890         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112891         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112892         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112894         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112895         needed.
112897 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112899         * lib/memcasecmp.c: Include <limits.h>.
112900         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112901         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112902         Don't assume isdigit succeeds only on '0' through '9'.
112904 2006-07-05  Eric Blake  <ebb9@byu.net>
112906         * modules/getaddrinfo (Depends-on): Add snprintf.
112908 2006-07-05  Eric Blake  <ebb9@byu.net>
112910         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112911         to avoid 'header present but could not be compiled' on cygwin.
112913 2006-07-05  Eric Blake  <ebb9@byu.net>
112915         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112916         missing from netdb.h.
112917         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112919 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112921         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112922         no longer needed.
112923         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112924         * m4/getdate.m4 (gl_GETDATE): Likewise.
112925         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112926         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112927         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112928         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112929         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112931 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112933         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112934         All uses of is_space replaced by isspace.
112935         * lib/exit.h: Don't talk about STDC_HEADERS.
112936         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112937         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112938         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112939         replaced by isprint etc.
112940         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112941         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112942         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112943         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112944         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112945         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112947 2006-07-05  Bruno Haible  <bruno@clisp.org>
112949         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112950         the function exists, before testing against AIX.
112951         Reported by Martin Lambers <marlam@marlam.de>.
112953 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112955         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112956         From Mark D. Baushke.
112958 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112960         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112961         to the absolute name, not just one, to bypass Sun C 5.8's
112962         "warning: #include of /usr/include/... may be non-portable".
112964 2006-07-04  Eric Blake  <ebb9@byu.net>
112966         * modules/dirname-tests: New test module.
112967         * tests/test-dirname.c: New file, replacing dirname.c
112968         TEST_DIRNAME section that was recently deleted.
112970 2006-07-04  Bruno Haible  <bruno@clisp.org>
112972         Assume ANSI C header files and <ctype.h> functions.
112973         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112974         (mbsnwidth): Use isprint, iscntrl instead.
112976 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112978         Merge from coreutils.
112979         * MODULES.html.sh: Add xstrtold.
112980         * modules/xstrtold: New file.
112981         * modules/cycle-check (Files): Add lib/same-inode.h.
112982         * modules/dirname (Files): Add m4/double-slash-root.m4.
112983         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112984         * modules/mkdir-p (Files): Add lib/same-inode.h.
112985         * modules/same (Files): Add lib/same-inode.h.
112987 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112989         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112990         This is to keep the terminology clean; POSIX talks about
112991         "absolute pathnames", not "full pathnames", but the GNU
112992         Coding Standards say to use "path" for something else;
112993         so use "absolute" to keep both sides happy.
112994         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112995         Set gl_absolute_header, not gl_full_header_path.
112996         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112997         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112998         All uses changed.
113000         Merge from coreutils.
113002         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
113004         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
113005         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
113006         want to require the building of c-strtod.o.
113007         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
113008         needs -lm directly.
113009         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
113011         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113013         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
113014         --as-needed option if available.  Problem reported by Albert Chin in
113015         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
113016         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
113017         cc merely issues a bunch of annoying warnings for --as-needed
113018         (this problem was reported by Bob Proulx).  Also, try linking with
113019         -lm to detect a bug in binutils 2.16 (this problem was reported
113020         by Ralf Wildenhues).
113022         2006-06-18  Jim Meyering  <jim@meyering.net>
113024         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
113025         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
113026         macro.
113027         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
113028         also check for glibc-2.4's abort-inducing bug.
113030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
113031         Low-probability clean-up should be to use rmdir to get rid of
113032         the just-created directory, not unlink.
113034         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
113035         configure fail, and request a bug report to inform us about it.
113036         Add a comment that, barring reports to the contrary, in 2007 we'll
113037         assume ftruncate is universally available.
113039         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
113041         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
113043         2006-03-12  Jim Meyering  <jim@meyering.net>
113045         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
113046         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
113047         * m4/same.m4 (gl_SAME): Likewise.
113048         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
113050         2006-03-11  Eric Blake  <ebb9@byu.net>
113052         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
113053         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
113054         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
113055         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
113057 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113059         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
113060         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
113061         reported by Mark D. Baushke, one in
113062         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
113064         Merge from coreutils.
113066         * lib/.cppi-disable: Add stdint_.h.
113067         * lib/.cvsignore: Add stdint.h.
113069         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
113071         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
113072         both double and long double versions.
113073         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
113074         * lib/xstrtold.c: New file.
113075         * lib/xstrtod.h (xstrtold): New decl.
113077         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
113079         * lib/filemode.c (setst): Remove.
113080         (strmode): Rewrite to avoid setst.  This makes the code shorter,
113081         (arguably) clearer, and the generated code is a bit smaller on my
113082         Debian GNU/Linux stable x86 host.
113084         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
113086         * lib/filemode.c: Include "filemode.h" first, to test the interface.
113087         Assume that filemode.h includes sys/types.h and sys/stat.h.
113088         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
113089         (ftypelet): Reorder to put common cases first, for efficiency.
113090         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
113091         to do 'M'.
113092         (strmode): Renamed from mode_string, and now stores 12 bytes instead
113093         of 10, for compatibility with FreeBSD.  All callers changed.
113094         (filemodestring): Now stores 12 bytes instead of 10, and sets file
113095         types that can't be deduced solely from st_mode.  First arg is now a
113096         const pointer.
113097         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
113098         (strmode): Renamed from mode_string.
113099         (filemodestring): New decl.
113100         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
113101         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
113102         needed.
113103         (S_ISPORT, S_ISWHT): New macros, if not already defined.
113105         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
113107         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
113108         fsusage.h now does that.  Include fsusage.h first, to test interface.
113109         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
113110         at most one method (the old code could have generated decls that
113111         didn't conform to C89, not that this was ever exercised).
113112         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
113114         2006-03-19  Jim Meyering  <jim@meyering.net>
113116         Work even in a chroot where d_ino values for entries in "/"
113117         don't match the stat.st_ino values for the same names.
113118         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
113119         number, iterate through all entries again, using lstat instead.
113120         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
113121         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
113123         * lib/getcwd.c (__getcwd): Clarify a comment.
113124         Use memcpy in place of a call to strcpy.
113126         2006-03-12  Jim Meyering  <jim@meyering.net>
113128         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
113129         matches that of the current directory (which we're about to chdir ".."
113130         out of), then save the dev-ino of the parent, instead.
113132         * lib/same-inode.h (SAME_INODE): New file/macro.
113133         * lib/chdir-safer.c (SAME_INODE): Remove definition.
113134         Include "same-inode.h", instead.
113135         * lib/same.c: Likewise.
113136         * lib/cycle-check.h: Include "same-inode.h".
113137         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
113138         * lib/cycle-check.c (SAME_INODE): Remove definition.
113139         * lib/root-dev-ino.h: Include "same-inode.h".
113141         2006-03-11  Eric Blake  <ebb9@byu.net>
113143         * lib/same.c (same_name): s/base_name/last_component/
113144         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
113145         * lib/filenamecat.c (file_name_concat): Likewise.
113147         2006-03-11  Eric Blake  <ebb9@byu.net>,
113148                     Paul Eggert  <eggert@cs.ucla.edu>
113150         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
113151         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
113152         drive prefix.
113153         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
113154         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
113155         (last_component): New method.
113156         * lib/dirname.c (dir_len): Determine when drive letters need a
113157         subsequent slash.  Preserve // when it is special.
113158         (dir_name): Don't append dot when drive letter is absolute.
113159         [TEST_DIRNAME]: Move into a full-blown gnulib test.
113160         * lib/basename.c (base_name): New semantics - malloc the result.
113161         Preserve // when it is special.  Preserve relative files that look
113162         like drive letters.
113163         (base_len): Preserve // when it is special.
113164         (last_component): New method, similar to old base_name semantics.
113165         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
113166         base_name.  Strip redundant slashes from ///.
113168 2006-07-03  Jim Meyering  <jim@meyering.net>
113170         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
113171         macro is used before the first cycle_check call.
113173 2006-07-03  Eric Blake  <ebb9@byu.net>
113175         * modules/dirname (Depends-on): Add xstrndup.
113177 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113179         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
113180         test cases, so that config.log is a bit easier to follow.
113182 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113184         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
113185         both are 64 bits, since this seems to be the tradition, and this
113186         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
113187         we ever run into a host that prefers long long to long in this
113188         case, we'll need another configure-time test.  Problem reported by
113189         Jim Meyering.
113191 2006-07-02  Eric Blake  <ebb9@byu.net>
113193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
113195 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113197         * modules/inttypes (Depends-on): No longer depends on stdint.
113198         * modules/stdint (Description): Say more about assumptions.
113199         Say that the fast types might differ.  Say macros are used.
113200         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
113201         (Makefile.am): Revise list of substituted symbols to match
113202         new stdint.m4.
113203         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
113204         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
113205         * tests/test-stdint.c (verify_same_types)
113206         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
113207         the code conforms to C99/C89.
113208         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
113209         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
113211 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113213         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
113214         but fix a bug, by requiring at least 64 bits.
113215         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
113216         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
113217         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
113218         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113220         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
113221         changes.  Make 2.59 a prerequisite.  Check and substitute for
113222         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
113223         inttypes.h.  Do not use special include files; just use the
113224         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
113225         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
113226         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
113227         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
113228         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
113229         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
113230         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
113231         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
113232         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
113233         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
113234         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
113235         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
113236         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
113237         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
113238         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
113239         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
113240         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
113241         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
113242         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
113243         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
113244         WINT_MAX.  Check for C99 conformance more strictly, by detecting
113245         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
113246         not check for things that C99 does not require, e.g., int8_t.  If
113247         a test isn't needed unless <stdint.h> isn't working, and is
113248         unlikely to be needed for any other reason, then don't do it
113249         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
113250         size_t, since we assume C89 freestanding at least.  Do not check
113251         for sig_atomic_t, wchar_t, or wint_t, since the code now does
113252         the right thing even if the types are not defined.  Instead use:
113253         (gl_STDINT_TYPE_PROPERTIES): New macro.
113254         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
113255         testing whether <sys/types.h> clashes, as Autoconf does this for
113256         us now.  All uses removed.
113257         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
113258         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
113259         (gl_CHECK_TYPE_SAME):
113260         Remove; no longer needed.
113261         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
113262         exists, since we'll return 0 anyway in that case.
113263         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
113265 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113267         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
113268         possible collision with system files.
113269         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
113270         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
113271         WCHAR_MIN and WCHAR_MAX in this case.
113272         (<stddef.h>): Do not include; no longer needed.
113273         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
113274         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
113275         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
113276         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
113277         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
113278         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
113279         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
113280         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
113281         !defined(__c99))]: Include in this case too, since it's harmless
113282         now.
113283         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
113284         dangerous to do so.
113285         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
113286         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
113287         (_STDINT_MIN, _STDINT_MAX): New macros.
113288         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
113289         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
113290         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
113291         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
113292         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
113293         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
113294         macros, not typedefs; this simplifies things quite a bit.
113295         Use long int for all types narrower than int64_t.
113296         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
113297         Define in terms of long long int or int64_t or long int,
113298         not int64_t or int32_t.  This saves some compile-time testing.
113299         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
113300         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
113301         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
113302         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
113303         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
113304         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
113305         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
113306         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
113307         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
113308         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
113309         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113310         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113311         undef any previous version and define our own version, for
113312         simplicity and consistency with the new macros for types.
113313         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113314         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113315         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
113316         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
113317         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
113318         @WINT_T_SUFFIX@ to keep things simple here.
113319         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
113320         Simplify by assuming typical 8/16/32/64 host, since we're
113321         already doing that elsewhere anyway.
113322         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
113323         and assume long long int is 64 bits if available.  This
113324         speeds up 'configure'.
113326 2006-07-01  Eric Blake  <ebb9@byu.net>
113328         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
113329         Reported by Andreas Buening.
113331 2006-07-01  Eric Blake  <ebb9@byu.net>
113333         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
113335 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113337         * lib/getaddrinfo.c: fixed typo
113339 2006-06-29  Jim Meyering  <jim@meyering.net>
113341         * modules/strftime (Maintainer): Add my name, since with the
113342         FPRINTFTIME changes strftime.c has forked from glibc.
113344 2006-06-29  Eric Blake  <ebb9@byu.net>
113346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
113348 2006-06-29  Eric Blake  <ebb9@byu.net>
113350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
113352 2006-06-29  Eric Blake  <ebb9@byu.net>
113354         * lib/stat_.h: New file.
113356 2006-06-29  Eric Blake  <ebb9@byu.net>
113358         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
113359         unused static function.
113361 2006-06-29  Eric Blake  <ebb9@byu.net>
113363         * doc/functions.texi (Function Portability): Document missing lstat
113364         on mingw.
113366 2006-06-29  Eric Blake  <ebb9@byu.net>
113368         * MODULES.html.sh: Add sys_stat.
113369         * modules/sys_stat: New module.
113370         * modules/mkstemp (Depends-on): Add sys_stat.
113372 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113374         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
113376 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113378         * m4/c-bs-a.m4: Removed.
113380 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113382         * lib/strftime.c: Assume strftime() exists.
113384 2006-06-29  Derek Price  <derek@ximbiot.com>
113386         * modules/c-bs-a: Removed - \a is C89.
113387         * MODULES.html.sh: Remove c-bs-a.
113389 2006-06-29  Bruno Haible  <bruno@clisp.org>
113391         * modules/wcwidth (License): Change to LGPL.
113393 2006-06-28  Simon Josefsson  <jas@extundo.com>
113395         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
113396         on _WIN32.
113398         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
113399         getnameinfo.
113401 2006-06-28  Simon Josefsson  <jas@extundo.com>
113403         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
113405 2006-06-28  Simon Josefsson  <jas@extundo.com>
113407         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
113408         functions there.  It will succeed on Windows XP, but on Windows
113409         2000 and (presumably) earlier, it will fail, and use the internal
113410         re-implementation.
113411         (use_win32_p): New function.
113412         (getaddrinfo): Use strtoul on servname, to support numeric ports.
113413         Support AI_NUMERICSERV to disable getservbyname.
113414         (getnameinfo): New function, only supports
113415         NI_NUMERICHOST|NI_NUMERICSERV for now.
113417         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
113418         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
113419         getnameinfo.
113421 2006-06-28  Eric Blake  <ebb9@byu.net>
113423         * modules/wcwidth: New file.
113424         * modules/mbchar (Depends-on): Add wcwidth.
113425         * modules/mbswidth (Depends-on): Add wcwidth.
113426         * MODULES.html.sh: Add wcwidth.
113428 2006-06-28  Eric Blake  <ebb9@byu.net>
113430         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
113431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
113433 2006-06-28  Eric Blake  <ebb9@byu.net>
113435         * lib/xvasprintf.h: Fix comments.
113437 2006-06-28  Eric Blake  <ebb9@byu.net>
113439         * lib/mbchar.h (wcwidth): Include wcwidth.h.
113440         * lib/mbswidth.c (wcwidth): Move from here...
113441         * lib/wcwidth.h: ...to this new file.
113443 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113445         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
113447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
113448         it's obsolete.
113449         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
113451 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113453         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
113454         Autoconf 2.60 says this stuff was obsolete.
113456 2006-06-28  Bruno Haible  <bruno@clisp.org>
113458         * modules/wcwidth (Files): Add m4/wchar_t.m4.
113460 2006-06-28  Bruno Haible  <bruno@clisp.org>
113462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
113463         gt_TYPE_WCHAR_T.
113465 2006-06-28  Bruno Haible  <bruno@clisp.org>
113467         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
113468         declaration for wcwidth.
113469         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
113471 2006-06-28  Bruno Haible  <bruno@clisp.org>
113473         * lib/mkdtemp.c [MINGW]: Include <io.h>.
113474         (mkdir): Define using _mkdir.
113476 2006-06-28  Bruno Haible  <bruno@clisp.org>
113478         * lib/getaddrinfo.h: Fix POSIX URL.
113479         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
113480         _WIN32.
113481         (use_win32_p): Make static.
113482         (getaddrinfo): Reject service name if it is empty or does not consist
113483         solely of decimal digits, or if its value is > 65535.
113484         (getnameinfo): Remove useless casts.
113486 2006-06-27  Simon Josefsson  <jas@extundo.com>
113488         * modules/sys_select: New file, suggested by Bruno Haible, Paul
113489         Eggert and Martin Lambers.
113491 2006-06-27  Simon Josefsson  <jas@extundo.com>
113493         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
113494         Eggert and Martin Lambers.
113496 2006-06-27  Bruno Haible  <bruno@clisp.org>
113498         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
113499         result to 0, not to empty.
113500         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
113502 2006-06-27  Bruno Haible  <bruno@clisp.org>
113504         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
113506 2006-06-26  Simon Josefsson  <jas@extundo.com>
113508         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
113509         present.
113511 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
113513         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
113514         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
113515         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
113517 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
113519         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
113521 2006-06-26  Bruno Haible  <bruno@clisp.org>
113523         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
113525 2006-06-26  Bruno Haible  <bruno@clisp.org>
113527         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
113529 2006-06-26  Bruno Haible  <bruno@clisp.org>
113531         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
113532         SGI C compiler in pre-C99 mode.
113533         Suggested by Mark D. Baushke and Larry Jones.
113535 2006-06-26  Bruno Haible  <bruno@clisp.org>
113537         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
113538         WCHAR_MAX.
113539         Reported by Mark D. Baushke and Larry Jones.
113541 2006-06-26  Bruno Haible  <bruno@clisp.org>
113543         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
113544         in pre-C99 mode.
113545         Suggested by Mark D. Baushke and Larry Jones.
113547 2006-06-23  Simon Josefsson  <jas@extundo.com>
113548             Bruno Haible  <bruno@clisp.org>
113550         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
113551         Emit mostlyclean-local rule.
113552         (func_emit_tests_Makefile_am): Likewise.
113553         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
113555 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
113557         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
113559 2006-06-23  Bruno Haible  <bruno@clisp.org>
113561         * tests/test-stdint.c: Update to match ISO C 99 Technical
113562         Corrigendum 1.
113564 2006-06-23  Bruno Haible  <bruno@clisp.org>
113566         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
113568 2006-06-23  Bruno Haible  <bruno@clisp.org>
113570         * lib/stdint_.h: Treat IRIX like OpenBSD.
113572 2006-06-23  Bruno Haible  <bruno@clisp.org>
113574         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
113575         ISO C 99 Technical Corrigendum 1.
113577 2006-06-22  Simon Josefsson  <jas@extundo.com>
113579         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
113580         MinGW.
113582 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113584         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
113585         needed.  Some compiler complained about some of them.  Problem reported
113586         by Larry Jones in
113587         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113589 2006-06-21  Simon Josefsson  <jas@extundo.com>
113591         * tests/test-getaddrinfo.c: New file.
113593         * modules/getaddrinfo-tests: New file.
113595         * MODULES.html.sh: Add inet_pton.
113597         * modules/inet_pton: New file.
113599 2006-06-21  Simon Josefsson  <jas@extundo.com>
113601         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113602         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113603         of using the (limited) gnulib implementation on Windows XP.
113605         * m4/inet_pton.m4: New file.
113607 2006-06-21  Simon Josefsson  <jas@extundo.com>
113609         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113610         variable.
113612         * lib/socket_.h: Don't define WINVER.
113614         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113615         slightly modified to work in gnulib.
113617 2006-06-21  Simon Josefsson  <jas@extundo.com>
113619         * doc/gnulib.texi (Windows sockets): Add.
113621 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113623         * lib/read-file.c (fread_file): Start with buffer allocation of
113624         0 bytes rather than 1 byte; this simplifies the code.
113625         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113626         code to free buffer and save/restore errno.
113627         (internal_read_file): Remove unused local.
113629 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113631         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113632         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113633         Problem reported by Denis Excoffier in
113634         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113636 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113638         * modules/sys_socket, modules/socklen: Include sys/types since
113639         FreeBSD 4.x's sys/socket.h needs it.
113641 2006-06-19  Simon Josefsson  <jas@extundo.com>
113643         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113645 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113647         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113649 2006-06-19  Bruno Haible  <bruno@clisp.org>
113651         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113652         and FULL_PATH_INTTYPES_H in angle brackets.
113653         Reported by Mark D. Baushke <mdb@gnu.org>.
113655 2006-06-17  Eric Blake  <ebb9@byu.net>
113657         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113658         errno.
113660 2006-06-17  Bruno Haible  <bruno@clisp.org>
113662         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113663         <sys/inttypes.h>.
113665 2006-06-17  Bruno Haible  <bruno@clisp.org>
113667         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113668         whether errno is declared. Assume <errno.h> declares errno.
113670 2006-06-17  Bruno Haible  <bruno@clisp.org>
113672         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113674 2006-06-17  Bruno Haible  <bruno@clisp.org>
113676         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113677         problem on Solaris 2.5.1.
113679 2006-06-16  Eric Blake  <ebb9@byu.net>
113681         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113682         * lib/unicodeio.c [!defined errno]: Likewise.
113683         * lib/strtol.c [!defined errno]: Likewise.
113684         * lib/strtod.c [!defined errno]: Likewise.
113686 2006-06-15  Eric Blake  <ebb9@byu.net>
113688         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113690 2006-06-15  Eric Blake  <ebb9@byu.net>
113692         * config/srclist.txt (ssize_t.m4): Lose sync.
113694 2006-06-15  Bruno Haible  <bruno@clisp.org>
113696         * modules/stdint (Files): Include m4/full-header-path.m4,
113697         m4/size_max.m4, m4/wchar_t.m4.
113698         (Makefile.am): Many more substitutions.
113699         * modules/stdint-tests: New file.
113700         * tests/test-stdint.c: New file.
113702 2006-06-15  Bruno Haible  <bruno@clisp.org>
113704         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113705         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113706         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113707         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113708         gl_CHECK_TYPE_SAME): New macros.
113710 2006-06-15  Bruno Haible  <bruno@clisp.org>
113712         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113714 2006-06-15  Bruno Haible  <bruno@clisp.org>
113716         * lib/stdint_.h: Rewritten to be fully auto-configured.
113717         Fixes bug on HP-UX/IA64.
113719 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113721         * lib/getdate.y (__attribute__): Don't define if already defined.
113722         Problem reported by Larry Jones.
113723         * lib/utimens.c (__attribute__): Likewise.
113725 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113727         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113728         reported by Andreas Schwab.
113730 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113731             Bruno Haible  <bruno@clisp.org>
113733         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113734         check for the declaration of strnlen and a run test that exposes the
113735         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113736         rpl_strndup.
113738 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113739             Bruno Haible  <bruno@clisp.org>
113741         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113743 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113745         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113746         compile test, for Tru64 4.0D.
113748 2006-05-28  Karl Berry  <karl@gnu.org>
113750         * config/srclist.txt (printf-args.c): lose sync.
113752 2006-05-26  Martin Lambers  <marlam@marlam.de>
113754         * lib/getpass.c: Updates the test for the native W32 API, and adds
113755         missing includes, thus fixing compilation warnings.
113757 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113759         * lib/exclude.c (exclude_fnmatch): New function.
113760         (excluded_file_name): Call exclude_fnmatch.
113761         * lib/exclude.h (excluded_file_name): New prototype
113763 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113765         * lib/tempname.c (small_open, large_open): New macros.
113766         (__open, __open64) [!_LIBC]: Remove.
113767         (__gen_tempname): Use small_open and large_open instead of __open
113768         and __open64.  This fixes a portability bug on HP-UX 11.11i
113769         reported by Simon Wing-Tang in
113770         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113772 2006-05-24  Bruno Haible  <bruno@clisp.org>
113774         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113775         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113776         Reported by Thorsten Maerz <torte@netztorte.de> via
113777         Aaron Stone <aaron@serendipity.cx>.
113779 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113782         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113783         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113784         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113785         not really conditional on the cache.
113786         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113788 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113790         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113791         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113792         (my_usleep): Don't mishandle maximum value.
113794 2006-05-19  Jim Meyering  <jim@meyering.net>
113796         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113798 2006-05-17  Bruno Haible  <bruno@clisp.org>
113800         Cygwin portability.
113801         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113803 2006-05-17  Bruno Haible  <bruno@clisp.org>
113805         * lib/stdint_.h: Fix recognition of Cygwin.
113807 2006-05-15  Bruno Haible  <bruno@clisp.org>
113809         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113810         on libtool patch by Ralf Wildenhues.
113812 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113815         test for C99 conformance; (bool) 0.5 is an integer constant
113816         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113817         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113819 2006-05-11  Simon Josefsson  <jas@extundo.com>
113821         * m4/xvasprintf.m4: Fix obvious typo.
113823 2006-05-11  Jim Meyering  <jim@meyering.net>
113825         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113826         James Lemley.
113828 2006-05-10  Simon Josefsson  <jas@extundo.com>
113830         * lib/md4.c: Typo fix, update copyright years.
113831         (K1, K2): Don't use L because it turn computations into 64-bit on
113832         64-bit platforms.
113834 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113836         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113837         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113838         unwanted sign propagation, e.g., on hosts with 64-bit int.
113839         There still are some problems with reeelly weird theoretical hosts
113840         (e.g., 33-bit int) but it's not worth worrying about now.
113841         * lib/sha1.c (rol): Likewise.
113842         (K1, K2, K3, K4): Remove unnecessary L suffix.
113844 2006-05-10  Bruno Haible  <bruno@clisp.org>
113846         * lib/des.c: Cast to avoid warnings.
113848 2006-05-09  Bruno Haible  <bruno@clisp.org>
113850         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113851         (Depends-on): Depend also on xsize, stdarg.
113852         (configure.ac): Add gl_XVASPRINTF.
113854 2006-05-09  Bruno Haible  <bruno@clisp.org>
113856         * m4/xvasprintf.m4: New file.
113858 2006-05-09  Bruno Haible  <bruno@clisp.org>
113860         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113861         (EOVERFLOW): Define fallback value.
113862         (xstrcat): New function.
113863         (xvasprintf): Recognize the special case of a string concatenation.
113865 2006-05-08  Eric Blake  <ebb9@byu.net>
113867         * gnulib-tool (func_version): Base copyright year on CVS date.
113868         (func_emit_copyright_notice): New function.
113869         (func_emit_lib_Makefile_am): Use it.
113870         (func_emit_tests_Makefile_am): Likewise.
113871         (func_import): Likewise.
113873 2006-05-08  Bruno Haible  <bruno@clisp.org>
113875         * modules/stdarg: New file.
113876         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113878 2006-05-08  Bruno Haible  <bruno@clisp.org>
113880         * m4/stdarg.m4: New file, from GNU gettext.
113882 2006-05-08  Bruno Haible  <bruno@clisp.org>
113884         * config/srclist.txt (build-aux/config.rpath): different from latest
113885         release.
113887 2006-05-08  Bruno Haible  <bruno@clisp.org>
113889         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113891 2006-05-05  Jim Meyering  <jim@meyering.net>
113893         * m4/warning.m4: New file, derived from bison's file by the same name.
113895 2006-05-03  Bruno Haible  <bruno@clisp.org>
113897         * lib/stdint_.h: Shorter URL.
113898         * lib/inttypes.h: Likewise.
113900 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113902         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113904 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113906         * lib/verify.h: Document the internals better.  Most of this change
113907         was written by Bruno Haible.
113909 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113911         * doc/verify.texi: New file, partly based on a proposal by
113912         Bruno Haible.
113914 2006-05-02  Bruno Haible  <bruno@clisp.org>
113916         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113917         test from here...
113918         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113920 2006-04-29  Bruno Haible  <bruno@clisp.org>
113922         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113923         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113925 2006-04-29  Bruno Haible  <bruno@clisp.org>
113927         * gnulib-tool: Make --update option actually work.
113929 2006-04-29  Bruno Haible  <bruno@clisp.org>
113931         * doc/gcd.texi: New file.
113932         * doc/gnulib.texi: Include it.
113934 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113936         * lib/getdate.y (get_date): When adding relative date, start with the
113937         initial time, not with the result of the first mktime call.
113939 2006-04-25  Bruno Haible  <bruno@clisp.org>
113941         * gnulib-tool (func_import): Output the include directives in three
113942         blocks, sorted separately.
113943         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113945 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113947         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113948         to define main with arguments, for C++.  Reported by Eric Blake.
113949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113950         Prefer 'int main ()' to 'int main (void)', for C++.
113951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113952         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113953         for 'main', for C99 and C++.
113955 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113957         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113958         Don't assume that exit status -1 is valid.
113959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113960         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113961         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113962         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113963         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113964         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113965         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113966         functions can be used without declaring them, or that you can
113967         exit with status -1.
113968         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113970 2006-04-24  Karl Berry  <karl@gnu.org>
113972         * config/srclist.txt (longdouble.m4): sync lost.
113974 2006-04-24  Eric Blake  <ebb9@byu.net>
113976         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113978 2006-04-24  Bruno Haible  <bruno@clisp.org>
113980         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113981         poll() implementation in AIX.
113982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113984 2006-04-24  Bruno Haible  <bruno@clisp.org>
113986         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113987         assigned exactly once.
113989 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113990             Bruno Haible  <bruno@clisp.org>
113992         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113993         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113994         for AM_CPPFLAGS.
113996 2006-04-23  Bruno Haible  <bruno@clisp.org>
113998         * modules/copy-file: Depend on unistd.
113999         * modules/execute: Likewise.
114000         * modules/fatal-signal: Likewise.
114001         * modules/findprog: Likewise.
114002         * modules/mkdtemp : Likewise.
114003         * modules/pipe: Likewise.
114004         * modules/wait-process: Likewise.
114006 2006-04-23  Bruno Haible  <bruno@clisp.org>
114008         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
114009         condition was already detected.
114010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
114012 2006-04-23  Bruno Haible  <bruno@clisp.org>
114014         * lib/copy-file.c: Include <unistd.h> unconditionally.
114015         * lib/execute.c: Likewise.
114016         * lib/fatal-signal.c: Likewise.
114017         * lib/findprog.c: Likewise.
114018         * lib/mkdtemp.c: Likewise.
114019         * lib/pipe.h: Likewise.
114020         * lib/pipe.c: Likewise.
114021         * lib/wait-process.h: Likewise.
114023 2006-04-23  Bruno Haible  <bruno@clisp.org>
114025         * gnulib-tool (func_usage): Fix --import description. Document
114026         --update.
114027         (func_import): Create temporary file in a temporary directory, if
114028         --dry-run is specified. Silence errors from 'grep' when there are no
114029         m4 files in $m4dir.
114030         (func_create_testdir): Silence errors from 'grep' when there are no
114031         m4 files in $m4dir.
114032         Reported by Karl Berry <karl@freefriends.org>.
114034 2006-04-20  Bruno Haible  <bruno@clisp.org>
114036         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
114037         one argument, so that the code will be portable to Autoconf 2.60.
114038         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
114039         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114040         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
114042 2006-04-19  Derek Price  <derek@ximbiot.com>
114043             Eric Blake  <ebb9@byu.net>
114045         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
114046         rather than "/full/path.h".  Update comment to match.  Shorten &
114047         generalize m4_translit call via AS_TR_CPP.
114049 2006-04-19  Derek Price  <derek@ximbiot.com>
114050             Eric Blake  <ebb9@byu.net>
114052         * lib/inttypes.h: Correct grammar in comment.
114054 2006-04-18  Derek Price  <derek@ximbiot.com>
114055             Paul Eggert  <eggert@cs.ucla.edu>
114057         * modules/inttypes: New file.
114058         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
114060 2006-04-18  Derek Price  <derek@ximbiot.com>
114061             Paul Eggert  <eggert@cs.ucla.edu>
114063         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
114064         New files.
114066 2006-04-18  Derek Price  <derek@ximbiot.com>
114067             Paul Eggert  <eggert@cs.ucla.edu>
114069         * lib/inttypes.h: New file.
114070         * lib/strtoimax.c: Assume <inttypes.h>.
114072 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
114074         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
114075         isn't mounted.  Problem reported by Kir Kolyshkin.
114077 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
114079         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
114080         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
114081         Derek R. Price.
114082         * lib/regex.h (RE_DUP_MAX): Update comment to match current
114083         implementation.
114085 2006-04-12  Eric Blake  <ebb9@byu.net>
114087         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
114088         is now done automatically by the corresponding Autoconf macro.
114090 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
114092         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
114093         time_r.h.
114095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114097         Merge regex changes from libc, removing some of our
114098         POSIX-conformance changes that were rejected and redoing them in a
114099         less-intrusive way.
114101         * lib/regcomp.c (re_compile_internal, init_dfa):
114102         Length arg is now size_t, not Idx.  All uses changed.
114103         (peek_token): Forward decl now says internal_function.
114104         (__re_error_msgid, __re_error_msgid_idx):
114105         Now static rather than extern with attribute_hidden.
114106         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
114107         For some reason libc prefers K&R style defns for external functions.
114108         (regerror) [!defined _LIBC]: Likewise.
114109         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
114110         (seek_collating_symbol_entry, lookup_collation_sequence_value):
114111         (build_range_exp, build_collating_symbol):
114112         Use K&R-style defn.
114113         (re_compile_fastmap): Use '\0' to memset, not 0.
114114         (utf8_sb_map): Make the calculations more obvious.
114115         (init_dfa, parse_bracket_exp, build_charclass_op):
114116         Call calloc and cast result, as glibc does.
114117         (init_word_char, fetch_token, peek_token, peek_token_bracket):
114118         (build_range_exp, build_collating_symbol):
114119         Now internal functions.
114121         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
114123         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
114124         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
114125         Don't depend on VMS; depend on __VMS instead, for POSIX
114126         namespace cleanness.
114127         (regoff_t): Define to ssize_t, not long int.
114129         Remove the REG_ macros named below.  Instead, make the old names
114130         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
114131         __USE_GNU_REGEX.
114132         (REG_BACKSLASH_ESCAPE_IN_LISTS):
114133         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
114134         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
114135         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
114136         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
114137         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
114138         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
114139         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
114140         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
114141         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
114142         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
114143         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
114144         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
114145         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
114146         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
114147         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
114148         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
114149         (REG_NREGS):
114150         Remove.  All uses replaced by the old RE_* names.
114151         (RE_BACKSLASH_ESCAPE_IN_LISTS):
114152         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
114153         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
114154         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
114155         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
114156         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
114157         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
114158         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
114159         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
114160         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
114161         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
114162         Don't bother having these macros be independent of each others'
114163         values, since they no longer exist in the POSIX name space.
114165         Rename the following member names back to their old names,
114166         unless !__USE_GNU_REGEX.  All uses changed back.
114167         (buffer): Renamed from re_buffer.
114168         (allocated): Renamed from re_allocated.
114169         (used): Renamed from re_used.
114170         (syntax): Renamed from re_syntax.
114171         (fastmap): Renamed from re_fastmap.
114172         (translate): Renamed from re_translate.
114173         (can_be_null): Renamed from re_can_be_null.
114174         (regs_allocated): Renamed from re_regs_allocated.
114175         (fastmap_accurate): Renamed from re_fastmap_accurate.
114176         (no_sub): Renamed from re_no_sub.
114177         (not_bol): Renamed from re_not_bol.
114178         (not_eol): Renamed from re_not_eol.
114179         (newline_anchor): Renamed from re_newline_anchor.
114180         (num_regs): Renamed from rm_num_regs.
114181         (start): Renamed from rm_start.
114182         (end): Renamed from rm_end.
114184         (free_state): Move up a bit.
114186         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
114187         #define to be empty.
114188         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
114189         when that is what is intended.
114190         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
114191         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
114192         (MAX): New macro.
114193         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
114194         All uses changed back to re_malloc, etc.  It's now the caller's
114195         responsibility to check for overflow; all callers changed.
114196         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
114197         (re_x2nrealloc): Remove.
114198         (free_state): Remove decl.
114200         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
114201         (re_set_registers, re_exec):
114202         Use K&R-style defn.
114204         2006-01-31  Roland McGrath  <roland@redhat.com>
114206         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
114207         Reported by Mike Frysinger <vapier@gentoo.org>.
114209         2006-01-15  Andreas Jaeger  <aj@suse.de>
114211         [BZ #1950]
114212         * lib/regex_internal.c (re_string_reconstruct): Adjust for
114213         build_wcs_upper_buffer change.
114214         (build_wcs_upper_buffer): Change return type.
114216         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
114218         * lib/regex_internal.h: Include <stdint.h> if available.
114220         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
114222         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
114224         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
114226         * lib/regcomp.c: Adjust for changed secondary hash function.
114228         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
114230         * lib/regex.h: Pretty printing.
114231         Clean up namespace a bit.
114233         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
114235         * lib/regexec.c (update_cur_sifted_state, check_arrival,
114236         check_arrival_add_next_nodes): Avoid using uninitialized variable.
114238         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114239                     Ulrich Drepper  <drepper@redhat.com>
114241         [BZ #1302]
114242         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
114243         changed.
114244         (bitset_word_t): Renamed from bitset_word.  All uses changed.
114246         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
114248         [BZ #281]
114249         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
114250         * lib/regcomp.c: Remove unnecessary uses of
114251         unsigned RE_TRANSLATE_TYPE.
114252         * lib/regex_internal.h: Likewise.
114253         * lib/regex_internal.c: Likewise.
114254         * lib/regexec.c: Likewise.
114255         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
114257         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
114259         * lib/regexec.c (find_recover_state): Remove unnecessary
114260         initialization.
114261         (transit_state_bkref): Make DFA a const pointer.
114262         (get_subexp): Likewise.
114263         (check_arrival): Likewise.
114264         (update_cur_sifted_state): Likewise.
114265         (re_search_internal): Likewise.
114266         (prune_impossible_nodes): Likewise.
114267         (acquire_init_state_context): Likewise.
114268         (proceed_next_node): Likewise.
114269         (set_regs): Likewise.
114270         (free_fail_stack_return): Likewise.
114271         (check_arrival_expand_ecl): Mark DFA parameter as const.
114272         (check_arrival_expand_ecl_sub): Likewise.
114273         (check_subexp_limits): Likewise.
114274         (sub_epsilon_src_nodes):  Likewise.
114275         (add_epsilon_src_nodes):  Likewise.
114276         (merge_state_array): Likewise.
114277         (update_regs): Likewise.
114278         (build_trtable): Likewise.
114279         (sift_states_backward): Mark MCTX parameter as const.
114280         (build_sifted_states): Likewise.
114281         (update_cur_sifted_state): Likewise.
114282         (sift_states_mkref): Likewise.
114283         (check_arrival_expand_ecl): Mark eclosure as const.
114284         (check_dst_limits_calc_pos_1): Likewise.
114285         * lib/regex_internal.h (re_match_context_t): Make dfa a const
114286         pointer.
114288         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
114290         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
114291         (transit_state_sb): Likewise.
114292         (transit_state_mb): Likewise.
114293         (sift_states_iter_mb): Likewise.
114294         (check_arrival_add_next_nodes): Likewise.
114295         (check_node_accept_bytes): Change first parameter to pointer-to-const.
114296         [_LIBC] (re_search_2_stub): Use mempcpy.
114298         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
114299         mbrtowc for very simple UTF-8 case.
114301         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
114302         a pointer-to-const.
114303         (re_acquire_state_context): Likewise.
114304         * lib/regex_internal.h: Adjust prototypes.
114306         * lib/regex.c: Prevent using C++ compilers.
114308         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
114309         (re_acquire_state_context): Likewise.
114311 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114313         * modules/regex (Depends-on): Add ssize_t.
114315 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114317         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
114318         translation table.
114320 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114322         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
114324 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
114325             Bruno Haible  <bruno@clisp.org>
114327         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
114328         <sys/types.h> and <inttypes.h>.
114330 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114332         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
114333         `__error_t_defined', so argp.h will not typedef the former.
114335 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
114337         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
114338         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
114339         glibc names.  Even if glibc is changed to conform to POSIX, the
114340         traditional names will be available anyway, since regex depends on
114341         the extensions module.  Also, fix a longstanding typo in the
114342         implementation of Spencer ERE test #75 from grep 2.3.  Problems
114343         reported by Emanuele Giaquinta.  Also, change sense of cached
114344         variable, so that the message makes sense.
114346 2006-03-24  Simon Josefsson  <jas@extundo.com>
114348         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
114349         including some doc fixes.
114350         (base64_encode_alloc): Fix +1 bug on allocation failures.
114352 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114354         * lib/base64.c (base64_encode): Do not read past end of array with
114355         unsanitized input on systems with CHAR_BIT > 8.
114357 2006-03-24  Eric Blake  <ebb9@byu.net>
114359         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
114361 2006-03-22  Karl Berry  <karl@gnu.org>
114363         * config/srclist.txt (*setenv.[ch]): get from coreutils.
114364         * config/srclistvars.sh (COREUTILS): new var.
114366 2006-03-17  Jim Meyering  <jim@meyering.net>
114368         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
114369         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
114371 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114373         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
114374         no longer needs it.  Instead, check that regoff_t is as least
114375         as wide as ptrdiff_t.
114377         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
114378         so that our regex.h stays compatible with the installed regex.
114379         This is helpful for installers who configure --without-included-regex.
114380         Problem reported by Emanuele Giaquinta.
114382 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114384         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
114385         Typedef to long int, not to off_, as POSIX will likely change
114386         in that direction.
114388 2006-03-15  Eric Blake  <ebb9@byu.net>
114390         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
114392 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114394         * lib/argp-help.c (validate_uparams): Fix typo
114395         * lib/argp-parse.c (argp_default_options): Consistently begin help
114396         messages with a lowercase letter.
114398 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
114400         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
114401         overrun buffers and shouldn't be used (much as gets shouldn't be
114402         used).
114403         * lib/time_r.c (asctime_r, ctime_r): Likewise.
114405 2006-03-08  Simon Josefsson  <jas@extundo.com>
114407         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
114408         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114410 2006-03-08  Simon Josefsson  <jas@extundo.com>
114412         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
114413         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114415 2006-03-08  Simon Josefsson  <jas@extundo.com>
114417         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
114418         signal that configure disabled the device.
114420 2006-03-08  Simon Josefsson  <jas@extundo.com>
114422         * build-aux/maint.mk: Fix refresh-po, to handle no translated
114423         languages.
114425 2006-03-07  Simon Josefsson  <jas@extundo.com>
114427         * modules/getopt (Depends-on): Add unistd.
114429         * modules/unistd: New file.
114431 2006-03-07  Simon Josefsson  <jas@extundo.com>
114433         * modules/gc-random: New file.
114435 2006-03-07  Simon Josefsson  <jas@extundo.com>
114437         * m4/unistd_h.m4: New file.
114439 2006-03-07  Simon Josefsson  <jas@extundo.com>
114441         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
114442         test to be side-effect free by storing the result in the cache
114443         variable gl_cv_lib_readline, and moving the assignment of
114444         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
114445         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114447 2006-03-07  Simon Josefsson  <jas@extundo.com>
114449         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
114450         error on missing devices (the functions will return an error).
114452         * m4/gc.m4: Move random stuff to gc-random.m4
114454 2006-03-07  Simon Josefsson  <jas@extundo.com>
114456         * lib/unistd_.h: New file.
114458 2006-03-07  Simon Josefsson  <jas@extundo.com>
114460         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
114462 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114464         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
114465         Problem reported by Juan Manuel Guerrero.
114467 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114469         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
114470         the unistd module.
114471         * lib/getlogin_r.c: Likewise.
114472         * lib/getlogin_r.h: Likewise.
114473         * lib/glob.c: Likewise.
114474         * lib/pagealign_alloc.c: Likewise.
114475         * lib/unistd_.h: Remove; no longer needed.
114477 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114479         * MODULES.html.sh (Support for systems lacking POSIX:2001):
114480         Add unistd.
114481         * modules/c-stack (Depends-on): Add unistd.
114482         * modules/getlogin_r: Likewise.
114483         * modules/glob: Likewise.
114484         * modules/pagealign_alloc: Likewise.
114485         * modules/unistd (Files): Remove lib/unistd_.h.
114486         (EXTRA_DIST): Remove.
114487         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
114488         need unistd_.h.
114489         (MOSTLYCLEANFILES): Remove unistd.h-t.
114491 2006-03-03  Simon Josefsson  <jas@extundo.com>
114493         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
114495 2006-03-03  Simon Josefsson  <jas@extundo.com>
114497         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
114498         libidn and bison.
114500 2006-03-03  Simon Josefsson  <jas@extundo.com>
114502         * build-aux/maint.mk: Add indent target.
114504 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
114506         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
114507         our replacement poll.h in any case, to avoid a differing
114508         declaration from a system header.  Seen on AIX.
114510 2006-03-01  Simon Josefsson  <jas@extundo.com>
114512         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
114513         <kasal@ucw.cz>.
114515 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114517         * modules/gettime (Depends-on): Add extensions module.
114518         * modules/nanosleep (Depends-on): Likewise.
114519         * modules/settime (Depends-on): Likewise.
114521 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114523         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
114524         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
114525         pedantically.
114526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114527         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
114529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
114530         not "==".  Reported by Ralf Wildenhues.
114532 2006-03-01  Karl Berry  <karl@gnu.org>
114534         * doc/Copyright/request-*: new files, synced from gnuorg.
114536 2006-03-01  Karl Berry  <karl@gnu.org>
114538         * config/srclist.txt (Copyright/*): new entries.
114540 2006-02-28  Simon Josefsson  <jas@extundo.com>
114542         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
114544 2006-02-27  Simon Josefsson  <jas@extundo.com>
114546         * lib/base64.h: Indent #define's.  From Jim Meyering
114547         <jim@meyering.net>.
114549 2006-02-27  Jim Meyering  <jim@meyering.net>
114551         Revert the change of 2006-02-24, so these files can continue
114552         to be sync'd from gettext.
114553         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
114554         of `config.h'.
114556 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114558         * modules/intprops: New file.
114559         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
114560         Add intprops.
114561         * modules/getloadavg (Files): Remove lib/intprops.h.
114562         (Depends-on): Add intprops.
114563         * modules/human: Likewise.
114564         * modules/inttostr: Likewise.
114565         * modules/openat: Likewise.
114566         * modules/sig2str: Likewise.
114567         * modules/userspec: Likewise.
114568         * modules/utimecmp: Likewise.
114569         * modules/xnanosleep: Likewise.
114570         * modules/xstrtol: Likewise.
114572 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
114574         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
114575         * modules/lock-tests (TESTS): Use $(EXEEXT).
114576         * modules/tls-tests: Likewise.
114577         * modules/argp-tests: Likewise.
114578         (check_PROGRAMS): New var, replacing...
114579         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
114581 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114583         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
114584         `config.h'.
114586 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114588         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114590 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114592         Sync from coreutils.
114593         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114594         gl_CHDIR_SAFER.
114596 2006-02-22  Jim Meyering  <jim@meyering.net>
114598         Sync from coreutils.
114599         * m4/chdir-safer.m4: New file.
114601 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114603         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114604         AT_FDCWD exceeds INT_MAX.
114605         * lib/openat.h (AT_FDCWD): Likewise.
114607 2006-02-17  Eric Blake  <address@hidden>
114609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114611 2006-02-16  Simon Josefsson  <jas@extundo.com>
114613         * modules/getaddrinfo (Depends-on): Add sys_socket.
114615 2006-02-15  Simon Josefsson  <jas@extundo.com>
114617         * build-aux/maint.mk: Add dsyntax-check rule.
114619 2006-02-15  Eric Blake  <ebb9@byu.net>
114621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114622         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114623         'present but cannot compile' warnings on cygwin.
114624         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114625         use ws2tcpip.h if sys/socket.h works.
114626         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114627         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114629 2006-02-14  Simon Josefsson  <jas@extundo.com>
114631         * modules/maintainer-makefile (Files): Rename.
114633         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114634         and (the local) Makefile.cfg to maint-cfg.mk.
114636         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114637         to the latter.
114639         * modules/maintainer-makefile: New module.
114641         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114642         severaly stripped to make it possible to build it up from scratch
114643         with reliable tests.
114645         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114646         fixes to permit overriding the default actions when configure and
114647         makefile are not available.
114649 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114651         Sync from coreutils.
114652         * modules/lstat (Depends-on): Don't depend on xalloc.
114653         (License): Change from GPL to LGPL, since this is now simply a
114654         replacement for a libc function.
114656 2006-02-14  Jim Meyering  <jim@meyering.net>
114658         Sync from coreutils.
114660         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114661         failure on deficient systems, and simplify gnulib lgpl dependencies.
114662         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114663         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114665         * lib/xalloc-die.c: Remove unused definition of N_.
114667 2006-02-14  Jim Meyering  <jim@meyering.net>
114669         Sync from coreutils.
114670         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114671         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114672         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114673         double-quote uses of that variable, to accommodate the rare case in
114674         which getmntent is available in none of the libraries checked.  This
114675         happens at least on FreeBSD 5.0.
114677 2006-02-13  Simon Josefsson  <jas@extundo.com>
114679         * gnulib-tool (Usage): Fix --import, from
114680         karl@freefriends.org (Karl Berry).
114682 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114684         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114686 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114688         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114689         "autoupdate" on 2005-12-12.
114691 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114693         * modules/closeout (Depends-on): Remove atexit.
114695 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114697         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114698         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114700 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114702         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114703         __EXTENSIONS__ if this causes compilation to fail.  Problem
114704         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114705         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114707 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114709         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114710         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114711         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114712         All uses changed.
114714 2006-01-26  Simon Josefsson  <jas@extundo.com>
114716         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114717         prototype is visible on mingw32.
114719         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114720         for mingw32.
114722         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114723         mingw32).
114725 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114727         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114728         attempt to open for write; this always fails, at least on POSIX
114729         hosts.  This reinstates the 2006-01-09 change, which was
114730         inadvertently removed.
114732 2006-01-26  Bruno Haible  <bruno@clisp.org>
114734         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114735         Reported by Paul Eggert.
114737 2006-01-26  Bruno Haible  <bruno@clisp.org>
114738             Paul Eggert  <eggert@cs.ucla.edu>
114740         * lib/stdbool_.h (_Bool)
114741         [(! (defined __cplusplus || defined __BEOS__)
114742           && !defined __GNUC__
114743           && !(defined __HP_cc || defined __xlc__
114744                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114745                || defined __sgi))]:
114746         #define to signed char in these cases too; this simplifies
114747         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114748         etc., separately) and makes it more conservative.
114750 2006-01-25  Simon Josefsson  <jas@extundo.com>
114752         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114753         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114754         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114756 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114758         * lib/argp-namefrob.h: Bugfix. Remove stray #
114760 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114763         so that we test the test.
114764         Check for yet another HP-UX cc bug involving *bool |= bool.
114766 2006-01-25  Karl Berry  <karl@gnu.org>
114768         * config/srclist.txt (vasnprintf.c): sync lost.
114770 2006-01-25  Jim Meyering  <jim@meyering.net>
114772         Sync from the stable (b5) branch of coreutils:
114774         * lib/fts.c (fts_children): Don't let close() clobber errno from
114775         failed fchdir().
114777         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114778         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114779         a dangling symlink.  That can also happen at least for ELOOP.
114780         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114781         FYI, this bug predates the inclusion of fts.c in coreutils.
114783         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114784         in their own block, so pre-c99 compilers don't object.
114786         Avoid the double-free (first in fts_read, second in fts_close) that
114787         would occur when an `active' directory is made inaccessible (e.g.,
114788         via chmod a-x) during a traversal.
114789         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114790         before returning.  Reproduce this failure by
114791         mkdir -p a/b; cd a; chmod a-x . b
114792         Reported by Stavros Passas.
114794 2006-01-25  Jim Meyering  <jim@meyering.net>
114796         * lib/fileblocks.c: Remove more useless parentheses.
114797         * lib/readutmp.h: Likewise.
114799 2006-01-25  Bruno Haible  <bruno@clisp.org>
114801         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114802         warnings.
114803         Reported by Paul Eggert.
114805 2006-01-25  Bruno Haible  <bruno@clisp.org>
114807         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114808         rid of a trap command. For Solaris sh.
114809         Reported by Mark D. Baushke <mdb@gnu.org>.
114811 2006-01-24  Simon Josefsson  <jas@extundo.com>
114813         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114814         Bruno.
114816 2006-01-24  Karl Berry  <karl@gnu.org>
114818         * config/srclist.txt (argp-namefrob.h): sync lost.
114820 2006-01-24  Jim Meyering  <jim@meyering.net>
114822         * modules/openat (Files): Add lib/intprops.h.
114823         From Mark D. Baushke.
114825 2006-01-24  Jim Meyering  <jim@meyering.net>
114827         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114828         Reported by Mark D. Baushke.
114830 2006-01-24  Jim Meyering  <jim@meyering.net>
114832         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114834 2006-01-24  Bruno Haible  <bruno@clisp.org>
114836         * modules/strnlen (Maintainer): Change from glibc to all.
114838 2006-01-24  Bruno Haible  <bruno@clisp.org>
114840         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114841         Patch by Paul Eggert.
114843 2006-01-24  Bruno Haible  <bruno@clisp.org>
114845         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114846         already has it.
114847         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114848         2005-11-26.
114850         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114851         'signed char' to avoid problems with the built-in _Bool type.
114852         Reported by Paul Eggert on 2005-11-26.
114854 2006-01-24  Bruno Haible  <bruno@clisp.org>
114856         * gnulib-tool (func_import): Avoid constructing complicated sed
114857         expressions inside backquote.
114858         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114860 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114862         These changes imported from libc.
114863         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114864         test and two separate function calls.
114865         * lib/strndup.c (__strndup): Add libc_hidden_def.
114867 2006-01-23  Simon Josefsson  <jas@extundo.com>
114869         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114870         Remove the test_*_SOURCES variable: automake infers it by default.
114871         * modules/tls-tests: Likewise.
114873 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114875         Work around porting bugs reported by Dieter in
114876         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114877         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114878         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114879         Include "getopt.h" first, to check interface.
114880         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114881         !HAVE_DECL_GETENV.
114882         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114883         (__strndup): Revert to K&R-style function dfns, the glibc style.
114884         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114885         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114886         Include strnlen.h first, to get prototype properly.
114887         (strnlen): Renamed from __strnlen.
114888         Remove weak alias.
114890 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114892         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114894 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114896         * config/srclist.txt: Adjust to reflect glibc reorganization.
114897         This affects only comments.
114899 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114901          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114902          Reported by Bruce Korb <bkorb@gnu.org>.
114904 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114906         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114907         to pacify gcc -Wswitch-default.
114909 2006-01-22  Bruno Haible  <bruno@clisp.org>
114911         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114912         temporary buffer for sprintf, take into account the precision also
114913         for 'd', 'i', 'u', 'o', 'x', 'X'.
114915 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114917         * modules/argp-tests: New module
114918         * tests/test-argp.c: New file
114919         * tests/test-argp-2.sh: New file
114921 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114923         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114924         (__argp_base_name): Removed
114925         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114926         typo.
114927         (__argp_base_name): Provide macro definition or extern declaration
114928         depending on the configuration
114930 2006-01-20  Simon Josefsson  <jas@extundo.com>
114932         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114934 2006-01-20  Simon Josefsson  <jas@extundo.com>
114936         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114938 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114940         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114941         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114942         Suggested by Bruno Haible.
114944 2006-01-20  Karl Berry  <karl@gnu.org>
114946         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114947         until changes propagate, I guess.
114949 2006-01-19  Simon Josefsson  <jas@extundo.com>
114951         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114953 2006-01-19  Simon Josefsson  <jas@extundo.com>
114955         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114957 2006-01-19  Simon Josefsson  <jas@extundo.com>
114959         * gnulib-tool: Set check_PROGRAMS.
114961         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114962         modules/des-tests, modules/gc-arcfour-tests,
114963         modules/gc-arctwo-tests, modules/gc-des-tests,
114964         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114965         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114966         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114967         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114968         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114969         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114970         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114971         test_*_SOURCES.
114973 2006-01-18  Simon Josefsson  <jas@extundo.com>
114975         * modules/socklen (Depends-on): Depend on sys_socket.
114977 2006-01-18  Simon Josefsson  <jas@extundo.com>
114979         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114980         modules/des-tests, modules/gc-arcfour-tests,
114981         modules/gc-arctwo-tests, modules/gc-des-tests,
114982         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114983         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114984         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114985         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114986         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114987         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114988         $(EXEEXT) to automake TESTS variable, for mingw32.
114990 2006-01-17  Simon Josefsson  <jas@extundo.com>
114992         * modules/socklen (Include): Need sys/socket.h.
114994 2006-01-17  Bruno Haible  <bruno@clisp.org>
114996         * modules/ssize_t (Include): Add <sys/types.h>.
114998 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
115000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
115001         it's not portable and it doesn't work with cross-compiles.
115002         Problem reported by Bruno Haible.  Fix missing-$ typo in
115003         'test "gl_cv_ignore_unused_libraries" ...' that prevented
115004         -zignore from being used with Sun's C compiler.
115006 2006-01-12  Simon Josefsson  <jas@extundo.com>
115008         * lib/base64.c: Fix warning, reported by Bruno Haible
115009         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
115011 2006-01-12  Bruno Haible  <bruno@clisp.org>
115013         * modules/ldd: New file.
115014         * build-aux/ldd.sh.in: New file.
115015         * MODULES.html.sh (Support for building libraries and executables): Add
115016         ldd.
115018 2006-01-12  Bruno Haible  <bruno@clisp.org>
115020         * m4/ldd.m4: New file.
115022 2006-01-12  Bruno Haible  <bruno@clisp.org>
115024         * gnulib-tool (func_import, func_create_testdir): Don't go into an
115025         endless loop while replacing $auxdir with build-aux.
115027 2006-01-11  Simon Josefsson  <jas@extundo.com>
115029         * lib/stdint_.h (SIZE_MAX): Add missing (.
115031 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
115033         Sync from coreutils.
115034         * lib/md5.c: Fix commentary typos.
115035         (alignof, UNALIGNED_P): No need for a GCC-specific version.
115036         * lib/md5.h (__attribute__): Remove; unused.
115037         * lib/sha1.c: Fix commentary to match md5 better.
115038         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
115039         so that we don't need to worry about alignment.  All uses changed.
115040         This merges the 2005-10-28 md5 change into sha1.
115042 2006-01-11  Jim Meyering  <jim@meyering.net>
115044         Sync from coreutils.
115045         * lib/md5.c (OP): Fix spacing.
115047 2006-01-11  Bruno Haible  <bruno@clisp.org>
115049         Ensure automatic ordering between gl_LOCK and gl_ARGP.
115050         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
115051         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
115053 2006-01-11  Bruno Haible  <bruno@clisp.org>
115055         Ensure automatic ordering between gl_LOCK and gl_ARGP.
115056         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
115057         the "early" section as well.
115059 2006-01-11  Bruno Haible  <bruno@clisp.org>
115061         Avoid "ar: no archive members specified" error on MacOS X.
115062         * gnulib-tool (func_modules_add_dummy): New function.
115063         (func_import, func_create_testdir): Invoke it.
115065 2006-01-11  Bruno Haible  <bruno@clisp.org>
115067         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
115068         with $auxdir in AC_CONFIG_FILES statements.
115070 2006-01-11  Bruno Haible  <bruno@clisp.org>
115072         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115073         Initialize also noinst_HEADERS to empty.
115075 2006-01-11  Bruno Haible  <bruno@clisp.org>
115077         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
115078         variables.
115079         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
115080         autoreconf.
115082 2006-01-11  Bruno Haible  <bruno@clisp.org>
115084         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
115085         overridable by the user.
115086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115088 2006-01-10  Simon Josefsson  <jas@extundo.com>
115090         * modules/sys_socket: New file.
115092 2006-01-10  Simon Josefsson  <jas@extundo.com>
115094         * m4/sys_socket_h.m4: New file.
115096 2006-01-10  Simon Josefsson  <jas@extundo.com>
115098         * lib/socket_.h: New file.
115100 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115102         * modules/readutmp (Maintainer): Add myself.
115104 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115106         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
115107         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
115108         People who are still concerned with buggy memcmp implementations
115109         can invoke gl_FUNC_MEMCMP themselves.
115111 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115113         * lib/regex_internal.h (BITSET_WORD_BITS):
115114         Work around a bug in 64-bit PGC (before version 6.1-2), where the
115115         preprocessor mishandles large unsigned values as if they were signed.
115116         Problem reported by Claudio Fontana in
115117         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
115119 2006-01-10  Jim Meyering  <jim@meyering.net>
115121         Avoid the double-free (first in fts_read, second in fts_close) that
115122         would occur when an `active' directory is made inaccessible (e.g.,
115123         via chmod a-x) during a traversal.
115124         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
115125         before returning.  Reproduce this failure by
115126         mkdir -p a/b; cd a; chmod a-x . b
115127         Reported by Stavros Passas.
115129         Sync from coreutils.
115130         * lib/sha1.c: Tweak grammar in a comment.
115132 2006-01-10  Jim Meyering  <jim@meyering.net>
115134         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
115135         Patch by Joerg Sonnenberger.
115137 2006-01-10  Bruno Haible  <bruno@clisp.org>
115139         * modules/readutmp: Depend on module free.
115140         * modules/strtok_r: Depend on module restrict.
115142 2006-01-10  Bruno Haible  <bruno@clisp.org>
115144         * modules/gettext (configure.ac): Add an invocation of
115145         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
115147 2006-01-10  Bruno Haible  <bruno@clisp.org>
115149         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
115150         Reported by Werner Lemberg <wl@gnu.org>.
115152 2006-01-10  Bruno Haible  <bruno@clisp.org>
115154         * lib/localcharset.c: Update from GNU gettext.
115156 2006-01-10  Bruno Haible  <bruno@clisp.org>
115158         * lib/argp.h (__const): Remove macro. Use const instead.
115159         * lib/argp-fmtstream.h (__const): Likewise.
115160         * lib/glob_.h (__const): Remove macro.
115161         * lib/glob-libc.h: Use const instead of __const.
115163 2006-01-10  Bruno Haible  <bruno@clisp.org>
115165         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
115166         variable.
115167         Needed to avoid an automake error regarding the 'gettext' module.
115169 2006-01-09  Simon Josefsson  <jas@extundo.com>
115171         * modules/inet_ntop (Depends-on): Add restrict.
115173 2006-01-09  Simon Josefsson  <jas@extundo.com>
115175         * modules/gc-rijndael-tests (License): Put under LGPL.
115177         * modules/gc-des-tests (License): Likewise.
115179         * modules/gc-arcfour-tests (License): Likewise.
115181         * modules/gc-arctwo-tests (License): Likewise.
115183         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
115185         * modules/gc-hmac-sha1-tests (Files): Likewise.
115187         * modules/gc-hmac-md5-tests (License): Likewise.
115189         * modules/gc-sha1-tests (License): Likewise.
115191         * modules/gc-md5-tests (License): Likewise.
115193         * modules/gc-md4-tests (License): Likewise.
115195         * modules/gc-md2-tests (License): Likewise.
115197         * modules/gc-tests (License): Likewise.
115199         * modules/des-tests (License): Likewise.
115201         * modules/md4-tests (License): Likewise.
115203         * modules/md2-tests (License): Likewise.
115205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115207         Sync from coreutils:
115209         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
115210         * modules/lib-ignore: New file.
115211         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
115212         chdir-safer.m4, lchmod.m4.
115213         * modules/openat: Add mkdirat.c, openat-priv.h.
115215 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115217         Sync from coreutils.
115218         * m4/lib-ignore.m4: New file.
115219         * m4/lchmod.m4: New file.
115221 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115223         Sync from coreutils.
115224         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
115225         for write access: POSIX says that must fail.
115226         * lib/fts.c (diropen): Likewise.
115227         * lib/save-cwd.c (save_cwd): Likewise.
115228         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
115229         well, for minor improvements on hosts that lack O_DIRECTORY.
115230         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
115231         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
115232         Fall back on chown if open failed with EACCES.
115234         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
115235         Report an error at compile-time if only a 1-second nominal clock
115236         resolution is found.
115238         * lib/lchmod.h: New file.
115239         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
115240         (make_dir_parents): Use lchown rather than chown, and
115241         lchmod rather than chmod.
115243         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
115244         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
115245         "proc" reported by n0dalus.
115247         * lib/mountlist.c: Include <limits.h>.
115248         (dev_from_mount_options)
115249         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
115250         New function.  It no longer assumes "dev=" has the System V meaning
115251         on Linux (since it doesn't).  It also parses "dev=" more carefully.
115252         (read_file_system_list)
115253         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
115254         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
115255         dev= in that case.
115257         * lib/posixtm.h (PDS_PRE_2000): New macro.
115258         * lib/posixtm.c (year): Arg is now syntax_bits rather than
115259         allow_century.  All usages changed.  Reject dates outside the range
115260         1969-1999 if PDS_PRE_2000 is used.
115262 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115264         Sync from coreutils.
115265         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
115266         (Time of day items): Mention the possibility of leap seconds.
115267         Problem reported by Dr. David Alan Gilbert.
115269 2006-01-09  Jim Meyering  <jim@meyering.net>
115271         Sync from coreutils.
115273         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
115275         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
115277         * lib/modechange.c (mode_compile): Reject an invalid mode string
115278         that starts with an octal digit.  From Andreas Gruenbacher.
115280         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
115281         and dup to open_safer and dup_safer, respectively.
115282         (openat_permissive): Fix typo in comment.
115284         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
115285         "gettext.h"; either no longer needed or are guaranteed by openat.h.
115286         (_): Remove; no longer needed.
115287         (openat): Renamed from rpl_openat; no need for rpl_openat
115288         since openat.h renames openat for us.
115289         Replace most of the body with a call to openat_permissive,
115290         to avoid duplicate code.
115291         Port to (probably hypothetical) environments were mode_t is
115292         wider than int.
115293         (openat_permissive): Require mode arg, so that we can check
115294         types better.  Put it just after flags.  Change cwd failure
115295         indicator from pointer-to-bool to pointer-to-errno-value.
115296         All callers changed.
115297         Invoke openat_save_fail and/or openat_restore_fail if
115298         cwd_errno is null, so that openat can call us.
115299         (openat_permissive, fdopendir, fstatat, unlinkat):
115300         Simplify errno handling to avoid some duplicate code,
115301         as it's OK to set errno on success.
115302         * lib/openat.h: Revamp code so that function macros depend on
115303         __OPENAT_PREFIX only, not also on AT_FDCWD.
115304         (openat_ro): Remove.  Caller changed to use openat_permissive.
115305         (openat_permissive): Now a macro, if not a function.
115306         (openat_restore_fail, openat_save_fail): Now always functions,
115307         since mkdirat needs them even if __OPENAT_PREFIX is defined.
115309         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
115310         and openat.c.
115311         * lib/mkdirat.c: Include openat-priv.h.
115312         Remove definitions of macros defined therein.
115313         * lib/openat.c: Likewise.
115315         * lib/mkdirat.c (mkdirat): New file and function.
115316         * lib/openat.h (mkdirat): Declare.
115318         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
115320         * lib/openat.h (openat_permissive): Declare.
115321         (openat_ro): Define.
115323         * lib/openat.c (EXPECTED_ERRNO): New macro.
115324         (openat_permissive): New function -- used in remove.c rewrite.
115325         (all functions): Set errno just before returning, only if there
115326         was an actual failure.
115327         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
115329         Emulate openat-family functions using Linux's procfs, if possible.
115330         Idea and some code based on Ulrich Drepper's glibc changes.
115332         * lib/openat.c: (BUILD_PROC_NAME): New macro.
115333         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
115334         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
115335         before falling back on save_cwd and restore_cwd.
115336         (fdopendir, fstatat, unlinkat): Likewise.
115338         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
115339         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
115341         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
115342         as second argument to va_arg.  Otherwise, some versions of gcc
115343         warn that `if this code is reached, the program will abort'.
115345 2006-01-09  Jim Meyering  <jim@meyering.net>
115347         Sync from coreutils.
115348         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
115349         Require openat-priv.h.
115351 2006-01-09  Bruno Haible  <bruno@clisp.org>
115353         * modules/strnlen (Include): Use strnlen.h.
115355 2006-01-09  Bruno Haible  <bruno@clisp.org>
115357         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
115359 2006-01-09  Bruno Haible  <bruno@clisp.org>
115361         * lib/sysexit_.h (EX_OK): New macro.
115362         Suggested by Martin Lambers <marlam@marlam.de>.
115364 2006-01-09  Bruno Haible  <bruno@clisp.org>
115366         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
115367         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
115369 2006-01-09  Bruno Haible  <bruno@clisp.org>
115371         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
115372         numbers.
115374 2006-01-09  Bruno Haible  <bruno@clisp.org>
115376         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
115377         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
115378         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
115379         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
115381 2006-01-09  Bruno Haible  <bruno@clisp.org>
115383         * build-aux/javacomp.sh.in: New file, moved from lib/.
115384         * modules/javacomp-script (Files): Update.
115385         (configure.ac): Add AC_CONFIG_FILES invocation.
115386         (EXTRA_DIST): Remove variable.
115388         * build-aux/javaexec.sh.in: New file, moved from lib/.
115389         * modules/javaexec (Files): Update.
115390         (configure.ac): Add AC_CONFIG_FILES invocation.
115391         (EXTRA_DIST): Remove javaexec.sh.in.
115393         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
115394         * modules/csharpcomp-script (Files): Update.
115395         (configure.ac): Add AC_CONFIG_FILES invocation.
115396         (EXTRA_DIST): Remove variable.
115398         * build-aux/csharpexec.sh.in: New file, moved from lib/.
115399         * modules/csharpexec (Files): Update.
115400         (configure.ac): Add AC_CONFIG_FILES invocation.
115401         (EXTRA_DIST): Remove csharpexec.sh.in.
115403 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115405         Sync from coreutils.
115407         Add POSIX ACL support
115408         * lib/acl.h (copy_acl, set_acl): Add declarations.
115409         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
115410         systems other than Linux.
115411         (chmod_or_fchmod): New function: use fchmod when possible,
115412         and chmod otherwise.
115413         (file_has_acl): Add a POSIX ACL implementation, with a
115414         Linux-specific subcase.
115415         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
115416         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
115417         acls are unsupported.
115418         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
115419         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
115420         are unsupported.
115422 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115424         Sync from coreutils.
115425         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
115427 2006-01-07  Bruno Haible  <bruno@clisp.org>
115429         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
115430         gl_EARLY.
115432 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115434         * lib/strftime.c (tzname): Don't declare if it is already #defined.
115435         Problem reported for Mingw by Mark Junker.
115437 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115439         * README: Gnulib normally doesn't generate a tarball.
115441 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
115443         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
115444         long int, not int, for nanosecond counts, so that people who are
115445         used to POSIX struct timespec won't be surprised.  Reported by Jim
115446         Meyering.
115448 2005-12-28  Bruno Haible  <bruno@clisp.org>
115450         * build-aux/config.rpath: Update from GNU gettext.
115452 2005-12-16  Jim Meyering  <jim@meyering.net>
115454         * modules/fprintftime: New module.
115455         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
115457 2005-12-16  Jim Meyering  <jim@meyering.net>
115459         * m4/fprintftime.m4: New file.
115461 2005-12-16  Jim Meyering  <jim@meyering.net>
115463         * lib/fprintftime.c, lib/fprintftime.h: New files.
115465 2005-12-15  Simon Josefsson  <jas@extundo.com>
115467         * modules/socklen (configure.ac): Fix M4 macro name, to align with
115468         new m4/socklen.m4.
115470 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115472         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
115473         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
115475 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115477         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
115478         * lib/argp-help.c (fill_in_uparams): Check if the constructed
115479         struct uparams is valid. Fall back to the default values if it is
115480         not.
115482 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115484         * modules/argp (Files): Add argp-pin.c
115485         (Depends-on): dirname
115486         (lib_SOURCES): Add argp-pin.c
115488 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115490         * m4/argp.m4:  Check if program_invocation_name and
115491         program_invocation_short_name are declared and define appropriate
115492         macros if they are not.
115494 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115496         * lib/argp-help.c (__argp_base_name): New function
115497         (__argp_short_program_name): Rewrite using __argp_base_name
115498         * lib/argp-namefrob.h: Define program_invocation_name and
115499         program_invocation_short_name if requested
115500         (__argp_base_name): Add prototype
115501         * lib/argp-parse.c (argp_def): Use gettext wrappers
115502         (argp_default_parser): Use __argp_base_name
115503         * lib/argp-pin.c: New file. Defines program_invocation_name and
115504         program_invocation_short_name on systems that lack them.
115506 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115508         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
115509         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115510         porting problem reported by Georg Schwarz in
115511         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115513 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115515         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
115516         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115517         porting problem reported by Georg Schwarz in
115518         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115520 2005-12-05  Bruno Haible  <bruno@clisp.org>
115522         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
115523         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
115524         Reported by Mark Junker <mjscod@gmx.de>.
115526 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
115528         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
115529         Use implementation from Albert Chin, with some
115530         comments/corrections by Stepan Kasal and myself.
115532 2005-12-02  Bruno Haible  <bruno@clisp.org>
115534         * gnulib-tool (func_import): Accept GPLed build tool modules when
115535         --lgpl is given.
115536         * modules/csharpcomp-script: New file.
115537         * modules/csharpcomp: Depend on it.
115538         * modules/javacomp-script: New file.
115539         * modules/javacomp: Depend on it.
115540         Suggested by Simon Josefsson.
115542 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
115544         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
115545         statement, to work around an HP-UX 10.20 compiler bug reported by
115546         Peter O'Gorman.
115548 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115550         * modules/savedir (Depends-on): Add openat.
115552 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115554         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
115555         (uintmax_t) [defined uintmax_t]: Do not declare.
115556         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
115557         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
115558         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
115559         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
115560         sake of portability to weird hosts that C allows (though we don't
115561         know of any practical examples).
115563         * lib/savedir.h (fdsavedir): New decl.
115564         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
115565         contains most of the former guts of savedir.
115566         (savedir): Use savedirstream.
115567         Include "openat.h".
115569 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115571         * modules/obstack (Files): Add m4/ulonglong.m4.
115572         Problem reported by Davide Angelocola.
115574 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
115576         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
115577         coreutils no longer futzes with rounding modes.
115579 2005-11-14  Jim Meyering  <jim@meyering.net>
115581         * lib/mkstemp-safer.c: Include <config.h>, required for possible
115582         replacement of mkstemp.
115584 2005-11-10  Simon Josefsson  <jas@extundo.com>
115586         * lib/readline.c: Remove EOL.
115588 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115590         * modules/gethrxtime (Depends-on): Add gettime.
115592 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115594         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115595         or gettimeofday; no longer needed.
115597 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115599         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115600         time business.
115601         (gethrxtime) [! (HAVE_NANOUPTIME
115602         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115603         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115604         our own approximation.
115606 2005-11-08  Eric Blake  <ebb9@byu.net>
115608         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115610 2005-11-08  Eric Blake  <ebb9@byu.net>
115612         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115614 2005-11-04  Bruno Haible  <bruno@clisp.org>
115616         * gnulib-tool: Implement --update mode.
115618 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115620         Fix porting problem reported by Theodoros V. Kalamatianos.
115621         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115622         Don't assume that futimes failing means we must fail.
115624 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115626         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115627         variables to suggest the intended function of the PATH_MAX check.
115629 2005-10-30  Kean Johnston  <jkj@sco.com>
115631         Trivial changes to support SCO systems.
115632         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115633         as PATH_MAX.
115634         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115635         where __ptr is null when no I/O is pending.
115637 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115639         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115640         leave errno alone.  Problem reported by Dmitry V. Levin.
115642 2005-10-28  Simon Josefsson  <jas@extundo.com>
115644         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115645         Test more.
115647         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115649         * modules/md2, modules/md2-tests: New files.
115651 2005-10-28  Simon Josefsson  <jas@extundo.com>
115653         * m4/inet_ntop.m4: More tests.
115655         * m4/gc-md2.m4, md2.m4: New file.
115657 2005-10-28  Simon Josefsson  <jas@extundo.com>
115659         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115660         "restrict" keywords, as per POSIX.  Protect the function
115661         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115662         Don't use K&R prototypes.  Check the sprintf return values.
115663         Re-define EAFNOSUPPORT if not present.  Indent.
115665         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115666         suggested by Bruno Haible <bruno@clisp.org>.
115668         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115670         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115672         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115673         libgcrypt).
115675         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115677         * lib/md2.h, lib/md2.c: New files.
115679 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115681         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115682         errno alone.  Problem reported by Frederic Jolliton.
115684 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115686         * modules/verify (License): Change from GPL to LGPL.  This is a
115687         tiny module and there are apparently near-equivalents that are
115688         under the BSD license.
115690 2005-10-24  Simon Josefsson  <jas@extundo.com>
115692         * modules/sha1: Relicense to LGPL.
115694 2005-10-24  Simon Josefsson  <jas@extundo.com>
115696         * lib/md4.h: Shrink buffer size, now that we changed the type.
115698 2005-10-23  Simon Josefsson  <jas@extundo.com>
115700         * gnulib-tool (func_import): Fix --tests-base.
115702 2005-10-22  Simon Josefsson  <jas@extundo.com>
115704         * modules/arcfour (Depends-on): Need stdint.
115706 2005-10-22  Simon Josefsson  <jas@extundo.com>
115708         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115709         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115711 2005-10-22  Simon Josefsson  <jas@extundo.com>
115713         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115714         suggested by Bruno Haible <bruno@clisp.org>.
115716 2005-10-22  Simon Josefsson  <jas@extundo.com>
115718         * lib/crc.h: Include stddef.h, for size_t.
115720 2005-10-22  Simon Josefsson  <jas@extundo.com>
115722         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115723         arcfour_context struct (simplify test vector testing in GNU
115724         Shishi).
115726 2005-10-21  Simon Josefsson  <jas@extundo.com>
115728         * modules/des, modules/des-tests: New files.
115730         * modules/gc-des, modules/gc-des-tests: New files.
115732         * tests/test-des.c, tests/test-gc-des.c: New file.
115734 2005-10-21  Simon Josefsson  <jas@extundo.com>
115736         * modules/arctwo, modules/arctwo-tests: New files.
115738         * tests/test-arctwo.c: New file.
115740         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115742         * tests/test-gc-arctwo.c: New file.
115744 2005-10-21  Simon Josefsson  <jas@extundo.com>
115746         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115747         Bruno Haible <bruno@clisp.org>.
115749         * m4/gc-des.m4: New file.
115751 2005-10-21  Simon Josefsson  <jas@extundo.com>
115753         * m4/arctwo.m4: New file.
115755         * m4/gc-arctwo.m4: New file.
115757 2005-10-21  Simon Josefsson  <jas@extundo.com>
115759         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115760         block.
115762 2005-10-21  Simon Josefsson  <jas@extundo.com>
115764         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115765         <bruno@clisp.org>.
115767         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115769         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115770         Bruno Haible <bruno@clisp.org>.
115772         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115773         <bruno@clisp.org>.
115775 2005-10-21  Simon Josefsson  <jas@extundo.com>
115777         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115779 2005-10-21  Simon Josefsson  <jas@extundo.com>
115781         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115783 2005-10-21  Simon Josefsson  <jas@extundo.com>
115785         * lib/des.h, lib/des.c: New files.
115787         * lib/gc-gnulib.c: Support DES.c
115789 2005-10-21  Simon Josefsson  <jas@extundo.com>
115791         * lib/arctwo.h, lib/arctwo.c: New files.
115793         * lib/gc-gnulib.c: Support ARCTWO.
115795 2005-10-21  Simon Josefsson  <jas@extundo.com>
115797         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115798         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115800 2005-10-21  Simon Josefsson  <jas@extundo.com>
115802         * gnulib-tool (func_import, func_create_testdir): Define automake
115803         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115804         Makefile.am snippet),
115805         suggested by Bruno Haible <bruno@clisp.org>.
115807         * modules/gc (Makefile.am): Use it.
115809 2005-10-21  Bruno Haible  <bruno@clisp.org>
115811         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115812         patch.
115814 2005-10-19  Simon Josefsson  <jas@extundo.com>
115816         * tests/test-gc-rijndael.c: New file.
115818         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115820 2005-10-19  Simon Josefsson  <jas@extundo.com>
115822         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115823         interface too.
115825 2005-10-19  Simon Josefsson  <jas@extundo.com>
115827         * tests/test-gc-arcfour.c: New file.
115829         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115831 2005-10-19  Simon Josefsson  <jas@extundo.com>
115833         * modules/gc-md4, modules/gc-md4-tests: New file.
115835         * tests/test-gc-md4.c: New file.
115837 2005-10-19  Simon Josefsson  <jas@extundo.com>
115839         * m4/gc-md4.m4: New file.
115841 2005-10-19  Simon Josefsson  <jas@extundo.com>
115843         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115844         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115845         <kasal@ucw.cz>.
115847 2005-10-19  Simon Josefsson  <jas@extundo.com>
115849         * m4/gc-arcfour.m4: New file.
115851         * m4/gc-rijndael.m4: New file.
115853 2005-10-19  Simon Josefsson  <jas@extundo.com>
115855         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115857 2005-10-19  Simon Josefsson  <jas@extundo.com>
115859         * lib/gc-gnulib.c: Support ARCFOUR.
115861 2005-10-19  Simon Josefsson  <jas@extundo.com>
115863         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115864         support.
115866         * lib/gc.h: Add ECB enum type.
115868         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115870 2005-10-18  Simon Josefsson  <jas@extundo.com>
115872         * tests/test-md5.c: New file.
115874         * modules/md5-tests: New file.
115876 2005-10-18  Simon Josefsson  <jas@extundo.com>
115878         * tests/test-md4.c: New file.
115880         * modules/md4, modules/md4-tests: New files.
115882 2005-10-18  Simon Josefsson  <jas@extundo.com>
115884         * m4/md4.m4: New file.
115886 2005-10-18  Simon Josefsson  <jas@extundo.com>
115888         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115890 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115892         * gnulib-tool (func_create_testdir): Omit the second check whether
115893         BUILT_SOURCES in nonempty.
115895 2005-10-17  Simon Josefsson  <jas@extundo.com>
115897         * tests/test-rijndael.c: New file.
115899 2005-10-17  Simon Josefsson  <jas@extundo.com>
115901         * modules/sha1: Depend on stdint instead of md5.
115903         * modules/md5: Depend on stdint, remove uint32_t.
115905 2005-10-17  Simon Josefsson  <jas@extundo.com>
115907         * modules/gc-sha1-tests: New file.
115909         * tests/test-gc-sha1.c: New file.
115911 2005-10-17  Simon Josefsson  <jas@extundo.com>
115913         * m4/md5.m4: Remove call to uint32_t.m4.
115915 2005-10-17  Simon Josefsson  <jas@extundo.com>
115917         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115919         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115920         md5.h.
115922         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115924         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115926 2005-10-17  Simon Josefsson  <jas@extundo.com>
115928         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115930 2005-10-17  Simon Josefsson  <jas@extundo.com>
115932         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115934 2005-10-17  Simon Josefsson  <jas@extundo.com>
115936         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115938         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115940 2005-10-17  Bruno Haible  <bruno@clisp.org>
115942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115943         that it can also be used in a test.
115945 2005-10-16  Bruno Haible  <bruno@clisp.org>
115947         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115948         TESTS_ENVIRONMENT, so that individual tests can augment it.
115950         * gnulib-tool (func_create_testdir): Use an intermediate target for
115951         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115952         macros, like $(ALLOCA_H), which cannot be passed through the command
115953         line.
115955 2005-10-15  Simon Josefsson  <jas@extundo.com>
115957         * modules/rijndael-tests: New file.
115959         * modules/rijndael: New file.
115961 2005-10-15  Simon Josefsson  <jas@extundo.com>
115963         * m4/rijndael.m4: New file.
115965 2005-10-15  Simon Josefsson  <jas@extundo.com>
115967         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115969         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115971 2005-10-14  Simon Josefsson  <jas@extundo.com>
115973         * tests/test-arcfour.c: New file.
115975         * modules/arcfour, modules/arcfour-tests: New files.
115977 2005-10-14  Simon Josefsson  <jas@extundo.com>
115979         * m4/arcfour.m4: New file.
115981 2005-10-14  Simon Josefsson  <jas@extundo.com>
115983         * lib/arcfour.h, lib/arcfour.c: New files.
115985 2005-10-14  Roland McGrath  <roland@redhat.com>
115987         Import from libc.  [BZ #1331]
115988         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115989         macro argument.
115990         Reported by Matej Vela <vela@debian.org>.
115992 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115994         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115995         include <wchar.h>; no longer needed.
115997 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115999         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
116001 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
116002         and  Ulrich Drepper  <drepper@redhat.com>
116004         Import from libc.
116005         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
116006         instead of inline stream orientation test and two separate
116007         function calls.  Pay no attention to USE_IN_LIBIO.
116009 2005-10-13  Simon Josefsson  <jas@extundo.com>
116011         * modules/gc-hmac-md5-tests: New file.
116013         * tests/test-gc-hmac-sha1.c: New file.
116015         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
116017         * modules/gc-hmac-md5-tests: New file.
116019         * tests/test-gc-md5.c: New file.
116021         * modules/gc-md5-tests: New file.
116023 2005-10-13  Simon Josefsson  <jas@extundo.com>
116025         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
116026         Move memory allocation outside of loop.
116028 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
116030         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
116031         intermediate directory is in a read-only file system.  Problem
116032         reported by Eric Blake.
116034 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
116036         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
116038 2005-10-12  Simon Josefsson  <jas@extundo.com>
116040         * tests/test-hmac-sha1.c: New file.
116042         * modules/hmac-sha1-tests: New file.
116044         * modules/hmac-sha1: New file.
116046 2005-10-12  Simon Josefsson  <jas@extundo.com>
116048         * modules/gc-sha1: New file.
116050 2005-10-12  Simon Josefsson  <jas@extundo.com>
116052         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
116054         * tests/test-gc-pbkdf2-sha1.c: New file.
116056 2005-10-12  Simon Josefsson  <jas@extundo.com>
116058         * modules/gc-md5, modules/gc-hmac-md5: New files.
116060         * modules/gc (Files): Remove md5, memxor and hmac files.
116062 2005-10-12  Simon Josefsson  <jas@extundo.com>
116064         * m4/gc-pbkdf2-sha1.m4: New file.
116066         * m4/gc-hmac-sha1.m4: New file.
116068         * m4/gc-sha1: New file.
116070         * m4/hmac-sha1.m4: New file.
116072 2005-10-12  Simon Josefsson  <jas@extundo.com>
116074         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
116076         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
116078 2005-10-12  Simon Josefsson  <jas@extundo.com>
116080         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
116081         suggested by Bruno Haible <bruno@clisp.org>.
116083 2005-10-12  Simon Josefsson  <jas@extundo.com>
116085         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
116087 2005-10-12  Simon Josefsson  <jas@extundo.com>
116089         * lib/gc-pbkdf2-sha1.c: New file.
116091         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
116093 2005-10-12  Simon Josefsson  <jas@extundo.com>
116095         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
116097         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
116099 2005-10-12  Simon Josefsson  <jas@extundo.com>
116101         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
116102         GC_USE_HMAC_MD5, respectively.
116104         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
116105         (gc_md5): Fix typo.
116107         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
116109         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
116111         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
116113 2005-10-12  Bruno Haible  <bruno@clisp.org>
116115         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
116116         Reported by Stepan Kasal <kasal@ucw.cz>.
116118 2005-10-11  Simon Josefsson  <jas@extundo.com>
116120         * tests/test-crc.c: New file.
116122         * modules/crc, modules/crc-tests: New files.
116124 2005-10-11  Simon Josefsson  <jas@extundo.com>
116126         * m4/crc.m4: New file.
116128 2005-10-11  Simon Josefsson  <jas@extundo.com>
116130         * lib/gc.h: Add gc_hash and gc_hash_buffer.
116132         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
116134         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
116136 2005-10-11  Simon Josefsson  <jas@extundo.com>
116138         * lib/crc.h, lib/crc.c: New files.
116140         * lib/gc.h (gc_hash_buffer): Add doc.
116142 2005-10-11  Bruno Haible  <bruno@clisp.org>
116144         * modules/c-strcasestr: New file.
116145         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
116147 2005-10-11  Bruno Haible  <bruno@clisp.org>
116149         * modules/c-strcase: New file.
116150         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
116152 2005-10-11  Bruno Haible  <bruno@clisp.org>
116154         * lib/strcasecmp.c: Include limits.h.
116155         (strcasecmp): Avoid integer overflow on exotic platforms.
116156         * lib/strncasecmp.c: Include limits.h.
116157         (strncasecmp): Avoid integer overflow on exotic platforms.
116158         Reported by Paul Eggert.
116160 2005-10-11  Bruno Haible  <bruno@clisp.org>
116162         * lib/c-strcasestr.h: New file, from GNU gettext.
116163         * lib/c-strcasestr.c: New file, from GNU gettext.
116165 2005-10-11  Bruno Haible  <bruno@clisp.org>
116167         * lib/c-strcase.h: New file, from GNU gettext.
116168         * lib/c-strcasecmp.c: New file, from GNU gettext.
116169         * lib/c-strncasecmp.c: New file, from GNU gettext.
116171 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
116173         * modules/mempcpy (License): GPL -> LGPL.
116174         * modules/strchrnul (License): Likewise.
116175         * modules/sysexits (License): Likewise.
116177 2005-10-08  Simon Josefsson  <jas@extundo.com>
116179         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
116181 2005-10-07  Simon Josefsson  <jas@extundo.com>
116183         * m4/memxor.m4: Remove gl_C_RESTRICT call.
116185 2005-10-06  Simon Josefsson  <jas@extundo.com>
116187         * tests/test-hmac-md5.c: New file.
116189         * modules/hmac-md5-tests: New file.
116191         * modules/hmac-md5: New file.
116193 2005-10-06  Simon Josefsson  <jas@extundo.com>
116195         * m4/hmac-md5.m4: New file.
116197         * m4/memxor.m4: Require gl_C_RESTRICT.
116199 2005-10-06  Simon Josefsson  <jas@extundo.com>
116201         * lib/memxor.c (memxor): Avoid casts and warnings.
116203 2005-10-06  Simon Josefsson  <jas@extundo.com>
116205         * lib/hmac-md5.c: New file.
116207         * lib/hmac.h: New file.
116209 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116211         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
116212         promotes to int, not unsigned int, to catch the AIX 5.3
116213         compiler bug.
116215 2005-10-05  Simon Josefsson  <jas@extundo.com>
116217         * modules/memxor: New file.
116219         * modules/iconv (Files): Move config.rpath to havelib, it is used
116220         there.
116222         * modules/havelib (Files): Add config.rpath.
116224 2005-10-05  Simon Josefsson  <jas@extundo.com>
116226         * m4/memxor.m4: New file.
116228 2005-10-05  Simon Josefsson  <jas@extundo.com>
116230         * lib/memxor.c (memxor): Fix compiler error.
116232         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
116233         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
116235         * lib/memxor.h, lib/memxor.c: New files.
116237         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
116238         we assume all systems have it, suggested by Jim Meyering
116239         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
116240         any systems lack sys/socket.h; mingw32 is known to lack it, but we
116241         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
116242         same reasons.
116244 2005-10-05  Simon Josefsson  <jas@extundo.com>
116246         * config/srclist.txt: Add glibc bug 1423 for md5.h.
116248 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
116250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
116251         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
116252         needed, since the source code now assumes these .h files.
116254 2005-10-05  Derek Price  <derek@ximbiot.com>
116256         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
116258 2005-10-05  Bruno Haible  <bruno@clisp.org>
116260         * modules/stdint (License): Change to LGPL.
116262 2005-10-04  Simon Josefsson  <jas@extundo.com>
116264         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
116265         D. Baushke" <mdb@gnu.org>.
116267 2005-10-04  Bruno Haible  <bruno@clisp.org>
116269         * lib/verify.h (verify_true): Provide alternative definition for C++.
116271 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
116273         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
116274         (SSIZE_MAX): New macro, if not already defined.
116275         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
116276         than 2 GiB.
116278 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116280         Sync from coreutils.
116281         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
116282         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
116283         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
116284         ULLONG_MAX doesn't work with 2.7.2.1.
116286 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116288         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
116289         From Ben Pfaff.
116291         * modules/exclude (Depends-on): Depend on verify.
116292         * modules/strtoimax (Depends-on): Likewise.
116293         * modules/utimecmp (Depends-on): Likewise.
116295 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116297         * lib/exclude.c: Include verify.h.
116298         (verify): Remove.  All callers changed to use verify.h's version.
116299         * lib/strtoimax.c: Likewise.
116300         * lib/utimecmp.c: Likewis.e
116302         Sync from coreutils.
116303         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
116304         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
116305         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
116306         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
116307         bother returning ENOSYS if settimeofday or stime fails; just let
116308         them return whatever errno they want to return.
116309         * lib/utimens.c: Include unistd.h, for dup2.
116310         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
116311         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
116313 2005-10-02  Jim Meyering  <jim@meyering.net>
116315         Sync from coreutils.
116316         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
116317         from glibc-2.2.5 that fails for read-only files.
116319 2005-10-02  Jim Meyering  <jim@meyering.net>
116321         Sync from coreutils.
116322         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
116323         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
116324         `#if HAVE_CONFIG_H'.
116325         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
116326         Remove AT_FDCWD test.
116327         Do not consume the fd unless successful.
116328         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
116329         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
116330         block, so that we don't even try to compile it if settimeofday is
116331         available.  This works around a compilation failure on OSF1 V5.1,
116332         due to stime requiring a `long int*' while tv_sec is `int'.
116334 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
116336         Sync from coreutils.
116337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
116338         against `yes', rather than just testing for nonempty.
116340 2005-10-01  Simon Josefsson  <jas@extundo.com>
116342         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
116343         and Darwin.
116345         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
116346         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
116347         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
116348         freeaddrinfo and gai_strerror are declared by the POSIX headers.
116349         Check if struct addrinfo is declared.
116351 2005-10-01  Simon Josefsson  <jas@extundo.com>
116353         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
116354         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
116355         AI_* and EAI_* definitions.  Protect function declarations.
116357 2005-10-01  Jim Meyering  <jim@meyering.net>
116359         Sync from coreutils.
116361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
116362         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
116363         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
116364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116365         in the inet and nsl libraries.  Required on Solaris 5.7.
116367 2005-10-01  Jim Meyering  <jim@meyering.net>
116369         Sync from coreutils.
116370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116371         in the inet and nsl libraries.  Required on Solaris 5.7.
116373 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
116375         * lib/getdelim.c (getdelim): Remove unused variables.
116377 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
116379         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
116380         so that the code works even with ancient cpp.  Portability problem
116381         with GCC 2.7.2.1 reported by Thomas M.Ott.
116383 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
116385         * modules/regex (Depends-on): Add strcase.
116387         * modules/gethostname (Licence): Change from GPL to LGPL, since
116388         gethostname.c is a trivial implementation of a standard library
116389         function.
116390         * modules/poll (License): Change from GPL to LGPL, since it's
116391         derived from LGPL code.
116393 2005-09-27  Jim Meyering  <jim@meyering.net>
116395         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
116396         HAVE_CONFIG_H.
116398         * lib/intprops.h (signed_type_or_expr__): Define.
116399         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
116400         for unsigned types.
116402 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
116404         * lib/verify.h (verify_expr): Remove, replacing with:
116405         (verify_true): New macro that returns true instead of void.
116406         (verify_type__): Remove.
116407         (verify): Use verify_true rather than verify_type__.
116409 2005-09-26  Bruno Haible  <bruno@clisp.org>
116411         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
116412         is necessary.
116413         (lib_SOURCES): Remove mbchar.c.
116414         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
116415         (Files): Add m4/mbrtowc.m4.
116416         * modules/mbiter: Likewise.
116417         * modules/mbuiter: Likewise.
116419 2005-09-26  Bruno Haible  <bruno@clisp.org>
116421         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
116422         compile mbchar.c if they are not both present.
116423         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
116424         * m4/mbiter.m4 (gl_MBITER): Likewise.
116425         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
116426         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
116427         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
116429 2005-09-25  Jim Meyering  <jim@meyering.net>
116431         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
116432         also uses socklen_t.
116434 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
116436         * lib/utimens.c (ENOSYS): Define if not already defined.
116437         (futimens): Support having a null PATH if the file descriptor
116438         is nonnegative.
116440         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
116441         Remove.
116442         (__attribute): Define to empty unless GCC 3.1 or later.
116443         This works around a core dump on OpenBSD 3.4, which has GCC
116444         2.95.3, which dumps core when given __attribute__(()).  It also
116445         simplifies other tests, since we really don't want to bother with
116446         worrying about which ancient version of GCC supported what.
116447         Original problem reported by Yoann Vandoorselaere, with part of
116448         the fix suggested by Derek Price.
116450 2005-09-24  Jim Meyering  <jim@meyering.net>
116452         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
116453         so we can once again use a positive bitfield width of 1 -- now we
116454         don't have to explain why we were using a bitfield width of 2.
116456 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116458         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
116459         and similarly for the other external symbols.  Problem reported
116460         by James Gallager.
116462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
116463         bug reported by Jim Meyering.
116465         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
116466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
116467         not needed, since socklen is a prerequisite module.
116469 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116471         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
116472         Problem reported by Eric Blake.
116473         (getaddrinfo): Initialize se so that it's not garbage.
116474         Redo internal storage allocation so that it doesn't make unportable
116475         assumptions about alignment.
116476         Fix a memory leak.
116478         * lib/utimens.c (futimens): Use futimesat if available.
116479         Prefer it to futimes since it doesn't have the futimes bug.
116481         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
116482         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
116483         Instead, declare a function that returns a pointer to an array,
116484         and use verify_type__ to declare the size of the array.
116485         Problem and germ of a solution reported by Bruno Haible.
116486         (verify_type__): Use 2, not 1, for bitfield size, to avoid
116487         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
116489 2005-09-23  Jim Meyering  <jim@meyering.net>
116491         Sync from coreutils.
116492         Correct build failure (socklen_t not defined) on at least
116493         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
116494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
116496 2005-09-23  Jim Meyering  <jim@meyering.net>
116498         * modules/getaddrinfo (Depends-on): Add socklen.
116500 2005-09-23  Bruno Haible  <bruno@clisp.org>
116502         * tests/test-verify.c: New file.
116504 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116506         Sync from coreutils.
116508         * modules/argmatch (Depends-on): Add verify.
116509         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
116510         unistd-safer.
116511         * modules/save-cwd (Depends-on): Likewise.
116513         * modules/openat (Files): Add lib/openat-die.c.
116514         (Depends-on): Remove error, exitfail.
116515         Add dirname.
116517         * modules/verify: New file.
116518         * MODULES.html.sh (Diagnostics <assert.h>): New section,
116519         with "verify" module.
116521 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116523         Sync from coreutils.
116525         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
116526         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
116527         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
116528         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
116529         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
116530         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
116531         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
116532         Don't bother checking for string.h, stdlib.h, unistd.h.
116533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
116534         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
116535         module's job.
116536         * m4/jm-macros.m4 (gl_MACROS): Likewise.
116537         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
116539         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
116540         (gl_GETDATE): Use it.
116542         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
116544 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116546         Sync from coreutils.
116548         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
116549         stat-time.h.
116550         * lib/argmatch.h: Include verify.h
116551         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
116552         (ARGMATCH_ASSERT): Remove; unused.
116553         * lib/canonicalize.c: Assume STDC_HEADERS.
116554         * lib/exclude.c: Include "strcase.h".
116555         * lib/regex_internal.h [!defined _LIBC]: Likewise.
116556         * lib/getusershell.c: Include stdio--.h rather than stdio.h
116557         and stdio-safer.h.
116558         (getusershell): Call fopen, not fopen_safer.
116559         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
116560         Do not include unistd-safer.h.
116561         (save_cwd): Don't call fd_safer; no longer needed
116562         now that we include fcntl--.h.
116564         * lib/getdate.y (relative_time): New type.
116565         (RELATIVE_TIME_0): New constant.
116566         (parser_control): Use relative_time instead of doing it ourselves.
116567         (%union): Add new relative_time rel member.
116568         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
116569         Now typeless.
116570         (relunit, relunit_snumber): Now of type rel.
116571         (zone, rel, relunit, get_date): Adjust to above changes.
116573         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
116574         Do not include unistd-safer.h.
116575         (getloadavg): Don't call fd_safer; no longer needed
116576         now that we include fcntl--.h.
116578         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
116579         (make_dir_parents): Treat ENOSYS like EEXIST.
116581         Improve quality of diagnostics on restore_cwd failure.
116582         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
116583         (make_dir_parents): Last arg is now int * (for errno), not bool *.
116584         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
116585         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
116586         each time through the loop.  Do not diagnose restore_cwd failure;
116587         that is the caller's job (and perhaps the caller does not care).
116589         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116590         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116591         If the file already exists but is not a directory, don't bother
116592         to try to make its parents.
116593         Close potential file descriptor leak if we can't chdir("/") (!).
116594         Don't always return true if chdir($PWD) fails; return true only
116595         if the requested action was done successfully (except for the
116596         chdir($PWD)).
116597         Don't log final directory unless we actually made it.
116598         Refactor to avoid duplicate code to fix up permissions.
116599         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116601         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116602         to make it a bit faster and (I hope) clearer.
116603         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116604         Fix bug in formats like %2N.
116606         * lib/verify.h: New file.
116608 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116610         Sync from coreutils.
116611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116613 2005-09-22  Jim Meyering  <jim@meyering.net>
116615         Sync from coreutils.
116617         * m4/lstat.m4 (gl_FUNC_LSTAT):
116618         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116619         Remove obsolete comment.
116620         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116621         * m4/xstrtod.m4: Likewise.
116623         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116625 2005-09-22  Jim Meyering  <jim@meyering.net>
116627         Sync from coreutils.
116629         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116631         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116632         the .tm_year member, since otherwise gcc-4.0 would now warn about
116633         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116635         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116636         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116638         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116639         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116640         when run in a time zone for which daylight savings time is in effect
116641         for the starting date.
116643         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116644         stop us from restricting permissions of just-created absolute-named
116645         directories.
116646         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116647         to restore initial working directory.
116648         * lib/mkdir-p.c (make_dir_parents): New parameter:
116649         different_working_dir, to tell caller if/when we change the working
116650         directory and are unable to return to the initial one.
116651         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116652         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116653         `return false'.  This fixes a bug introduced on 2004-07-30.
116655         * lib/openat.c (fdopendir): Be sure to close the supplied
116656         file descriptor before returning.  This makes our replacement
116657         implementation a little closer to Solaris's, where fdopendir
116658         ties the file descriptor to the returned DIR* pointer.
116659         * lib/openat.c (unlinkat): New function.
116660         * lib/openat.h (unlinkat): Add prototype.
116661         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116662         (openat_restore_fail): Rename from openat_restore_die.
116663         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116665         Provide an alternative to exiting immediately upon save_cwd or
116666         restore_cwd failure.  Now, an application can arrange e.g.,
116667         to perform a longjump in that case.
116668         * lib/openat.c: Include dirname.h.
116669         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116670         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116671         and openat_restore_die rather than calling error directly.
116672         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116674         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116675         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116676         define.
116678         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116679         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116680                             int utc, int nanoseconds);
116681         Background:
116682         date should not have to allocate a megabyte of virtual memory to
116683         handle a format argument like +%1048575T.  When implemented with
116684         strftime, it must allocate such a buffer, use strftime to fill it
116685         in, print it, then free it.
116686         With fprintftime, it simply prints everything and exits.
116687         With no need for memory allocation, that's one fewer way to fail.
116688         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116689         optional field width, not before, so we accept %9:z, not %:9z.
116690         (my_strftime): Be sure to use L_('x') for literals.
116692         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116693         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116694         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116695         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116696         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116697         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116698         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116699         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116700         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116701         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116702         * lib/xgethostname.c, lib/xreadlink.c:
116703         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116705         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116706         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116707         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116708         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116709         and don't include <sys/file.h>).
116711 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116713         Sync from coreutils.
116715         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116716         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116717         [!LDAV_DONE]: Avoid unused variable warning.
116719 2005-09-21  Bruno Haible  <bruno@clisp.org>
116721         * lib/unicodeio.h (unicode_to_mb): New declaration.
116723 2005-09-20  Derek Price  <derek@ximbiot.com>
116725         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116726         getaddrinfo.h.
116728 2005-09-20  Bruno Haible  <bruno@clisp.org>
116730         * gnulib-tool: Remove trailing slashes from the values specified for
116731         --source-base, --m4-base, --tests-base, --aux-dir.
116732         Suggested by Simon Josefsson <jas@extundo.com>.
116734 2005-09-20  Bruno Haible  <bruno@clisp.org>
116736         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116737         func_modules_to_filelist, func_import, func_create_testdir): Make all
116738         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116739         change when gnulib-tool is invoked in a different locale.
116741 2005-09-19  Simon Josefsson  <jas@extundo.com>
116743         * m4/socklen.m4: Fix typo.
116745 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116747         Use a consistent style for including <config.h>.
116748         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116749         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116750         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116751         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116752         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116753         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116754         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116755         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116756         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116757         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116758         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116759         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116760         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116761         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116762         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116763         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116764         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116765         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116766         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116767         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116768         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116769         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116770         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116771         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116772         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116773         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116774         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116775         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116776         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116777         lib/xstrtoumax.c, lib/yesno.c:
116778         Standardize inclusion of config.h.
116779         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116780         lib/inttostr.h:  Removed inclusion of config.h from header files.
116781         * lib/inttostr.c:  Adjusted in-tree users.
116782         * lib/timespec.h: Remove superfluous warning to include config.h.
116783         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116784         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116785         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116786         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116787         config.h with HAVE_CONFIG_H.
116789 2005-09-19  Jim Meyering  <jim@meyering.net>
116791         * modules/pathmax (License): Change to LGPL.
116793 2005-09-19  Derek Price  <derek@ximbiot.com>
116795         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116797 2005-09-19  Bruno Haible  <bruno@clisp.org>
116799         * gnulib-tool (import): Provide default for --tests-base.
116801 2005-09-19  Bruno Haible  <bruno@clisp.org>
116803         * doc/quote.texi: New file, extracted from gnulib.texi.
116804         * doc/ctime.texi: New file, extracted from gnulib.texi.
116805         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116806         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116807         * doc/gnulib.texi: Include them.
116809 2005-09-18  Bruno Haible  <bruno@clisp.org>
116811         Portability fix.
116812         * gnulib-tool (func_readlink): New function.
116813         (func_ln_if_changed): Use it.
116815 2005-09-18  Bruno Haible  <bruno@clisp.org>
116817         * gnulib-tool: Support --with-tests also with --import.
116818         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116819         (func_import): Use variables $testsbase and $inctests. Emit a
116820         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116821         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116822         SUBDIRS += $testsdir.
116823         (func_create_testdir): Update.
116825 2005-09-18  Bruno Haible  <bruno@clisp.org>
116827         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116828         instead of $dry_run.
116829         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116830         (func_ln_if_changed): Don't handle dry-run here.
116831         (func_import): In dry-run mode, detect more precisely which actions
116832         would be performed, and don't use "...ing" verbs.
116834 2005-09-18  Bruno Haible  <bruno@clisp.org>
116836         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116837         (func_import): Use join on two temporary files instead of three nested
116838         loops, in order to determine which files are new or old.
116840 2005-09-18  Bruno Haible  <bruno@clisp.org>
116842         * gnulib-tool (func_import): Comment out code that spits out the
116843         new files with --dry-run.
116845 2005-09-18  Bruno Haible  <bruno@clisp.org>
116847         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116849 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116851         * lib/stat-time.h: New file.
116852         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116853         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116854         in a different way.
116855         (timespec_cmp): New function.
116856         * lib/utimecmp.c: Include stat-time.h.
116857         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116858         members exist, not on the obsolescent ST_MTIM_NSEC.
116859         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116861 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116863         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116865 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116867         * MODULES.html.sh (File system functions): Add stat-time.
116868         * modules/stat-time: New file.
116869         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116870         is now done in a different way, by the stat-time module.
116871         * modules/utimecmp (Depends-on): Add stat-time.
116873 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116875         * m4/st_mtim.m4: Remove.  Superseded by...
116876         * m4/stat-time.m4: New file.
116877         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116878         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116880 2005-09-15  Derek Price  <derek@ximbiot.com>
116882         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116884 2005-09-15  Derek Price  <derek@ximbiot.com>
116886         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116887         * lib/regex_internal.c: Ditto, using this...
116888         (__GNUC_PREREQ): ...new macro.
116889         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116890         using...
116891         (__GNUC_PREREQ): ...this new macro.
116893         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116895 2005-09-15  Derek Price  <derek@ximbiot.com>
116896             Paul Eggert  <eggert@cs.ucla.edu>
116898         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116899         changes, consolidating in...
116900         * lib/regex_internal.h: ...this file.
116902 2005-09-13  Jim Meyering  <jim@meyering.net>
116904         * lib/canon-host.c: Filter through gnu indent and reword comments
116905         slightly.
116906         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116908 2005-09-13  Derek Price  <derek@ximbiot.com>
116910         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116911         failure.
116912         Reported by Jim Meyering  <jim@meyering.net>.
116914 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116916         * lib/base64.c: Typo.
116917         (base64_encode): Put b64str in initialized data section.
116919 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116921         Merge glibc and coreutils changes into gnulib, plus a few
116922         extra fixes.
116923         * lib/md5.c: Use #error rather than a string.
116924         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116925         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116926         (__attribute__): Define to empty for non recent-GCC.
116927         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116928         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116929         Renamed from their non-__ counterparts, with new macros replacing
116930         them if not _LIBC.  Add __THROW attribute.
116931         (rol): Remove.
116932         (struct md5_ctx): Align buffer if using GCC.
116933         * lib/sha1.h (struct sha1_ctx): Likewise.
116934         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116935         The old name was backwards.
116936         (NOTSWAP): Remove; not used.
116937         (rol): New macro, moved here from md5.h.
116938         (sha1_process_block): Remove a FIXME that doesn't make sense.
116940 2005-09-12  Derek Price  <derek@ximbiot.com>
116942         Return usable errors from canon-host.
116943         * lib/canon-host.h: New file.
116944         * lib/canon-host.c (canon_host): Wrap...
116945         (canon_host_r): ...this new function, which now relies exclusively on
116946         getaddrinfo.
116947         (ch_strerror): New function.
116948         (last_cherror): New global.
116949         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116950         interface.
116951         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116952         void *.
116953         (freeaddrinfo): Free ai->ai_canonname when set.
116955 2005-09-12  Derek Price  <derek@ximbiot.com>
116957         Make canon-host require getaddrinfo.
116958         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116959         AC_LIBSOURCE canon-host.h.  Call...
116960         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116961         gl_GETADDRINFO.
116962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116964 2005-09-12  Derek Price  <derek@ximbiot.com>
116966         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116967         LGPL.
116968         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116970 2005-09-12  Derek Price  <derek@ximbiot.com>
116972         * lib/gai_strerror.c: Include config.h when available.  Include
116973         getaddrinfo.h before other headers to test interface.
116974         Reported by Larry Jones <lawrence.jones@ugs.com>.
116976 2005-09-12  Derek Price  <derek@ximbiot.com>
116977             Paul Eggert  <eggert@cs.ucla.edu>
116979         * modules/glob (Files): Add glob-libc.h.
116981 2005-09-12  Derek Price  <derek@ximbiot.com>
116982             Paul Eggert  <eggert@cs.ucla.edu>
116984         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116985         glob_.h, glob-libc.h.
116986         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116988 2005-09-12  Derek Price  <derek@ximbiot.com>
116989             Paul Eggert  <eggert@cs.ucla.edu>
116991         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116992         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116993         protecting things that should be done only in gnulib contexts.
116994         * lib/glob_.h: New file, containing only the glob things needed for
116995         gnulib.
116996         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116997         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116998         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116999         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
117000         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
117001         and to respect the namespace rules better.
117003 2005-09-08  Simon Josefsson  <jas@extundo.com>
117005         * modules/socklen: New file.
117007 2005-09-08  Simon Josefsson  <jas@extundo.com>
117009         * m4/socklen.m4: New file.
117011 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117013         * modules/utimens (Files): Add m4/utimbuf.m4, since
117014         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
117015         Reported by Sergey Poznyakoff.
117017 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117019         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
117020         definitions, since that's the preferred style in glibc.
117021         Fix a minor spacing issue, and update copyright notice to match
117022         glibc's.
117024 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117026         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
117028 2005-09-06  Simon Josefsson  <jas@extundo.com>
117030         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
117031         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
117033 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117035         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
117036         warning.
117038 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117040         * config/srclist.txt: Add glibc bug 1302.
117042 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
117044         Change bitset word type from unsigned int to unsigned long int,
117045         as this has better performance on typical 64-bit hosts.
117046         Port bitset code to hosts with unusual word sizes.
117047         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
117048         (build_collating_symbol):
117049         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
117050         argument is a bitset.  This is merely a style issue, but it makes
117051         it clearer that an entire array is expected.
117052         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
117053         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
117054         Port to the case where bitset_word is not the same as unsigned int.
117055         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117056         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
117057         Likewise.
117058         * lib/regexec.c (check_dst_limits_calc_pos_1,
117059         check_subexp_matching_top):
117060         (build_trtable, group_nodes_into_DFAstates):
117061         Likewise.
117062         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
117063         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
117064         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
117065         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
117066         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
117067         * lib/regcomp.c (optimize_subexps, lower_subexp):
117068         Work even if bitset_word has holes in its bitwise representation.
117069         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
117070         * lib/regexec.c (check_dst_limits_calc_pos_1,
117071         check_subexp_matching_top):
117072         Likewise.
117073         * lib/regex_internal.c (re_string_reconstruct):
117074         Don't assume UCHAR_MAX == 255.
117075         * lib/regex_internal.h (bitset_set_all): Likewise.
117076         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
117077         All uses changed.
117078         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
117079         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
117080         All uses changed.
117081         (BITSET_WORD_MAX): New macro.
117082         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
117083         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
117084         (bitset_empty, bitset_copy):
117085         Prefer sizeof (bitset) to multiplying it out ourselves.
117086         (bitset_not_merge): Remove; unused.
117087         (bitset_contain): Return bool, not unsigned int with one bit on.
117088         All callers changed.
117089         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
117090         alignment than re_node_set; do this by defining a new internal
117091         type struct dests_alloc and using it to allocate memory.
117093 2005-09-05  Bruno Haible  <bruno@clisp.org>
117095         * gnulib-tool (func_import): Fix comparison in handling of symbolic
117096         links.
117098 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
117100         * modules/size_max (Makefile.am): Add size_max.h
117102 2005-09-04  Derek Price  <derek@ximbiot.com>
117104         * gnulib-tool (func_import): Fix reversed $symbolic logic.
117106 2005-09-03  Simon Josefsson  <jas@extundo.com>
117108         * gnulib-tool: Fix typo.
117110 2005-09-03  Simon Josefsson  <jas@extundo.com>
117112         * config/srclist.txt: Add glibc bug 1293.
117114 2005-09-03  Derek Price  <derek@ximbiot.com>
117116         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
117117         From Larry Jones <lawrence.jones@ugs.com>.
117119 2005-09-02  Simon Josefsson  <jas@extundo.com>
117121         * modules/socklen: New file.
117123 2005-09-02  Simon Josefsson  <jas@extundo.com>
117125         * modules/havelib: New module.
117127         * modules/gettext, modules/iconv, modules/lock, modules/readline:
117128         Use havelib.
117130 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117132         Check for arithmetic overflow when calculating sizes, to prevent
117133         some buffer-overflow issues.  These patches are conservative, in the
117134         sense that when I couldn't determine whether an overflow was possible,
117135         I inserted a run-time check.
117136         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
117137         macros.
117138         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
117139         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
117140         (re_xnrealloc, re_x2nrealloc): New inline functions.
117141         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
117142         parse_bracket_exp):
117143         (build_equiv_class, build_charclass): Check for arithmetic overflow
117144         in size expression calculations.
117145         * lib/regex_internal.c (re_string_realloc_buffers):
117146         (build_wcs_upper_buffer, re_node_set_add_intersect):
117147         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
117148         (re_dfa_add_node, register_state): Likewise.
117149         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
117150         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
117151         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
117152         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
117154 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117156         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
117157         m4/ulonglong.m4.  Problem reported by Martin Lambers.
117159 2005-09-02  Bruno Haible  <bruno@clisp.org>
117161         Support for lib vs. lib64 distinction on biarch platforms.
117162         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
117163         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
117164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
117166 2005-09-02  Bruno Haible  <bruno@clisp.org>
117168         * gnulib-tool (import): In the other first-use case, provide defaults
117169         as well.
117171 2005-09-02  Bruno Haible  <bruno@clisp.org>
117173         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
117174         patches not yet found in the latest gettext release.
117176 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117178         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
117179         to avoid a collision with bits/local_lim.h in glibc.
117180         All uses changed.  Problem reported by Dmitry V. Levin in
117181         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
117183         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
117184         bugs in int versus size_t comparisons.
117185         (re_string_context_at): Fix bug where the code assumed that
117186         Idx is signed.
117188         Use bool where appropriate.
117189         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
117190         All callers changed.
117191         (calc_eclosure_iter): Likewise, for ROOT arg.
117192         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
117193         (build_charclass_op): Likewise, for NON_MATCH arg.
117194         * lib/regex_internal.c (re_string_allocate, re_string_construct):
117195         (re_string_construct_common): Likewise, for ICASE arg.
117196         * lib/regexec.c (re_search_2_stub, re_search_stub):
117197         Likewise, for RET_LEN arg.
117198         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
117199         (set_regs): Likewise, for FL_BACKTRACK arg.
117200         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
117201         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
117202         (calc_eclosure_iter, parse_bracket_exp):
117203         Use bool for internal variables that are booleans.
117204         * lib/regexec.c (re_search_internal, check_matching,
117205         proceed_next_node):
117206         (set_regs, build_sifted_states, sift_states_bkref):
117207         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
117208         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117209         (find_collation_sequence_value):
117210         Likewise.
117211         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
117212         (re_node_set_compare):
117213         Return bool, not int. All callers changed.
117214         * lib/regexec.c (check_halt_node_context, check_dst_limits):
117215         (build_trtable, check_node_accept): Likewise.
117216         * lib/regex_internal.h: Include stdbool.h.
117218         Fix bugs uncovered when converting to bool.
117219         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
117220         failure instead of charging ahead blindly.
117221         * lib/regex_internal.c (register_state): Likewise.
117222         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
117223         for freeing internal storage.
117224         (group_nodes_into_DFA_states): Use unsigned int, not int, for
117225         bitset pieces used as boolean, to avoid undefined behavior
117226         on hosts that do int overflow checking.
117228 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117230         * config/srclist.txt: Add glibc bugs 1285-1287.
117232 2005-09-01  Jim Meyering  <jim@meyering.net>
117234         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
117235         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
117236         Require gl_STAT_MACROS, too.
117238 2005-09-01  Bruno Haible  <bruno@clisp.org>
117240         * gnulib-tool (import): In the first-use case, provide defaults.
117242 2005-09-01  Bruno Haible  <bruno@clisp.org>
117244         * gnulib-tool (func_import): Remove the .tmp files.
117246 2005-09-01  Bruno Haible  <bruno@clisp.org>
117248         * gnulib-tool (func_import): Fix handling of symbolic links.
117250 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117252         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
117253         old glibc regex code mishandles strings longer than 2**31 bytes.
117254         This patch fixes this when the regex code is used in gnulib
117255         (i.e., outside glibc).
117257         This patch should not affect the use of the regex code inside
117258         glibc.  No doubt this problem also needs to be handled for glibc
117259         as well, but the result will be an incompatible change to the
117260         glibc ABI, and the old ABI will have to be supported too.  That
117261         can be the subject for another patch.
117263         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
117264         governing whether the rest of this patch is active.  By default,
117265         the macro is disabled and the patch has no effect.
117266         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
117267         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
117268         (struct re_pattern_buffer, re_search, re_search_2, re_match):
117269         (re_match_2, re_set_registers): Use the new types.
117270         * lib/regex_internal.h (Idx, re_hashval_t): New types.
117271         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
117272         New macros.
117273         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
117274         (re_string_context_at, bin_tree_t, re_dfastate_t):
117275         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
117276         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
117277         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
117278         (re_string_char_size_at, re_string_wchar_at):
117279         (re_string_elem_size_at):
117280         Use the new types and macros to port to 64-bit hosts.
117281         Use unsigned types for internal values, so that the code
117282         mostly works even for arrays larger than SSIZE_MAX.
117283         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
117284         (search_duplicated_node, calc_eclosure_iter, fetch_number):
117285         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
117286         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
117287         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
117288         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
117289         (calc_inveclosure, parse_dup_op, build_range_exp):
117290         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
117291         (fetch_number, create_token_tree, mark_opt_subexp):
117292         Likewise.
117293         * lib/regex_internal.c (re_string_construct_common,
117294         create_ci_newstate):
117295         (create_cd_newstate, re_string_allocate, re_string_construct):
117296         (re_string_realloc_buffers, build_wcs_upper_buffer):
117297         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117298         (re_string_reconstruct, re_string_peek_byte_case):
117299         (re_string_fetch_byte_case, re_string_context_at):
117300         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117301         (re_node_set_init_copy, re_node_set_add_intersect):
117302         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117303         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117304         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117305         (re_acquire_state, re_acquire_state_context, register_state):
117306         Likewise.
117307         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
117308         search_cur_bkref_entry):
117309         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
117310         (re_search_internal, re_search_2_stub, re_search_stub)
117311         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
117312         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
117313         (update_cur_sifted_state, check_dst_limits):
117314         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117315         (check_subexp_limits, sift_states_bkref, merge_state_array):
117316         (check_subexp_matching_top, get_subexp, get_subexp_sub):
117317         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
117318         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117319         (expand_bkref_cache, check_node_accept_bytes):
117320         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
117321         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
117322         (acquire_init_state_context, check_halt_node_context):
117323         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
117324         (sift_states_backward, clean_state_log_if_needed):
117325         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
117326         (find_recover_state, transit_state_sb, transit_state_mb):
117327         (transit_state_bkref, build_trtable, match_ctx_clean):
117328         Likewise.
117329         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
117330         to work around an assumption that REG_MISSING is negative.
117332         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
117333         (seek_collating_symbol_entry) [defined _LIBC]:
117334         (lookup_collation_sequence_value) [defined _LIBC]:
117335         (build_range_exp, build_collating_symbol) [defined _LIBC]:
117336         Use prototypes rather than old-style function definitions.
117337         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
117338         (transit_state_sb) [0]:
117339         (find_collation_sequence_value) [defined _LIBC]: Likewise.
117341         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
117342         rm_eo.
117344         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
117345         (optimize_subexps, lower_subexp):
117346         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
117347         since the signed shift might overflow.  Use 1u<<31 instead.
117348         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117349         Likewise.
117350         * lib/regexec.c (check_dst_limits_calc_pos_1,
117351         check_subexp_matching_top): Likewise.
117353         * lib/regcomp.c (optimize_subexps, lower_subexp):
117354         Use CHAR_BIT rather than 8, for clarity.
117355         * lib/regexec.c (check_dst_limits_calc_pos_1):
117356         (check_subexp_matching_top): Likewise.
117357         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
117358         have to worry about portability issues when shifting it left.
117359         Remove no-longer-needed test for table_size > 0.
117360         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
117361         in a word, as the resulting behavior is undefined.
117362         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
117363         in one case, a <= should have been an <, and in another case the
117364         whole test was missing.
117365         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
117366         the standard name CHAR_BIT.
117367         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
117368         this is not true on one's complement and signed-magnitude hosts.
117370         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
117371         next_last_offset.
117372         (struct re_dfa_t): Remove unused member states_alloc.
117373         * lib/regcomp.c (init_dfa): Don't initialize unused members.
117375 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117377         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
117378         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
117379         and large-file glibc and in 32-bit large-file Solaris.
117381 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117383         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
117384         lengths fit in regoff_t; this isn't true if regoff_t is the same
117385         width as size_t.
117386         * lib/regex.c (re_search_internal): 5th arg is LAST_START
117387         (= START + RANGE) instead of RANGE.  This avoids overflow
117388         problems when regoff_t is the same width as size_t.
117389         All callers changed.
117390         (re_search_2_stub): Check for overflow when adding the
117391         sizes of the two strings.
117392         (re_search_stub): Check for overflow when adding START
117393         to RANGE; if it occurs, substitute the extreme value.
117395 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117397         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
117399 2005-08-31  Jim Meyering  <jim@meyering.net>
117401         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
117402         a pointer-to-const.
117403         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
117404         (register_state): Likewise.
117405         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
117406         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117407         (group_nodes_into_DFAstates): Likewise.
117409 2005-08-31  Jim Meyering  <jim@meyering.net>
117411         * check-module: Add a FIXME comment.
117413 2005-08-31  Eric Blake  <ebb9@byu.net>
117415         * modules/unistd-safer (Files): Add unistd--.h.
117416         * modules/stdio-safer (Files): Add stdio--.h.
117418 2005-08-31  Derek Price  <derek@ximbiot.com>
117420         * lib/getdelim.c (getdelim): Return EOF on EOF.
117421         Reported by Larry Jones <lawrence.jones@ugs.com>.
117423 2005-08-31  Bruno Haible  <bruno@clisp.org>
117425         Avoid unnecessary diffs in the generated lib/Makefile.am.
117426         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
117427         the generated files.
117428         (func_import): Don't set cmd.
117430 2005-08-31  Bruno Haible  <bruno@clisp.org>
117432         * lib/strstr.c: Include <stddef.h>, for NULL.
117433         * lib/strcasestr.c: Likewise.
117434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117436 2005-08-31  Bruno Haible  <bruno@clisp.org>
117438         * gnulib-tool: New option --macro-prefix.
117439         (func_import): Use macro_prefix.
117440         (import): Handle option --macro-prefix.
117442 2005-08-31  Bruno Haible  <bruno@clisp.org>
117444         * gnulib-tool (import): Rename most ac_* variables to cached_*.
117445         Also use new variables cached_lgpl, cached_libtool.
117447 2005-08-31  Bruno Haible  <bruno@clisp.org>
117449         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
117450         always instantiating them.
117452 2005-08-31  Bruno Haible  <bruno@clisp.org>
117454         * gnulib-tool (func_import): Read the previous cached settings
117455         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
117456         earlier added by gnulib but are now dropped. Warn when a gnulib file
117457         overwrites a non-gnulib file.
117459 2005-08-31  Bruno Haible  <bruno@clisp.org>
117461         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
117462         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
117463         projects that don't keep autogenerated files in CVS. Put into
117464         actioncmd only the specified modules, not the transitive closure.
117466 2005-08-31  Bruno Haible  <bruno@clisp.org>
117468         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
117469         Create directories that shall be filled.
117470         (import): Don't look for gl_* macros in configure.ac. Recurse across
117471         all directories containing a gnulib-cache.m4 files, if meaningful.
117473 2005-08-31  Bruno Haible  <bruno@clisp.org>
117475         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
117476         (import): Set seen_libtool when we see gl_LIBTOOL.
117478 2005-08-31  Bruno Haible  <bruno@clisp.org>
117480         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
117481         declaration macro definitions from generated gnulib.m4.
117483 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
117485         * lib/iconvme.h: Add prototype for iconv_alloc.
117487 2005-08-29  Simon Josefsson  <jas@extundo.com>
117489         * lib/iconvme.c: Fix errno.
117491 2005-08-29  Bruno Haible  <bruno@clisp.org>
117493         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
117494         that it works when the directory contains spaces.
117496 2005-08-29  Bruno Haible  <bruno@clisp.org>
117498         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
117500 2005-08-29  Bruno Haible  <bruno@clisp.org>
117502         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
117503         Emit more advice.
117505 2005-08-29  Bruno Haible  <bruno@clisp.org>
117506         and Stepan Kasal  <kasal@ucw.cz>
117508         * check-module: If more parameters are given, check each of them
117509         separately; add more exceptions, as noted by Jim Meyering.
117510         (check_module): New procedure.
117511         (%exempt_header): Now contains all exceptions.
117513 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
117515         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
117517 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
117519         * lib/iconvme.c: Split iconv_string into iconv_alloc.
117521 2005-08-28  Bruno Haible  <bruno@clisp.org>
117523         * m4/gnulib-tool.m4: New file.
117525 2005-08-27  Jim Meyering  <jim@meyering.net>
117527         * modules/unistd-safer (Files): Add pipe-safer.c.
117528         * modules/fcntl-safer (Files): Add creat-safer.c.
117530 2005-08-27  Jim Meyering  <jim@meyering.net>
117532         * m4/stdlib-safer.m4: New file.  From coreutils.
117533         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
117534         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
117535         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
117536         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
117537         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
117539 2005-08-27  Jim Meyering  <jim@meyering.net>
117541         * lib/fopen-safer.c: Merge minor changes from coreutils.
117542         * lib/dup-safer.c: Likewise.
117543         * lib/fd-safer.c: Likewise.
117545         Merge from coreutils.
117546         * lib/stdio--.h: New file.
117547         * lib/stdlib--.h: New file.
117548         * lib/mkstemp-safer.c: New file.
117550         GNU tar needs these.
117551         * lib/pipe-safer.c: New file.
117552         * lib/creat-safer.c: New file.
117553         * lib/fcntl--.h (creat): Define to creat_safer.
117554         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
117555         * lib/unistd--.h (pipe): Define to pipe_safer.
117556         * lib/unistd-safer.h: Declare pipe_safer.
117558 2005-08-26  Simon Josefsson  <jas@extundo.com>
117560         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
117561         Haible <bruno@clisp.org>.
117563 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
117565         * lib/regex_internal.h: Remove all references to
117566         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
117567         or better.
117568         (bitset_not, bitset_merge, bitset_not_merge):
117569         (bitset_mask, re_string_allocate, re_string_construct):
117570         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
117571         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
117572         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
117573         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
117574         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117575         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117576         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
117577         (re_acquire_state_context):
117578         Remove unnecessary forward decls.
117579         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
117580         Put __attribute at function definition,
117581         now that the function decl has been removed.
117582         * lib/regex_internal.c (re_string_peek_byte_case):
117583         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
117584         Likewise.
117586 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117588         * m4/regex.m4: Add AC_PREREQ(2.50).
117589         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117591 2005-08-25  Simon Josefsson  <jas@extundo.com>
117593         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117594         __fsetlocking.
117596 2005-08-25  Simon Josefsson  <jas@extundo.com>
117598         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117599         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117600         GLIBC specific code.
117602 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117604         Make regex safe for g++.  This fixes one real bug (an "err"
117605         that should have been "*err").  g++ problem reported by
117606         Sam Steingold.
117607         * lib/regex_internal.h (re_calloc): New macro, consistent with
117608         re_malloc etc.  All callers of calloc changed to use re_calloc.
117609         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117610         not int.  All callers changed.
117611         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117612         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117613         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117614         (find_recover_state): Change "err" to "*err"; this fixes what
117615         appears to be a real bug.
117616         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117617         versus int.
117619 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117621         * modules/regex (Depends-on): Add malloc, since the code
117622         assumes that !malloc(0) means failure.
117624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117626         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117628         alloca modernization/simplification for regex.
117629         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117630         needs to be at the start of the file, and can be moved into
117631         regex_internal.h and simplified.
117632         * lib/regex_internal.h: Include <alloca.h>.
117633         (__libc_use_alloca) [!defined _LIBC]: New macro.
117634         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117635         now works outside glibc.
117637 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117639         * config/srclist.txt: Add glibc bugs 1241, 1245.
117641 2005-08-25  Jim Meyering  <jim@meyering.net>
117643         * lib/open-safer.c: Include <config.h>.
117644         Otherwise, we'd lose LARGEFILE support in any file using
117645         e.g. "fcntl--.h"
117647 2005-08-25  Bruno Haible  <bruno@clisp.org>
117649         * m4/minmax.m4: Require autoconf 2.52.
117650         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117651         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117652         alternatives of translit over the alphabet.
117653         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117655 2005-08-24  Simon Josefsson  <jas@extundo.com>
117657         * tests/test-getpass.c: New file.
117659 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117661         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117662         for GNU regex features.
117664 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117666         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117667         * lib/regex.h (regerror): Likewise.
117669         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117670         requires this.  (The code never needed it.)
117672         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117673         All uses of recently-renamed identifiers changed to use the new,
117674         POSIX-compliant names.  The code will build and run just fine
117675         without these changes, but it's better to eat our own dog food
117676         and use the standard-conforming names.
117678         * lib/regex.h: Fix a multitude of POSIX name space violations.
117679         These changes have an effect only for programs that define
117680         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117681         do not change anything for programs compiled in the normal way.
117682         Also, there is no effect on the ABI.
117684         (_REGEX_SOURCE): New macro.
117685         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117686         defined and _GNU_SOURCE is not; this fixes a name space violation.
117688         Rename the following macros to obey POSIX requirements.
117689         The old names are still visible as macros if _REGEX_SOURCE is defined.
117690         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117691         RE_BACKSLASH_ESCAPE_IN_LISTS.
117692         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117693         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117694         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117695         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117696         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117697         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117698         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117699         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117700         (REG_INTERVALS): renamed from RE_INTERVALS.
117701         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117702         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117703         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117704         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117705         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117706         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117707         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117708         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117709         RE_UNMATCHED_RIGHT_PAREN_ORD.
117710         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117711         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117712         (REG_DEBUG): renamed from RE_DEBUG.
117713         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117714         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117715         unusual, since we can't clash with the POSIX REG_ICASE.
117716         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117717         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117718         (REG_NO_SUB): renamed from RE_NO_SUB.
117719         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117720         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117721         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117722         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117723         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117724         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117725         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117726         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117727         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117728         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117729         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117730         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117731         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117732         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117733         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117734         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117735         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117736         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117737         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117738         (REG_FIXED): Renamed from REGS_FIXED.
117739         (REG_NREGS): Renamed from RE_NREGS.
117741         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117742         of other REG_* macros, since POSIX says the user is allowed to
117743         #undef these macros selectively.
117745         (reg_errcode_t): Update comment stating what other tables need
117746         to be consistent.
117748         Rename the following enum values to obey POSIX requirements.
117749         The old names are still visible as macros.
117750         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117751         is not defined, since GNU is supposed to be a superset of POSIX as
117752         much as possible, and since we want reg_errcode_t to be a signed
117753         type for implementation consistency.
117754         (_REG_NOERROR): Renamed from REG_NOERROR.
117755         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117756         (_REG_BADPAT): Renamed from REG_BADPAT.
117757         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117758         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117759         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117760         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117761         (_REG_EBRACK): Renamed from REG_EBRACK.
117762         (_REG_EPAREN): Renamed from REG_EPAREN.
117763         (_REG_EBRACE): Renamed from REG_EBRACE.
117764         (_REG_BADBR): Renamed from REG_BADBR.
117765         (_REG_ERANGE): Renamed from REG_ERANGE.
117766         (_REG_ESPACE): Renamed from REG_ESPACE.
117767         (_REG_BADRPT): Renamed from REG_BADRPT.
117768         (_REG_EEND): Renamed from REG_EEND.
117769         (_REG_ESIZE): Renamed from REG_ESIZE.
117770         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117771         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117772         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117773         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117774         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117776         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117777         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117778         changed.  But support the old name if the new one is not defined
117779         and if _REGEX_SOURCE.
117781         Change the following member names in struct re_pattern_buffer.
117782         The old names are still supported if !_REGEX_SOURCE.
117783         The new names are always supported, regardless of _REGEX_SOURCE.
117784         (re_buffer): Renamed from buffer.
117785         (re_allocated): Renamed from allocated.
117786         (re_used): Renamed from used.
117787         (re_syntax): Renamed from syntax.
117788         (re_fastmap): Renamed from fastmap.
117789         (re_translate): Renamed from translate.
117790         (re_can_be_null): Renamed from can_be_null.
117791         (re_regs_allocated): Renamed from regs_allocated.
117792         (re_fastmap_accurate): Renamed from fastmap_accurate.
117793         (re_no_sub): Renamed from no_sub.
117794         (re_not_bol): Renamed from not_bol.
117795         (re_not_eol): Renamed from not_eol.
117796         (re_newline_anchor): Renamed from newline_anchor.
117798         Change the following member names in struct re_registers.
117799         The old names are still supported if !_REGEX_SOURCE.
117800         The new names are always supported, regardless of _REGEX_SOURCE.
117801         (rm_num_regs): Renamed from num_regs.
117802         (rm_start): Renamed from start.
117803         (rm_end): Renamed from end.
117805         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117806         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117807         Prepend __ to parameter names.
117809         Undo yesterday's changes.
117811 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117813         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117814         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117815         lib/regex.c.
117817 2005-08-24  Jim Meyering  <jim@meyering.net>
117819         Sync from coreutils.
117820         * m4/fcntl-safer.m4: New file.
117822         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117823         and object files for this module.
117825 2005-08-24  Jim Meyering  <jim@meyering.net>
117827         Sync from coreutils.
117828         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117830 2005-08-24  Jim Meyering  <jim@meyering.net>
117832         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117833         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117835 2005-08-24  Jim Meyering  <jim@meyering.net>
117837         * modules/fcntl-safer: New module.
117838         * modules/fts (Depends-on): Add fcntl-safer.
117839         * MODULES.html.sh (File descriptor based Input/Output):
117840         Add fcntl-safer.
117842 2005-08-24  Bruno Haible  <bruno@clisp.org>
117844         Support for unit test modules.
117845         * modules/README: Mention tests modules.
117846         * modules/TEMPLATE-TESTS: New file.
117847         * gnulib-tool: New options --extract-tests-module, --with-tests and
117848         --tests-base (unused for the moment).
117849         (testsbase, inctests): New variables.
117850         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117851         (func_verify_module): Exclude TEMPLATE-TESTS.
117852         (func_verify_nontests_module, func_verify_tests_module): New functions.
117853         (func_get_dependencies): Add implicit dependency for tests modules.
117854         (func_get_tests_module): New function.
117855         (func_modules_transitive_closure): When --with-tests was specified,
117856         include the unit tests as well, unless explicitly avoided.
117857         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117858         (func_emit_tests_Makefile_am): New function.
117859         (func_create_testdir): When --with-tests was specified, emit a
117860         tests/ directory.
117861         * MODULES.html.sh (Future developments): Update.
117863 2005-08-24  Bruno Haible  <bruno@clisp.org>
117865         * modules/tls-tests: New file.
117866         * tests/test-tls.c: New file, from GNU gettext.
117868 2005-08-24  Bruno Haible  <bruno@clisp.org>
117870         * modules/lock-tests: New file.
117871         * tests/test-lock.c: New file, from GNU gettext.
117873 2005-08-24  Bruno Haible  <bruno@clisp.org>
117875         * lib/lock.h: Add multiple inclusion guard.
117876         * lib/tls.h: Add multiple inclusion guard.
117878 2005-08-24  Bruno Haible  <bruno@clisp.org>
117880         * gnulib-tool: Add support for the --aux-dir option to
117881         --create-testdir, --create-megatestdir, --test, --megatest.
117882         (func_create_testdir, func_create_megatestdir): Optionally emit a
117883         AC_CONFIG_AUX_DIR directive.
117884         (create-testdir, create-megatestdir, test, megatest): Provide a
117885         default value for $auxdir.
117887 2005-08-24  Bruno Haible  <bruno@clisp.org>
117889         * gnulib-tool (import): Use compound statement instead of subshell
117890         where possible.
117892 2005-08-24  Bruno Haible  <bruno@clisp.org>
117894         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117896 2005-08-24  Bruno Haible  <bruno@clisp.org>
117898         * gnulib-tool (func_version): Update.
117900 2005-08-24  Bruno Haible  <bruno@clisp.org>
117902         * gnulib-tool (func_import, func_create_testdir,
117903         func_create_megatestdir): Quote all autoconf macro arguments.
117905 2005-08-24  Bruno Haible  <bruno@clisp.org>
117907         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117908         option --force, because --force causes the aclocal.m4 of each
117909         subdirectory to be newer than the corresponding config.h.in.
117911 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117913         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117914         All contents moved to gl_REGEX.
117915         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117916         assume that it does.
117918 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117920         * lib/regex.h (REG_NOSYS)
117921         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117922         Define, since POSIX requires it as of 2001.
117923         (_REG_ENOSYS)
117924         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117925         New private symbol, used to keep the enum signed in all cases.
117926         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117927         Youngman in
117928         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117930         * lib/regex_internal.c (re_string_skip_chars, register_state):
117931         (calc_state_hash):
117932         Remove forward decls; no longer needed now that we use prototypes.
117933         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117934         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117935         (clean_state_log_if_needed): Likewise.
117937 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117939         * config/srclist.txt: Add glibc bugs 1231-1233.
117941 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117943         Fix problems reported by Sam Steingold in
117944         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117945         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117946         assumed that reg_errcode_t is a signed type, which is not
117947         necessarily true if _XOPEN_SOURCE is not defined.
117948         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117949         since some compilers warn about it otherwise.
117951 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117953         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117954         (init_word_char, create_initial_state, duplicate_node_closure):
117955         (fetch_token, peek_token_bracket, build_range_exp):
117956         (build_collating_symbol): Remove forward decls; no longer needed
117957         now that we use prototypes.
117959         * lib/regcomp.c:
117960         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117961         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117962         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117963         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117964         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117965         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117966         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117967         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117968         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117969         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117970         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117971         (build_charclass, build_charclass_op, fetch_number, create_tree):
117972         (create_token_tree, mark_opt_subexp, duplicate_tree):
117973         Use prototypes rather than old-style definitions.
117975         * lib/regex_internal.c:
117976         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117977         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117978         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117979         (re_string_reconstruct, re_string_peek_byte_case):
117980         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117981         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117982         (re_node_set_init_copy, re_node_set_add_intersect):
117983         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117984         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117985         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117986         (re_acquire_state, re_acquire_state_context, register_state):
117987         (create_ci_newstate, create_cd_newstate, free_state):
117988         Likewise.
117989         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117990         re_search_2):
117991         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117992         (re_search_internal, prune_impossible_nodes):
117993         (acquire_init_state_context, check_matching, static):
117994         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117995         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117996         (update_regs, sift_states_backward, build_sifted_states):
117997         (clean_state_log_if_needed, merge_state_array):
117998         (update_cur_sifted_state, add_epsilon_src_nodes):
117999         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
118000         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
118001         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
118002         (find_recover_state, check_subexp_matching_top, transit_state_mb):
118003         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
118004         (check_arrival, check_arrival_add_next_nodes):
118005         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
118006         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
118007         (check_node_accept_bytes, check_node_accept, extend_buffers):
118008         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
118009         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
118010         (sift_ctx_init):
118011         Likewise.
118013         * lib/regex_internal.h:
118014         (re_string_allocate, re_string_construct, re_string_reconstruct):
118015         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
118016         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
118017         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
118018         (re_string_context_at, re_string_peek_byte_case):
118019         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
118020         is defined, since we now use prototypes always.
118022         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
118023         C89 or better.  All uses removed.
118025 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
118027         * config/srclist.txt: Add glibc bugs 1220-1227.
118029 2005-08-20  Jim Meyering  <jim@meyering.net>
118031         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
118032         of unused local, dfa.
118034 2005-08-20  Bruno Haible  <bruno@clisp.org>
118036         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
118038 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118040         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
118041         (re_node_set_insert_last, re_dfa_add_node):
118042         Rename local variables to avoid GCC shadowing warnings.
118044 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118046         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
118047         [defined lint]: Suppress bogus uninitialized-variable warnings.
118049         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
118050         and let the caller return REG_ESPACE if out of space.  This
118051         removes an uninitialied-variable warning with GCC 4.0.1, and also
118052         avoids taking the address of a local variable.  All callers
118053         changed.
118055 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118057         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
118058         $LIBCSRC/posix/regexec.c.
118059         Add glibc bug 1217 for regcomp.c.
118061 2005-08-19  Jim Meyering  <jim@meyering.net>
118063         * lib/regexec.c (proceed_next_node): Redo local variables to
118064         avoid GCC shadowing warnings.
118066 2005-08-18  Bruno Haible  <bruno@clisp.org>
118068         * lib/strstr.c (strstr): Fix return value in multibyte case.
118069         * lib/strcasestr.c (strcasestr): Likewise.
118071 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
118073         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
118075 2005-08-17  Jim Meyering  <jim@meyering.net>
118077         Make the %s format (seconds since the epoch) work for a negative
118078         number and when used with a zero-padded field width, e.g. %015s.
118080         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
118081         label so that it precedes the code to set `digits'.  Otherwise,
118082         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
118083         print `00-22'.  Now, it prints `-0022', as it should.
118085 2005-08-17  Bruno Haible  <bruno@clisp.org>
118087         * modules/strstr (Files): Add m4/mbrtowc.m4.
118088         (Depends-on): Add mbuiter.
118090 2005-08-17  Bruno Haible  <bruno@clisp.org>
118092         * modules/strcasestr: New file.
118093         * MODULES.html.sh (String handling, based on ANSI C 89): Add
118094         strcasestr.
118096 2005-08-17  Bruno Haible  <bruno@clisp.org>
118098         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
118100 2005-08-17  Bruno Haible  <bruno@clisp.org>
118102         * modules/mbuiter: New file.
118103         * MODULES.html.sh (Extended multibyte and wide character utilities):
118104         Add mbuiter.
118106 2005-08-17  Bruno Haible  <bruno@clisp.org>
118108         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
118109         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
118111 2005-08-17  Bruno Haible  <bruno@clisp.org>
118113         * m4/strcasestr.m4: New file.
118115 2005-08-17  Bruno Haible  <bruno@clisp.org>
118117         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
118118         * lib/strstr.c: Completely rewritten, with multibyte locale support.
118120 2005-08-17  Bruno Haible  <bruno@clisp.org>
118122         * lib/strcasestr.h: New file.
118123         * lib/strcasestr.c: New file.
118125 2005-08-17  Bruno Haible  <bruno@clisp.org>
118127         * lib/strcasecmp.c: Use mbuiter.h.
118129 2005-08-17  Bruno Haible  <bruno@clisp.org>
118131         * lib/mbuiter.h: New file.
118133 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
118135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
118136         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
118137         and gl_GETOPT are both invoked via different paths (as happens
118138         with GNU tar CVS because it uses both argp and getopt), the former
118139         wins.
118141 2005-08-16  Bruno Haible  <bruno@clisp.org>
118143         * modules/tls: New file.
118144         * MODULES.html.sh (Multithreading): Add tls.
118146 2005-08-16  Bruno Haible  <bruno@clisp.org>
118148         * modules/strnlen1: New file.
118149         * MODULES.html.sh (String handling): Add strnlen1.
118151 2005-08-16  Bruno Haible  <bruno@clisp.org>
118153         * modules/strcase (Files): Add m4/mbrtowc.m4.
118154         (Depends-on): Add strnlen1, mbchar.
118156 2005-08-16  Bruno Haible  <bruno@clisp.org>
118158         * modules/mbiter: New file.
118159         * MODULES.html.sh (Extended multibyte and wide character utilities):
118160         Add mbiter.
118162 2005-08-16  Bruno Haible  <bruno@clisp.org>
118164         * modules/mbfile: New file.
118165         * MODULES.html.sh (Extended multibyte and wide character utilities):
118166         Add mbfile.
118168 2005-08-16  Bruno Haible  <bruno@clisp.org>
118170         * modules/mbchar: New file.
118171         * MODULES.html.sh (Extended multibyte and wide character utilities):
118172         New section.
118174 2005-08-16  Bruno Haible  <bruno@clisp.org>
118176         * m4/tls.m4: New file, from GNU gettext.
118178 2005-08-16  Bruno Haible  <bruno@clisp.org>
118180         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
118181         always.
118182         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
118184 2005-08-16  Bruno Haible  <bruno@clisp.org>
118186         * m4/mbiter.m4: New file.
118188 2005-08-16  Bruno Haible  <bruno@clisp.org>
118190         * m4/mbfile.m4: New file.
118192 2005-08-16  Bruno Haible  <bruno@clisp.org>
118194         * m4/mbchar.m4: New file.
118196 2005-08-16  Bruno Haible  <bruno@clisp.org>
118198         * lib/tls.h: New file, from GNU gettext.
118199         * lib/tls.c: New file, from GNU gettext.
118201 2005-08-16  Bruno Haible  <bruno@clisp.org>
118203         * lib/strnlen1.h: New file.
118204         * lib/strnlen1.c: New file.
118206 2005-08-16  Bruno Haible  <bruno@clisp.org>
118208         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
118209         (mbi_init): Update.
118210         (mbi_avail, mbi_advance): Let the iteration end before the terminating
118211         NUL byte, not after it.
118213 2005-08-16  Bruno Haible  <bruno@clisp.org>
118215         * lib/strcase.h (strcasecmp): Add note in comments.
118216         * lib/strncasecmp.c: Use code from strcasecmp.c.
118217         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
118218         (strcasecmp): Work correctly in multibyte locales.
118220 2005-08-16  Bruno Haible  <bruno@clisp.org>
118222         * lib/mbiter.h: New file.
118224 2005-08-16  Bruno Haible  <bruno@clisp.org>
118226         * lib/mbfile.h: New file.
118228 2005-08-16  Bruno Haible  <bruno@clisp.org>
118230         * lib/mbchar.h: New file.
118231         * lib/mbchar.c: New file.
118233 2005-08-16  Bruno Haible  <bruno@clisp.org>
118235         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
118236         the valid ones. Makes the comparison operations transitive:
118237         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
118238         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
118240 2005-08-15  Simon Josefsson  <jas@extundo.com>
118242         * modules/ssize_t (License): Change to 'unlimited'.
118244         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
118246 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
118248         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
118249         Add comments for each pending glibc patch.
118251 2005-08-15  Bruno Haible  <bruno@clisp.org>
118253         * lib/regex.h (__restrict_arr): Don't define to __restrict if
118254         __cplusplus is defined.
118256 2005-08-14  Jim Meyering  <jim@meyering.net>
118258         Sync from coreutils.
118260         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
118261         Use the hash-table-based cycle-detection code not just when
118262         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
118263         Reported by James Youngman in
118264         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
118265         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
118266         FTS_TIGHT_CYCLE_CHECK.
118267         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
118268         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
118269         once again.
118270         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
118271         * lib/fts.c (fd_safer): Remove decl.
118272         Include fcntl--.h rather than unistd-safer.h
118273         (fts_safe_changedir): Don't call fd_safer; no longer needed
118274         now that we include fcntl--.h.
118276 2005-08-12  Simon Josefsson  <jas@extundo.com>
118278         * modules/getndelim2: Use ssize_t module.
118279         * modules/getnline: Likewise.
118280         * modules/safe-read: Likewise.
118281         * modules/xreadlink: Likewise.
118283         * modules/ssize_t: New file.
118285 2005-08-12  Simon Josefsson  <jas@extundo.com>
118287         * m4/readline.m4: Look for termcap, curses or ncurses if required.
118289 2005-08-12  Simon Josefsson  <jas@extundo.com>
118291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118292         ssize_t.
118294 2005-08-12  Simon Josefsson  <jas@extundo.com>
118296         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
118297         readline, getdelim and check_version.
118298         (Support for systems lacking ISO C 99: Sizes of integer types):
118299         Add size_max.
118301 2005-08-12  Bruno Haible  <bruno@clisp.org>
118303         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
118305 2005-08-11  Simon Josefsson  <jas@extundo.com>
118307         * modules/readline: New file.
118309         * modules/strnlen (Files): Add strnlen.h.
118311 2005-08-11  Simon Josefsson  <jas@extundo.com>
118313         * m4/readline.m4: New file.
118315 2005-08-11  Simon Josefsson  <jas@extundo.com>
118317         * lib/readline.h, readline.c: New file.
118319 2005-08-11  Simon Josefsson  <jas@extundo.com>
118321         * doc/gnulib.texi (Initial import, Finishing touches): Mention
118322         gl_AVOID.
118324 2005-08-11  Bruno Haible  <bruno@clisp.org>
118326         * lib/strnlen.h (strnlen): Change parameter name to match comment.
118328 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
118330         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
118332 2005-08-10  Simon Josefsson  <jas@extundo.com>
118334         * tests/test-iconvme.c: New file.
118336 2005-08-10  Simon Josefsson  <jas@extundo.com>
118338         * m4/strnlen.m4: New file.
118340         * m4/strndup.m4: Don't check for strnlen declaration, done in
118341         strnlen.m4.
118343 2005-08-10  Simon Josefsson  <jas@extundo.com>
118345         * lib/strndup.c: Use strnlen.h.
118347         * lib/strnlen.h: New file.
118349 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118351         * README: Typos.
118353 2005-08-02  Simon Josefsson  <jas@extundo.com>
118355         * modules/readline: New file.
118357 2005-08-02  Simon Josefsson  <jas@extundo.com>
118359         * modules/getdelim: New file.
118361         * modules/getline: Rewrite, don't use getndelim2.
118363 2005-08-02  Simon Josefsson  <jas@extundo.com>
118365         * m4/getline.m4: Separate out getdelim stuff into separate module.
118367         * m4/getdelim.m4: New file.
118369 2005-08-02  Simon Josefsson  <jas@extundo.com>
118371         * lib/getline.h, getline.c: Rewrite.
118373         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
118375 2005-07-31  Bruno Haible  <bruno@clisp.org>
118377         * lib/lock.h (gl_lock_initializer): New macro.
118378         (gl_lock_define_initialized): Use it.
118379         (gl_rwlock_initializer): New macro.
118380         (gl_rwlock_define_initialized): Use it.
118381         (gl_recursive_lock_initializer): New macro.
118382         (gl_recursive_lock_define_initialized): Use it.
118384 2005-07-30  Karl Berry  <karl@gnu.org>
118386         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
118387         Report from Ben Pfaff, regarding getopt.
118389 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
118391         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
118392         normal way.
118393         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
118394         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
118395         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
118396         (gl_GETOPT): Use the new macros.  Most of the implementation
118397         is moved to the new macros.  This is for programs like Emacs
118398         that don't want all the functionality of gl_GETOPT.
118400 2005-07-26  Bruno Haible  <bruno@clisp.org>
118402         * m4/lock.m4: Update from GNU gettext.
118404 2005-07-26  Bruno Haible  <bruno@clisp.org>
118406         * lib/lock.h: Update from GNU gettext.
118407         * lib/lock.c: Update from GNU gettext.
118409 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
118411         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
118412         obsolescent AC_TRY_RUN.  Include the default includes files, for
118413         'exit'.
118415 2005-07-24  Bruno Haible  <bruno@clisp.org>
118417         * modules/visibility: New file.
118418         * MODULES.html.sh (Misc): Add visibility.
118420 2005-07-24  Bruno Haible  <bruno@clisp.org>
118422         * m4/visibility.m4: New file.
118424 2005-07-24  Bruno Haible  <bruno@clisp.org>
118426         * doc/visibility.texi: New file.
118428 2005-07-22  Bruno Haible  <bruno@clisp.org>
118430         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
118431         $(ALLOCA_H), redundant through BUILT_SOURCES.
118432         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
118433         redundant through BUILT_SOURCES.
118434         * modules/byteswap (Makefile.am): Remove explicit dependency on
118435         $(BYTESWAP_H), redundant through BUILT_SOURCES.
118436         * modules/fnmatch (Makefile.am): Remove explicit dependency on
118437         $(FNMATCH_H), redundant through BUILT_SOURCES.
118438         * modules/getopt (Makefile.am): Remove explicit dependency on
118439         $(GETOPT_H), redundant through BUILT_SOURCES.
118440         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
118441         redundant through BUILT_SOURCES.
118442         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
118443         redundant through BUILT_SOURCES.
118444         * modules/stdbool (Makefile.am): Remove explicit dependency on
118445         $(STDBOOL_H), redundant through BUILT_SOURCES.
118446         * modules/stdint (Makefile.am): Remove explicit dependency on
118447         $(STDINT_H), redundant through BUILT_SOURCES.
118448         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
118449         Remove explicit dependency on $(SYSEXITS_H).
118450         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
118452 2005-07-18  Simon Josefsson  <jas@extundo.com>
118454         * lib/check-version.c (check_version): Accept identical versions too.
118456 2005-07-18  Bruno Haible  <bruno@clisp.org>
118458         * modules/lock: New file.
118459         * MODULES.html.sh (Multithreading): New section.
118461 2005-07-18  Bruno Haible  <bruno@clisp.org>
118463         * m4/lock.m4: New file, from GNU gettext.
118465 2005-07-18  Bruno Haible  <bruno@clisp.org>
118467         * lib/lock.h: New file, from GNU gettext.
118468         * lib/lock.c: New file, from GNU gettext.
118470 2005-07-18  Bruno Haible  <bruno@clisp.org>
118472         * lib/lock.h (gl_once_t): New type.
118473         (gl_once_define, gl_once): New macros.
118474         * lib/lock.c (fresh_once): New variable.
118475         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
118476         functions.
118478 2005-07-16  Simon Josefsson  <jas@extundo.com>
118480         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
118481         workaround, suggested by Bruno.
118483 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118485         * modules/xalloc (Depends-on): Add xalloc-die.
118486         * modules/xvasprintf (Depends-on): Add xalloc-die.
118488 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118490         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
118491         with a minor change.
118493 2005-07-15  Bruno Haible  <bruno@clisp.org>
118495         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
118496         When using lib/poll.c, define poll as rpl_poll.
118498 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
118500         * modules/argp (Depends-on): Remove unlocked-io.
118502 2005-07-14  Derek Price  <derek@ximbiot.com>
118504         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
118505         for glob symlink bug.
118507 2005-07-14  Bruno Haible  <bruno@clisp.org>
118509         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
118510         Instead, test for *_unlocked function declarations directly.
118512 2005-07-11  Simon Josefsson  <jas@extundo.com>
118514         * modules/size_max: New file.
118516         * modules/xsize: Depend on size_max module for size_max.m4.
118518 2005-07-11  Simon Josefsson  <jas@extundo.com>
118520         * lib/size_max.h: New file.
118522 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
118524         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
118525         copyright symbol and the year.
118526         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
118527         (version_etc_va): Use parameterized copyright notice.
118528         Reword to conform to the current GNU coding standards.
118530 2005-07-11  Karl Berry  <karl@gnu.org>
118532         * doc/gnulib.texi (Quoting): new node.
118533         (Initial import): more info, from Patrice.
118535 2005-07-11  Bruno Haible  <bruno@clisp.org>
118537         * gnulib-tool (func_usage): Document option --avoid.
118538         (Command line options): Handle --avoid.
118539         (func_acceptable): New function.
118540         (func_modules_transitive_closure): Use it.
118542 2005-07-11  Bruno Haible  <bruno@clisp.org>
118544         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
118545         Reported by Jim Meyering.
118547 2005-07-10  Bruno Haible  <bruno@clisp.org>
118549         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
118550         Needed when size_t is smaller than 'unsigned int'.
118551         Reported by Paul Eggert.
118553 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118555         * modules/argp (Depends-on): Add unlocked-io
118557 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118559         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
118560         block of defines.
118562 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
118564         * config/srclist.txt: Comment out regcomp.c, since we have a porting
118565         fix now.
118567 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
118568         and Paul Eggert  <eggert@cs.ucla.edu>
118570         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
118571         in wint_t, not wchar_t.  Remove now-unnecessary cast.
118573 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118575         * modules/regex (Files): Add lib/regex_internal.c,
118576         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
118577         (Depends-on): Add extensions.
118578         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
118580 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118582         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
118583         pathconf.
118584         * m4/same.m4 (gl_SAME): Likewise.
118585         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118587         * m4/regex.m4: Adjust to new libc regex implementation.
118588         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118589         all the .c and .h parts of (the new) regex.
118590         Quote the m4 stuff better.
118591         Check for RE_ICASE bug of old gnulib.
118592         Check for REG_STARTEND of recent libc.
118593         Rename local variables from jm_* to gl_*.
118594         Quote operand of "test -f".
118595         Say "recent enough" version of libc, not "version 2".
118596         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118597         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118598         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118599         Remove check for btowc, isascii.
118600         Require AM_LANGINFO_CODESET.
118602 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118604         * lib/regex.c, regex.h: Sync from libc.
118605         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118606         * lib/regexec.c:
118607         New files, synced from libc, except that regex_internal.h
118608         currently has a small porting fix.
118610 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118612         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118613         regex_internal.c, regexec.c.
118614         Add regex_internal.h too, but as a comment, since the libc version
118615         is currently broken in gnulib mode.
118617 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118619         Support programs like Emacs that use gnulib but not gettext.
118620         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118621         * modules/gettext-h: New file.
118622         * modules/gettext (Files): Remove lib/gettext.h.
118623         (Depends-on): Add gettext-h.
118624         (Makefile.am): Remove lib_SOURCES.
118625         * modules/argmatch, modules/c-stack, modules/closeout:
118626         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118627         * modules/execute, modules/file-type, modules/getaddrinfo:
118628         * modules/getopt, modules/human, modules/javacomp:
118629         * modules/javaexec, modules/mkdir-p, modules/obstack:
118630         * modules/openat, modules/pagealign_alloc, modules/pipe:
118631         * modules/quotearg, modules/regex, modules/rpmatch:
118632         * modules/unicodeio, modules/userspec, modules/version-etc:
118633         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118634         * modules/xsetenv:
118635         Depend on gettext-h, not gettext.
118637 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118639         * gnulib-tool (func_import): Add support for 'public domain' license.
118640         * modules/alloca, modules/atexit, modules/memmove:
118641         Now public domain, not GPL.
118642         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118643         * modules/realloc, modules/strerror, modules/strtod:
118644         Now LGPL, not GPL.
118646 2005-07-05  Bruno Haible  <bruno@clisp.org>
118648         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118649         autoconf CVS. Needed for mingw.
118651 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118653         Remove the dependency of the strftime module on the tzset module.
118654         * modules/strftime (Depends-on): Remove dependency on tzset.
118656 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118658         Remove the dependency of the strftime module on the tzset module.
118659         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118660         gl_FUNC_TZSET_CLOBBER.
118662 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118664         Remove the dependency of the strftime module on the tzset module.
118665         * lib/strftime.c (my_strftime)
118666         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118667         Copy the input structure, to work around some of the bug with
118668         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118669         Solaris releases, you should also use the tzset module, but we won't
118670         require it as a dependency any more since we don't want LGPLed code
118671         to depend on GPLed code.
118673 2005-07-02  Jim Meyering  <jim@meyering.net>
118675         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118676         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118677         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118678         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118680 2005-07-02  Jim Meyering  <jim@meyering.net>
118682         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118684 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118686         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118687         declares only 'struct timespec;' (!).
118689 2005-07-01  Jim Meyering  <jim@meyering.net>
118691         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118692         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118693         * lib/save-cwd.c, tempname.c:
118694         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118695         and don't include <sys/file.h>).
118697 2005-06-29  Jim Meyering  <jim@meyering.net>
118699         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118700         type name.  Use the variable name instead.
118701         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118702         Likewise.
118704 2005-06-28  Simon Josefsson  <jas@extundo.com>
118706         * modules/check-version (Files): Add check-version.m4.
118708 2005-06-28  Simon Josefsson  <jas@extundo.com>
118710         * m4/check-version.m4: New file, suggested by Jim Meyering
118711         <jim@meyering.net>.
118713 2005-06-28  Simon Josefsson  <jas@extundo.com>
118715         * lib/check-version.h, lib/check-version.c: New files.
118717 2005-06-28  Simon Josefsson  <jas@extundo.com>
118719         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118720         collision with global variable.  Better indentation.  Don't
118721         increment buffer pointer beyond buffer end.  Based on comments
118722         from Paul Eggert <eggert@cs.ucla.edu>.
118724         * lib/base64.h: Indent.
118726 2005-06-28  Simon Josefsson  <jas@extundo.com>
118728         * doc/gnulib.texi (Library version handling): New section.
118730 2005-06-28  Jim Meyering  <jim@meyering.net>
118732         * check-module (find_included_lib_files): Hard-code another
118733         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118734         but modules/fts-lgpl (correctly) does not list those files.
118736         * modules/canonicalize (Files): Add lib/pathmax.h.
118738 2005-06-25  Simon Josefsson  <jas@extundo.com>
118740         * modules/check-version: New file.
118742 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118744         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118745         initializer of struct addrinfo, as an indication that we don't
118746         care how many members the structure has.
118748 2005-06-24  Derek Price  <derek@ximbiot.com>
118749         and Bruno Haible  <bruno@clisp.org>
118751         Remove stat module & update lstat.
118752         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118753         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118754         * m4/stat.m4: Remove this file.
118756 2005-06-24  Derek Price  <derek@ximbiot.com>
118757         and Bruno Haible  <bruno@clisp.org>
118759         Remove stat module & update lstat.
118760         * lib/stat.c: Remove this file...
118761         (slash_aware_lstat): ...moving this content and its support...
118762         * lib/lstat.c (rpl_lstat): ...into here.
118763         * lib/lstat.h: New file.
118765 2005-06-24  Derek Price  <derek@ximbiot.com>
118766         and Bruno Haible  <bruno@clisp.org>
118768         Remove stat module & update lstat.
118769         * config/srclist.txt (libc sources): Remove stat.
118771 2005-06-24  Derek Price  <derek@ximbiot.com>
118772         and Bruno Haible  <bruno@clisp.org>
118774         Remove stat module & update lstat.
118775         * MODULES.html.sh (stat): Remove.
118776         * MODULES.html: Regenerated.
118777         * modules/lstat (Description): Correct function name.
118778         (Files): Add "lstat.h".
118779         (Depends-on): Remove stat, add xalloc, stat-macros.
118780         * modules/stat: Remove this file.
118781         (Include): Add "lstat.h", remove <sys/stat.h>.
118783 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118785         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118786         (ranged_convert): Don't save conversion in a temporary struct.
118787         This causes a warning with GCC 4.0.0, and anyway in the typical
118788         case it's not worth the extra 100 bytes or so of code.
118789         (ranged_convert, __mktime_internal): When calling a function via a
118790         pointer P, use P () rather than (*P) (), as we now assume C89 or
118791         better.
118793 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118795         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118796         "who -r" failed to give output.  Problem reported by Tim Waugh.
118798         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118799         (xcalloc): Use it to avoid needless tests.
118800         Problem reported by Jim Meyering.
118802 2005-06-20  Derek Price  <derek@ximbiot.com>
118804         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118805         unnecessary for Autoconfs > 2.59c.
118807 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118809         * lib/argp.h (__option_is_short): Check upper limit of
118810         __key. Isprint() requires its argument to have the value
118811         of an unsigned char or EOF.
118813 2005-06-16  Jim Meyering  <jim@meyering.net>
118815         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118816         when either N or S is zero.
118818 2005-06-16  Derek Price  <derek@ximbiot.com>
118820         * m4/bison.m4: Declare YACC & YFLAGS precious.
118822 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118824         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118825         multibyte string or pattern, fall back on unibyte matching.
118826         Problem reported by James Youngman.
118828 2005-06-08  Bruno Haible  <bruno@clisp.org>
118830         * modules/csharpcomp: New file.
118831         * MODULES.html.sh (C#): Add csharpcomp.
118833 2005-06-08  Bruno Haible  <bruno@clisp.org>
118835         * m4/csharpcomp.m4: New file, from GNU gettext.
118837 2005-06-08  Bruno Haible  <bruno@clisp.org>
118839         * lib/csharpcomp.h: New file, from GNU gettext.
118840         * lib/csharpcomp.c: New file, from GNU gettext.
118841         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118843 2005-06-08  Bruno Haible  <bruno@clisp.org>
118845         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118846         warning on mingw.
118848 2005-06-07  Derek Price  <derek@ximbiot.com>
118850         Sync from CVS.
118851         * lib/glob_.h: Indent nested #ifdef.
118853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118855         Sync from coreutils.
118856         Use "file name" when talking about file names, instead of "filename"
118857         or "path", as per the GNU coding standards.
118858         * lib/mkdir-p.c: Renamed from makepath.c.
118859         (make_dir_parents): Renamed from make_path.  All callers changed.
118860         * lib/mkdir-p.h: Likewise.  All includers changed.
118861         * lib/filenamecat.c: Renamed from path-concat.c.
118862         (file_name_concat): Renamed from path_concat.  All callers changed.
118863         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118864         * lib/filenamecat.h: Likewise.  All includers changed.
118865         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118866         in comments or local variable names.
118867         * lib/basename.c: Likewise.
118868         * lib/canonicalize.c, canonicalize.h: Likewise.
118869         * lib/dirname.c, dirname.h: Likewise.
118870         * lib/euidaccess.c: Likewise.
118871         * lib/exclude.c: Likewise
118872         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118873         * lib/fsusage.c, fsuage.h: Likewise.
118874         * lib/fts.c, fts_.h: Likewise.
118875         * lib/getcwd.c: Likewise.
118876         * lib/getloadavg.c: Likewise.
118877         * lib/mkstemp.c: Likewise.
118878         * lib/mountlist.c, mountlist.h: Likewise.
118879         * lib/openat.c, openat.h: Likewise.
118880         * lib/readlink-stub.c: Likewise.
118881         * lib/readutmp.c, readutmp.h: Likewise.
118882         * lib/rename.c: Likewise.
118883         * lib/rmdir.c: Likewise.
118884         * lib/same.c: Likewise.
118885         * lib/savedir.c: Likewise.
118886         * lib/stripslash.c: Likewise.
118887         * lib/tempname.c: Likewise.
118888         * lib/xreadlink.c: Likewise.
118889         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118890         All uses changed.
118891         * lib/exclude.h: Likewise.
118893         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118894         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118895         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118896         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118897         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118898         files have been getting away with it for years (MORE/BSD 4.3
118899         is extinct now).
118900         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118901         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118903         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118904         Define to 256, not 255, as per modern POSIX.
118906 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118908         Sync from coreutils.
118909         Use "file name" when talking about file names, instead of "filename"
118910         or "path", as per the GNU coding standards.
118911         * MODULES.html.sh: mkdir-p renamed from makepath.
118912         filenamecat renamed from path-concat.
118913         * modules/filenamecat: Renamed from modules/path-concat.
118914         (Files): filenamecat.h and filenamecat.c renamed from
118915         path-concat.h and path-concat.c.
118916         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118917         (Include): filenamecat.h, not path-concat.h.
118918         * modules/mkdir-p: Renamed from modules/makepath.
118919         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118920         makepath.c.
118921         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118922         (Include): mkdir-p.h, not makepath.h.
118924 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118926         Sync from coreutils.
118927         * m4/mkdir-p.m4: Renamed from makepath.m4.
118928         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118929         Rename files from makepath.c to mkdir-p.c, and from
118930         makepath.h to mkdir-p.h.
118931         * m4/filenamecat.m4: Renamed from path-concat.m4.
118932         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118933         Rename files from path-concat.c to filenamecat.c,
118934         and from path-concat.h to filenamecat.h.
118935         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118936         "file name" in local variables or comments.
118937         * m4/rename.m4: Likewise.
118939 2005-06-01  Bruno Haible  <bruno@clisp.org>
118941         * modules/csharpexec: New file.
118942         * MODULES.html.sh (C#): New section.
118944 2005-06-01  Bruno Haible  <bruno@clisp.org>
118946         * m4/csharp.m4: New file, from GNU gettext.
118947         * m4/csharpexec.m4: New file, from GNU gettext.
118949 2005-06-01  Bruno Haible  <bruno@clisp.org>
118951         * lib/csharpexec.h: New file, from GNU gettext.
118952         * lib/csharpexec.c: New file, from GNU gettext.
118953         * lib/csharpexec.sh.in: New file, from GNU gettext.
118955 2005-05-31  Derek Price  <derek@ximbiot.com>
118956             Paul Eggert  <eggert@cs.ucla.edu>
118958         Sync from cvs.
118959         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118961 2005-05-31  Derek Price  <derek@ximbiot.com>
118962             Paul Eggert  <eggert@cs.ucla.edu>
118964         Sync from cvs.
118965         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118967 2005-05-29  Derek Price  <derek@ximbiot.com>
118969         * config/srclist.txt (glob_.h, glob.c): Add these files.
118971 2005-05-29  Derek Price  <derek@ximbiot.com>
118973         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118974         * modules/glob: New file.
118975         * modules/getlogin_r: Add link to POSIX spec in description.
118977 2005-05-29  Derek Price  <derek@ximbiot.com>
118978             Paul Eggert  <eggert@cs.ucla.edu>
118980         * m4/glob.m4: New file.
118982 2005-05-29  Derek Price  <derek@ximbiot.com>
118983             Paul Eggert  <eggert@cs.ucla.edu>
118985         * lib/glob_.h, lib/glob.c: New files.
118987 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118989         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118990         * modules/fts-lgpl (Depends-on): Remove gettext.
118992 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118994         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118995         and don't require gt_INTTYPES_PRI.
118997 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118999         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
119001         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
119002         the configuration hassle isn't worth it.
119003         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
119004         (LONGEST_MODIFIER, PRIuMAX): Remove.
119006 2005-05-27  Bruno Haible  <bruno@clisp.org>
119008         * lib/getlogin_r.h: Remove second include of <stddef.h>.
119010 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
119012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
119013         _POSIX_PTHREAD_SEMANTICS for Solaris.
119015 2005-05-25  Derek Price  <derek@ximbiot.com>
119017         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
119019 2005-05-25  Derek Price  <derek@ximbiot.com>
119020             Paul Eggert  <eggert@cs.ucla.edu>
119022         * modules/getlogin_r, m4/getlogin_r.m4: New files.
119023         * lib/getlogin_r.c, getlogin_r.h: New files.
119025 2005-05-25  Bruno Haible  <bruno@clisp.org>
119026             Derek Price  <derek@ximbiot.com>
119028         * lib/getlogin_r.h: Simplify API documentation.
119030 2005-05-23  Derek Price  <derek@ximbiot.com>
119032         * modules/minmax (Files): Add m4/minmax.m4.
119033         (configure.ac): Add gl_MINMAX.
119035 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
119037         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
119038         so that unistd-safer.h (GPL'ed code) need not be included.
119040 2005-05-22  Bruno Haible  <bruno@clisp.org>
119042         * m4/minmax.m4: New file.
119043         Based on a patch by Derek Price <derek@ximbiot.com>.
119045 2005-05-22  Bruno Haible  <bruno@clisp.org>
119047         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
119048         (INT64_MIN): Fix definition.
119049         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
119051         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
119052         NEED_SIGNED_INT_TYPES.
119054         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
119055         HAVE_SYSTEM_INTTYPES.
119057 2005-05-22  Bruno Haible  <bruno@clisp.org>
119059         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
119060         Also include <sys/param.h> if it defines MIN, MAX.
119061         Based on a patch by Derek Price <derek@ximbiot.com>.
119063 2005-05-21  Jim Meyering  <jim@meyering.net>
119065         * modules/fts (Files): Add m4/inttypes-pri.m4.
119066         (Depends-on): Add lstat and remove gettext.  Alphabetize.
119068 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119070         New fts module.
119071         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
119072         (setup_dir, free_dir): New functions.
119073         (enter_dir, leave_dir): Define trivial
119074         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
119075         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
119076         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
119077         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
119078         Move to fts-cycle.c.
119079         (fts_open): Use setup_dir.
119080         (fts_close): Use free_dir.
119081         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
119082         This adds a label and some gotos, but the alternatives were messier.
119083         Check for memory allocation failure when entering a dir.
119084         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
119085         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
119086         (FTS): New member fts_cycle, that is a union that contains the
119087         old active_dir_ht and cycle_state.  All uses changed to mention
119088         fts_cycle.ht and fts_cycle.state.
119089         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
119090         fts.c, with the following changes:
119091         (setup_dir, free_dir): New functions.
119092         (enter_dir): Now returns bool.  Return true if successful, false
119093         if memory exhausted.  All callers changed.
119094         Do not bother partly cleaning up on
119095         memory allocation failure; that is free_dir's job.
119096         However, free ad if hash_insert fails, to avoid memory leak.
119097         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
119098         fts->fts_options to see which union member to use.
119100 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
119103         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
119105 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119107         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
119109 2005-05-20  Jim Meyering  <jim@meyering.net>
119111         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
119112         Now a macro, to pacify GCC.
119114 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
119116         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
119117         of -1.
119119 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
119121         * lib/chown.c (rpl_chown): Return -1 on failure.
119123 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
119125         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
119126         Don't check for stddef.h.
119127         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
119128         don't use its results.
119129         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
119130         since we include them unconditionally.  Don't require
119131         AM_STDBOOL_H, since stdbool is a prerequisite.
119132         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
119133         since we assume C89 or better.
119134         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
119135         as we don't use their results.
119136         Don't check for fchdir, memmove, memset, strrchr, as we use
119137         them unconditionally.
119138         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
119139         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
119141 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
119143         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
119144         Include <stddef.h> unconditionally, since we assume C89 now.
119145         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
119146         * lib/fts.c: Include fts_.h first, to check interface.
119147         Do not include intprops.h; no longer needed.
119148         Include cycle-check.h and hash.h, since fts_.h no longer does.
119149         Remove unnecessary casts of closedir to void.
119150         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
119151         decide whether to decrement nlinks.
119152         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
119153         (FTS): Use struct hash_table * instead of Hash_table, so that
119154         we no longer need to include hash.h here.
119156 2005-05-18  Jim Meyering  <jim@meyering.net>
119158         * modules/dirfd (License): Change to LGPL.  Most of the code
119159         is already in the public domain.
119161 2005-05-18  Jim Meyering  <jim@meyering.net>
119163         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
119164         Reported by Yoann Vandoorselaere.
119166 2005-05-17  Jim Meyering  <jim@meyering.net>
119168         * m4/fts.m4: New file, from coreutils.
119170 2005-05-17  Jim Meyering  <jim@meyering.net>
119172         * lib/fts.c, lib/fts_.h: New files, from coreutils.
119174 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119176         Sync from coreutils.
119177         * m4/unlinkdir.m4: New file.
119179 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119181         Sync from coreutils.
119182         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
119183         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
119184         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
119185         White space changes only.
119186         * lib/makepath.c (make_path): Port to hosts where leading "//" is
119187         special.
119188         * lib/yesno.c: Include getline.h, not ctype.h.
119189         (yesno): Don't remove leading white space; POSIX doesn't allow it.
119190         Use getline to remove arbitrary restriction on response length.
119192 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119194         * config/srclist-update: Spell out "Street" in FSF postal
119195         mail address; this is the style the FSF seems to prefer.
119197         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
119198         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
119199         this updates FSF postal mail address.
119201         Sync from coreutils.
119202         * modules/unlinkdir: New file.
119203         * modules/yesno (Depends-on): Add getline.
119204         * MODULES.html.sh (File system functions): Add unlinkdir.
119206 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119208         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
119209         lib/strsep.h:
119210         Change the initial comment to refer to GPL, not LGPL.
119211         gnulib-tool will change it to LGPL as needed.
119213         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
119214         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
119215         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
119216         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
119217         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
119218         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
119219         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
119220         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
119221         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
119222         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
119223         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
119224         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
119225         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
119226         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
119227         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
119228         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
119229         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
119230         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
119231         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
119232         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
119233         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
119234         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
119235         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
119236         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
119237         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
119238         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
119239         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
119240         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
119241         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
119242         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
119243         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
119244         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
119245         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
119246         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
119247         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
119248         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
119249         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
119250         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
119251         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
119252         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
119253         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
119254         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
119255         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
119256         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
119257         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
119258         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
119259         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
119260         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
119261         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
119262         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
119263         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
119264         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
119265         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
119266         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
119267         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
119268         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
119269         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
119270         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
119271         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
119272         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
119273         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
119274         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
119275         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
119276         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
119277         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
119278         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
119279         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
119280         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
119281         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
119282         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
119283         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
119284         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
119285         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
119286         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
119287         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
119288         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
119289         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
119290         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
119291         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
119292         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
119293         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
119294         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
119295         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
119296         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
119297         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
119298         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
119299         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
119300         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
119301         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
119302         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
119303         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
119304         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
119305         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
119306         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
119307         lib/yesno.c, lib/yesno.h:
119308         Update FSF postal mail address.
119310 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119312         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
119313         tests/test-memmem.c, tests/test-stpncpy.c:
119314         Update FSF postal mail address.
119316 2005-05-13  Bruno Haible  <bruno@clisp.org>
119318         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
119319         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
119320         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
119321         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
119322         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
119323         Add support for 64-bit integers in the MSVC compiler.
119325 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119327         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
119329 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
119331         * gnulib-tool (func_import): Sort and uniquify recommended includes.
119333 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
119335         * doc/getdate.texi (General date syntax): Don't say that date
119336         date --iso-8601=ns generates acceptable dates; it doesn't yet.
119337         Problem reported by Nic Ferrier.
119339 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119341         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
119342         specified in ai_socktype. Fix invalid ai_protocol
119343         check. ai_protocol is usually set to 0 or depending on
119344         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
119345         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
119346         ai_socktype / ai_protocol in the returned addrinfo structure.
119348 2005-05-10  Simon Josefsson  <jas@extundo.com>
119350         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
119351         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119353 2005-05-10  Karl Berry  <karl@gnu.org>
119355         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
119356         (from http://www.gnu.org/licenses).
119357         * doc/COPYING.LIB: also rename to COPYING.LESSER.
119358         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
119359         fdl.texi suffices.
119361 2005-05-10  Karl Berry  <karl@gnu.org>
119363         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
119364         (COPYING.DOC): remove.
119366         * config/srclist-update: new FSF address.
119368 2005-05-10  Derek Price  <derek@ximbiot.com>
119370         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
119371         possible.
119373 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119374             Bruno Haible  <bruno@clisp.org>
119376         * modules/inet_ntop: New file.
119377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119378         inet_ntop.
119380 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119381             Bruno Haible  <bruno@clisp.org>
119383         * m4/inet_ntop.m4: New file.
119385 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119386             Bruno Haible  <bruno@clisp.org>
119388         * lib/inet_ntop.h: New file.
119389         * lib/inet_ntop.c: New file, from glibc with modifications.
119391 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
119393         * modules/time_r (License): Change to LGPL.
119394         * modules/extensions (License): Change to LGPL.  Actually,
119395         the license is more permissive than that, but currently gnulib-tool
119396         doesn't know how to handle more-permissive licenses.
119398         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
119399         Problem reported by Dave Love.
119401 2005-05-08  Jim Meyering  <jim@meyering.net>
119403         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
119404         blank.
119406 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119408         * modules/argmatch (Depends-on): Add stdbool.
119409         * modules/backupfile (Depends-on): Likewise.
119410         * modules/chdir-long (Depends-on): Likewise.
119411         * modules/closeout (Depends-on): Likewise.
119412         * modules/cycle-check (Depends-on): Likewise.
119413         * modules/dirname (Depends-on): Likewise.
119414         * modules/fnmatch (Depends-on): Likewise.
119415         * modules/fsusage (Depends-on): Likewise.
119416         * modules/fwriteerror (Depends-on): Likewise.
119417         * modules/getcwd (Depends-on): Likewise.
119418         * modules/getloadavg (Depends-on): Likewise.
119419         * modules/hard-locale (Depends-on): Likewise.
119420         * modules/makepath (Depends-on): Likewise.
119421         * modules/mountlist (Depends-on): Likewise.
119422         * modules/nanosleep (Depends-on): Likewise.
119423         * modules/posixtm (Depends-on): Likewise.
119424         * modules/quotearg (Depends-on): Likewise.
119425         * modules/readtokens (Depends-on): Likewise.
119426         * modules/readtokens0 (Depends-on): Likewise.
119427         * modules/readutmp (Depends-on): Likewise.
119428         * modules/save-cwd (Depends-on): Likewise.
119429         * modules/strftime (Depends-on): Likewise.
119430         * modules/userspec (Depends-on): Likewise.
119431         * modules/utimecmp (Depends-on): Likewise.
119432         * modules/xgetcwd (Depends-on): Likewise.
119433         * modules/xnanosleep (Depends-on): Likewise.
119434         * modules/xstrtod (Depends-on): Likewise.
119435         * modules/yesno (Depends-on): Likewise.
119437 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
119439         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
119440         needless checks.
119442 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119444         Merge from coreutils.  Among other things,
119445         add bulletproofing for cases where stdin, stdout, or stderr are closed.
119446         * lib/fd-safer.c: New file.
119447         * lib/fcntl-safer.h, open-safer.c: Remove.
119448         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
119449         * lib/dup-safer.c: Include unistd-safer.h first.
119450         Don't include errno.h.
119451         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
119452         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
119453         * lib/file-type.c: Rely on file-type.h change.
119454         * lib/getloadavg.c: Include unistd-safer.h.
119455         (getloadavg): Use safer open.
119456         * lib/getusershell.c: Include "stdio-safer.h".
119457         (getusershell): Use safer fopen.
119458         * lib/long-options.c (long_options): Use NULL rather than 0.
119459         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
119460         'free'.
119461         * lib/modechange.c: Likewise.
119462         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
119463         (MODE_DONE): New constant.
119464         (struct mode_change): Remove 'next' member.
119465         (make_node_op_equals): New function; like the old one of the
119466         same name, except it allocates an array.
119467         (mode_compile, mode_create_from_ref): Use it.
119468         (mode_compile): Allocate result as an array, not a linked list.
119469         Parse octal string ourself, so that we catch mistakes like "+0".
119470         (mode_adjust): Arg is an array, not a linked list.
119471         * lib/modechange.c: Include stat-macros.h, xalloc.h.
119472         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
119473         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
119474         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
119475         Remove.  This is now stat-macros.h's job.
119476         (talloc): Remove.  All callers replaced by xalloc, so that
119477         our invokers don't have to worry about reporting memory failures.
119478         (make_node_op_equals): Remove.
119479         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119480         New constants.
119481         (struct mode_change): Moved here from modechange.h.
119482         (mode_append_entry): Remove.
119483         (mode_compile): Remove MASKED_OPS arg, since it encouraged
119484         apps to have incorrect behavior.  Use simpler algorithm for head
119485         and tail.  Don't futz with umask; that's now the job of mode_adjust.
119486         Detect more invalid usages rather than having somewhat-random behavior.
119487         Don't insert an "a=" action, as that leads to incorrect behavior.
119488         (mode_compile, mode_create_from_ref): Return NULL on error instead
119489         of an enum, since now there's only one way to have an error.  All
119490         callers changed.
119491         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
119492         at the correct time.  Simplify calculation of "+u" and its ilk.
119493         Don't mishandle "+X".
119494         (mode_free): Remove "register" and localize decls.
119495         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119496         (struct mode_change): Move to modechange.c; callers don't
119497         need to see this stuff.
119498         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
119499         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
119500         (mode_change, mode_adjust): Reflect the new signatures noted above.
119501         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
119502         that might redefine system include files.
119503         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
119504         (my_usleep): Use NULL rather than (void *) 0.
119505         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
119506         Use siginterrupt to specify that system calls should be interrupted.
119507         (rpl_nanosleep): Move initialization of suspended closer to call of
119508         my_usleep.
119509         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
119510         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
119511         (desirable_utmp_entry): New function.
119512         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
119513         using x2nrealloc, to simplify logic.
119514         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
119515         size calculation.  Do not assume utmp file is a regular file.
119516         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
119517         (READ_UTMP_CHECK_PIDS): New constant.
119518         * lib/save-cwd.c: Include unistd-safer.h.
119519         (save_cwd): Use fd_safer.
119520         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
119521         [!_LIBC] Include "stat-macros.h" instead.
119522         * lib/unistd-safer.h (fd_safer): New decl.
119524 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119526         * modules/getloadavg (Depends-on): Add unistd-safer.
119527         * modules/getusershell (Depends-on): Add stdio-safer.
119528         * modules/lstat (Depends-on): Remove xalloc.
119529         * modules/mkstemp (Depends-on): Add stat-macros.
119530         * modules/modechange (Depends-on): Remove xstrtol.
119531         Add stat-macros, xalloc.
119532         * modules/save-cwd (Depends-on): Add unistd-safer.
119533         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
119534         * modules/unistd-safer (Files): Add lib/fd-safer.c
119535         (Makefile.am): Remove lib_SOURCES.
119537         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
119538         Remove fcntl-safer; unistd-safer supersedes it.
119540 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119542         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
119543         AC_HEADER_STAT.
119544         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
119545         (gl_PREREQ_CHOWN): Remove.
119546         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
119547         it.  Don't require AC_HEADER_STAT.
119548         (gl_PREREQ_LSTAT): Remove.
119549         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
119550         Don't require AC_HEADER_STAT.
119551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
119552         (gl_PREREQ_RMDIR): Remove.
119553         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
119554         mention stat-macros.h or AC_HEADER_STAT, since we'll make
119555         the stat-macros module a prerequisite.
119556         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
119557         * m4/filemode.m4 (gl_FILEMODE): Likewise.
119558         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
119559         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
119560         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
119561         variable names.
119562         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
119563         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
119564         variable prefixes.
119565         * m4/fcntl-safer.m4: Remove.
119566         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
119567         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
119568         Invoke gl_PREREQ_FD_SAFER.
119569         (gl_PREREQ_FD_SAFER): New macro.
119570         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
119571         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
119572         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
119573         Remove duplicate call to AC_LIBOBJ(readutmp).
119574         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
119576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
119577         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
119579 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119581         * MODULES.html.sh (Misc): Add byteswap.
119583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119585         * modules/getcwd (Depends-on): Add extensions.
119586         * modules/openat (Depends-on): Likewise.
119588 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119590         * modules/byteswap: New file.
119592 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119594         * m4/byteswap.m4: New file.
119596 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119598         * lib/byteswap_.h: New file.
119600 2005-04-25  Karl Berry  <karl@gnu.org>
119602         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119604 2005-04-25  Albert Chin  <china@thewrittenword.com>
119606         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119607         Toolkit C bug.
119609 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119611         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119612         (func_ln_if_changed): Remove forcibly for no error message
119613         in case file does not exist.
119615 2005-04-19  Simon Josefsson  <jas@extundo.com>
119617         * gnulib-tool (Options): Make --symlink mean --symbolic.
119619 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119621         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119623 2005-04-16  Simon Josefsson  <jas@extundo.com>
119625         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119627 2005-04-15  Simon Josefsson  <jas@extundo.com>
119629         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119631 2005-04-15  Simon Josefsson  <jas@extundo.com>
119633         * gnulib-tool: Rename --symlink to --symbolic.
119635 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119637         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119638         symbolic links to files instead of copying/moving.  Add --aux-dir,
119639         specifying directory relative --dir where auxiliary build tools
119640         are placed.
119642 2005-04-14  Bruno Haible  <bruno@clisp.org>
119644         * modules/allocsa (License): Change to LGPL.
119645         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119647 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119649         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119650         that "UTC +1 second" continues to work.  Problem reported
119651         by Dmitry V. Levin.
119652         (relunit_snumber): New rule.
119653         (relunit): Use it.
119655 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119657         * lib/getdate.y (universal_time_zone_table): New constant.
119658         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119659         universal_time_zone_table.
119660         (lookup_zone): Prefer universal_time_zone_table to
119661         local_time_zone_table, so that "GMT" time stamps are allowed in
119662         London during the summer.  Problem reported by Ian Abbott.
119664 2005-04-12  Jim Meyering  <jim@meyering.net>
119666         * lib/human.c (humblock): Set *options even when returning due to
119667         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119668         warning from gcc-4.
119670 2005-04-09  Jim Meyering  <jim@meyering.net>
119672         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119673         -Wuninitialized: initialize tm0.tm_year.
119675 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119677         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119678         count, since there's no maximum.  All uses changed.
119679         Add member dsts_seen.
119680         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119681         not being INT_MAX.
119682         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119683         Use pc_rels_seen to decide whether a date is absolute.
119685         * lib/getdate.y (number): Don't overwrite year.
119686         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119687         check.
119689 2005-04-02  Simon Josefsson  <jas@extundo.com>
119691         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119692         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119694 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119696         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119697         where no absolute path name can be longer than PATH_MAX.
119699 2005-03-27  Jim Meyering  <jim@meyering.net>
119701         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119703 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119705         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119706         "one's complement" -> "ones' complement" in comment, as per Knuth.
119707         "value of type" -> "type or expression" in comment.
119708         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119710 2005-03-26  Jim Meyering  <jim@meyering.net>
119712         Comment nits.
119713         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119714         Correct typos: s/or/of/.
119716 2005-03-26  Jim Meyering  <jim@meyering.net>
119718         * modules/check-include-files: Move to ../ and rename to...
119719         * check-module: ...this.
119721 2005-03-25  Jim Meyering  <jim@meyering.net>
119723         * modules/xvasprintf (Files): Add xalloc.h.
119725 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119727         * modules/gettext (Files): config/config.rpath ->
119728         build-aux/config.rpath
119729         * modules/iconv (Files): Likewise.
119730         Problem reported by Oskar Liljeblad.
119732 2005-03-23  Jim Meyering  <jim@meyering.net>
119734         * modules/check-include-files: New script to check for
119735         missing dependencies, multiple includes, etc.
119737         * modules/c-strtold (Depends-on): Add xalloc.
119738         * modules/c-strtod (Depends-on): Add xalloc.
119739         * modules/hash (Depends-on): Add xalloc.
119740         (Files): Remove lib/xalloc.h.
119742         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119743         * modules/userspec (Files): Add lib/inttostr.h.
119745 2005-03-23  Jim Meyering  <jim@meyering.net>
119747         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119749 2005-03-22  Jim Meyering  <jim@meyering.net>
119751         * modules/stat-macros: New module.
119752         * modules/canonicalize, modules/euidaccess, modules/file-type,
119753         * modules/filemode, modules/lchown, modules/makepath,
119754         * modules/rmdir, modules/stat: Depend on new stat-macros module
119755         rather than listing lib/stat-macros.h manually.
119756         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119758 2005-03-22  Jim Meyering  <jim@meyering.net>
119760         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119762 2005-03-22  Bruno Haible  <bruno@clisp.org>
119764         * config/srclist.txt: Replace target directory 'config' with
119765         'build-aux'.
119766         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119767         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119768         ../build-aux/.
119770 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119772         * modules/chdir-long (Depends-on): Add mempcpy.
119774         * modules/acl, modules/backupfile, modules/c-strtod,
119775         modules/c-strtold, modules/canon-host, modules/canonicalize,
119776         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119777         modules/exclude, modules/exitfail, modules/file-type,
119778         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119779         modules/getdate, modules/getline, modules/getpagesize,
119780         modules/getpass, modules/getugroups, modules/group-member,
119781         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119782         modules/inttostr, modules/long-options, modules/makepath,
119783         modules/md5, modules/memcasecmp, modules/memcoll,
119784         modules/modechange, modules/mountlist, modules/path-concat,
119785         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119786         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119787         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119788         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119789         modules/strftime, modules/strndup, modules/strverscmp,
119790         modules/timespec, modules/unlocked-io, modules/userspec,
119791         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119792         modules/yesno:
119793         Remove lib_SOURCES line from Makefile.am section, as this is now
119794         done automatically by the corresponding Autoconf macro.
119796 2005-03-21  Jim Meyering  <jim@meyering.net>
119798         Changes imported from coreutils.
119800         * lib/cycle-check.c: Don't include xalloc.h.
119802         * lib/path-concat.c: Don't include assert.h.
119803         (path_concat): Remove assertion that would have triggered
119804         for ABASE starting with more than one slash.
119805         Reported by Andreas Schwab.
119807         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119808         properly when ABASE is an absolute file name.
119809         Correct the description of this function.
119810         Include <assert.h>.
119811         Add an assertion and a test driver.
119812         This fixes a bug introduced on 2004-07-02.
119813         Andreas Schwab reported the resulting failure of cp --parents:
119814         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119816 2005-03-21  Jim Meyering  <jim@meyering.net>
119818         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119819         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119821 2005-03-21  Jim Meyering  <jim@meyering.net>
119822         and  Paul Eggert  <eggert@cs.ucla.edu>
119824         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119825         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119826         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119827         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119828         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119829         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119830         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119831         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119832         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119833         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119834         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119835         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119836         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119837         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119838         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119839         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119840         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119841         for these modules.
119843 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119845         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119846         (which shouldn't happen), generate nothing instead of returning 0
119847         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119849 2005-03-16  Bruno Haible  <bruno@clisp.org>
119851         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119852         HAVE_LONGLONG_64BIT.
119854 2005-03-16  Bruno Haible  <bruno@clisp.org>
119856         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119857         HAVE_LONGLONG_64BIT.
119859 2005-03-16  Bruno Haible  <bruno@clisp.org>
119861         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119862         HAVE_LONGLONG_64BIT.
119864 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119866         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119867         reliably distinguish strftime failure from empty output on POSIX
119868         hosts.
119870 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119872         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119873         (iconv_string): Don't guess a size-zero buffer, as that might cause
119874         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119875         result would be 'too large', where 'too large' is (heuristically)
119876         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119877         overflow concerns.  This will prevent some unwanted malloc failures
119878         when the inputs are very large.
119880 2005-03-15  Karl Berry  <karl@gnu.org>
119882         * config/srclist.txt (config.rpath): from gettext.
119883         * config/config.rpath: update.
119885 2005-03-15  Bruno Haible  <bruno@clisp.org>
119887         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119888         to 'negate'.
119890         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119891         variable.
119893         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119894         results.
119896 2005-03-14  Simon Josefsson  <jas@extundo.com>
119898         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119899         <fx@gnu.org>.
119901 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119903         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119904         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119905         intprops.h.
119906         * lib/strtol.c: Likewise.
119908 2005-03-14  Jim Meyering  <jim@meyering.net>
119910         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119911         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119912         to be nonzero so that we (and caller) can detect the difference
119913         between a valid zero-length expansion and an error return, even
119914         when the underlying strftime fails before writing anything into
119915         that location.
119917 2005-03-14  Bruno Haible  <bruno@clisp.org>
119919         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119920         Update from GNU gettext 0.14.3.
119922 2005-03-10  Jim Meyering  <jim@meyering.net>
119924         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119926 2005-03-10  Jim Meyering  <jim@meyering.net>
119928         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119929         so that this module works on systems without fchdir.
119931 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119933         Factor int-properties macros into a single file, except for
119934         glibc-related files.
119935         * lib/intprops.h: New file.
119936         * lib/getloadavg.c: Include it instead of limits.h.
119937         (INT_STRLEN_BOUND): Remove.
119938         * lib/human.c: Include intprops.h.
119939         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119940         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119941         302/1000.
119942         * lib/inttostr.h: Include intprops.h instead of limits.h.
119943         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119944         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119945         for consistency with intprops.h.
119946         (time_t_is_integer, twos_complement_arithmetic): Use them.
119947         * lib/sig2str.h: Include <signal.h>, intprops.h.
119948         (INT_STRLEN_BOUND): Remove.
119949         * lib/strftime.c (TYPE_SIGNED): Remove.
119950         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119951         * lib/strtol.c: Adjust comments to match intprops.h.
119952         * lib/userspec.c: Include intprops.h.
119953         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119954         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119955         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119956         instead of rolling our own expressions.
119957         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119959         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119960         instead of int.
119961         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119962         the right thing even if adding 1900 would overflow.  Similarly
119963         for tm_mon + 1 and tm_yday + 1.
119964         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119965         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119966         (DO_SIGNED_NUMBER): New macro.
119967         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119969 2005-03-07  Bruno Haible  <bruno@clisp.org>
119971         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119973 2005-03-07  Bruno Haible  <bruno@clisp.org>
119975         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119977 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119979         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119980         (func_import): Only replace files via --import when they have actually
119981         changed.
119983 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119985         * m4/mmap-anon.m4: New file.
119986         * m4/pagealign_alloc.m4: New file.
119988 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119989             Bruno Haible  <bruno@clisp.org>
119991         * modules/pagealign_alloc: New file.
119992         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119994 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119995             Bruno Haible  <bruno@clisp.org>
119997         * lib/pagealign_alloc.h: New file.
119998         * lib/pagealign_alloc.c: New file.
120000 2005-03-03  Bruno Haible  <bruno@clisp.org>
120002         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
120003         Use an all-permissive copyright notice, recommended by RMS.
120005 2005-03-02  Bruno Haible  <bruno@clisp.org>
120007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
120008         of AIX, the replacement has to be done only after <string.h> is
120009         included, therefore not in config.h. stpncpy.h does the replacement,
120010         and stpncpy.c uses it.
120012 2005-03-02  Bruno Haible  <bruno@clisp.org>
120014         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
120015         stpncpy.c uses it.
120017 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120019         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
120020         The workaround isn't strictly needed for POSIX conformance, and
120021         it's too much of a pain to configure and maintain.  We'll ask
120022         people to fix their kernels instead.
120023         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
120024         (NANOSLEEP_BUG_WORKAROUND): Remove.
120025         (xnanosleep): Remove the workaround.
120027 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120029         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
120030         Reported by Derek Price.
120031         (Include): Add "timespec.h".
120033         * modules/xnanosleep (Depends-on): Remove gethrxtime.
120035 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120037         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
120038         to detect nanosleep bug.
120040 2005-03-01  Bruno Haible  <bruno@clisp.org>
120042         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
120044 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
120046         * modules/gethrxtime: New file.
120047         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
120048         (Depends-on): Add gethrxtime.
120049         (configure.ac): Add gl_XNANOSLEEP.
120050         (Makefile.am): Remove lib_SOURCES line.
120052 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
120054         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
120055         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
120057 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
120059         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
120060         * lib/timespec.h (gettime): Return void, since it always
120061         succeeds now.  All uses changed.
120062         * lib/gettime.c (gettime): Likewise.
120063         [HAVE_NANOTIME]: Prefer nanotime.
120064         Assume gettimeofday succeeds, as POSIX requires.
120065         Assime time () succeeds, since other code already does.
120066         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
120067         (timespec_subtract): Remove.
120068         (NANOSLEEP_BUG_WORKAROUND): New constant.
120069         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
120070         things considerably.  Use it only on GNU/Linux hosts, since the
120071         workaround shouldn't be needed elsewhere.
120073 2005-02-24  Bruno Haible  <bruno@clisp.org>
120075         * modules/gettext (Files): Add m4/glibc2.m4.
120077 2005-02-24  Bruno Haible  <bruno@clisp.org>
120079         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
120080         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
120081         * m4/progtest.m4:
120082         Update from GNU gettext 0.14.2.
120083         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
120085 2005-02-24  Bruno Haible  <bruno@clisp.org>
120087         * lib/localcharset.c: Update from GNU gettext 0.14.2.
120088         * lib/config.charset: Update from GNU gettext 0.14.2.
120090 2005-02-24  Bruno Haible  <bruno@clisp.org>
120092         * lib/gettext.h: Update from GNU gettext 0.14.2.
120094 2005-02-23  Simon Josefsson  <jas@extundo.com>
120096         * m4/iconvme.m4: New file.
120098 2005-02-23  Jim Meyering  <jim@meyering.net>
120100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
120101         change.
120102         Thanks to Bruno Haible for catching it.
120104 2005-02-22  Simon Josefsson  <jas@extundo.com>
120106         * modules/iconvme: New file.
120108         * MODULES.html.sh: Add iconvme.
120110 2005-02-22  Simon Josefsson  <jas@extundo.com>
120112         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
120114 2005-02-22  Simon Josefsson  <jas@extundo.com>
120116         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
120118 2005-02-22  Jim Meyering  <jim@meyering.net>
120120         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
120121         s/ifndef/ifdef/.
120123 2005-02-20  Neil Conway  <neilc@samurai.com>
120125         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
120126         returned by OSX/Darwin if the specified buffer is not large
120127         enough for the hostname.
120129 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120131         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
120132         pass it to _help, otherwise the latter coredumps trying to
120133         dereference state.root_argp.
120135 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120137         * modules/chdir-long (Depends-on): Add memrchr.
120138         * modules/memrchr (Files): Add lib/memrchr.h.
120139         (Include): "memrchr.h".
120141 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120143         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
120145 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120147         * lib/memrchr.h: New file.
120148         * lib/chdir-long.c: Include it.
120149         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
120150         Don't bother including stddef.h.
120152 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
120154         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
120155         inclusion.
120156         Include <sys/types.h>, for dev_t.
120157         (ME_DUMMY, ME_REMOTE): Move from here....
120158         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
120159         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
120160         Dmitry V. Levin.
120161         Include mountlist.h first, to test the interface.
120163 2005-01-29  Bruno Haible  <bruno@clisp.org>
120165         * lib/progname.c (program_name): Initialize.
120166         Needed when linking statically on MacOS X.
120168 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120170         Sync from coreutils.
120171         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
120172         (Depends-on): Add c-strtod.
120173         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
120175 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120177         Sync from coreutils.
120178         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
120180         Remove files that are specific to coreutils.
120181         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
120183 2005-01-28  Bruno Haible  <bruno@clisp.org>
120185         * modules/javacomp: New file.
120186         * MODULES.html.sh (Java): Add javacomp.
120188 2005-01-28  Bruno Haible  <bruno@clisp.org>
120190         * m4/javacomp.m4: New file, from GNU gettext.
120192 2005-01-28  Bruno Haible  <bruno@clisp.org>
120194         * lib/javacomp.sh.in: New file, from GNU gettext.
120195         * lib/javacomp.h: New file, from GNU gettext.
120196         * lib/javacomp.c: New file, from GNU gettext.
120198 2005-01-26  Simon Josefsson  <jas@extundo.com>
120200         * lib/gai_strerror.c: Use GPL in header.
120202 2005-01-26  Bruno Haible  <bruno@clisp.org>
120204         * modules/javaexec: New file.
120205         * MODULES.html.sh (Java): Add javaexec.
120207 2005-01-26  Bruno Haible  <bruno@clisp.org>
120209         * m4/javaexec.m4: New file, from GNU gettext.
120211 2005-01-26  Bruno Haible  <bruno@clisp.org>
120213         * lib/javaexec.sh.in: New file, from GNU gettext.
120214         * lib/javaexec.h: New file, from GNU gettext.
120215         * lib/javaexec.c: New file, from GNU gettext.
120217 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120219         * modules/lchown (Depends-on): Remove lchown.h
120221 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120223         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
120224         must be defined if the header file was not found, in order
120225         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
120227 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120229         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
120230         initializers for struct pentry_state.
120231         (__argp_error): Check return value of __asprintf
120232         (__argp_failure): Translate error message
120234         * lib/argp-parse.c: Removed braces around the expansion of N_()
120236 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
120238         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
120239         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
120240         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
120241         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
120242         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
120243         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
120244         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
120245         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
120246         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
120247         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
120248         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
120249         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
120250         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
120251         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
120252         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
120253         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
120254         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
120255         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
120256         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
120257         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
120258         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
120259         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
120260         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
120261         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
120262         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
120263         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
120264         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
120265         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
120266         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
120267         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
120268         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
120269         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
120270         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
120271         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
120272         xstrtol.m4, xstrtoumax.m4, yesno.m4:
120273         Use an all-permissive copyright notice, recommended by RMS.
120275 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
120277         * modules/chdir-long (Depends-on): Remove mempcpy.
120279 2005-01-21  Jim Meyering  <jim@meyering.net>
120281         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
120282         same value as for Solaris 9.
120284         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
120285         component length.  This included changing the parameter to be
120286         of type `char *' rather than `char const *'.
120287         * lib/chdir-long.h (chdir_long): Update prototype.
120289         * lib/openat.c (fdopendir, fstatat): New functions.
120290         * lib/openat.h: Include headers required for use of DIR and struct
120291         stat.
120292         [AT_SYMLINK_NOFOLLOW]: Define.
120293         (fdopendir, fstatat): Add prototypes.
120295 2005-01-21  Bruno Haible  <bruno@clisp.org>
120297         * modules/classpath: New file.
120298         * MODULES.html.sh (Java): Add classpath.
120300 2005-01-21  Bruno Haible  <bruno@clisp.org>
120302         * lib/classpath.h: New file, from GNU gettext.
120303         * lib/classpath.c: New file, from GNU gettext.
120305 2005-01-20  Simon Josefsson  <jas@extundo.com>
120307         * modules/version-etc-fsf: New file.
120309 2005-01-20  Simon Josefsson  <jas@extundo.com>
120311         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
120312         * lib/version-etc.c: Remove version_etc_copyright.
120313         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
120314         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
120316 2005-01-20  Simon Josefsson  <jas@extundo.com>
120318         * lib/base64.h (isbase64): Add.
120320         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
120321         using a unsigned prototype, don't inline.
120322         (base64_decode): Use it.
120324 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120326         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
120327         it.
120329 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120331         * lib/save-cwd.c (save_cwd): Remove code to support the case
120332         where fchdir is missing or flaky.
120334 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120336         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
120338 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
120340         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
120341         AC_LIBSOURCES now does this.
120342         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
120343         with new ullong_max module.
120345 2005-01-19  Bruno Haible  <bruno@clisp.org>
120347         * modules/sh-quote: New file.
120348         * MODULES.html.sh (Executing programs): Add sh-quote.
120350 2005-01-19  Bruno Haible  <bruno@clisp.org>
120352         * lib/sh-quote.h: New file, from GNU gettext.
120353         * lib/sh-quote.c: New file, from GNU gettext.
120355 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120357         Merge from coreutils.
120358         * m4/ullong_max.m4: New file.
120359         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
120360         (gl_MACROS): Assume localeconv exists.
120362 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120364         Merge changes from coreutils, as described below in several
120365         changelogs dated today.
120367         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
120368         (O_DIRECTORY): Remove; not needed here, since "." must be
120369         a directory.  All uses removed.
120370         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
120371         universal on Suns, and we also need to test for IRIX.
120372         Revamp code to use 'if' rather than '#if'.
120373         Avoid unnecessary comparison of cwd->desc to 0.
120375         * lib/utimens.c (futimens): Robustify the previous patch, by checking
120376         for known valid error numbers rather than observed invalid ones.
120378 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120380         * modules/ullong_max: New file.
120382         * modules/chdir-long, modules/openat: New files.
120383         * modules/save-cwd (Depends-on): Depend on chdir-long.
120384         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
120386 2005-01-18  Jim Meyering  <jim@meyering.net>
120388         Merge from coreutils.
120389         * m4/chdir-long.m4, m4/openat.m4: New files.
120390         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
120391         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
120392         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
120393         is sane and DOES follow symlinks.  Besides, testing 20 different
120394         systems found no broken chown implementations.
120395         Prompted by a change in rsync's copy of this macro.
120396         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
120398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
120400         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
120401         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
120402         NULL-means-set-to-current-time semantics.
120403         Remove temporary file immediately, rather than waiting
120404         for configure's at-exit trap code to do it.
120406 2005-01-18  Jim Meyering  <jim@meyering.net>
120408         * lib/version-etc.c (version_etc_copyright): Update copyright date.
120410         * lib/utimens.c (futimens): Account for the fact that futimes
120411         can also fail with errno == ENOSYS or errno == ENOENT.
120412         Patch from Dmitry V. Levin.
120414         Change the name of the robust chdir function from chdir to chdir_long.
120415         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
120416         (restore_cwd): Use chdir_long, not chdir.
120417         * lib/chdir-long.c: Renamed from chdir.c.
120418         * lib/chdir-long.h: Renamed from chdir.h.
120419         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
120420         Hurd.
120422 2005-01-18  Bruno Haible  <bruno@clisp.org>
120424         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
120425         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
120426         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
120427         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
120428         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
120429         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
120430         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
120431         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
120432         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
120433         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
120434         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
120435         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
120436         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
120437         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
120438         Use an all-permissive copyright notice, recommended by RMS.
120440 2005-01-18  Bob Proulx  <bob@proulx.com>
120442         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
120443         simplify offsetof() macro construct to avoid compile failure with
120444         native HP-UX 11.0 ANSI C compiler.
120446 2005-01-17  Bruno Haible  <bruno@clisp.org>
120448         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
120449         redundant because stpncpy.m4 takes care of it.
120451 2005-01-17  Bruno Haible  <bruno@clisp.org>
120453         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
120455 2005-01-17  Bruno Haible  <bruno@clisp.org>
120457         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
120458         used.
120460 2005-01-17  Bruno Haible  <bruno@clisp.org>
120462         * lib/fwriteerror.h (fwriteerror): Change specification to include
120463         fclose.
120464         * lib/fwriteerror.c: Include <stdbool.h>.
120465         (fwriteerror): At the end, close the file stream. Record whether
120466         stdout was already closed.
120468 2005-01-17  Bruno Haible  <bruno@clisp.org>
120470         * lib/execute.c (environ): Declare if needed.
120471         * lib/pipe.c (environ): Likewise.
120472         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
120474 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120476         * modules/argp: Depend on vsnprintf
120478 2005-01-10  Jim Meyering  <jim@meyering.net>
120480         * modules/closeout (Depends-on): Add atexit.
120482 2005-01-06  Bruno Haible  <bruno@clisp.org>
120484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
120486 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
120488         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
120489         definitions to be after all include files, to avoid collisions.
120490         Problem reported by Bob Proulx.
120492 2005-01-04  Jim Meyering  <jim@meyering.net>
120494         Changes imported from coreutils.
120495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
120496         as the mkstemp template, use a temporary directory and an
120497         8.3-friendly template to avoid trouble on systems like DJGPP.
120498         Reported by Juan M. Guerrero via Stepan Kasal.
120499         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
120500         close. Remove the temporary directory right away, rather than waiting
120501         for configure's at-exit trap code to do it.
120502         Suggestion from Stepan Kasal.
120504 2005-01-01  Simon Josefsson  <jas@extundo.com>
120506         * gnulib-tool: Print #include directives when --import'ing.
120508 2004-12-28  Simon Josefsson  <jas@extundo.com>
120510         * tests/test-base64.c: Include required header files.  Remove
120511         unused variables.
120513 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120515         * modules/error (Depends-on): Remove gettext.
120517 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120519         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
120520         not needed.  This removes a dependency on the gettext module.
120521         [defined _LIBC]: Do not include <libintl.h>; not needed.
120523 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120525         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
120526         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
120528 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120530         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
120531         HAVE_DECL_STRTOLD.
120533 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120535         * modules/getdate (Depends-on): Remove alloca-opt.
120537 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120539         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
120541 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120543         * lib/argp-parse.c: Include <stddef.h>.
120544         (alignof, alignto): New macros.
120545         (parser_init): Don't assume that void * is aligned sufficiently
120546         for struct option.
120548         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
120549         need to extend the stack.
120550         (YYINITDEPTH): New macro, so that the initial stack isn't overly
120551         large.
120553 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120555         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
120557 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120559         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
120560         (2004-10-24) change.  Apparently this was a false alarm.
120562         * modules/getdate: Depend on alloca-opt, not alloca.
120564 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120566         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
120567         Remove now-obsolete comment about AIX.
120568         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
120569         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
120570         (YYMAXDEPTH): New macro.
120572 2004-12-18  Simon Josefsson  <jas@extundo.com>
120574         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
120576 2004-12-18  Bruno Haible  <bruno@clisp.org>
120578         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
120580 2004-12-18  Bruno Haible  <bruno@clisp.org>
120582         * lib/fatal-signal.c (fatal_signals): Make non-const.
120583         (init_fatal_signals): New function.
120584         (uninstall_handlers, install_handlers): Ignore signals that were set to
120585         SIG_IGN.
120586         (at_fatal_signal): Call init_fatal_signals.
120587         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120588         SIG_IGN.
120589         Reported by Paul Eggert.
120591 2004-12-18  Bruno Haible  <bruno@clisp.org>
120593         * doc/alloca.texi: New file.
120594         * doc/alloca-opt.texi: New file.
120596 2004-12-17  Jim Meyering  <jim@meyering.net>
120598         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120599         Otherwise, install-sh could exit with improper exit status when
120600         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120602 2004-12-16  Simon Josefsson  <jas@extundo.com>
120604         * tests/test-base64.c: Add license.
120606 2004-12-15  Stepan Kasal  <address@hidden>
120608         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120610 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120612         * modules/getcwd (Files): Add m4/d-ino.m4.
120613         Suggested by Mark D. Baushke.
120615 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120617         * lib/getdate.y (textint): New member "negative".
120618         (time_zone_hhmm): New function.
120619         Expect 14 shift-reduce conflicts, not 13.
120620         (o_colon_minutes): New rule.
120621         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120622         (yylex): Set the "negative" member of signed numbers.
120624 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120626         * doc/getdate.texi (Time of day items, Time zone items):
120627         Describe new formats +00:00, UTC+00:00.
120629 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120631         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120632         spurious "-l"s.  Problem reported by Stepan Kasal.
120634 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120636         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120637         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120639 2004-12-04  Simon Josefsson  <jas@extundo.com>
120641         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120642         Vandoorselaere <yoann@prelude-ids.org>.
120644 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120646         Changes imported from coreutils.
120647         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120648         exist.
120649         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120651 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120653         Changes imported from coreutils.
120654         * lib/hard-locale.c: Assume <locale.h> exists.
120655         Include "strdup.h".
120656         (GLIBC_VERSION): New macro.
120657         (hard_locale): Assume setlocale exists.
120658         Rewrite to avoid #ifdef.
120659         Use strdup rather than malloc + strcpy.
120660         * lib/human.c: Assume <locale.h> exists.
120661         (human_readable): Assume localeconv exists.
120663 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120665         * modules/hard-locale (Depends-on): Add strdup.
120667 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120669         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120670         convert T2, not T.  (Imported from libc.)
120672 2004-11-30  Simon Josefsson  <jas@extundo.com>
120674         * modules/restrict (License): Change to LGPL.
120676 2004-11-30  Simon Josefsson  <jas@extundo.com>
120678         * m4/restrict.m4: Add copyright and copying conditions.
120680 2004-11-30  Simon Josefsson  <jas@extundo.com>
120682         * m4/base64.m4: New file.
120684 2004-11-30  Simon Josefsson  <jas@extundo.com>
120686         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120687         base64.
120689         * tests/test-base64.c: New file.
120691         * modules/base64: New file.
120693 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120695         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120696         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120698         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120700 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120702         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120703         (__getcwd.c): Don't restore errno; glibc doesn't.
120704         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120705         first, falling back to our code only if its results look suspicious.
120706         Ensure that the resulting buffer is only as large as necessary.
120708         * lib/readutmp.c: Include readutmp.h first.
120709         Include <errno.h>, since readutmp.h no longer does that.
120710         * lib/readutmp.h: Don't include <errno.h>,
120711         <sys/param.h>, <time.h>; not needed to establish interface.
120712         (errno): Remove decl.
120713         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120714         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120715         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120717 2004-11-28  Simon Josefsson  <jas@extundo.com>
120719         * lib/base64.h, base64.c: New file.
120721 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120723         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120725 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120727         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120728         (Depends-on): Remove pathmax, same.  Add mempcpy.
120729         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120730         (Makefile.am): Append getcwd.h to lib_SOURCES.
120731         (Include): Add getcwd.h.
120732         (Maintainer): Change from Jim Meyering to "all, glibc",
120733         since getdate now uses intended-for-glibc code.
120734         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120735         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120737 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120739         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120740         HP's ANSI C compiler.
120741         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120742         Declaring int functions causes warnings on some modern systems and
120743         shouldn't be needed to compile on ancient ones.
120744         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120745         defined.
120747         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120748         with the following changes.
120749         (__set_errno): Parenthesize properly.
120750         Include <stdbool.h>.
120751         (MIN, MAX, MATCHING_INO): New macros.
120752         (__getcwd): Define with prototype, not K&R form.
120753         Use heuristics to allocate default buffer on stack if possible.
120754         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120755         behavior, and to avoid the PATH_MAX limit when computing
120756         ../../../../...
120757         Use MATCHING_INO to compare inode number to file.
120758         Check for arithmetic overflow in size calculations.
120759         Fix bug in reallocation of dot array that caused getcwd to fail
120760         on directories nested deeper than 75.
120761         Be more careful about saving errno on error.
120762         Do not use realloc; use only free+malloc, as this is a bit
120763         more flexible and avoids a needless copy operation.
120764         Do not inspect st_dev and st_ino for symbolic links; POSIX
120765         doesn't specify the latter.
120766         Check for closedir errors.
120767         Avoid needless casts.
120768         Use "#ifdef weak_alias" around weak_alias, to be like other
120769         glibc code.
120770         The following changes to getcwd.c have effect only when used in
120771         gnulib; they have no effect inside glibc proper.
120772         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120773         as alloca isn't used.
120774         (alloca, __alloca): Likewise.
120775         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120776         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120777         unconditionally, as gnulib assumes C89 or better.
120778         Do not include <sys/param.h>.
120779         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120780         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120781         better.
120782         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120783         Include <dirent.h> in a way that is compatible with modern Autoconf.
120784         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120785         New macros, if not already defined.
120786         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120787         Use "_LIBC", not "defined _LIBC", for consistency.
120788         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120789         a mempcpy module.
120790         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120791         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120792         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120793         credit only to Jim Meyering and adjust the copyright dates.
120794         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120795         <stdlib.h>, <unistd.h>, "pathmax.h".
120796         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120797         (INITIAL_BUFFER_SIZE): Remove.
120798         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120800 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120802         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120803         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120804         Use the _ONCE methods, for efficiency.
120805         Check for fcntl.h.  In test program, include <errno.h>
120806         and <fcntl.h> if available.  Remove old K&R cruft from
120807         test program.  Check for common errors in GNU/Linux,
120808         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120809         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120810         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120811         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120812         name accordingly.
120813         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120814         accommodate new getcwd.c.
120815         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120816         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120817         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120818         that's all we need now.
120820 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120822         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120823         argp-parse.c depends on getopt internals, that means we should
120824         always use our getopt, to be on the safe side.
120825         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120826         order not to spoil the result of an eventual previous invocation
120827         of gl_GETOPT_SUBSTITUTE.
120829 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120831         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120832         redefinition warnings. To avoid them, include the defines
120833         in `#if !defined __need_getopt ... #endif'. The only place
120834         where __getopt_argv_const is used is in definitions
120835         of getopt_long and getopt_long_only below, which are as well
120836         protected by `#ifndef __need_getopt'.
120837         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120838         __need_getopt after including <stdio.h> and <unistd.h> These
120839         headers might have defined it.
120841 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120843         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120845 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120847         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120848         (futimens): New function, which uses futimes if available.
120849         (futimens, utimens): Support timespec==NULL, with same semantics
120850         as utime and utimens.
120851         * lib/utimens.h (futimens): New decl.
120853 2004-11-23  Jim Meyering  <jim@meyering.net>
120855         * lib/getopt_.h: Remove trailing blanks.
120857 2004-11-23  Jim Meyering  <jim@meyering.net>
120859         * lib/__fpending.c: Add comment.
120861 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120863         * modules/canonicalize (Depends-on): Add xreadlink.
120864         Problem reported by James Youngman.
120866 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120868         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120869         New macros.
120870         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120871         optopt): Use them instead of invoking ## directly; otherwise, the
120872         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120874 2004-11-19  Bruno Haible  <bruno@clisp.org>
120876         * lib/strtok_r.c: Move comments from here...
120877         * lib/strtok_r.h: ... to here.
120879 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120881         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120882         implementations that mishandle size_t overflow.
120884 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120886         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120887         might fail.  Problem reported by Yoann Vandoorselaere.
120888         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120889         implementations that mishandle size_t overflow.
120891 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120893         * modules/canon-host (Depends-on): Add strdup.
120895 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120897         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120899 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120901         * lib/canon-host.c: Include "strdup.h".
120902         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120903         Use strdup instead of malloc/strcpy to duplicate strings.
120905         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120906         (human_space_before_unit): New constant.
120907         * lib/human.c (human_readable): Support it.
120909         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120910         (xgetcwd): Set errno correctly when failing.
120911         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120912         the failure is actually due to a PATH_MAX problem.
120914         Further getopt changes to make it more likely that glibc will
120915         buy the changes back.
120916         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120917         (getopt): Use it, so to preserve glibc semantic
120918         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120919         when compiling for libc.
120920         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120921         (getopt_long, getopt_long_only): Use it.
120923         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120924         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120925         (getopt): Argv is now char * const *, as per standard.
120926         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120927         not char *__getopt_argv_const *.
120928         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120929         _getopt_long_only_r): Likewise.
120930         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120931         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120932         _getopt_long_r, _getopt_long_only_r): Likewise.
120933         * lib/getopt_.h (__getopt_argv_const): Remove.
120934         (getopt): Argv is now char * const *, as per standard.
120936         * lib/getdate.y (tORDINAL): New token.
120937         (day, relunit): Allow it for relative times.
120938         (relative_time_table): Use tORDINAL for ordinals.
120940 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120942         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120943         Document that "second" isn't allowed as an ordinal number.
120945 2004-11-16  Jim Meyering  <jim@meyering.net>
120947         * modules/closeout (Depends-on): Add fpending.
120949 2004-11-15  Jim Meyering  <jim@meyering.net>
120951         * lib/closeout.c: Include "__fpending.h" once again.
120952         Include <stdbool.h>.
120953         (close_stdout): Don't fail just because stdout was closed initially,
120954         since some programs don't write to stdout in the normal course of
120955         operation (other than --version and --help), and we don't want this
120956         function to make e.g. `touch file >&-' fail.
120957         But do fail if it was closed and someone has tried to write to it.
120958         E.g., `printf foo >&-' must fail.
120960 2004-11-13  Jim Meyering  <jim@meyering.net>
120962         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120964 2004-11-12  Simon Josefsson  <jas@extundo.com>
120966         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120967         small doc fix is still pending.
120969 2004-11-11  Simon Josefsson  <jas@extundo.com>
120971         * modules/strtok_r: New file.
120973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120974         strtok_r.
120976 2004-11-11  Simon Josefsson  <jas@extundo.com>
120978         * m4/strtok_r.m4: New file.
120980         * m4/getopt.m4: Replace opterr.
120982 2004-11-11  Simon Josefsson  <jas@extundo.com>
120984         * lib/strtok_r.h, strtok_r.c: New file.
120986 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120988         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120989         of replacing opterr, getopt, etc.  This should handle the
120990         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120992 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120994         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120995         we can stop lying to compilers about the constness of argv when we
120996         are compiled outside glibc.
120997         (getopt, getopt_long, getopt_long_only): Use it.
120998         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120999         _getopt_internal, getopt): Likewise.
121000         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
121001         _getopt_long_only_r): Likewise.
121002         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
121003         _getopt_long_r, _getopt_long_only_r): Likewise.
121005         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
121006         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
121007         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
121008         the other external symbols.
121009         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
121010         declaration, since the above renaming now works around collisions.
121012 2004-11-11  Jim Meyering  <jim@meyering.net>
121014         * lib/linebreak.c: Remove trailing blanks.
121015         * lib/alloca_.h: Likewise.
121016         * lib/acosl.c: Likewise.
121017         * lib/euidaccess.c: Likewise.
121018         * lib/allocsa.h: Likewise.
121020 2004-11-10  Simon Josefsson  <jas@extundo.com>
121022         * m4/getaddrinfo.m4: New file.
121024 2004-11-10  Simon Josefsson  <jas@extundo.com>
121026         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
121028 2004-11-10  Simon Josefsson  <jas@extundo.com>
121030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121031         getaddrinfo.
121033         * modules/getaddrinfo: New file.
121035 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
121037         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
121039 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
121041         * lib/mktime.c (SHR): New macro, which is a portable
121042         substitute for >> that should work even on Crays.
121043         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
121044         Problem reported by Mark D. Baushke in
121045         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
121046         * lib/getdate.y (SHR): Likewise.
121047         (tm_diff): Use it.
121048         * lib/strftime.c (SHR): Likewise.
121049         (tm_diff): Use it.
121050         * lib/quotearg.c (struct quoting_options): Use unsigned int for
121051         quote_these_too, so that right shifts are well defined.  All uses
121052         changed.
121054 2004-11-10  Jim Meyering  <jim@meyering.net>
121056         Ensure that no close failure goes unreported.
121057         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
121058         return early when it seems there's nothing to flush.
121059         Don't include __fpending.h.
121061 2004-11-10  Jim Meyering  <jim@meyering.net>
121063         * modules/closeout (Depends-on): Remove fpending.
121065 2004-11-10  Jim Meyering  <jim@meyering.net>
121067         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
121069 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
121071         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
121072         gl_FUNC_STRFTIME.
121073         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
121074         and AC_REQUIRE when possible, to avoid duplicate checks.
121075         Check for <wchar.h>.
121077 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
121079         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
121081 2004-11-09  Bruno Haible  <bruno@clisp.org>
121083         * m4/sockpfaf.m4: New file.
121085 2004-11-05  Bruno Haible  <bruno@clisp.org>
121087         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
121088         Reported by Mark D. Baushke <mdb@cvshome.org>.
121090 2004-11-04  Bruno Haible  <bruno@clisp.org>
121092         2004-09-11  Bruno Haible  <bruno@clisp.org>
121093                 * allocsa.valgrind: New file.
121094         2004-02-06  Bruno Haible  <bruno@clisp.org>
121095                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
121096                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
121097                 Reported by Christopher Seip <chris.seip@hp.com>.
121099 2004-11-04  Bruno Haible  <bruno@clisp.org>
121101         * modules/allocsa (Files): Add lib/allocsa.valgrind.
121102         (Makefile.am): Distribute it.
121104 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
121106         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
121107         with errno == ERANGE if the buffer is too small.
121108         Problem reported by Mark D. Baushke.
121110 2004-11-03  Albert Chin  <china@thewrittenword.com>
121111             Paul Eggert  <eggert@cs.ucla.edu>
121113         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
121114         equivalent, substitute $ac_type for equivalent type rather than
121115         blindly using uint32_t *always* which won't work if uint32_t is not
121116         available.  Define _UINT32_T to work around typedef of uint32_t if
121117         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
121118         2.5.1.
121120 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121122         * m4/jm-macros.m4: Sync from coreutils.
121123         (gl_MACROS): Check for mbrlen, for pathchk.
121124         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
121126 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121128         * lib/xreadlink.c (MAXSIZE): New macro.
121129         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
121130         size does not exceed MAXSIZE.  Avoid cast.
121131         As suggested by Mark D. Baushke in
121132         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
121133         if readlink fails with buffer size just under MAXSIZE, try again
121134         with MAXSIZE.
121136 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121138         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
121140 2004-11-02  Derek R. Price  <derek@ximbiot.com>
121141         and  Paul Eggert  <eggert@cs.ucla.edu>
121143         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
121144         (get_date): Overparenthesize to avoid GCC warning.
121146 2004-11-02  Bruno Haible  <bruno@clisp.org>
121148         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
121149         returns void.
121151 2004-11-02  Bruno Haible  <bruno@clisp.org>
121153         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
121154         function returns void.
121156 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121158         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
121159         fflush_unlocked, flockfile, funlockfile, funlockfile,
121160         fputs_unlocked, putc_unlocked.
121162 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121164         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121165         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
121166         already declared.
121168 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121170         * modules/getdate (Files): Add doc/getdate.texi.
121171         (Depends-on): Add setenv, xalloc.
121173 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121175         * lib/getdate.y: Add support for TZ="foo" within a date string.
121176         Fix some bugs near time_t boundaries.  Reject dates with
121177         out-of-range components, e.g., "Sept 31".
121178         Include <stdlib.h>, "setenv.h", "xalloc.h".
121179         (ISDIGIT_LOCALE): Remove; unused.
121180         Note that the TZ and time functions used here are not reentrant.
121181         (mktime_ok, get_tz): New functions.
121182         (TZBUFSIZE): New constant.
121183         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
121184         This requires that we sometimes generate our own TZ="XXX..." setting.
121186 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121188         * doc/getdate.texi: New file, from coreutils with modifications for
121189         the new TZ parsing.
121191 2004-10-27  Derek R. Price  <derek@ximbiot.com>
121193         * lib/mktime.c (not_equal_tm): Remove redundant check.
121195 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121197         * modules/regex (lib_SOURCES): Add regex.c.
121198         Reported by James Youngman in
121199         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
121201 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121203         * lib/getdate.y: Use Bison 1.875 features, and some minor
121204         code cleanups.  This change does not affect semantics.
121205         Don't include <stdlib.h>; no longer needed.
121206         Don't include unlocked-io.h; only the "#if TEST" code uses
121207         stdio, and performance isn't crucial there.
121208         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
121209         Bison 1.875 features as described below.
121210         All uses of "PC." replaced by "pc->".
121211         (YYSTYPE): Add a forward declaration.
121212         (yylex, yyerror): Use full prototypes in forward decls.
121213         Use "%pure-parser" rather than obsolescent "%pure_parser".
121214         Use %parse-param and %lex-param instead of obsolescent
121215         YYPARSE_PARAM and YYLEX_PARAM.
121216         (meridian_table, month_and_day_table, time_units_table,
121217         relative_time_table, time_zone_table, military_table,
121218         lookup_zone, lookup_word, get_date):
121219         Use NULL instead of 0 where appropriate.
121220         (to_hour): Avoid abort (), to avoid a dependency on
121221         stdlib.h.
121222         (yyerror, yylex): Now accepts parser_control * arg.
121223         (main) [TEST]: Use '\0' rather than 0 for char.
121225 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121227         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
121229 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121231         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
121232         It's now the caller's responsibility to handle the case where
121233         !HAVE_GETPAGESIZE && !defined getpagesize.
121235         * lib/mktime.c (leapyear): Arg is long int, not int.
121237 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
121239         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
121241 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
121243         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
121244         missing.  Problem reported by James Youngman.
121246 2004-10-16  Simon Josefsson  <jas@extundo.com>
121248         * gnulib-tool: Fix comments.  Fix parse problem.
121249         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
121251 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
121253         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
121254         implementation of getopt_long.  Problem reported by Alexander Taler in:
121255         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
121257 2004-10-15  Bruno Haible  <bruno@clisp.org>
121259         * gnulib-tool: Untabify. Initialize supplied_libname.
121260         (func_usage): More homogenous output.
121261         (func_modules_transitive_closure, func_modules_to_filelist,
121262         func_emit_lib_Makefile_am): New functions.
121263         (func_import): New function, extracted from big case statement. Use
121264         func_get_license, func_modules_transitive_closure,
121265         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
121266         opt_lgpl. Don't use test -a, as it's not portable.
121267         (func_create_testdir): Use func_modules_transitive_closure,
121268         func_modules_to_filelist, func_emit_lib_Makefile_am.
121270 2004-10-15  Bruno Haible  <bruno@clisp.org>
121272         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
121274 2004-10-15  Bruno Haible  <bruno@clisp.org>
121276         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
121277         the portions belonging to each module.
121278         Suggested by Derek Robert Price <derek@ximbiot.com>.
121280 2004-10-12  Simon Josefsson  <jas@extundo.com>
121282         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121283         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
121284         to real functions.
121286 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121288         * modules/vsnprintf: New file.
121290 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121292         * m4/vsnprintf.m4: New file.
121294 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121296         * lib/vsnprintf.h: New file.
121297         * lib/vsnprintf.c: New file.
121299 2004-10-11  Bruno Haible  <bruno@clisp.org>
121301         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
121302         vsnprintf.
121304 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
121306         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
121308 2004-10-07  Bruno Haible  <bruno@clisp.org>
121310         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
121311         fits into the provided buffer.
121313 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
121315         * lib/diacrit.c, diacrit.h: Add GPL notice.
121317         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
121318         notice.
121319         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
121320         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
121321         This avoids a potential constant-folding bug.
121323 2004-10-05  Bruno Haible  <bruno@clisp.org>
121325         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
121326         for the declaration of strsep.
121328 2004-10-05  Bruno Haible  <bruno@clisp.org>
121330         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
121332 2004-10-04  Simon Josefsson  <jas@extundo.com>
121334         * modules/memmem: New file.
121335         * tests/test-memmem.c: New file.
121336         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
121338 2004-10-04  Simon Josefsson  <jas@extundo.com>
121340         * m4/memmem.m4: New file.
121342 2004-10-04  Simon Josefsson  <jas@extundo.com>
121344         * lib/memmem.h: New file.
121345         * lib/memmem.c: New file, taken from glibc.
121347 2004-10-04  Simon Josefsson  <jas@extundo.com>
121349         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
121350         '#ifdef USE_UNLOCKED_IO'.
121352 2004-10-04  Simon Josefsson  <jas@extundo.com>
121354         * config/srclist.txt: Add memmem from glibc.
121356 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121358         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
121360         * modules/argmatch, modules/argp, modules/closeout, modules/error,
121361         modules/exclude, modules/getdate, modules/getline,
121362         modules/getndelim2, modules/getpass, modules/getpass-gnu,
121363         modules/getusershell, modules/linebuffer, modules/md5,
121364         modules/mountlist, modules/posixtm, modules/readtokens,
121365         modules/readutmp, modules/regex, modules/sha1,
121366         modules/version-etc, modules/yesno:
121367         Remove dependency on unlocked-io.
121369 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121371         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
121373         * m4/unlocked-io.m4: Add copyright notice.
121374         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
121376 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121378         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
121379         * lib/xmalloc.c (xmemdup): Likewise.
121380         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
121381         XFREE): Remove these long-obsolescent macros.
121382         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
121383         * lib/xstrdup.c: Remove.
121385         * lib/regex.c (re_comp): Cast gettext return value to char *,
121386         Problem reported by Martin Neitzel via Mark D. Baushke.
121388 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121390         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
121391         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
121392         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
121393         regex.c, sha1.c, version-etc.c, yesno.c:
121394         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
121395         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
121396         the includer's responsibility.
121398         Sync from coreutils.
121400         * lib/modechange.c (mode_compile): Don't decrement a pointer that
121401         points to the start of a string, as the C Standard says the
121402         resulting behavior is undefined.
121404         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
121405         simple -> simple_backups, numbered_existing ->
121406         numbered_existing_backups, numbered -> numbered_backups
121407         to avoid shadowing problems.  All uses changed.
121408         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
121409         * lib/backupfile.c (check_extension, numbered_backup):
121410         Rename locals to avoid shadowing 'basename'.
121411         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
121412         once.
121414         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
121415         * lib/.cvsignore: Add getopt.h.
121417 2004-10-04  Bruno Haible  <bruno@clisp.org>
121419         * modules/README: New file.
121420         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
121421         not a module.
121423 2004-10-02  Jim Meyering  <jim@meyering.net>
121425         * lib/dirfd.h, getpagesize.h: Add copyright notice.
121427 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121429         * modules/strsep: New file.
121431 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121433         * m4/strsep.m4: New file.
121435 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121437         * lib/strsep.h: New file.
121438         * lib/strsep.c: New file.
121440 2004-10-01  Simon Josefsson  <jas@extundo.com>
121442         * lib/snprintf.c (snprintf): Handle size==0.
121444 2004-10-01  Simon Josefsson  <jas@extundo.com>
121445             Bruno Haible  <bruno@clisp.org>
121447         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
121448         (snprintf): Declare 'args'.
121450 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
121452         * lib/snprintf.c: Remove comments as to why each header is needed.
121454 2004-10-01  Bruno Haible  <bruno@clisp.org>
121456         * MODULES.html.sh: Add strsep.
121458 2004-09-30  Simon Josefsson  <jas@extundo.com>
121460         * modules/snprintf: New file.
121462 2004-09-30  Simon Josefsson  <jas@extundo.com>
121464         * m4/snprintf.m4: New file.
121466 2004-09-30  Simon Josefsson  <jas@extundo.com>
121468         * lib/snprintf.h, lib/snprintf.c: New files.
121470 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121472         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
121473         (hol_entry_help): Never translate an empty string.
121474         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
121475         * lib/argp.h (OPTION_NO_TRANS): New option.
121477 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121479         * modules/argp (Maintainer): Replace Simon Josefsson
121480         by Sergey Poznyakoff.
121482 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121484         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
121485         changes merged back into glibc.
121487 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121489         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
121491 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121493         * lib/xvasprintf.c: Include xalloc.h.
121494         (xvasprintf): Use xalloc_die, not xmalloc_die.
121496 2004-09-29  Bruno Haible  <bruno@clisp.org>
121498         * modules/alloca-opt: New file, derived from modules/alloca.
121499         * modules/allocsa: Depend on alloca-opt instead of alloca.
121500         * modules/setenv: Likewise.
121501         * modules/vasnprintf: Likewise.
121502         * MODULES.html.sh: Add alloca-opt.
121504 2004-09-28  Simon Josefsson  <jas@extundo.com>
121506         * gnulib-tool: New parameter --lgpl, to asseert that modules are
121507         LGPL, and to replace license template from GPL to LGPL.
121509 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121511         * modules/dummy: Change license to LGPL.
121513 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121515         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
121517 2004-09-24  Simon Josefsson  <jas@extundo.com>
121519         * modules/minmax (License): Change from GPL to LGPL.
121521 2004-09-23  Simon Josefsson  <jas@extundo.com>
121523         * gnulib-tool (--import): Typo.
121525 2004-09-23  Simon Josefsson  <jas@extundo.com>
121527         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
121529 2004-09-22  Bruno Haible  <bruno@clisp.org>
121531         * modules/*: Add 'License' field.
121532         * gnulib-tool: Accept --extract-license option.
121533         (func_get_license): New function.
121535 2004-09-21  Bruno Haible  <bruno@clisp.org>
121537         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
121538         Reported by Simon Josefsson.
121540 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121542         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
121543         gl_AC_TYPE_LONG_LONG.
121545 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121547         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
121549 2004-09-18  Simon Josefsson  <jas@extundo.com>
121550         and  Paul Eggert  <eggert@cs.ucla.edu>
121552         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
121553         calls with autoreconf.  Define GL_LIB.
121555 2004-09-14  Karl Berry  <karl@gnu.org>
121557         * config/srclist.txt: unsync setenv.c, sigh.
121559 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121561         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
121562         Problem reported by Bruno Haible in:
121563         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
121565 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121567         * config/srclist.txt: Comment out argp-pvh.c.
121569 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
121571         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
121572         in case some system header has #define'd it.  Problem reported by
121573         Soeren D. Schulze in
121574         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
121576 2004-09-09  Karl Berry  <karl@gnu.org>
121578         * regex.[ch]: delete from the root.  These were supposed to be
121579                 synced with emacs cvs, but this has not happened for about
121580                 a year, and anyway nothing else uses emacs regex.[ch].
121581                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
121582                 lib/regex[.ch] is untouched.
121584 2004-09-09  Bruno Haible  <bruno@clisp.org>
121586         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121588 2004-09-09  Bruno Haible  <bruno@clisp.org>
121590         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121591         modifications.
121592         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121594 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121596         * modules/xvasprintf: New file.
121597         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121599 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121601         * lib/xvasprintf.h: New file.
121602         * lib/xvasprintf.c: New file.
121603         * lib/xasprintf.c: New file.
121605 2004-09-08  Bruno Haible  <bruno@clisp.org>
121607         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121609 2004-09-08  Bruno Haible  <bruno@clisp.org>
121611         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121612         length is > INT_MAX.
121613         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121614         more.
121616 2004-09-08  Bruno Haible  <bruno@clisp.org>
121618         * lib/stdint_.h: New file, taken from GNU clisp.
121620 2004-09-08  Bruno Haible  <bruno@clisp.org>
121621             Oskar Liljeblad  <oskar@osk.mine.nu>
121623         * modules/stdint: New file.
121624         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121626 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121628         Import from coreutils.
121629         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121630         strings on unbounded length.  alloca's performance benefits aren't
121631         that important here.
121632         (V_STRDUP): Remove.
121633         (parse_with_separator): New function, with most of the internals
121634         of the old parse_user_spec.  Allow user to omit both user and group,
121635         for compatibility with FreeBSD.
121636         Clone only the user name, not the entire spec.
121637         Do not set *uid, *gid unless entirely successful.
121638         Avoid memory leak in some failing cases.
121639         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121640         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121641         (parse_user_spec): Rewrite to use parse_with_separator.
121643 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121645         * modules/userspec: Don't depend on alloca.
121647 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121649         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121651 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121653         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121654         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121655         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121657 2004-08-16  Simon Josefsson  <jas@extundo.com>
121659         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121660         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121661         Add --dry-run for --import.
121662         Let user provided command line parameters override configure.ac
121663         settings.
121665 2004-08-12  Simon Josefsson  <jas@extundo.com>
121667         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121668         as discussed with Paul Eggert in threads rooted at
121669         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121670         and
121671         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121672         Before, the test was empty, and relied on ELIDE_CODE in source
121673         code.)
121674         (gl_PREREQ_GETOPT): New macro.
121675         (gl_GETOPT): Use them.
121677 2004-08-12  Simon Josefsson  <jas@extundo.com>
121679         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121680         * lib/getopt_.h: Renamed from getopt.h.
121682 2004-08-12  Simon Josefsson  <jas@extundo.com>
121684         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121685         Change default library name from libfoo to libgnu.
121686         Now, if you have a configure.ac that says:
121687                 gl_SOURCE_BASE(gl)
121688                 gl_M4_BASE(gl/m4)
121689                 gl_MODULES(error getopt etcetera)
121690                 gl_INIT
121691         you can import all you need by running:
121692                 ../gnulib/gnulib-tool --import
121694         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121695         (Makefile.am): Rewrite, use logic from argz.
121696         (Include): Use <getopt.h> instead of "getopt.h".
121698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121700         * modules/argp (Files): Add m4/unlocked-io.m4.
121701         (Depends-on): Add extensions.
121703 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121705         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121706         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121707         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121708         Check for program_invocation_name, program_invocation_short_name,
121709         flockfile, funlockfile, features.h, _getopt_long_only_r.
121711 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121713         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121714         its complicated substitute.
121715         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121716         and program_invocation_name.
121717         (__argp_basename) [!_LIBC]: Remove; the only use was
121718         replaced by its body.
121719         (__argp_short_program_name): Change condition from
121720         !defined __argp_short_program_name to
121721         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121722         to match argp-namefrob.h.
121723         (__argp_failure): Don't assume strerror_r returns char *.
121724         * lib/argp-parse.c (N_): Define unconditionally.
121725         (argp_default_options): Fill out initializers with 0 to avoid
121726         gcc warnings.
121728 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121730         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121731         getopt1.c.
121733 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121735         Merge from coreutils.
121737         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121739         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121740         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121742 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121744         Merge from coreutils.
121746         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121747         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121748         for Reliant Unix 5.43.
121750         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121751         (union fooround): Use uintmax_t, not long int.
121752         The rest is a merge from libc:
121753         [defined _LIBC]: Include <shlib-compat.h>.
121754         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121756         * lib/settime.c (settime): Recode to avoid warning with
121757         Sun Forte C 6U2.
121759         * lib/strverscmp.c: Convert to UTF-8.
121761 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121763         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121764         m4/uintmax_t.m4.
121766 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121768         * modules/xalloc-die: New file.
121769         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121771         * modules/md5 (Files): Add m4/uint32_t.m4.
121772         * modules/sha1: Renamed from modules/sha.
121773         (Files):
121774         Rename lib/sha.h to lib/sha1.h.
121775         Rename lib/sha.c to lib/sha1.c.
121776         Rename m4/sha.m4 to m4/sha1.m4.
121777         (lib_SOURCES): Likewise.
121778         (configure.ac): Rename gl_SHA to gl_SHA1.
121779         (Include): sha.h -> sha1.h.
121781 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121783         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121784         * m4/sha1.m4: Renamed from sha.m4.
121785         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121787 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121789         * lib/obstack.h (obstack_empty_p):
121790         Don't assume that chunk->contents is suitably aligned.
121791         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121792         Likewise. Problem reported by Benno in
121793         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121795         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121796         readable.  This could be improved further but it'd take some work.
121798 2004-08-08  Simon Josefsson  <jas@extundo.com>
121800         * modules/xgethostname (Depends-on): Remove exit and error (not
121801         used).
121803         * modules/getpass-gnu: Add getpass.h.
121804         (Depends-on): Add stdbool.
121805         * modules/getpass: Add getpass.h.
121807 2004-08-08  Simon Josefsson  <jas@extundo.com>
121809         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121810         Check getpass declaration.
121812 2004-08-08  Simon Josefsson  <jas@extundo.com>
121814         * lib/xgethostname.c: Don't include error.h (not used).
121816         * lib/getpass.h: Add.
121817         * lib/getpass.c: Include getpass.h first.
121819 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121821         * lib/xalloc-die.c: New file.
121822         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121823         All uses removed.
121824         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121825         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121826         xalloc-die.c.
121827         (_, N_, xalloc_die): Move to xalloc-die.c.
121828         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121829         so that we needn't mess with xalloc_msg_memory_exhausted.
121831         * lib/sha1.h: Renamed from sha.h.
121832         (SHA1_H): Renamed from _SHA_H.
121833         (sha1_ctx): Renamed from sha_ctx.
121834         (sha1_init_ctx): Renamed from sha_init_ctx.
121835         (sha1_process_block): Renamed from sha_process_block.
121836         (sha1_process_bytes): Renamed from sha_process_bytes.
121837         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121838         (sha1_read_ctx): Renamed from sha_read_ctx.
121839         (sha1_stream): Renamed from sha_stream.
121840         (sha1_buffer): Renamed from sha_buffer.
121841         * lib/sha1.c: Likewise; renamed from sha.c.
121842         Do not include <sys/types.h>.
121843         Include <stddef.h> rather than <stdlib.h>.
121845 2004-08-08  Bruno Haible  <bruno@clisp.org>
121847         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121848         FILESYSTEM_PREFIX_LEN.
121849         * lib/progreloc.c: Likewise.
121850         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121852 2004-08-06  Simon Josefsson  <jas@extundo.com>
121854         * modules/progname (Depends-on): Don't depend on stdbool.
121856 2004-08-06  Simon Josefsson  <jas@extundo.com>
121858         * modules/getsubopt: New file.
121859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121860         getsubopt.
121862 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121864         More merge from coreutils.
121866         * m4/utimens.m4, m4/utimecmp.m4: New files.
121867         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121868         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121869         prereq.m4, sha.m4: Import changes from coreutils.
121871 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121873         More merge from coreutils.
121874         * modules/raise, modules/readtokens0, modules/utimens:
121875         * modules/utimecmp, module/xnanosleep: New files.
121876         * modules/strftime: Add lib/strftime.h.
121877         Change include from <time.h> to "strftime.h".
121878         * modules/yesno: Add lib/yesno.h.
121879         * modules/backupfile: Remove lib/addext.c.
121880         * modules/euidaccess: Add stat-macros.h.
121881         * modules/canonicalize, modules/euidaccess,
121882         modules/filemode, modules/lchown, modules/makepath,
121883         modules/rmdir, modules/stat: Likewise.
121885 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121887         Merge from tar.
121888         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121889         SIZE_MAX is a valid preprocessor constant.
121890         (__argp_basename): Change from "#ifndef _LIBC"
121891         to "#ifndef __argp_short_program_name", so that
121892         we don't compile these functions for tar.
121894         More merges from coreutils.
121895         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121896         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121897         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121898         * lib/addext.c: Remove; no longer needed.
121899         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121900         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121901         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121902         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121903         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121904         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121905         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121906         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121907         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121908         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121909         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121910         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121911         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121912         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121913         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121914         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121915         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121916         Import changes from coreutils.
121918 2004-08-05  Simon Josefsson  <jas@extundo.com>
121920         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121922 2004-08-05  Simon Josefsson  <jas@extundo.com>
121924         * m4/getsubopt.m4: New file.
121926 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121928         Merge from coreutils.
121930         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121931         * m4/getcwd-path-max.m4: New files.
121933         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121934         FILESYSTEM_PREFIX_LEN ->
121935         FILE_SYSTEM_PREFIX_LEN.
121936         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121937         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121938         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121939         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121941         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121942         prerequisite modules now handle the DOS stuff.
121943         Don't check for unistd.h.
121945 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121947         Merge from coreutils.
121949         * lib/.gdb-history: Remove; this doesn't belong here.
121951         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121952         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121953         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121954         * lib/getcwd.c: New files.
121956         * lib/dirname.h: Include <stdbool.h>.
121957         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121958         for consistency with POSIX terminology.  All uses changed.
121959         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121960         (strip_trailing_slashes): Use bool for booleans.
121961         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121963         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121964         sometimes returns a positive errno value even when it succeeds.
121965         (print_errno_message) [!LIBC]: Fall back on strerror if
121966         __strerror_r fails.
121968         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121969         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121970         (longest_relative_suffix): New function.
121971         (path_concat): Use it.  Assume first argument is not NULL.
121972         Port to DOS.  Omit redundant separators.
121973         Report an error instead of returning NULL.
121974         Use mempcpy instead of memcpy.
121975         (xpath_concat): Remove: not declared or used.
121977         * lib/same.h: Include <stdbool.h>
121978         (same_name): Return bool, not int.
121979         * lib/same.c (same_name): Likewise.
121980         (errno): Don't declare; we assume C89 or better now.
121982         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121983         if not already defined.
121985         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121986         * lib/dup-safer.c (errno): Likewise.
121988 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121990         Merge from coreutils.
121991         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121992         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121993         * modules/path-concat: Don't depend on strdup.
121995 2004-08-03  Simon Josefsson  <jas@extundo.com>
121997         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121998         * lib/progname.h: Don't include stdbool.h.
122000 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122002         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
122003         * MODULES.html.sh (func_all_modules): Remove fatal.
122005 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122007         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
122009 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122011         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
122012         working.
122014 2004-08-02  Simon Josefsson  <jas@extundo.com>
122016         * lib/getsubopt.h: New file, with comments from Bruno Haible.
122017         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
122018         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
122020 2004-08-01  Simon Josefsson  <jas@extundo.com>
122022         * lib/xgetdomainname.c: Include stdlib.h, for free().
122024 2004-07-19  Bruno Haible  <bruno@clisp.org>
122026         * MODULES.html.sh (func_all_modules): Add dummy.
122028 2004-07-16  Simon Josefsson  <jas@extundo.com>
122030         * modules/dummy: New file.
122032 2004-07-16  Simon Josefsson  <jas@extundo.com>
122034         * lib/dummy.c: New file.
122036 2004-07-16  Bruno Haible  <bruno@clisp.org>
122038         * lib/backupfile.h: Add extern "C" for C++.
122039         * lib/closeout.h: Likewise.
122040         * lib/copy-file.h: Likewise.
122041         * lib/findprog.h: Likewise.
122042         * lib/full-write.h: Likewise.
122043         * lib/pathname.h: Likewise.
122044         * lib/progname.h: Likewise.
122045         * lib/stpcpy.h: Likewise.
122046         * lib/stpncpy.h: Likewise.
122047         * lib/strcase.h: Likewise.
122048         * lib/strstr.h: Likewise.
122049         * lib/xalloc.h: Likewise.
122051         * lib/mbswidth.h: Add extern "C" for C++.
122052         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
122054 2004-07-13  Robert Millan  <robertmh@gnu.org>
122056         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
122058 2004-07-09  Simon Josefsson  <jas@extundo.com>
122060         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
122061         failed without this.)
122063 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
122065         * modules/chown (Files): Add lib/fchown-stub.c, since
122066         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
122068 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
122070         * lib/fchown-stub.c: New file.
122072 2004-06-24  Jim Meyering  <jim@meyering.net>
122074         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
122076 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122078         * modules/argz: Omit "#include".
122080         * MODULES.html.sh (func_all_modules): Add calloc, to match
122081         2004-06-01 addition of calloc module.
122083 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122085         * m4/argz.m4: New file, which is autoupdated from libtool.
122087 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122089         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
122090         libtool.
122092 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122094         * config/srclist-update: Don't insist on "USA." before the
122095         close-comment, as libtool omits the period and puts the */ on a
122096         separate line.
122097         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
122098         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
122100 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
122102         * modules/argz: New file.
122103         * MODULES.html.sh (func_all_modules): Add argz.
122105 2004-06-12  Jim Meyering  <jim@meyering.net>
122106         and  Paul Eggert  <eggert@cs.ucla.edu>
122108         * modules/hash (Files): Add lib/xalloc.h.
122109         * modules/pipe (Depends-on): Add wait-process.
122110         * modules/stat (Depends-on): Add xalloc.
122111         * modules/userspec (Files): Add lib/userspec.h.
122112         * modules/xstrto
122114         Upgrade from gettext-0.13.
122115         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
122116         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
122117         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
122119 2004-06-10  Jim Meyering  <jim@meyering.net>
122121         * lib/calloc.c: New file.
122123 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
122125         * lib/getdate.y (yylex): Allow space between sign and number.
122126         Problem reported by Dan Jacobson.
122128 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
122130         Merge from coreutils CVS.
122132         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
122133         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
122134         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
122135         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
122136         xstrtol.m4: Fix copyright date and/or serial number.
122138         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
122139         See if we need an fchown replacement.
122140         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
122141         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
122142         and use the replacement function if we detect either defect.
122144         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
122145         gl_UTIMECMP.
122147 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
122148         and  Jim Meyering  <jim@meyering.net>
122150         Merge from coreutils CVS.
122152         * lib/stat-macros.h: New file, with contents from file-type.h
122153         and coreutils' system.h.
122154         * lib/file-type.c: Include "stat-macros.h".
122155         * lib/file-type.h (file_type): Move all macro definitions to new file,
122156         stat-macros.h.
122158         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
122159         Wrap old code with this conditional.
122160         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
122161         function that does not dereference symlinks.
122162         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
122164         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
122165         dependency problems.
122166         (xreadlink): Accept new arg SIZE, for efficiency.
122167         All decls and uses changed.
122168         * lib/xreadlink.h: Include <stddef.h>, for size_t.
122170         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
122171         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
122173         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
122174         sysexits.h.
122176 2004-06-01  Jim Meyering  <jim@meyering.net>
122178         * m4/calloc.m4: New file.
122180 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
122182         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
122183         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
122184         Also, fix a typo in a diagnostic.
122186 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122188         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
122189         or AC_FUNC_REALLOC.
122191 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122193         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
122194         macros to be defined.
122195         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
122196         the allocator returns NULL because the requested size is zero.
122198 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122200         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
122201         var.  Add comment explaining why libc still defines it.  This
122202         merges the following patch from glibc:
122203         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
122205 2004-05-20  Andreas Schwab  <schwab@suse.de>
122207         * m4/free.m4: Replace free if it not known to work, not the other
122208         way round.
122210 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
122212         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
122213         present in glibc since revision 1.1 of this file.
122214         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
122215         obstack_alignment_mask, obstack_alloc, obstack_base,
122216         obstack_blank, obstack_blank_fast, obstack_chunk_size,
122217         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
122218         obstack_grow0, obstack_init, obstack_int_grow,
122219         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
122220         obstack_next_free, obstack_object_size, obstack_ptr_grow,
122221         obstack_ptr_grow_fast, obstack_room): Remove declarations of
122222         nonexistent functions.
122224 2004-05-18  Karl Berry  <karl@gnu.org>
122226         * config/srclist.txt: break link for vasnprintf.c.
122228 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122230         Port obstack to the AS/400, where pointers are 16 bytes wide and
122231         you cannot cast an integer to a valid pointer.  This patch is
122232         currently waiting to be integrated into glibc; see
122233         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
122235         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
122236         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
122237         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
122238         (struct obstack): temp member is now a union of a pointer and
122239         an integer, instead of an integer.  All integer uses changed.
122240         This does not affect the physical layout of struct obstack,
122241         except on hosts (like the AS/400) where the size or alignment of
122242         void * is greater than that of ptrdiff_t.
122243         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
122244         __STDC__)]: Store temporary in pointer member of union, not
122245         integer member.
122246         * lib/obstack.c: Include <stddef.h>, for offsetof.
122247         (struct fooalign): Remove; it doesn't need a name.
122248         (union fooround): Change double to long double, and add void *.
122249         (DEFAULT_ALIGNMENT): Use offsetof to compute.
122250         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
122251         not a macro.  Hence the values are always int; so remove all
122252         casts-to-int in uses.
122254 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122256         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
122257         we can get this patch merged into glibc.
122259 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122260             Paul Eggert  <eggert@cs.ucla.edu>
122262         * m4/argp: Depend on alloca.
122264 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122265             Paul Eggert  <eggert@cs.ucla.edu>
122267         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
122268         freecoding.
122270 2004-05-17  Bruno Haible  <bruno@clisp.org>
122272         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
122273         precision that consists of a '.' followed by an empty digit string.
122274         Patch by Tor Lillqvist <tml@iki.fi>.
122276 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122278         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
122279         for backward compatibility with older code.  We need our own
122280         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
122281         it under some other name, and our alloca.h will define it.
122283 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122284             Derek Price  <derek@ximbiot.com>
122286         * lib/alloca.c: Include <alloca.h>, to get our interface.
122287         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
122288         include <alloca.h> first.  Use C89 prototype for alloca; this
122289         requires including <stddef.h> for size_t.  Use extern "C" if C++.
122290         Use #elif for simplicity, since we can assume C89 now.
122291         Don't try to source the system alloca.h since it will not be found
122292         and to prevent recursively including its replacement.
122293         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
122294         * lib/regex.c: Likewise.
122296 2004-05-16  Derek Price  <derek@ximbiot.com>
122297             Paul Eggert  <eggert@cs.ucla.edu>
122299         getline cleanup.  This changes the getndelim2 API: both order of
122300         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
122301         no delimiter).
122303         * lib/getline.c: Don't include stddef.h or stdio.h, since our
122304         interface does that.
122305         (getline): Always use getdelim, so that we don't have two
122306         copies of this code.
122307         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
122308         if available.
122309         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
122310         (GETNDELIM2_MAXIMUM): New macro.
122311         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
122312         instead of the old practice of delim2==0.  All callers changed.
122313         Return -1 on overflow, instead of returning junk.
122314         Do not set *linesize unless allocation succeeds.
122315         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
122316         that we include sys/types.h.
122317         * lib/getnline.h: Likewise.
122318         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
122319         (getndelim2): Reorder arguments.
122320         * lib/getnline.c (getnline, getndelim):
122321         Don't discard the NMAX argument.
122322         (getnline): Invoke getndelim, to avoid code duplication.
122323         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
122324         of (size_t) -1 by callers of the getnline family.
122326 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122328         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
122329         Check for gettimeofday.
122330         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
122331         Check for settimeofday, stime.
122333 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122335         * lib/nanosleep.c (suspended): Change its type from int to
122336         sig_atomic_t volatile.
122337         (first_call): Make it private to rpl_nanosleep, and have it
122338         be zero initially as that's a bit faster.
122339         (my_usleep): Round up fractional times instead of truncating them,
122340         as this is the usual meaning for 'sleep'.
122342         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
122343         doesn't work.
122344         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
122345         (ENOSYS): Define if not defined.
122346         (settime): Fall back on stime if it exists and settimeofday fails.
122347         But don't bother with fallbacks if a method fails with errno == EPERM.
122349 2004-05-11  Jim Meyering  <jim@meyering.net>
122351         Prior to this change, the save_cwd caller required read access to the
122352         current directory on most systems (ones with the fchdir function).
122354         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
122355         fails, try write-only, and finally, resort to using xgetcwd.
122357 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122359         * lib/obstack.c, obstack.h: Import changes from libc.
122361 2004-04-28  Bruno Haible  <bruno@clisp.org>
122363         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
122364         also implicitly appends .exe to executables.
122365         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
122366         accepts Windows pathnames.
122367         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122368         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122369         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122370         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122371         Reported by Derek Robert Price <derek@ximbiot.com>.
122373 2004-04-21  Karl Berry  <karl@gnu.org>
122375         * config/srclist.txt (localcharset.c): break sync.
122377 2004-04-20  Paul Eggert  <eggert@twinsun.com>
122379         * m4/host-os.m4: Add a copyright notice.
122381 2004-04-20  Jim Meyering  <jim@meyering.net>
122383         Change UTILS_ to gl_ in AC_DEFINE'd names.
122384         Change utils_- and jm_-prefixed variables, too.
122385         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
122386         UTILS_FUNC_MKDIR_TRAILING_SLASH.
122387         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
122389         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
122390         Don't emit trailing blanks.
122391         Also rename jm_-prefixed variables to have gl_ prefix.
122393         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
122394         Also rename jm_-prefixed variables to have gl_ prefix.
122396         * m4/jm-macros.m4: Reflect the renamings.
122397         * m4/prereq.m4: Likewise.
122399 2004-04-20  Jim Meyering  <jim@meyering.net>
122401         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
122402         memory.
122404 2004-04-20  Jim Meyering  <jim@meyering.net>
122405             Bruno Haible  <bruno@clisp.org>
122407         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
122408         memory when realloc fails.
122410 2004-04-19  Jim Meyering  <jim@meyering.net>
122412         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
122413         now that readutmp.c may call `free (0)'.
122415 2004-04-19  Bruno Haible  <bruno@clisp.org>
122417         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
122418         * m4/inttypes_h.m4: Likewise.
122419         * m4/stdint_h.m4: Likewise.
122420         * m4/intmax_t.m4: Likewise.
122421         * m4/uintmax_t.m4: Likewise.
122423 2004-04-18  Jim Meyering  <jim@meyering.net>
122425         * m4/prereq.m4: Don't forbid jm_ prefix.
122427         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
122428         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
122429         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
122430         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
122431         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
122432         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
122433         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
122434         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
122435         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
122436         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
122437         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
122438         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
122439         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
122440         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
122441         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
122442         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
122443         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
122444         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
122445         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
122447 2004-04-18  Jim Meyering  <jim@meyering.net>
122449         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
122450         failure, don't leak memory and do call END_UTMP_ENT.
122452 2004-04-16  Jim Meyering  <jim@meyering.net>
122454         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
122455         coreutils' stat program.
122456         (gl_PREREQ): Don't require jm_PREREQ_STAT.
122458 2004-04-11  Paul Eggert  <eggert@twinsun.com>
122460         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
122461         C89.
122462         (CHAR_BIT): Remove, since we assume C89.
122463         Include <stdint.h> if available, as per current Autoconf CVS advice.
122465 2004-03-31  Jim Meyering  <jim@meyering.net>
122467         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
122468         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
122469         * m4/xalloc.m4: Likewise.
122471 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122473         Merge from coreutils.
122475         * m4/inttostr.m4: New file.
122476         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
122477         Require AM_STDBOOL_H and gl_TIMESPEC instead.
122478         Require gl_CLOCK_TIME.
122479         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
122481 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122483         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
122484         not bool, to be more consistent with Unix conventions.
122485         Suggested by Bruno Haible.
122487         Merge from coreutils.
122489         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
122490         * lib/umaxtostr.c: New files.
122492         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
122493         the usual <time.h> dance.
122494         (get_date): Change signature to support fractional time stamps.
122495         All callers changed.
122496         * lib/getdate.y: Include "getdate.h" first, as we can now
122497         assume C89 and don't need to worry about 'const'.
122498         Similarly, include "unlocked-io.h" near start, not in middle.
122499         Include <limits.h>.
122500         (textint.value): Use long int rather than int.
122501         (textint.digits): Use size_t rather than int.
122502         (BILLION, LOG10_BILLION): New constants.
122503         (parser_control): New member rel_ns.  Members day_ordinal,
122504         time_zone, month, day, hour, minutes, rel_year, rel_month,
122505         rel_day, rel_hour, rel_minutes, rel_seconds
122506         are now long int, not int.  Member seconds is now struct timespec,
122507         not int.  New member timespec_seen.  Members dates_seen, days_seen,
122508         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
122509         not int.
122510         (%union.intval): Now long int, not int.
122511         New member timespec.
122512         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
122513         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
122514         (spec): Now is a timespec or an item list.
122515         (timespec, items): New nonterminals.
122516         (time, rel, relunit, number, get_date):
122517         Add support for fractional seconds.
122518         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
122519         (gmtime, localtime, mktime): Remove decls; not needed with C89.
122520         (to_hour): First arg is now long int, not int.
122521         (to_year): Returns long int, not int.
122522         Don't treat year -70 like 70.
122523         (tm_diff): Returns long int, not int.
122524         (lookup_word): Use bool instead of int when appropriate.
122525         (yylex): Use size_t for count, not int.
122526         Detect overflow when parsing large integer constants.
122527         Add support for fractions.
122528         (get_date): Make pointers 'const' if possible.
122529         Use more-portable code to detect integer overflow.
122530         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
122531         Don't use ctime; it's not reliable if the year has >4 digits.
122533         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
122534         This is for compatibility with BSD.
122536         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
122537         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
122538         From coreutils' system.h.
122540         * lib/userspec.c: Don't include "posixver.h".
122541         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
122542         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
122543         compatible extension.  Simplify code by removing a boolean int
122544         that was always nonzero if a string was nonnull.
122546 2004-03-30  Jim Meyering  <jim@meyering.net>
122548         Merge from coreutils.
122550         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
122551         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
122552         on some systems one must include <grp.h> before it.
122553         Reported by Christian Krackowizer.
122555 2004-03-30  Jim Meyering  <jim@meyering.net>
122557         Merge from coreutils.
122559         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
122561         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
122562         an empty input stream.
122564         * lib/readtokens.c: Include <stdbool.h>.
122565         (readtoken): Use `size_t' rather than int/long.
122566         All callers adjusted.
122567         Use `bool' rather than `int' where appropriate.
122568         Use memset rather than an explicit loop.
122569         Use x2nrealloc rather than xrealloc.
122570         Allow the use of `\0' as a delimiter.
122571         (readtokens): Likewise.
122572         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
122574 2004-03-30  Jim Meyering  <jim@meyering.net>
122576         * m4/realloc.m4: Remove file, since now it does no more than
122577         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
122578         the `configure.ac' section of module/realloc.
122579         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
122581 2004-03-30  Bruno Haible  <bruno@clisp.org>
122583         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
122584         nonnull.
122586 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122588         Merge changes to getloadavg.c from coreutils and Emacs.
122590         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122591         Define to an expression, not to the empty string.
122592         Include cloexec.h and xalloc.h.
122593         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122594         Use set_cloexec_flag rather than rolling our own.
122595         * lib/cloexec.c, lib/cloexec.h: New files.
122597 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122599         * m4/cloexec.m4: New file.
122601 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122603         * lib/getopt.h: Sync with libc CVS.
122605 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122606             Bruno Haible  <bruno@clisp.org>
122608         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122609         mbswidth.
122611 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122612             Bruno Haible  <bruno@clisp.org>
122614         * lib/mbswidth.h: Include <wchar.h> only if
122615         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122616         <wchar.h>.
122617         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122619 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122621         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122622         Sync with libc CVS.
122623         * lib/getopt_int.h: New file, also synced from libc.
122625 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122627         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122628         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122629         Bring back getopt.c, getopt.h, getopt1.c.
122631 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122633         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122634         All uses changed.  Check for sa_sigaction member; this fixes
122635         a bug first reported by Jason Andrade in
122636         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122638 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122640         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122641         '#if' expressions.  Unlike the code it replaces, it does not
122642         depend on (defined _SC_PAGESIZE).  However, it does depend on
122643         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122644         first reported by Jason Andrade in
122645         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122647 2004-02-25  Simon Josefsson  <jas@extundo.com>
122649         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122651 2004-02-25  Simon Josefsson  <jas@extundo.com>
122653         * lib/strdup.h: New file.
122654         * lib/strdup.c: Include it.
122655         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122656         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122658 2004-02-23  Karl Berry  <karl@gnu.org>
122660         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122661         (from fencepost.gnu.org:/gd/gnuorg).
122663 2004-02-23  Karl Berry  <karl@gnu.org>
122665         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122666         * config/srclist.txt: add maintain/standards documents.
122668 2004-02-18  Bruno Haible  <bruno@clisp.org>
122670         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122671         Reported by Derek Robert Price <derek@ximbiot.com>.
122673 2004-02-16  Karl Berry  <karl@gnu.org>
122675         * config/mkinstalldirs, install-sh: update from automake.
122677 2004-02-06  Karl Berry  <karl@gnu.org>
122679         * m4/po.m4: update from gettext 0.14.1.
122681 2004-02-06  Karl Berry  <karl@gnu.org>
122683         * lib/config.charset: update from gettext 0.14.1.
122685 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122687         Add comments and code, prompted by suggestions from Bruno Haible
122688         for sh-quote.
122689         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122690         describing the enum quoting_style values.
122691         * lib/quotearg.c (quotearg_alloc): New function.
122692         (quotearg_buffer_restyled): Treat lone { and } as special.
122693         Treat = as special.  Work around bug with older shells
122694         that "see" a '\' that is really the 2nd byte of a multibyte char.
122695         Quote empty string with shell_quoting_style.
122697 2004-02-03  Bruno Haible  <bruno@clisp.org>
122699         * m4/pipe.m4: New file, from GNU gettext.
122701 2004-02-03  Bruno Haible  <bruno@clisp.org>
122703         * lib/pipe.h: New file, from GNU gettext.
122704         * lib/pipe.c: New file, from GNU gettext.
122706 2004-01-27  Bruno Haible  <bruno@clisp.org>
122708         * m4/execute.m4: New file, from GNU gettext.
122710 2004-01-27  Bruno Haible  <bruno@clisp.org>
122712         * lib/execute.h: New file, from GNU gettext.
122713         * lib/execute.c: New file, from GNU gettext.
122714         * lib/w32spawn.h: New file, from GNU gettext.
122716 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122718         Merge from diffutils.
122720         * lib/file-type.c (file_type): Add typed memory objects.
122721         * lib/file-type.h (S_TYPEISTMO): New macro.
122723         * lib/c-stack.h (c_stack_action): Remove argv argument.
122724         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122725         (die): Don't calculate message unless segv_action returns.
122726         (get_stack_location, min_address_from_argv, max_address_from_argv,
122727         volatile stack_base, volatile_stack_size): Remove.
122728         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122729         that every segmentation violation is a stack overflow.  (Ouch!)
122730         See Debian bug 136249 (still outstanding) for more info about why
122731         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122733 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122735         Exit-status fix from coreutils.
122737         Use exit_failure consistently in place of EXIT_FAILURE,
122738         so that program exit statuses are consistent on failure.
122740         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122741         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122742         * lib/argmatch.h: Comment fix to match the above.
122743         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122744         Now a macro referring to exit_failure, instead of a separate
122745         variable.  Include "exitfail.h" to get it.
122746         * lib/xstrtol.h: Include "exitfail.h".
122747         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122749         * lib/long-options.c (parse_long_options): Use prototype
122750         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122751         for clarity.
122753 2004-01-21  Jim Meyering  <jim@meyering.net>
122755         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122756         so as not to conflict with a different-sized __mktime_internal
122757         function in GNU libc.
122758         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122759         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122761 2004-01-20  Karl Berry  <karl@gnu.org>
122763         * config/config.guess: update from config.
122765         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122767 2004-01-20  Bruno Haible  <bruno@clisp.org>
122769         Safer stack allocation.
122770         * lib/setenv.c: Include allocsa.h.
122771         (alloca): Remove fallback definition.
122772         (freea): Remove macro.
122773         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122774         instead of freea.
122776 2004-01-20  Bruno Haible  <bruno@clisp.org>
122778         * m4/eealloc.m4: New file, from GNU gettext.
122780 2004-01-20  Bruno Haible  <bruno@clisp.org>
122782         * m4/allocsa.m4: New file, from GNU gettext.
122784 2004-01-20  Bruno Haible  <bruno@clisp.org>
122786         * lib/xallocsa.h: New file, from GNU gettext.
122787         * lib/xallocsa.c: New file, from GNU gettext.
122789 2004-01-20  Bruno Haible  <bruno@clisp.org>
122791         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122793 2004-01-20  Bruno Haible  <bruno@clisp.org>
122795         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122796         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122797         specially.
122799 2004-01-20  Bruno Haible  <bruno@clisp.org>
122801         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122802         patch.
122804 2004-01-20  Bruno Haible  <bruno@clisp.org>
122806         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122808 2004-01-20  Bruno Haible  <bruno@clisp.org>
122810         * lib/eealloc.h: New file.
122812 2004-01-20  Bruno Haible  <bruno@clisp.org>
122814         * lib/binary-io.h: Avoid warnings on Cygwin.
122816 2004-01-20  Bruno Haible  <bruno@clisp.org>
122818         * lib/allocsa.h: New file, from GNU gettext.
122819         * lib/allocsa.c: New file, from GNU gettext.
122821 2004-01-18  Karl Berry  <karl@gnu.org>
122823         * doc/gpl.texi, doc/lgpl.texi: new files.
122825 2004-01-18  Karl Berry  <karl@gnu.org>
122827         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122828         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122830 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122832         Merge from coreutils.
122834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122835         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122836         (gl_DEFAULT_POSIX2_VERSION): Move
122837         the documentation from 'configure' into 'config.hin',
122838         so that 'configure --help' isn't burdened by it and
122839         we don't have to worry about its formatting there.
122840         Reword the documentation so that it's more succinct
122841         and can be run together into a single paragraph.
122842         * m4/same.m4 (gl_SAME): Check for pathconf.
122844 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122846         Merge from coreutils.
122848         * lib/posixver.c: Include posixver.h.
122850         * lib/same.c: Include <stdbool.h>, <limits.h>.
122851         (_POSIX_NAME_MAX): Define if not defined.
122852         (MIN): New macro.
122853         (same_name): If file names are silently truncated, report
122854         that the file names are the same if they are the same after
122855         the silent truncation.
122857         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122858         conversion function.
122859         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122860         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122861         longer needed.
122863 2004-01-15  Jim Meyering  <jim@meyering.net>
122865         Merge from coreutils.
122867         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122868         if no library is required.
122869         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122870         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122871         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122872         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122873         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122874         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122875         value, $ac_cv_search_crypt, if it's "none required".
122876         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122877         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122878         not gl_FUNC_GETLOADAVG.
122879         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122880         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122882 2004-01-15  Jim Meyering  <jim@meyering.net>
122884         Merge from coreutils.
122886         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122887         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122888         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122890         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122891         optional configure-time default.
122893         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122895         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122897 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122899         Merge from coreutils.
122901         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122902         value, $ac_cv_search_nanosleep, if it's "none required".
122904 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122906         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122907         with like-named macro in fnmatch.c.
122908         (EXT): Use an internal constant instead.
122910         Merge fnmatch patches from glibc.
122911         * lib/fnmatch.c (mbsinit): Remove define.
122912         Add libc_hidden_ver (__fnmatch, fnmatch).
122913         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122914         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122916 2004-01-14  Karl Berry  <karl@gnu.org>
122918         * config/install-sh: update from automake.
122920 2004-01-13  Karl Berry  <karl@gnu.org>
122922         * config/install-sh: update from automake.
122924 2004-01-09  Karl Berry  <karl@gnu.org>
122926         * config/install-sh: update from automake.
122928 2004-01-05  Karl Berry  <karl@gnu.org>
122930         * config/config.{sub,guess}: update from config.
122932 2003-12-31  Karl Berry  <karl@gnu.org>
122934         * config/depcomp: update from automake.
122936 2003-12-14  Karl Berry  <karl@gnu.org>
122938         * lib/config.charset: update from gettext-runtime.
122940 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122942         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122943         Bug reported by Alfred M. Szmidt.
122945 2003-12-03  Bruno Haible  <bruno@clisp.org>
122947         * m4/gettext.m4: Upgrade from gettext-0.13.
122948         * m4/po.m4: Upgrade from gettext-0.13.
122949         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122950         * m4/intmax.m4: New file, from gettext-0.13.
122951         * m4/printf-posix.m4: New file, from gettext-0.13.
122953 2003-11-29  Karl Berry  <karl@gnu.org>
122955         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122957 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122958             Bruno Haible  <bruno@clisp.org>
122960         * lib/printf-parse.h: Don't include sys/types.h.
122961         (ARG_NONE): New macro.
122962         (char_directive): Change type of *arg_index fields to size_t.
122963         * lib/printf-parse.c: Don't include sys/types.h.
122964         (SSIZE_MAX): Remove macro.
122965         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122966         Remove unnecessary overflow check.
122967         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122968         fields.
122970 2003-11-25  Bruno Haible  <bruno@clisp.org>
122972         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122974 2003-11-25  Bruno Haible  <bruno@clisp.org>
122976         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122977         gt_TYPE_SSIZE_T.
122979 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122981         * modules/alloca: Remove dependency on xalloc.
122983 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122985         * lib/alloca.c: Remove dependency on xalloc module.
122986         (xalloc_die): Remove.
122987         (memory_full) [!defined emacs]: New macro.
122988         [!defined emacs]: Don't include xalloc.h.
122989         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122990         address arithmetic overflows.  Change datatypes a bit to avoid
122991         unnecessary casts.
122993 2003-11-22  Jim Meyering  <jim@meyering.net>
122995         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122996         s/size/size_t/.
122998 2003-11-21  Karl Berry  <karl@gnu.org>
123000         * config/config.{sub,guess}: update from config.
123002 2003-11-18  Karl Berry  <karl@gnu.org>
123004         * config/config.{sub,guess}: update from config.
123006         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
123008 2003-11-17  Paul Eggert  <eggert@twinsun.com>
123010         * README: Mention that S+T cannot overflow if S is the size of
123011         an existing object and T is sufficiently small.
123013 2003-11-17  Jim Meyering  <jim@meyering.net>
123015         On systems without utime and without a utimes function capable of
123016         dealing with a NULL struct utimbuf* argument, this utime replacement
123017         could -- in unusual circumstances -- leak a file descriptor.
123018         * lib/utime.c: Include <unistd.h> and <errno.h>.
123019         (utime_null): Be sure to close `fd' and to preserve errno.
123020         Reported by Geoff Collyer via Arnold Robbins.
123022 2003-11-17  Bruno Haible  <bruno@clisp.org>
123024         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
123025         (Depends-on): Add xsize.
123027 2003-11-17  Bruno Haible  <bruno@clisp.org>
123029         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
123031 2003-11-17  Bruno Haible  <bruno@clisp.org>
123033         * lib/vasnprintf.c (alloca): Remove fallback definition.
123034         (freea): Remove definition.
123035         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
123036         Reported by Paul Eggert.
123038 2003-11-16  Paul Eggert  <eggert@twinsun.com>
123039             Bruno Haible  <bruno@clisp.org>
123041         Protect against address arithmetic overflow.
123042         * lib/printf-args.h: Include stddef.h.
123043         (arguments): Change type of field 'count' to size_t.
123044         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
123045         'unsigned int' where appropriate.
123046         * lib/printf-parse.h: Include sys/types.h.
123047         (char_directive): Change type of *arg_index fields to ssize_t.
123048         (char_directives): Change type of fields 'count', max_*_length to
123049         size_t.
123050         * lib/printf-parse.c: Include sys/types.h and xsize.h.
123051         (SSIZE_MAX): Define fallback value.
123052         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
123053         instead of 'int' where appropriate. Check a_allocated, d_allocated
123054         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
123055         * lib/vasnprintf.c: Include xsize.h.
123056         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
123057         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
123058         overflow. Avoid wraparound when converting a width or precision from
123059         decimal to binary.
123061 2003-11-16  Bruno Haible  <bruno@clisp.org>
123063         Update from GNU gettext.
123064         * lib/printf-parse.c: Generalize to it can be compiled for wide
123065         strings.
123066         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
123067         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
123068         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
123069         SNPRINTF): New macros.
123070         Don't include <alloca.h> if the file is used inside libintl.
123071         (local_wcslen): New function, for Solaris 2.5.1.
123072         (VASNPRINTF): Use it instead of wcslen.
123074 2003-11-16  Bruno Haible  <bruno@clisp.org>
123076         * lib/xsize.h (xmax): New function.
123077         (xsum, xsum3, xsum4): Declare as "pure" functions.
123079 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123081         * modules/xalloc (Files): Undo latest change, since xalloc.h
123082         no longer needs SIZE_MAX or PTRDIFF_MAX.
123084 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
123087         gl_PTRDIFF_MAX.
123089 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123091         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
123092         "return", to pacify some unknown compiler.  Problem reported
123093         by Joerg Schilling.
123095 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123097         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
123098         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
123099         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
123100         heuristic is just as accurate as far as we know, and it removes a
123101         dependency on size_max.m4 and ptrdiff_max.m4.
123103 2003-11-11  Bruno Haible  <bruno@clisp.org>
123105         * modules/xsize (Files): Add m4/size_max.m4.
123106         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
123108 2003-11-11  Bruno Haible  <bruno@clisp.org>
123110         * m4/size_max.m4: New file.
123111         * m4/ptrdiff_max.m4: New file.
123112         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
123113         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
123114         (gl_XALLOC): Invoke it.
123116 2003-11-11  Bruno Haible  <bruno@clisp.org>
123118         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
123119         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
123120         defined.
123122 2003-11-10  Paul Eggert  <eggert@twinsun.com>
123124         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
123125         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
123126         rejected some allocations of exactly SIZE_MAX - 2 bytes.
123127         From Bruno Haible.
123128         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
123129         not (size_t) -1, since it's defined here.
123131 2003-11-09  Karl Berry  <karl@gnu.org>
123133         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
123135 2003-11-06  Paul Eggert  <eggert@twinsun.com>
123137         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
123138         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
123139         Reject sizes of exactly SIZE_MAX bytes.
123140         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
123141         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
123143 2003-11-05  Bruno Haible  <bruno@clisp.org>
123145         * lib/xsize.h: Include limits.h, to avoid a possible collision with
123146         SIZE_MAX defined in <limits.h> on Solaris.
123148 2003-11-04  Jim Meyering  <jim@meyering.net>
123150         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
123151         variable names, rather than @VAR@.
123152         * modules/poll: Likewise.
123154 2003-11-04  Bruno Haible  <bruno@clisp.org>
123156         * modules/xsize: New file.
123157         * modules/linebreak: Depend on xsize.
123158         * MODULES.html.sh (func_all_modules): Add xsize.
123160 2003-11-04  Bruno Haible  <bruno@clisp.org>
123162         * m4/xsize.m4: New file.
123164 2003-11-04  Bruno Haible  <bruno@clisp.org>
123166         * lib/xsize.h: New file.
123167         * lib/linebreak.c: Include xsize.h.
123168         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
123169         argument for overflow.
123170         Suggested by Paul Eggert.
123172 2003-11-03  Karl Berry  <karl@gnu.org>
123174         * config/config.{guess,sub}: update from config.
123176 2003-11-03  Jim Meyering  <jim@meyering.net>
123178         * modules/userspec (lib_SOURCES): Add userspec.h.
123179         (Include): Add "userspec.h".
123180         Improve description.
123182 2003-11-03  Jim Meyering  <jim@meyering.net>
123184         * lib/userspec.c: Include "userspec.h".
123185         * lib/userspec.h: New file.
123187 2003-11-03  Bruno Haible  <bruno@clisp.org>
123189         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
123191 2003-11-03  Bruno Haible  <bruno@clisp.org>
123193         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
123194         available, to avoid (extremely rare) race condition.
123195         Suggested by Paul Eggert.
123197 2003-11-02  Karl Berry  <karl@gnu.org>
123199         * config/srclist.txt (vasprintf.c): sync broken, sigh.
123201 2003-10-31  Paul Eggert  <eggert@twinsun.com>
123203         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
123204         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
123205         (read_filesystem_list): Set and use me_type_malloced.
123206         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
123207         whatever the type happens to be), for brevity and consistency.
123208         Check for size calculation overflow on Alphas running OSF/1.
123210 2003-10-31  Jim Meyering  <jim@meyering.net>
123212         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
123214         * lib/linebuffer.c: Include <string.h> for declaration of memset.
123216 2003-10-30  Paul Eggert  <eggert@twinsun.com>
123217             Bruno Haible  <bruno@clisp.org>
123219         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
123220         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
123222 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
123224         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
123225         netbsd*-gnu*.  Suggested by Robert Millan.
123227 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123229         * modules/group-member: Depend on stdbool.
123231 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123233         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
123235 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123237         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
123238         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
123239         after the 'gnu' in these cases.  This fixes some bugs in the
123240         previous change, and is based on suggestions by Robert Millan.
123242 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123244         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
123245         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
123246         no longer needed.
123247         * lib/quotearg.c (quotearg_n_options): Use it.
123248         * lib/group-member.c: Include <stdbool.h>.
123249         (free_group_info): Arg is now const *; don't free arg.
123250         (get_group_info): Now returns bool and accepts struct group_info *,
123251         rather than returning a malloc'ed struct group_info *.
123252         All uses changed.  Check for overflow in internal size calculation.
123254         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
123255         rather than xmalloc/xrealloc.
123256         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
123257         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
123258         conformance bug: the old code used a pointer after freeing the
123259         storage that it addressed.
123260         * lib/hash.c (hash_initialize): Simplify the code by using
123261         xalloc_oversized rather than doing it by hand.
123262         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
123263         the buffer preserved.  Use free and xmalloc instead.
123264         * lib/quotearg.c (quotearg_n_options): Likewise.
123265         Use a simpler test for size overflow.  Don't use xalloc_oversized
123266         because unsigned int might be wider than size_t (!); this suggests
123267         that we should switch from unsigned int to size_t for slot numbers.
123269 2003-10-28  Paul Eggert  <eggert@twinsun.com>
123271         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
123272         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
123273         NetBSD kernels.  Requested by Richard Stallman.
123275 2003-10-27  Paul Eggert  <eggert@twinsun.com>
123277         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
123278         to allocate the returned structure.  Do not allocate a subarray,
123279         as x2nrealloc will do that.
123280         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
123281         instead of xnrealloc.
123282         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
123284 2003-10-27  Bruno Haible  <bruno@clisp.org>
123286         * lib/stdbool_.h: Better support for BeOS.
123288 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123290         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
123291         now uses inline.
123293 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123295         * lib/xalloc.h (xalloc_oversized): New static inline function, for
123296         callers that want to do their own size-overflow checking.  Include
123297         <stdbool.h>, since xalloc_oversized returns bool.
123298         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
123299         to use xalloc_oversized.
123301         Add two functions x2realloc, x2nrealloc, for programs that grow
123302         arrays dynamically by doubling their sizes.
123303         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
123304         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
123305         New functions.
123307         Port to C99 semantics for 'inline' of external functions.
123308         Bug reported by Bruno Haible.
123309         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
123310         with the old contents of xnmalloc.
123311         (xnmalloc, xmalloc): Use it.
123312         (xnrealloc_inline): New static inline function,
123313         with the old contents of xnrealloc.
123314         (xnrealloc, xrealloc): Use it.
123316         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
123317         that.
123319 2003-10-26  Karl Berry  <karl@gnu.org>
123321         * config/srclist.txt (COPYING.DOC): no longer available from
123322         /gd/gnuorg; don't know where the ultimate source is.
123324 2003-10-25  Paul Eggert  <eggert@twinsun.com>
123326         Fix several address-calculation bugs in the hash modules,
123327         plus some minor code cleanup.
123329         * lib/hash.h: Include <stdbool.h>, for bool.
123330         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
123331         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
123332         hash_get_n_entries, hash_get_max_bucket_length,
123333         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
123334         hash_rehash): Use size_t rather than unsigned.
123335         * lib/hash.c (struct hash_table, hash_get_n_buckets,
123336         hash_get_n_buckets_used, hash_get_n_entries,
123337         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
123338         hash_get_entries, hash_do_for_each, hash_string, is_prime,
123339         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
123340         Likewise.
123341         (SIZE_MAX): Define if not defined.
123342         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
123343         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
123344         hash_print):
123345         Use const * when possible.
123346         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
123347         (check_tuning): Fix bug: if tuning parameters were very close to
123348         0 or 1, rounding errors could have caused subscript violations.
123349         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
123350         (hash_initialize): Add 'fail:' label
123351         to free table and return NULL, and use it to simplify code.
123352         Use calloc rather than clearing the storage ourself.
123353         (hash_initialize, hash_rehash): Check for arithmetic overflow in
123354         buffer size calculations.
123355         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
123356         Include <stddef.h>, for size_t.
123357         * lib/hash-pjw.c (hash_pjw): Likewise.
123358         Switch to method described by Bruno Haible.
123359         Include <limits.h>, for CHAR_BIT.
123360         (SIZE_BITS): New macro.
123362 2003-10-23  Paul Eggert  <eggert@twinsun.com>
123364         * m4/getline.m4 (AM_FUNC_GETLINE):
123365         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
123366         hosts.  Problem reported by Derek Robert Price in
123367         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
123368         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
123369         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
123371 2003-10-21  Paul Eggert  <eggert@twinsun.com>
123373         * lib/getndelim2.c (getndelim2): When size calculation overflows,
123374         ceiling the allocation at NMAX bytes rather than silently
123375         discarding input bytes before NMAX is reached.  This makes
123376         a difference only if NMAX exceeds SIZE_MAX / 2.
123378         * lib/obstack.c: Merge from glibc.
123379         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
123380         Add libc_hidden_def (_obstack_newchunk).
123381         (_obstack_free) [! defined _LIBC]: Remove.
123382         [defined _LIBC]: Make a strong alias from obstack_free, rather than
123383         a clone of the function body.
123384         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
123385         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
123387         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
123388         glibc.
123389         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
123390         arg to memcpy.
123392         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
123393         (obstack_ptr_grow_fast, obstack_int_grow_fast):
123394         Don't use lvalue casts, as GCC plans to remove support for them
123395         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
123396         was also present in the non-GCC version, indicating that this
123397         code had always been buggy and had never been widely used.
123398         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
123399         Use the fast variant of each macro, rather than copying the
123400         definiens of the fast variant; that way, we'll be more likely to
123401         catch future bugs in the fast variants.
123403 2003-10-20  Bruno Haible  <bruno@clisp.org>
123405         * modules/wait-process: New file.
123406         * MODULES.html.sh (func_all_modules): Add wait-process.
123408 2003-10-20  Bruno Haible  <bruno@clisp.org>
123410         * m4/wait-process.m4: New file.
123412 2003-10-20  Bruno Haible  <bruno@clisp.org>
123414         * lib/wait-process.h: New file, from GNU gettext.
123415         * lib/wait-process.c: New file, from GNU gettext.
123417 2003-10-19  Jim Meyering  <jim@meyering.net>
123419         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
123420         HPUX 10.20.
123422 2003-10-18  Karl Berry  <karl@gnu.org>
123424         * config/config.guess: update from config.
123426 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123428         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
123429         (getgroups): First arg is int, not size_t.
123430         Don't let 'free' mangle errno.
123432 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123434         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
123436 2003-10-16  Karl Berry  <karl@gnu.org>
123438         * config/config.{guess,sub}: update from config.
123440 2003-10-16  Jim Meyering  <jim@meyering.net>
123442         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
123443         memcpy.
123445 2003-10-15  Paul Eggert  <eggert@twinsun.com>
123447         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
123448         (SIZE_MAX): Remove.
123449         (new_exclude, add_exclude_file): Initial size no longer needs to
123450         be a power of 2.
123451         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
123452         our own address arithmetic overflow checking.
123454         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
123455         (fnmatch): Do not alloca more than 2000 wide characters;
123456         instead, use malloc for large buffers.
123457         Check for address arithmetic overflow, and return -1
123458         with errno set to ENOMEM in that case.
123459         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
123460         (NEW_PATTERN): Do not alloca more than 8000 bytes;
123461         instead, return -1.  Check for address arithmetic overflow.
123463 2003-10-14  Paul Eggert  <eggert@twinsun.com>
123465         Handle invalid suffixes and overflow independently, so that
123466         callers can treat them independently as needed.  Fix some bugs in
123467         suffix handling, e.g., "100k@" was not diagnosed as an invalid
123468         suffix for a human-readable blocksize.  The major caller-visible
123469         change is the addition of a new
123470         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
123471         that both overflow and suffix chars were found.
123473         * lib/human.c (humblock): Don't check separately for invalid suffix
123474         char; that is xstrtoumax's job (now that its bug is fixed).
123475         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
123476         INTMAX_MAX]: New macros.
123477         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
123478         TYPE_MAXIMUM): New macros.
123479         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
123480         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
123481         if overflow occurs, as it's what __strtol does and it's more useful
123482         in practice.
123483         (__xstrtol): If __strtol reports some error other than ERANGE,
123484         reflect it to the caller as LONGINT_INVALID.  If it reports
123485         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
123486         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
123487         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
123488         value.
123489         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
123490         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
123491         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
123492         [defined UINTMAX_MAX]: New macros.
123494 2003-10-14  Bruno Haible  <bruno@clisp.org>
123496         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
123498 2003-10-14  Bruno Haible  <bruno@clisp.org>
123500         * m4/sig_atomic_t: New file, from GNU gettext.
123501         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
123503 2003-10-14  Bruno Haible  <bruno@clisp.org>
123505         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
123506         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
123507         Also use volatile where needed.
123509 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123511         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
123512         Change maintainer from Bruno Haible to 'all'.
123514 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123516         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
123518 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123520         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
123521         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
123522         and define in terms of the other primitives.
123523         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
123524         (SIZE_MAX): Define if not already defined.
123525         (array_size_overflow): New function.
123526         (xalloc_die): Abort instead of exiting if 'error' returns.
123527         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
123528         (xmalloc, xrealloc): Use them.
123529         (xcalloc): Check for address arithmetic overflow.
123530         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
123531         a bit faster than strcpy.
123533 2003-10-10  Simon Josefsson  <jas@extundo.com>
123535         * modules/argp (Depends-on): Add restrict and strcase.
123537 2003-10-10  Simon Josefsson  <jas@extundo.com>
123539         * m4/argp.m4: Add AC_C_INLINE.
123541 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123543         Merge getpass from libc, plus a few fixes.
123545         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
123546         Include <stdbool.h>.
123547         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
123548         __fsetlocking to empty.
123549         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
123550         do include <bits/libc-lock.h>.
123551         Do not include <fcntl.h>; not needed.
123552         [_LIBC]: Include <wchar.h>.
123553         (NOTCANCEL_MODE): New macro.
123554         (flockfile, funlockfile) [_LIBC]: New macros.
123555         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
123556         [!_LIBC]: New macros.
123557         (call_fclose): New function.
123558         (getpass): Use it.  Save tty stream separately; this simplifies the
123559         code and makes it more reliable if stdin happens to equal stdout.
123560         Invoke __fsetlocking on tty.
123561         Handle thread cancellation if needed.
123562         Namespace cleanup (use __tcgetattr, __getline).
123563         Use bool for Booleans.
123564         [USE_IN_LIBIO]: Handle wide streams.
123565         [!_LIBC]: Unconditionally do the fseek, since we don't know what
123566         stream might go where.
123568         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
123569         doesn't have to include <stdio.h> before us.
123570         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
123571         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
123572         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
123573         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
123574         if not declared, so that we can use getpass.c code from libc without
123575         rewriting it.
123576         (flockfile, ftrylockfile, funlockfile): New macros.
123578 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123580         * modules/getpass: Depend on stdbool.
123582 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
123586 2003-10-07  Karl Berry  <karl@gnu.org>
123588         * config/config.{guess,sub}: update from config.
123590 2003-10-06  Jim Meyering  <jim@meyering.net>
123591             Bruno Haible  <bruno@clisp.org>
123593         This lets translators provide better translations for the
123594         "Written by ..." part of --version output.
123595         * lib/version-etc.h: Include stdarg.h.
123596         (version_etc_copyright): Declare as readonly.
123597         (version_etc): Make this function variadic with a NULL-terminated list
123598         of author name strings.
123599         (version_etc_va): New declaration.
123600         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123601         (version_etc_copyright): Declare as readonly.
123602         (version_etc_va): New function. Provide a different translatable string
123603         for each possible number of authors < 10. Abbreviate when there are 10
123604         authors or more.
123605         (version_etc): Make this function variadic. Call version_etc_va.
123606         Suggestion from Gary V. Vaughan.
123608         * lib/long-options.h (parse_long_options): Change prototype: the
123609         authors string is moved to the end and becomes variadic.
123610         * lib/long-options.c: Include stdarg.h.
123611         (parse_long_options): Make this function variadic, too.
123612         Call version_etc_va, not version_etc.
123614 2003-10-06  Bruno Haible  <bruno@clisp.org>
123616         * modules/version-etc-2: Remove file.
123617         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123619 2003-10-06  Bruno Haible  <bruno@clisp.org>
123621         * modules/fatal-signal: New file.
123622         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123624 2003-10-06  Bruno Haible  <bruno@clisp.org>
123626         * m4/fatal-signal.m4: New file.
123627         * m4/signalblocking.m4: New file, from GNU gettext.
123629 2003-10-06  Bruno Haible  <bruno@clisp.org>
123631         * lib/version-etc-2.h: Remove file.
123632         * lib/version-etc-2.c: Remove file.
123634 2003-10-06  Bruno Haible  <bruno@clisp.org>
123636         * lib/fatal-signal.h: New file, from GNU gettext.
123637         * lib/fatal-signal.c: New file, from GNU gettext.
123639 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123641         * README: Rework advice for preventing empty .o files.
123642         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123643         not <sys/types.h>.
123645 2003-10-04  Karl Berry  <karl@gnu.org>
123647         * lib/argp*: update from libc.
123649 2003-10-04  Karl Berry  <karl@gnu.org>
123651         * config/config.{guess,sub}: update from config.
123653 2003-10-02  Bruno Haible  <bruno@clisp.org>
123655         * modules/lchown (Include): Add lchown.h.
123656         * modules/time_r (Include): Use "..." syntax.
123657         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123659 2003-10-01  Simon Josefsson  <jas@extundo.com>
123661         * MODULES.html.sh (func_all_modules): Move gethostname from section
123662         'based on' to section 'lacking' POSIX:2001.
123664 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123666         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123667         to output mode on the same stream.
123669 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123671         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123672         Fix arg typo in previous patch.
123674 2003-09-28  Jim Meyering  <jim@meyering.net>
123676         * lib/error.c: Correct cpp indentation.
123678 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123680         * modules/free: New file.
123682 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123684         * m4/free.m4: New file.
123686 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123688         * lib/minmax.h (MIN, MAX)
123689         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123690         Omit the special code that used __typeof__, since we worry that
123691         it could be more trouble than it's worth.  See:
123692         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123693         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123695         * lib/free.c: New file.
123697 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123699         Trivial fixes to Makefile.am parts of module listings.
123700         * modules/strstr: Append strstr.h to lib_SOURCES.
123701         * modules/strcase: Likewise, for strcase.h.
123703 2003-09-27  Karl Berry  <karl@gnu.org>
123705         * config/mkinstalldirs: update from automake.
123707 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123709         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123710         (error_tail): Do not loop, reallocating temporary buffer, since
123711         the output cannot contain more wide characters than the input
123712         contains bytes, the size must be big enough already.  This avoids
123713         one potential size overflow calculation.  Check for size overflow
123714         when calculating temporary buffer size.  Free temporary buffer
123715         when done, if it was allocated with malloc; this plugs a memory
123716         leak.  Remove casts from void * to pointers, that are no longer
123717         needed now that we're assuming C89 or better.
123719         Merge error changes from glibc.
123721         * lib/error.c, error.h: Update copyright notice header to match glibc.
123722         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123723         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123724         Disable cancellation while printing error.
123725         * lib/error.h: Prepend __ to parameter names.
123727 2003-09-26  Jim Meyering  <jim@meyering.net>
123729         * lib/error.c (error_tail): Move some declarations
123730         into inner scope where the local variables are used.
123732 2003-09-26  Bruno Haible  <bruno@clisp.org>
123734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123735         stpncpy().
123736         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123738 2003-09-26  Bruno Haible  <bruno@clisp.org>
123740         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123741         (stpncpy): Define as alias for gnu_stpncpy.
123742         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123744 2003-09-25  Simon Josefsson  <jas@extundo.com>
123746         * lib/xgetdomainname.h: New file.
123747         * lib/xgetdomainname.c: New file.
123749 2003-09-25  Simon Josefsson  <jas@extundo.com>
123750             Bruno Haible  <bruno@clisp.org>
123752         * modules/getdomainname: New file.
123753         * modules/xgetdomainname: New file.
123754         * MODULES.html.sh (func_all_modules): Add getdomainname,
123755         xgetdomainname.
123757 2003-09-25  Simon Josefsson  <jas@extundo.com>
123758             Bruno Haible  <bruno@clisp.org>
123760         * m4/getdomainname.m4: New file.
123762 2003-09-25  Simon Josefsson  <jas@extundo.com>
123763             Bruno Haible  <bruno@clisp.org>
123765         * lib/getdomainname.h: New file.
123766         * lib/getdomainname.c: New file.
123768 2003-09-25  Karl Berry  <karl@gnu.org>
123770         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123772 2003-09-25  Karl Berry  <karl@gnu.org>
123774         * config/install-sh: update from automake.
123776 2003-09-25  Bruno Haible  <bruno@clisp.org>
123778         * modules/version-etc-2: New file, from modules/version-etc with
123779         modifications.
123780         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123782 2003-09-25  Bruno Haible  <bruno@clisp.org>
123784         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123785         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123787 2003-09-24  Simon Josefsson  <jas@extundo.com>
123789         * modules/xgethostname: Add xgethostname.h.
123791 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123793         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123794         the buffer associated with the argument.  Bug reported by
123795         Simon Josefsson.
123797 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123799         * README: Document assumptions that 'int' is at least 32 bits
123800         wide, that integer arithmetic is 2's complement without overflow,
123801         that there are no holes in integer values, that adding sizes of
123802         two nonoverlapping objects can't overflow, and that all-bits-zero
123803         yields scalar zero.  Fix spelling and capitalization typos.
123805 2003-09-19  Karl Berry  <karl@gnu.org>
123807         * lib/argp.h: update from libc.
123809 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123812         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123813         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123815 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123817         * gnulib-tool: Use "test -h", not "test -L", for portability
123818         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123819         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123820         (sed_extract_prog): Issue s commands one-by-one, rather than
123821         using \| in one s command.
123823 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123825         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123826         input error, instead of returning NULL the next time we are called
123827         (and therefore losing track of errno).
123829 2003-09-16  Bruno Haible  <bruno@clisp.org>
123831         * gnulib-tool (func_create_testdir): Warn about duplicated
123832         dependencies.
123834 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123836         * modules/argmatch, modules/fatal, modules/obstack,
123837         modules/xalloc, modules/xgethostname: Sort dependencies by
123838         importance, not alphabetically.
123840 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123842         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123843         fails, so that the caller gets the proper errno.
123845         * lib/readutmp.c (read_utmp): Likewise.
123846         Check for fstat error.  Close stream and free storage
123847         when failing.
123849 2003-09-14  Karl Berry  <karl@gnu.org>
123851         * config/srclist.txt (strdup.c): disable for c89 changes.
123853 2003-09-14  Jim Meyering  <jim@meyering.net>
123855         * lib/getloadavg.c: Correct cpp indentation.
123856         * lib/strdup.c: Likewise.
123857         * lib/vasnprintf.c: Likewise.
123859 2003-09-14  Bruno Haible  <bruno@clisp.org>
123861         * modules/fwriteerror: New file.
123862         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123864 2003-09-14  Bruno Haible  <bruno@clisp.org>
123866         * lib/fwriteerror.h: New file.
123867         * lib/fwriteerror.c: New file.
123869 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123871         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123872         modules/xgethostname, modules/xalloc: Depend on exit.
123874 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123876         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123879         and AC_MINIX, too, so that their extensions are available.
123881         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123882         This macro has been superseded by gl_BACKUPFILE.
123884         More patches to assume C89 or better.
123886         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123888         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123889         unconditionally.
123890         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123891         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123892         Include <string.h>, <stdlib.h> unconditionally.
123893         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123894         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123895         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123896         headers or for string.h.
123897         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123898         or strtoul.
123900         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123901         headers.
123902         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123903         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123904         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123905         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123907         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123908         memcpy, memset.
123909         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123910         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123911         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123912         strtol.
123913         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123914         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123915         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123916         strtoul.
123918 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123920         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123921         * lib/obstack.c [!defined _LIBC]: Likewise.
123922         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123923         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123924         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123926         More changes to assume C89 or better.
123928         * lib/error.c (error_tail): Assume vprintf.
123930         * lib/argmatch.c (getenv): Remove decl.
123931         * lib/progreloc.c (get_full_program_name): Define via prototype.
123932         * lib/setenv.c (clearenv): Likewise.
123933         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123934         needed.
123935         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123936         (malloc, memcpy): Remove decls.
123937         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123938         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123939         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123940         (memcpy): Remove macro.
123941         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123942         (__P): Remove.  All uses removed.
123943         (PTR): Remove.  All uses changed to void *.
123944         (CHAR_BIT, NULL): Remove.
123945         (spaces, zeros, memset_space, memset_zero)
123946         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123947         Remove.
123948         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123949         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123950         Define with prototype.
123951         Remove now-unnecessary prototype decl.
123952         (extra_args_spec): Assume ANSI C.  All uses changed.
123953         (extra_args_spec_iso): Remove.
123954         (my_strftime, emacs_strftimeu): Define via prototype.
123955         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123956         unconditionally.
123957         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123958         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123959         (strtoul, strtol): Remove decls.
123960         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123961         LONG_MAX): Remove.
123962         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123963         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123964         (LOCALE_PARAM_PROTO): New macro.
123965         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123966         (INTERNAL (strtol), strtol): Define with a prototype.
123967         (PARAMS): Remove.  All uses removed.
123968         * lib/tempname.c: Include <string.h> unconditionally.
123969         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123970         * lib/xgethostname.c (main): Define with a prototype.
123971         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123972         Include <stdlib.h> unconditionally.
123973         (calloc, malloc, realloc, free): Remove decls.
123974         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123975         Include <stdlib.h> unconditionally.  Sort include file names.
123976         (strtod): Remove.
123977         (xstrtod): Define with a prototype.
123978         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123979         (strtol, strtoul): Remove decls.
123981 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123983         More patches to assume C89 or better.
123984         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123985         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123986         string.h, memchr, STDC_HEADERS.
123988 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123990         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123991         Include <stdlib.h>, <string.h> unconditionally.
123992         Remove now-unnecessary cast to char *.
123993         * lib/strnlen.c: Include <string.h> unconditionally.
123994         * lib/yesno.c (yesno): Define with a prototype.
123996 2003-09-11  Bruno Haible  <bruno@clisp.org>
123998         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
124000 2003-09-10  Jim Meyering  <jim@meyering.net>
124002         * lib/error.c: Correct indentation of cpp directives.
124004 2003-09-10  Bruno Haible  <bruno@clisp.org>
124006         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
124007         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
124008         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
124009         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
124010         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
124011         <stdlib.h> and <string.h> checks.
124012         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
124013         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
124015 2003-09-10  Bruno Haible  <bruno@clisp.org>
124017         * lib/strcspn.c: Include <string.h> unconditionally.
124018         * lib/strpbrk.c: Include <string.h> unconditionally.
124019         * lib/strstr.c: Include <string.h> unconditionally.
124020         * lib/unicodeio.c: Include <string.h> unconditionally.
124021         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
124022         * lib/unsetenv.c: Likewise.
124023         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
124024         * lib/yesno.c: Include <stdlib.h> unconditionally.
124025         (rpmatch): Add prototype.
124027 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124029         More patches to assume C89 or better.
124030         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
124031         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
124032         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
124033         or for string.h.
124034         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
124035         stdlib.h.
124036         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
124037         C headers.
124038         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
124039         string.h.
124040         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
124041         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
124042         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
124043         or for string.h.
124044         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
124045         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
124046         C headers.
124047         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
124048         memcpy.
124049         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
124050         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
124051         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
124052         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
124053         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
124054         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
124055         string.h, free.
124056         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
124057         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
124058         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
124059         C headers, or for string.h.
124060         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
124061         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
124062         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
124063         headers, memory.h, stdlib.h, string.h, strings.h.
124064         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
124065         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
124066         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
124067         strchr.
124068         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
124069         headers, memory.h, string.h.
124070         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
124071         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
124072         free.
124073         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
124074         headers.
124075         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
124076         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
124077         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
124078         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
124079         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
124081 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124083         More K&R removal.
124085         * lib/acosl.c (main): Use a prototype.
124086         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
124087         tanl.c: Likewise.
124089         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
124091         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
124092         (getopt, etopt_long, getopt_long_only, _getopt_internal)
124093         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
124094         with a prototype.
124095         * lib/getopt.c (const): Remove macro.
124096         Include <string.h> unconditionally.
124097         (my_index): Remove; all uses changed to strchr.
124098         (strlen): Remove decl.
124099         (exchange): Remove forward decl; no longer needed.
124100         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
124101         Define with prototype.
124102         * lib/getopt1.c (const): Remove macro.
124103         (getopt_long, getopt_long_only, main): Define with prototype.
124105         * lib/getugroups.c: Include <string.h> unconditionally.
124107         * lib/getusershell.c: Include <stdlib.h> unconditionally.
124108         (getusershell, setusershell, endusershell, readname, main):
124109         Define with prototypes.
124111         * lib/group-member.c: Include group-member.h first.
124112         Include <stdlib.h> unconditionally.
124114         * lib/hard-locale.c: Include hard-locale.h first.
124115         Include <stdlib.h>, <string.h> unconditionally.
124117         * lib/hash.c (free, malloc): Remove decls.
124118         Include <stdlib.h> unconditionally.
124120         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
124121         (getenv): Do not declare.
124123         * lib/idcache.c: Include <string.h> unconditionally.
124125         * lib/long-options.c: Include long-options.h first, to test interface.
124126         Include <stdlib.h> unconditionally.
124128         * lib/makepath.c: Include makepath.h first, to test interface.
124129         Include <stdlib.h> and <string.h> unconditionally.
124131         * lib/linebuffer.c: Include <stdlib.h>.
124132         (free): Remove decl.
124134         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
124135         stddef.h. rpl_malloc returns void *, not char *.
124136         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
124137         prototype.
124139         * lib/md5.h: Include <limits.h> unconditionally.
124140         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
124141         (__P): Remove; all uses removed.
124142         * lib/md5.c: Include "md5.h" first.
124143         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
124144         md5_buffer, md5_process_bytes, md5_process_block):
124145         Define with prototypes.
124146         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
124147         * lib/sha.c: Include "sha.h" first.
124148         Include <stdlib.h>, <string.h> unconditionally.
124150         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
124151         * lib/memcmp.c (__ptr_t): Likewise.
124152         * lib/memrchr.c (__ptr_t): Likewise.
124153         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
124154         Include <string.h> unconditionally.
124155         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
124156         * lib/memchr.c: Include <stdlib.h> unconditionally.
124157         * lib/memchr.c (LONG_MAX): Remove.
124158         * lib/memrchr.c (LONG_MAX): Likewise.
124159         * lib/memchr.c (__memchr): Define via a prototype.
124160         * lib/memrchr.c (__memrchr): Likewise.
124161         * lib/memcmp.c (__P): Remove, and remove all uses.
124162         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
124163         Remove forward decls; no longer needed.
124164         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
124165         Use types required by C89 in prototype.
124167         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
124168         * lib/savedir.c: Likewise.
124169         * lib/mkdir.c (free): Remove decl.
124170         * lib/rmdir.c (rmdir): Define with a prototype.
124171         * lib/savedir.c: Include savedir.h first, to test interface.
124173         * lib/mktime.c (STDC_HEADERS): Remove.
124174         Include <stdlib.h>, <string.h> unconditionally.
124176         * lib/modechange.c: Include <stdlib.h> unconditionally.
124177         (malloc): Remove decl.
124179         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
124180         (free): Remove decl.
124182         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
124183         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
124184         (This type really should be intptr_t, but that's a C99ism.)
124185         (_obstack_memcpy): Remove: all uses changed to memcpy.
124186         Include <string.h> unconditionally.
124187         (struct obstack): Assume __STDC__ for types of members
124188         chunkfun, freefun, extra_arg.
124189         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
124190         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
124191         obstack_begin, obstack_specify_allocation,
124192         obstack_specify_allocation_with_arg, obstack_chunkfun,
124193         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
124194         Remove unprototyped decls and the macros that use them.
124195         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
124196         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
124197         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
124198         (defined __STDC__ && __STDC__)]:
124199         Remove nonprototyped code.
124200         Include <stdlib.h> unconditionally.
124201         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
124202         _obstack_allocated_p, _obstack_free, obstack_free,
124203         _obstack_memory_used, print_and_abort):
124204         Define using prototypes.
124205         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
124206         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
124207         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
124208         obstack_next_free, obstack_object_size, obstack_room) [0]:
124209         Remove unused, unprototyped code.
124211         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
124213         * lib/physmem.c (physmem_total, physmem_available, main): Define
124214         with prototypes.
124216         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
124217         (main): Define with a prototype.
124219         * lib/posixver.c (getenv): Remove decl.
124221         * lib/putenv.c (malloc): Returns void *, not char *.
124222         Include <string.h> unconditionally.
124223         (strchr, memcpy, NULL): Do not define.
124225         * lib/readtokens.c: Include readtokens.h first, to test interface.
124226         Include <stdlib.h>, <string.h> unconditionally.
124227         (init_tokenbuffer): Define with a prototype.
124229         * lib/regex.c (PARAMS): Remove.  All uses removed.
124230         All uses of _RE_ARGS removed, too.
124231         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124232         unconditionally.
124233         (bzero): Assume memset exists.
124234         (memcmp, memcpy, NULL): Remove.
124235         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
124236         char, or assignments to local vars of type signed char.
124237         (init_syntax_once, PREFIX(extract_number_and_incr),
124238         PREFIX(print_partial_compiled_pattern),
124239         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
124240         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
124241         PREFIX(regex_grow_registers), PREFIX(regex_compile),
124242         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
124243         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
124244         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
124245         wcs_compile_range, byte_compile_range, truncate_wchar,
124246         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
124247         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
124248         count_mbs_length, wcs_re_match_2_internal,
124249         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
124250         PREFIX(alt_match_null_string_p),
124251         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
124252         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
124253         regfree, PREFIX(extract_number)): Define with prototype.  Remove
124254         now-unnecessary declaration, if any.
124255         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
124256         regcomp, regexec):
124257         Remove now-unnecessary casts among pointer types.
124258         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
124260         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
124261         (free): Remove decl.
124263         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
124265         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
124266         (free): Remove decl.
124268         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
124269         * lib/xgetcwd.c: Likewise.
124271         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
124272         (free): Remove decl.
124274         * lib/strchrnul.c (strchrnul): Define with a prototype.
124275         Fix bug: c_in was not converted to char before searching.
124277         The following changes are not K&R related:
124279         * lib/group-member.h: Include <sys/types.h>, so that this file is
124280         self-contained.
124281         * lib/makepath.h: Likewise.
124283         * lib/getusershell.c (readname, default_index, line_size, readname):
124284         Use size_t, not int, for sizes.
124285         (readname): If the size overflows, report an error instead of
124286         looping forever.
124288 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124290         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
124291         libc.
124293 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124295         * README: New section: portability guidelines.
124297 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124299         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
124300         C89 spec.
124302 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124304         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
124306 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124308         Assume C89 or better; remove K&R cruft.
124309         A few of these changes were first proposed by Derek Robert Price
124310         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
124312         * lib/addext.c: Include <string.h> unconditionally.
124313         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
124314         Don't declare getenv or malloc.
124316         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
124317         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
124318         (NULL): Remove.
124319         (find_stack_direction, alloca): Use prototypes.
124321         * lib/atexit.c (atexit): Define using a prototype.
124323         * lib/basename.c, dirname.c, stripslash.c:
124324         Include <string.h> unconditionally.
124326         * lib/bcopy.c: Include <stddef.h>.
124327         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
124329         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
124331         * lib/error.h (error, error_at_line, error_print_progname)
124332         [! (defined (__STDC__) && __STDC__)]: Remove decls.
124333         * lib/error.c: Include error.h first, to check interface.
124334         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124335         (VA_START): Remove; all uses changeed to va_start.
124336         (exit, strerror): Remove decls.
124337         (error_print_progname): Prototype uncondionally.
124338         Don't include <errno.h>; no longer needed.
124339         (private_strerror): Remove.
124340         (error_tail): Always define.
124341         (error, error_at_line): Assume C89 or better; always use prototypes.
124342         * lib/fatal.c: Include "fatal.h" first, to test interface.
124343         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124344         (VA_START): Remove; all uses changed to va_start.
124345         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
124346         this case.
124347         (exit): Remove decl.
124348         (fatal): Prototype unconditionally.  Assume va_start works.
124349         Abort at end, to pacify gcc.
124351         * lib/euidaccess.c (main): Define with a prototype.
124353         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
124355         * lib/exitfail.c: Include <stdlib.h> unconditionally.
124357         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
124358         prototypes.
124359         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
124360         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
124361         (getenv): Remove decl.
124362         (fnmatch): Define using a prototype.
124363         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
124364         (FCT): Define using a prototype.
124366         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
124368         * lib/gethostname.c: Include <stddef.h>.
124369         (gethostname): Define with prototype.  Length is size_t, not int.
124371 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124373         Assume C89 or better; remove K&R cruft.
124374         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
124375         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
124376         string.h, getenv, malloc.
124377         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
124378         headers.
124379         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
124380         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
124381         do not check for strerror.
124382         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
124383         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
124384         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
124385         do not check for doprnt or vprintf.
124386         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
124387         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
124389 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124391         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
124392         getversion.c should have been removed then, but was accidentally
124393         preserved.
124395         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
124396         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
124398 2003-09-08  Karl Berry  <karl@gnu.org>
124400         * config/config.sub, config.guess, srclistvars.sh: update from savannah
124401                 config, forget about prep.
124403         * config/depcomp, missing: update from automake.
124405 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124407         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
124408         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124410 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124412         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
124413         copy_tm_result.  Bug reported by Simon Josefsson in
124414         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124416 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124418         * m4/time_r.m4: New file.
124419         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
124420         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
124421         is. Check for timegm declaration.
124422         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
124423         Do not check for gmtime_r.
124424         Replace mktime if __mktime_internal does not exist and if mktime
124425         hasn't been replaced already.
124427 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124429         * lib/time_r.c, lib/time_r.h: New files.
124431         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
124432         __localtime_r.
124433         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
124434         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
124436         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
124437         __gmtime_r.
124438         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
124439         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
124440         Include <time_r.h>.
124442         * lib/timegm.c: Switch to glibc implementation, with the following
124443         changes:
124444         [defined HAVE_CONFIG_H]: Include <config.h>.
124445         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
124446         (__mktime_internal) [!defined _LIBC]: New decl.
124447         (__gmtime_r) [!defined _LIBC]: New macro and function.
124448         (timegm): Use a prototype, since gnulib assumes C89.
124449         Do not bother declaring tmp to be const, as it's not really usefu.
124450         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
124451         (timegm): Declare only if HAVE_DECL_TIMEGM.
124453 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124455         * MODULES.html.sh (func_all_modules): Add time_r.
124456         * modules/time_r: New file.
124457         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
124458         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
124460 2003-09-03  Paul Eggert  <eggert@twinsun.com>
124462         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
124463         Bug reported by Lute Kamstra in
124464         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
124466         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
124467         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
124468         course with correspondingly smaller numbers for tomorrow and
124469         yesterday.  From Tadayoshi Funaba.  Originally installed into
124470         sh-utils on 1999-08-07, but the patch got lost (I guess during the
124471         coreutils merge?).
124473 2003-08-31  Simon Josefsson  <jas@extundo.com>
124475         * modules/timegm: New file.
124476         * MODULES.html.sh (func_all_modules): Add timegm.
124478 2003-08-31  Simon Josefsson  <jas@extundo.com>
124480         * m4/timegm.m4: New file.
124482 2003-08-31  Simon Josefsson  <jas@extundo.com>
124484         * lib/timegm.h: New file.
124485         * lib/timegm.c: New file.  Based on
124486         wget-1.8.2/src/http.c:mktime_from_utc.
124488 2003-08-31  Karl Berry  <karl@gnu.org>
124490         * lib/argp.h: update from libc.
124492 2003-08-28  Bruno Haible  <bruno@clisp.org>
124494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
124495         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
124496         followed by '#define fnmatch fnmatch_posix' gives an error.
124498 2003-08-28  Bruno Haible  <bruno@clisp.org>
124500         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
124501         warning on QNX, which defines O_BINARY to 000000.
124503 2003-08-27  Jim Meyering  <jim@meyering.net>
124505         * m4/mkstemp.m4: Require that the system mkstemp be able to create
124506         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
124507         would fail after 32.  Reported by Danny Levinson.  Details here:
124508         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
124510 2003-08-24  Bruno Haible  <bruno@clisp.org>
124512         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
124513         MSVC7 <stdio.h> is included later.
124515 2003-08-22  Simon Josefsson  <jas@extundo.com>
124517         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
124519 2003-08-20  Karl Berry  <karl@gnu.org>
124521         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
124523 2003-08-20  Bruno Haible  <bruno@clisp.org>
124525         * modules/progname: New file.
124526         * MODULES.html.sh (func_all_modules): Add progname.
124528 2003-08-20  Bruno Haible  <bruno@clisp.org>
124530         * lib/progname.h: New file, from GNU gettext.
124531         * lib/progname.c: New file, from GNU gettext.
124532         * lib/progreloc.c: New file, from GNU gettext.
124534 2003-08-19  Jim Meyering  <jim@meyering.net>
124536         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
124537         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
124539 2003-08-19  Bruno Haible  <bruno@clisp.org>
124541         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
124542         more.
124544 2003-08-19  Bruno Haible  <bruno@clisp.org>
124546         * lib/xstrdup.c: Assume <string.h> exists.
124548 2003-08-18  Paul Eggert  <eggert@twinsun.com>
124550         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
124551         in makefile rules.
124553 2003-08-18  Jim Meyering  <jim@meyering.net>
124555         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
124556         * m4/lib-ld.m4: Likewise.
124558 2003-08-18  Jim Meyering  <jim@meyering.net>
124560         * lib/setenv.h: Indent nested cpp directive.
124561         * lib/vasnprintf.c: Remove trailing blanks.
124563 2003-08-17  Simon Josefsson  <jas@extundo.com>
124565         * modules/xstrndup: New file.
124566         * MODULES.html.sh (func_all_modules): Add xstrndup.
124568 2003-08-17  Simon Josefsson  <jas@extundo.com>
124570         * modules/argp: Fix autoconf macro name. Add more dependencies.
124572 2003-08-17  Simon Josefsson  <jas@extundo.com>
124574         * m4/xstrndup.m4: New file.
124576 2003-08-17  Simon Josefsson  <jas@extundo.com>
124578         * m4/argp.m4: New file.
124580 2003-08-17  Simon Josefsson  <jas@extundo.com>
124581             Bruno Haible  <bruno@clisp.org>
124583         * lib/xstrndup.h: New file.
124584         * lib/xstrndup.c: New file.
124586 2003-08-17  Bruno Haible  <bruno@clisp.org>
124588         * modules/strndup (Files, Include): Add lib/strndup.h.
124590 2003-08-17  Bruno Haible  <bruno@clisp.org>
124592         * modules/euidaccess (Files): Add lib/euidaccess.h.
124594 2003-08-17  Bruno Haible  <bruno@clisp.org>
124596         * lib/strndup.h: New file.
124598 2003-08-17  Bruno Haible  <bruno@clisp.org>
124600         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124601         like AC_GNU_SOURCE.
124602         * modules/extensions (configure.ac): Comment out the invocation of
124603         gl_USE_SYSTEM_EXTENSIONS.
124605 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124607         Merges from coreutils, etc.
124608         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124609         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124610         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124611         fixing a typo.
124612         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124613         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124617         Document merge from coreutils.
124618         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124619         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124620         * modules/utime: Add m4/utimes-null.m4.
124622 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124624         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124625         space, undoing this 2003-08-12 change:
124626         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124628 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124630         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124631         strtoul.c from libc, undoing this 2003-08-12 change:
124632         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124634 2003-08-16  Jim Meyering  <jim@meyering.net>
124636         Merges from coreutils.
124637         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124638         prefix.  Adjust cache variables similarly.  Create 500 rather than
124639         just 300 files, to exercise bug on Darwin6.5, too.
124640         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124641         $missing_dir.
124642         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124643         AM_SYS_POSIX_TERMIOS.
124644         Reported by mkc@mathdogs.com.
124645         Also change use of $am_cv_sys_posix_termios
124646         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124647         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124648         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124649         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124650         in /proc/mounts until it finds one with matching device number.  This
124651         is unnecessary when the FILE argument *is* a mount point.  No stat call
124652         is necessary in that case.  So, disable the statvfs-testing code on
124653         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124654         as RedHat bug# 84846.
124655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124656         to 1MB, so as not to render systems with no stack size limit (e.g.,
124657         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124658         Include <unistd.h>.  On some systems,
124659         it is required for the definition of _SC_PAGESIZE.
124661 2003-08-16  Jim Meyering  <jim@meyering.net>
124663         Merge from coreutils.
124664         * lib/xstrtoimax.c: #else #if -> #elif.
124665         * lib/xstrtoumax.c: Likewise.
124667 2003-08-16  Jim Meyering  <jim@meyering.net>
124669         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124670         * m4/utimes.m4: Removed.
124671         * m4/utimes-null.m4: Renamed from utimes.m4.
124673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124674         to 1MB, so as not to render systems with no stack size limit (e.g.,
124675         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124676         Include <unistd.h>.  On some systems,
124677         it is required for the definition of _SC_PAGESIZE.
124679 2003-08-16  Jim Meyering  <jim@meyering.net>
124680         and Paul Eggert  <eggert@cs.ucla.edu>
124682         Merges from coreutils, etc.
124684         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124685         using the latest version from cvs.  This avoids problems with #line
124686         directives using a vendor (Sun) compiler.
124687         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124688         Don't set GETGROUPS_LIB here; now it's
124689         done via getgroups.m4's wrapper function.
124690         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124691         rather than just in sh-util/configure.in, so that the
124692         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124693         same.
124694         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124695         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124696         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124697         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124698         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124699         Remove code that is now done by the newly-required macros.
124700         Append $(EXEEXT) to DF_PROG.
124701         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124702         Do not invoke or require the following here,
124703         since prereq.m4 or some gnulib .m4 now does this for us:
124704         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124705         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124706         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124707         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124708         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124709         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124710         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124711         AC_FUNC_OBSTACK.
124712         Do not replace the following functions, as this is now the job
124713         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124714         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124715         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124716         atexit getpass, strdup, getpagesize.
124717         Replace 'raise'.
124718         Do not check for the following functions, as this is now the job
124719         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124720         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124721         setregid.
124722         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124723         Check for sys/sysctl.h.
124724         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124725         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124726         of checking for ssize_t ourselves.
124728         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124729         Require every macro that gnulib/modules/* suggests for us.
124730         (jm_PREREQ_ADDEXT): New macro.
124731         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124732         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124734         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124735         (gl_PHYSMEM): Use it.
124736         Also check for `table' function.
124737         Check for new headers and functions.
124738         Add check for sys/sysmp.h.
124739         With suggestions from Kaveh Ghazi.
124740         Ignore headers that are present but cannot be compiled.  This
124741         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124742         C 5.4.
124744 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124746         Document merge from coreutils.
124747         * modules/userspec: Depend on posixver.
124748         * modules/strftime: Depend on tzset.
124750 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124752         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124753         rather than tab, after '#' in shell-script copyright notices.
124754         Suggested by Bruno Haible.
124756 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124758         * config/srclist-update: Use three spaces, rather than tab, after '#'
124759         in shell-script copyright notices.  Suggested by Bruno Haible.
124760         Remove unnecessary parenthesization in regular expression.
124762 2003-08-15  Jim Meyering  <jim@meyering.net>
124764         Merge from coreutils.
124765         * lib/xgethostname.c: Include <stdlib.h>.
124766         (xghostname): Don't exit for anything other than memory-related
124767         failure; just return NULL.
124768         * lib/userspec.c: Include "posixver.h".
124769         (parse_user_spec): Accept `.' as a separator only
124770         in pre-POSIX-200112 mode.
124771         * lib/strtoimax.c: Use #elif rather than #else #if.
124772         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124773         Remove function, now that we can rely on a working tzset function.
124774         [!_LIBC]: Ensure that the required autoconf test has been run.
124775         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124776         Use underlying_strftime for %r.
124777         * lib/sha.c: Merge in some clean-up and optimization changes from
124778         glibc.
124779         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124780         Ensure that it is a multiple of 64.
124781         Rearrange loop exit tests so as to avoid performing an
124782         additional fread after encountering an error or EOF.
124783         * lib/realloc.c: Update copyright date.
124785 2003-08-15  Jim Meyering  <jim@meyering.net>
124786         and Paul Eggert  <eggert@twinsun.com>
124788         Merge from coreutils.
124789         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124790         member but strut utmpx does not.  Needed for AIX 4.3.3.
124791         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124793 2003-08-15  Jim Meyering  <jim@meyering.net>
124794         and Paul Eggert  <eggert@cs.ucla.edu>
124796         Merges from coreutils, etc.
124797         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124798         Require gl_FUNC_TZSET_CLOBBER.
124799         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124800         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124801         members.
124803 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124805         Help the merge from coreutils.
124806         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124807         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124808         * m4/tzset.m4: Use it too.
124810 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124812         * modules/tzset: New file.
124814 2003-08-14  Jim Meyering  <jim@meyering.net>
124816         Merges from coreutils.
124817         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124818         variable names, rather than @FNMATCH_H@.
124819         * modules/alloca: Likewise for $(ALLOCA_H).
124821         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124822         the three copies of the literal target, `fnmatch.h'.
124823         * modules/alloca (alloca.h): Likewise.
124825 2003-08-14  Jim Meyering  <jim@meyering.net>
124827         Merge from coreutils.
124828         * m4/tzset.m4: New file.
124829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124830         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124831         otherwise, AIX 5.1 systems would end up using the latter.
124832         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124833         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124834         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124835         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124837 2003-08-14  Jim Meyering  <jim@meyering.net>
124839         Merge from coreutils.
124840         * lib/obstack.h: Whitespace changes.
124841         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124842         and xcalloc return values.
124843         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124844         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124845         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124846         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124847         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124848         error from mntctl.
124849         Use mntctl's return value to drive the entry-processing loop, since
124850         we can't rely on the value of the vmt_length member in the last
124851         entry.  On some systems doing so could result in exhausting
124852         virtual memory.  Based in part on a patch from Mike Jetzer.
124854 2003-08-14  Jim Meyering  <jim@meyering.net>
124855         and Paul Eggert  <eggert@twinsun.com>
124857         Merges from coreutils, plus other fixes.
124858         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124859         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124860         for credits and details.  Thanks to Kaveh Ghazi for helping
124861         to keep these files in sync.
124862         (ARRAY_SIZE): Define it.
124863         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124864         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124865         (memcasecmp): Don't assume size_t fits in unsigned int.
124866         Remove casts and duplicate code.
124867         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124868         (memcpy): Remove definition.
124869         Merge in some clean-up and optimization changes from glibc.
124870         [BLOCKSIZE]: Move definition to top of file.
124871         Ensure that it is a multiple of 64.
124872         Rearrange loop exit tests so as to avoid performing an
124873         additional fread after encountering an error or EOF.
124874         * lib/md5.h (md5_uintptr): Define.
124875         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124876         return to the initial working directory.  Preserve errno
124877         for caller.
124878         * lib/idcache.c: Include "xalloc.h".
124879         (xmalloc, xrealloc): Remove decls.
124880         (getuser): Remove casts no longer required in C89.
124881         * lib/human.c: Include stdio.h, for sprintf.
124882         * lib/group-member.c: Include "xalloc.h".
124883         (xmalloc, xrealloc): Remove decls.
124884         (get_group_info): Remove casts no longer required in C89.
124885         * lib/getusershell.c (readname): Remove casts no longer required in
124886         C89.
124887         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124888         * lib/getline.c: Whitespace fix, from coreutils.
124890 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124892         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124893         Check for isascii.
124895         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124896         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124897         Undo previous (whitespace-only) change.
124899 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124901         * lib/exclude.c: Include <ctype.h>
124902         (IN_CTYPE_DOMAIN): New macro.
124903         (is_space): New fn.
124904         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124905         and empty lines.
124907         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124908         Undo previous (whitespace-only) change.
124910 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124912         * config/srclist-update: Change update back to the old behavior,
124913         leaving whitespace alone.  Use one 'sed' command rather than a
124914         pipeline.
124915         (fixlicense): Now a variable, not a function.
124916         (remove_trailing_blanks): Remove.
124917         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124918         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124919         Undo previous (whitespace-only) change.
124921 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124923         Merge from coreutils.
124924         * modules/euidaccess: Add lib_SOURCES, include for new
124925         file euidaccess.h
124927 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124929         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124930         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124931         Normalize leading white space and remove trailing white space.
124933         Merge from coreutils
124934         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124936         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124937         0.12.1.  These files are now being upgraded automatically by
124938         ../config/srclist-update.
124940 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124942         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124943         Normalize leading white space and remove trailing white space.
124944         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124945         notice, as per ../config/srclist-update.
124947         Merge from coreutils.
124948         * lib/euidaccess.h: New file.
124949         * lib/euidaccess.c: Include it.
124950         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124951         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124952         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124954 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124956         * config/srclist-update: Add copyright notice.
124957         (remove_id_lines, remove_trailing_blanks): New constants.
124958         (fixfile): Use them to normalize spacing a bit in copied files.
124959         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124960         Normalize leading white space and remove trailing white space.
124962         * config/texinfo.tex: Sync with texinfo.
124964         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124965         strtoul.c from libc, to merge coreutils whitespace changes.
124967         * config/srclist.txt: Get the following m4 files from gettext:
124968         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124969         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124970         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124971         wint_t.m4.
124973 2003-08-12  Karl Berry  <karl@gnu.org>
124975         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124976         been made.
124978 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124980         * modules/gnu-source, m4/gnu-source.m4:
124981         Remove; we're assuming Autoconf 2.54 or later now.
124982         Suggested by Bruno Haible.
124983         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124985 2003-08-11  Bruno Haible  <bruno@clisp.org>
124987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124989 2003-08-11  Bruno Haible  <bruno@clisp.org>
124991         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124992         (vasnprintf): Use it instead of wcslen.
124994 2003-08-11  Bruno Haible  <bruno@clisp.org>
124996         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124997         value to ensure that _Bool promotes to int. Use #define for _Bool when
124998         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
125000 2003-08-10  Karl Berry  <karl@gnu.org>
125002         * lib/regex.h: update from libc (whitespace fix).
125004 2003-08-09  Paul Eggert  <eggert@twinsun.com>
125006         Merge some files from coreutils.  These changes were
125007         originally made by Jim Meyering.
125008         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
125009         many older Unixes require this.
125010         * lib/alloca.c (alloca): Remove cast to argument of free;
125011         no longer needed in C89.
125012         * lib/alloca_.h, regex.h: Fix white space to match
125013         what GNU indent does.
125015 2003-08-09  Paul Eggert  <eggert@twinsun.com>
125017         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
125018         apparently Emacs's Unicode mode got confused before my 2003-08-05
125019         checkin.
125021 2003-08-08  Paul Eggert  <eggert@twinsun.com>
125023         * m4/extensions.m4: New file.
125024         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
125025         Require gl_USE_SYSTEM_EXTENSIONS.
125026         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
125027         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
125029 2003-08-08  Paul Eggert  <eggert@twinsun.com>
125031         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
125032         * modules/extensions, modules/gnu-source: New files.
125033         * modules/timespec, modules/unlocked-io: Depend on extensions.
125035 2003-08-07  Paul Eggert  <eggert@twinsun.com>
125037         * modules/restrict: New file.
125038         * MODULES.html.sh (func_all_modules): Add restrict.
125039         * modules/regex: Depend on restrict.
125041 2003-08-07  Paul Eggert  <eggert@twinsun.com>
125043         * m4/restrict.m4: New file.
125044         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
125046 2003-08-07  Bruno Haible  <bruno@clisp.org>
125048         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
125049         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
125051 2003-08-07  Bruno Haible  <bruno@clisp.org>
125053         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
125054         makes the module 'getndelim2' compatible with the module 'getline'.
125056 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125058         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
125059         byte with "\201" to avoid glitches when editing that source file
125060         with multi-gnome-terminal.
125062 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125064         * lib/bumpalloc.h: Remove.
125066 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125068         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
125069         * modules/bumpalloc: Remove.
125071 2003-08-04  Paul Eggert  <eggert@twinsun.com>
125073         * lib/getloadavg.c: Change copyright notice and spacing to conform to
125074         GNU coding style.
125076         Merge from coreutils.
125077         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
125078         1. From glibc.
125079         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
125080         from Karl Berry, implemented by Jim Meyering.
125081         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
125082         from Dmitry V. Levin.
125083         Remove anachronistic cast of xrealloc.
125084         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
125085         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
125086         type. Otherwise, it wouldn't compile with at least /bin/cc on
125087         ymp-cray-unicos9.0.2.X.
125088         Combine two mostly-identical uses of alloca into one.
125089         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
125091 2003-08-04  Dave Love  <d.love@dl.ac.uk>
125093         [From Emacs.]
125095         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
125096         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
125097         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
125098         obsolete NLIST_NAME_UNION.
125099         [__GNU__]: Undef BSD and FSCALE.
125100         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
125102 2003-08-03  Paul Eggert  <eggert@twinsun.com>
125104         * lib/stdbool_.h (_Bool): Make it signed char, instead of
125105         an enum type, so that it's guaranteed to promote to int.  See:
125106         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
125108 2003-08-03  Karl Berry  <karl@gnu.org>
125110         * config/depcomp: update from automake.
125112 2003-07-31  Paul Eggert  <eggert@twinsun.com>
125114         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
125115         (strerror): Don't assume that a printable int fits in 14 bytes.
125117 2003-07-31  Bruno Haible  <bruno@clisp.org>
125119         * modules/getpass-gnu: New file.
125120         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
125122 2003-07-31  Bruno Haible  <bruno@clisp.org>
125124         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
125126 2003-07-24  Karl Berry  <karl@gnu.org>
125128         * config/missing: update from automake.
125130 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
125131             Bruno Haible  <bruno@clisp.org>
125133         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
125134         * lib/getline.c (getline, getdelim): Likewise.
125135         Remove _GNU_SOURCE define; now it's defined in config.h through
125136         m4/getline.m4.
125138 2003-07-23  Karl Berry  <karl@gnu.org>
125140         * config/config.sub: update from prep.
125142 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125144         * modules/xalloc (Depends-on): Add exitfail.
125145         * modules/xmemcoll: Likewise.
125147 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125149         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
125150         over-parenthesization in macros.
125152         Sync with coreutils.
125154         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
125155         required by C99.
125157         Use `exit_failure' for xalloc and xmemcoll instead of their own
125158         private exit-failure variables.
125159         * lib/xalloc.h (xalloc_exit_failure): Remove.
125160         * lib/xmalloc.c: Likewise.  Include exitfail.h.
125161         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
125162         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
125163         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
125164         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
125166 2003-07-20  Jim Meyering  <jim@meyering.net>
125168         * modules/closeout (Depends-on): Add exitfail.
125169         Suggestion from Bruno Haible.
125171 2003-07-19  Karl Berry  <karl@gnu.org>
125173         * config/config.sub: update from prep.
125175 2003-07-18  Paul Eggert  <eggert@twinsun.com>
125177         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
125178         Remove.
125179         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
125180         to test that it can stand by itself.  Include "exitfail.h".
125181         Clients should set exit_failure instead.
125182         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
125184 2003-07-18  Bruno Haible  <bruno@clisp.org>
125186         * modules/getndelim2: New file.
125187         * modules/getline: Share files with module getndelim2.
125188         * modules/getnline: Depend on getndelim2 instead of sharing files with
125189         it. Add getnline.c to lib_SOURCES.
125190         * MODULES.html.sh (func_all_modules): Add getndelim2.
125192 2003-07-18  Bruno Haible  <bruno@clisp.org>
125194         * m4/getndelim2.m4: New file.
125195         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
125196         invoke gl_PREREQ_GETNDELIM2.
125197         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
125198         gl_PREREQ_GETNDELIM2.
125199         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
125200         gl_GETNDELIM2.
125202 2003-07-18  Bruno Haible  <bruno@clisp.org>
125204         * lib/getndelim2.h: New file.
125205         * lib/getndelim2.c: Make into a module of its own. Include config.h,
125206         getndelim2.h.
125207         (getndelim2): Make non-static. Change return type to ssize_t.
125208         * lib/getline.h: Change argument names.
125209         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
125210         * lib/getnline.c: Include getndelim2.h.
125212 2003-07-18  Andreas Schwab  <schwab@suse.de>
125214         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
125216 2003-07-17  Karl Berry  <karl@gnu.org>
125218         * config/config.sub: update from prep.
125220 2003-07-17  Bruno Haible  <bruno@clisp.org>
125222         * modules/getnline: New file.
125223         * modules/getline: Add lib/getndelim2.c to source file list.
125224         * MODULES.html.sh (func_all_modules): Add getnline.
125226 2003-07-17  Bruno Haible  <bruno@clisp.org>
125228         * m4/getnline.m4: New file.
125230 2003-07-17  Bruno Haible  <bruno@clisp.org>
125232         * m4/Makefile.am.in: Remove file.
125233         * m4/Makefile.am: Remove file.
125234         * m4/Makefile.in: Remove file.
125236 2003-07-17  Bruno Haible  <bruno@clisp.org>
125238         * lib/getnline.h: New file.
125239         * lib/getnline.c: New file.
125240         * lib/getndelim2.c: New file, extracted from getline.c.
125241         (getndelim2): Renamed from getdelim2, with added nmax argument.
125242         * lib/getline.c: Include getndelim2.c.
125243         (getdelim2): Moved out to getndelim2.c.
125244         (getline, getdelim): Update.
125246 2003-07-17  Bruno Haible  <bruno@clisp.org>
125248         * lib/Makefile.am: Remove file.
125249         * lib/Makefile.in: Remove file.
125251 2003-07-17  Bruno Haible  <bruno@clisp.org>
125253         * configure.in: Remove file.
125254         * Makefile.in: Remove file.
125256 2003-07-17  Bruno Haible  <bruno@clisp.org>
125258         * MODULES.html.sh: Put the </BODY> right before </HTML>.
125260 2003-07-16  Karl Berry  <karl@gnu.org>
125262         * config/srclist-update: was running fixlicense twice, which caused
125263                 texinfo.tex to be nullified for some reason.  Simplify,
125264                 $gplsrc is no longer needed as far as I can see?
125266 2003-07-16  Jim Meyering  <jim@meyering.net>
125268         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
125270 2003-07-15  Paul Eggert  <eggert@twinsun.com>
125272         * config/srclist.txt: Get the following files from gettext-runtime/intl
125273         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
125274         ref-del.sin.  From Bruno Haible.
125275         * config/srclist-update (fixfile): Change grep pattern again, since the
125276         previous fix didn't work (there was another trailing $).  Use
125277         '[$]' to escape the $s.
125279 2003-07-15  Karl Berry  <karl@gnu.org>
125281         * lib/vasnprintf.c: update from gettext.
125283 2003-07-15  Karl Berry  <karl@gnu.org>
125285         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
125286         gets expanded when surrounded by '$'.
125288 2003-07-15  Jim Meyering  <jim@meyering.net>
125290         * modules/save-cwd: Don't depend on error.  From Derek Price.
125292 2003-07-15  Jim Meyering  <jim@meyering.net>
125294         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
125296 2003-07-14  Simon Josefsson  <jas@extundo.com>
125298         * modules/mempcpy: New file.
125299         * MODULES.html.sh (func_all_modules): Add mempcpy.
125301 2003-07-14  Simon Josefsson  <jas@extundo.com>
125303         * m4/mempcpy.m4: New file.
125305 2003-07-14  Simon Josefsson  <jas@extundo.com>
125307         * lib/mempcpy.h: New file.
125308         * lib/mempcpy.c: New file.
125310 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125312         * modules/getdate, modules/posixtm: Depend on mktime.
125314 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125316         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
125317         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
125318         unicodeio.c, unicodeio.h, unlocked-io.h:
125319         Switch from LGPL to GPL.
125321 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125323         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
125324         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
125325         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
125326         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
125327         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
125328         updated automatically by ../config/srclist-update.  This changes
125329         their license from LPGL to GPL.
125331 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125333         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
125334         assumed to refer to the root of the most recent stable gettext version.
125335         * config/srclistvars.sh: Add defaults for eggert.
125336         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
125337         Match "This program" as well as "The program".  This is needed
125338         for gettext.
125340 2003-07-14  Jim Meyering  <jim@meyering.net>
125342         Don't emit diagnostics.  Let callers do that.
125343         * lib/save-cwd.c: Don't include "error.h".
125344         (save_cwd): Don't call error.  Ensure that errno is valid
125345         when returning nonzero.
125347         * lib/save-cwd.h (restore_cwd): Update prototype.
125348         * lib/save-cwd.c (restore_cwd): Remove two parameters.
125349         Simplify.  Don't call error upon failure.  Let callers do that.
125350         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
125351         when auditing is enabled.  But don't bother updating the #if.
125353 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
125355         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
125356         it breaks C++ compilation.
125357         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
125359 2003-07-10  Simon Josefsson  <jas@extundo.com>
125361         * modules/strchrnul (Makefile.am): Add strchrnul.h.
125363 2003-07-10  Jim Meyering  <jim@meyering.net>
125365         * m4/clock_time.m4: Remove trailing blank.
125366         * m4/intmax_t.m4: Likewise.
125368 2003-07-10  Jim Meyering  <jim@meyering.net>
125370         * lib/vasnprintf.c: Remove trailing blanks.
125371         Make cpp indentation consistent.
125373 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125375         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
125376         posixver.c, strftime.c, strnlen.c, strverscmp.c:
125377         Switch from LGPL to GPL.
125379 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125381         * config/srclist.txt: Sort sublists.  Add
125382         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
125383         that differ from gnulib for one reason or another; we'd like this list
125384         to be smaller but for now let's document what we have.
125386 2003-07-08  Paul Eggert  <eggert@twinsun.com>
125388         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
125389         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
125390         and sweeter "eval x=$x".
125391         * config/srclist.txt: Get lib/argp* from glibc.
125393 2003-07-07  Paul Eggert  <eggert@twinsun.com>
125395         * lib/mktime.c: Fix some boundary cases and remove need for floating
125396         point.
125398         Issue a compile-time diagnostic if time_t is floating point, or if
125399         two's complement arithmetic is not in effect, or if arithmetic
125400         right shift does not propagate the sign.  These assumptions were
125401         all in the original code but they weren't checked.
125403         (TIME_T_MIDPOINT, verify): New macros.
125404         (__isleap): Remove; it has integer overflow problems.
125405         (leapyear): New function, without those problems.
125406         (ydhms_tm_diff): Remove; splitting into two parts.
125407         (ydhms_diff): New function, containing the arithmetic part of
125408         the old ydhms_tm_diff function.  Issue a compile-time
125409         diagnostic if we are not using C99 integer division.
125410         Avoid casts when possible.
125411         (guess_time_tm): New function, containing the checking part of
125412         the old ydhms_tm_diff function.  Return the new value, rather than
125413         the difference between it and the old.  Accept a new argument T
125414         so that *T specifies the old value.  Check for overflow in the result.
125416         (__mktime_internal): Use a time_t offset, not a long int offset.
125417         This undoes the 2003-06-04 change, which is no longer needed now
125418         that we have better overflow checking.
125419         (localtime_offset): Likewise.
125421         (__mktime_internal): Avoid harmful overflow on hosts where time_t
125422         and long are 64-bit but int is only 32-bit.
125423         (ydhms_diff): Use long int to store year1 and yday1.
125424         Issue a compile-time diagnostic if long int is not wide enough.
125426         (__mktime_internal): Use long int to store adjusted year and yday.
125427         Use plain C rather than preprocessor commands, if that doesn't
125428         affect efficiency.
125429         Check for overflow (and try to repair) after each probe
125430         rather than checking only at the very end.  This avoids some bugs
125431         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
125432         does not equal GMT offset at maximum time).
125433         Use integer to check for overflow rather than floating point; this
125434         is more portable to non-IEEE hosts, and is a tad faster.
125435         When we detect that we are oscillating between two values,
125436         don't check whether tm_isdst has the requested value, since
125437         we already know the answer.  When tm_isdst has the wrong value,
125438         use a different heuristic to find the right one, based on the
125439         extreme values actually observed in practice in tz2003a,
125440         rather than the (overly optimistic) "previous 3 calendar quarters".
125442         (not_equal_tm, print_tm, check_result): Use "const T" rather than
125443         "T const" to accommodate glibc style.
125444         (check_result): Use less-confusing report format.  "long" -> "long int.
125445         (main): Likewise.
125446         Don't loop if the iteration overflows time_t.
125447         Allow a negative step in the iteration.
125449 2003-07-06  Karl Berry  <karl@gnu.org>
125451         * config/depcomp: update from automake.
125452         * config/config.sub: update from prep.
125454 2003-07-03  Karl Berry  <karl@gnu.org>
125456         * config/config.guess: update from prep.
125458 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125460         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
125461         xreadlink.c now includes it unconditionally.
125463 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125465         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
125466         having it depend on HAVE_SYS_TYPES_H.
125468 2003-07-01  Bruno Haible  <bruno@clisp.org>
125470         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
125471         <sys/types.h> should be sufficient.
125472         Reported by Paul Eggert.
125474 2003-06-26  Karl Berry  <karl@gnu.org>
125476         * config/depcomp: update from automake.
125478 2003-06-26  Bruno Haible  <bruno@clisp.org>
125480         * modules/human: Depend on module stdbool.
125482 2003-06-25  Bruno Haible  <bruno@clisp.org>
125484         * modules/readlink: New file.
125485         * modules/xreadlink: Depend on it.
125486         * MODULES.html.sh (func_all_modules): Add readlink.
125488 2003-06-25  Bruno Haible  <bruno@clisp.org>
125490         * m4/readlink.m4: New file.
125492 2003-06-25  Bruno Haible  <bruno@clisp.org>
125494         * lib/readlink.c: New file.
125496 2003-06-22  Karl Berry  <karl@gnu.org>
125498         * config/srclist.txt: update mkinstalldirs from automake.
125499         * config/mkinstalldirs: update.
125501 2003-06-22  Bruno Haible  <bruno@clisp.org>
125503         Portability to mingw32.
125504         * m4/ssize_t.m4: New file, from GNU gettext.
125505         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
125506         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
125508 2003-06-22  Bruno Haible  <bruno@clisp.org>
125510         * modules/safe-read: Add m4/ssize_t.m4.
125511         * modules/xreadlink: Add m4/ssize_t.m4.
125513 2003-06-20  Bruno Haible  <bruno@clisp.org>
125515         Assume C89, so PARAMS isn't needed.
125516         * lib/unicodeio.h (PARAMS): Remove.
125517         * lib/unicodeio.c: Don't use PARAMS.
125519 2003-06-18  Karl Berry  <karl@gnu.org>
125521         * config/config.{guess,sub}: update from prep.
125523 2003-06-18  Jim Meyering  <jim@meyering.net>
125525         Merge changes from coreutils.
125526         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
125527         Remove explicit declarations of xmalloc and realloc.
125528         Include xalloc.h.
125529         (read_utmp): Remove anachronistic cast of xmalloc.
125531 2003-06-17  Paul Eggert  <eggert@twinsun.com>
125533         Assume C89, so PARAMS isn't needed.
125534         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
125535         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
125536         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
125537         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
125538         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
125539         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
125540         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
125541         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
125542         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
125543         lib/xstrtod.h, lib/xstrtol.h: Likewise.
125544         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
125545         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
125546         no longer needed. Anyway, config.h should always be included before any
125547         other file.
125549 2003-06-11  Simon Josefsson  <jas@extundo.com>
125551         * modules/sysexits: New file.
125552         * MODULES.html.sh (func_all_modules): Add sysexits.
125554 2003-06-11  Simon Josefsson  <jas@extundo.com>
125556         * lib/sysexit_.h: New file.
125558 2003-06-11  Derek Price  <derek@ximbiot.com>
125560         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
125561         necessary.
125563 2003-06-11  Bruno Haible  <bruno@clisp.org>
125565         * m4/sysexits.m4: New file.
125567 2003-06-10  Simon Josefsson  <jas@extundo.com>
125569         * lib/argp.h: New file, from glibc.
125570         * lib/argp-ba.c: New file, from glibc.
125571         * lib/argp-eexst.c: New file, from glibc.
125572         * lib/argp-fmtstream.c: New file, from glibc.
125573         * lib/argp-fmtstream.h: New file, from glibc.
125574         * lib/argp-fs-xinl.c: New file, from glibc.
125575         * lib/argp-help.c: New file, from glibc.
125576         * lib/argp-namefrob.h: New file, from glibc.
125577         * lib/argp-parse.c: New file, from glibc.
125578         * lib/argp-pv.c: New file, from glibc.
125579         * lib/argp-pvh.c: New file, from glibc.
125580         * lib/argp-xinl.c: New file, from glibc.
125582 2003-06-10  Simon Josefsson  <jas@extundo.com>
125584         * modules/strchrnul: New file.
125586 2003-06-10  Simon Josefsson  <jas@extundo.com>
125588         * modules/argp: New file.
125590 2003-06-10  Simon Josefsson  <jas@extundo.com>
125592         * m4/strchrnul.m4: New file.
125594 2003-06-10  Simon Josefsson  <jas@extundo.com>
125596         * lib/strchrnul.h: New file.
125597         * lib/strchrnul.c: New file.
125599 2003-06-10  Bruno Haible  <bruno@clisp.org>
125601         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125603 2003-06-07  Karl Berry  <karl@gnu.org>
125605         * config/config.{guess,sub}: update from prep.
125607 2003-06-07  Jim Meyering  <jim@meyering.net>
125609         * modules/strtod: Use $(...) notation, not @...@ for
125610         AC_REPLACE'd variables.
125611         * modules/localcharset: Likewise.
125613 2003-06-07  Jim Meyering  <jim@meyering.net>
125615         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125616         in place of my name in the copyright comment.
125617         Remove definition and uses of __P.
125619         From coreutils.
125620         * lib/stat.c: Don't declare xmalloc explicitly.
125621         Instead, include "xalloc.h".
125622         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125623         xrealloc, and xcalloc return values.
125624         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125625         Improve comment.
125626         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125628 2003-06-07  Bruno Haible  <bruno@clisp.org>
125630         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125631         avoid AC_CONFIG_LINKS.
125632         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125633         fnmatch.h, to avoid AC_CONFIG_LINKS.
125634         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125636 2003-06-07  Bruno Haible  <bruno@clisp.org>
125638         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125639         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125640         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125641         directory.
125642         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125643         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125644         directory.
125646 2003-06-06  Jim Meyering  <jim@meyering.net>
125648         Merge from coreutils.
125649         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125650         Consolidate declarations and initializations of *_base* locals.
125652         Merge from coreutils.
125653         This avoids a core dump on systems without GNU putenv,
125654         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125655         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125656         (unsetenv): New static function, from GNU libc.
125657         (rpl_putenv): Use it.
125659         * lib/modechange.c: Remove trailing blanks.
125661         Merge from coreutils.
125662         * lib/fsusage.c: Remove declaration of statfs.
125663         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125665         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125667 2003-06-06  Jim Meyering  <jim@meyering.net>
125669         * lib/stdbool_.h: Renamed from stdbool.h.in.
125671 2003-06-06  Jim Meyering  <jim@meyering.net>
125672             Bruno Haible  <bruno@clisp.org>
125674         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125675         Adjust Makefile.am snippet not to redirect directly to target.
125676         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125678 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125680         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125681         mismatch, look in future quarters as well as past.  This fixes a
125682         bug when processing fall-backwards gaps immediately after a long
125683         period of daylight-saving time.
125685         * lib/mktime.c: Assume freestanding C89 or better.
125686         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125687         (__P): Remove; not used.
125688         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125689         (mktime, not_equal_tm, print_tm, check_result,
125690         main): Use prototypes.  Use const * where appropriate.
125691         (main): Fix typo in testing code that uncovered by above changes.
125692         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125694 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125696         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125697         locale.h, localeconv.  This merges changes from coreutils.
125699         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125700         It can be removed after the next Autoconf is released.
125701         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125702         needed.
125704 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125706         * lib/mktime.c: Fix Debian bug 177940
125707         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125708         (localtime_offset): Now long int, not time_t, because we want it
125709         to be guaranteed to be signed.  All uses changed.
125710         (__mktime_internal): If overflow would occur when adding offset,
125711         don't add it.
125713         Merge 'human' changes from coreutils.  Rewrite to support
125714         locale-specific notations like thousands separators.
125715         * lib/human.c: Simplify authorship notice.
125716         Include human.h immediately after config.h.
125717         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125718         <limits.h>: Do not include, since human.h does.
125719         (SIZE_MAX, UINTMAX_MAX): New macros.
125720         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125721         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125722         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125723         (power_letter): Renamed from suffixes.
125724         (generate_suffix_backwards): Remove.
125725         (adjust_value): Now takes int style (because of human.h changes)
125726         and long double value (for greater precision on some platforms).
125727         (group_number): New function.
125728         (human_readable): Use it.  Use integer options, not enum.
125729         Put the options before the sizes in the arg list.
125730         Support all the new options.
125731         The old human_readable function has been removed;
125732         use inttostr.h instead.
125733         (human_readable, default_block_size, humblock):
125734         Use uintmax_t, not int, for block sizes.
125735         (human_readable_inexact, block_size_types): Remove.
125736         (block_size_opts): New constant.
125737         (human_options): Renamed from human_block_size, with new signature
125738         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125739         * lib/human.h: Add copyright and authorship notice.
125740         Include <limits.h> and <stdbool.h> unconditionally.
125741         (PARAMS): Remove.  All uses removed.
125742         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125743         (enum human_inexact_style): Remove tag; now a nameless enum.
125744         (human_floor, human_ceiling, human_round_to_even): Now have
125745         values 2, 0, 1 rather than -1, 1, 0.
125746         (human_group_digits, human_suppress_point_zero, human_autoscale,
125747         human_base_1024, human_SI, human_B): New constants.
125748         (human_readable_inexact, human_block_size): Remove.
125749         (human_readable): Size args are now uintmax_t, not int.
125750         (human_options): New decl.
125752         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125753         unnecessary now that we assume C89 or better.  This change
125754         imported from coreutils.
125756         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125757         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125758         in the 2003-05-30 sync from glibc.
125760         .h files should stand alone, but we shouldn't include <sys/types.h>
125761         if we can get away with just <stddef.h>.
125763         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125764         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125765         rather than <sys/types.h>, as we merely need size_t.
125766         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125767         to get size_t.
125768         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125769         Include <stdio.h>, to get FILE.
125770         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125771         memcasecmp.h has included <stddef.h> and all we need is size_t.
125772         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125773         our interface, instead of including <sys/types.h>
125775 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125777         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125778         now, as glibc mktime is buggy on non-glibc systems.
125780 2003-06-03  Karl Berry  <karl@gnu.org>
125782         * config/config.sub: update from prep.
125784 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125786         [from coreutils]
125787         Fix some minor time-related bugs with POSIX time arguments.
125788         Some valid time stamps were being rejected (notably -1, and
125789         time stamps before 1900 on 64-bit hosts).  And some invalid
125790         time stamps were being accepted, e.g. September 31.
125792         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125793         that we can return (time_t) -1 successfully.
125794         * lib/posixtm.c: Likewise.
125795         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125796         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125797         (t): Remove static var.
125798         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125799         of static var.  All uses changed.
125800         (year): Do not reject years before 1900; they can occur with
125801         64-bit time_t.
125802         (posix_time_parse): Do not check for out-of-range components;
125803         that is now the caller's responsibility, since our checks were
125804         only approximations.
125805         (posixtime): Use mktime to check for out-of-range components,
125806         since it knows them exactly.
125807         If mktime returns (time_t) -1, check whether an error actually occurred
125808         by invoking localtime on -1.
125809         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125810         posixtime failures better.
125811         Improve the test data (in comments only).
125813 2003-06-02  Karl Berry  <karl@gnu.org>
125815         * config/mkinstalldirs (version): new variable.
125816         (--version): new option.
125817         (usage): improve message.
125819 2003-05-30  Karl Berry  <karl@gnu.org>
125821         * lib/mktime.c: update from libc.
125823 2003-05-30  Bruno Haible  <bruno@clisp.org>
125825         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125826         * config/config.rpath: Upgrade to gettext-0.12.1.
125828 2003-05-30  Bruno Haible  <bruno@clisp.org>
125830         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125831         * m4/nls.m4: New file, from gettext-0.12.1.
125832         * m4/po.m4: New file, from gettext-0.12.1.
125833         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125835 2003-05-30  Bruno Haible  <bruno@clisp.org>
125837         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125838         * lib/localcharset.h: Likewise.
125839         * lib/localcharset.c: Likewise.
125841 2003-05-29  Karl Berry  <karl@gnu.org>
125843         * config/config.rpath: update from gettext.
125845 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125847         Assume the headers required for C89 freestanding compilers.
125848         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125849         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125850         * m4/human.m4 (gl_HUMAN): Likewise.
125851         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125852         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125853         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125854         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125855         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125856         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125858 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125860         Assume the headers required for C89 freestanding compilers.
125861         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125862         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125863         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125864         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125865         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125866         define, since <limits.h> is guaranteed to do that.
125867         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125868         * lib/exclude.c: Include <stdbool.h> unconditionally.
125869         * lib/tempname.c: Include <stddef.h> unconditionally.
125870         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125871         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125872         <stddef.h> does that.
125873         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125874         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125875         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125876         needed.
125877         * lib/xstrtol.c: Likewise.
125878         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125879         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125881         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125882         warnings on some platforms.
125884         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125885         arbitrarily.
125887 2003-05-26  Jim Meyering  <jim@meyering.net>
125889         Merge in a change from coreutils:
125890         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125891         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125892         that condition, rather than `-1' which is slightly misleading.
125893         Change the name of the cache variable to have the gl_ prefix.
125894         Prompted by a patch from Richard Dawe for DJGPP.
125896 2003-05-24  Karl Berry  <karl@gnu.org>
125898         * config/config.guess: update from prep.
125900 2003-05-22  Karl Berry  <karl@gnu.org>
125902         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125904 2003-05-20  Karl Berry  <karl@gnu.org>
125906         * config/config.guess: update from prep.
125908 2003-05-18  Karl Berry  <karl@gnu.org>
125910         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125911         might actually be set by the user.
125913         * config/depcomp, install-sh, mdate-sh: update from automake.
125915 2003-05-17  Bruno Haible  <bruno@clisp.org>
125917         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125918         invalid expansion for AC_EGREP_CPP.
125919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125920         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125921         Suggested by Akim Demaille <akim@epita.fr> in
125922         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125924 2003-05-12  Jim Meyering  <jim@meyering.net>
125926         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125927         the space-padded-by-default conversion specifiers, %e, %k, %l.
125929 2003-05-12  Bruno Haible  <bruno@clisp.org>
125931         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125932         the string is longer than 4 KB.
125934 2003-05-11  Karl Berry  <karl@gnu.org>
125936         * config/config.{guess,sub}: update from prep.
125938 2003-05-09  Bruno Haible  <bruno@clisp.org>
125940         * modules/error: Add m4/strerror_r.m4 to file list.
125942 2003-05-03  Bruno Haible  <bruno@clisp.org>
125944         Upgrade to Unicode-4.0.
125945         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125946         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125947         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125948         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125949         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125950         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125951         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125952         Change width of U+E0100..U+E01EF from 1 to 0.
125954 2003-04-25  Jim Meyering  <jim@meyering.net>
125956         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125957         of type size_t, not int.
125959 2003-04-25  Bruno Haible  <bruno@clisp.org>
125961         * lib/copy-file.c: Include <stddef.h>, for size_t.
125963 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125965         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125966         code which expansion is under static control.  Patch imported from
125967         Akim Demaille's patch to Bison; see
125968         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125970 2003-04-14  Bruno Haible  <bruno@clisp.org>
125972         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125974 2003-04-11  Jim Meyering  <jim@meyering.net>
125976         Merge changes from Coreutils.
125978         2003-03-22  Jim Meyering  <jim@meyering.net>
125980         * lib/strftime.c (widen): Cast alloca return value to proper type.
125982         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125984         From GNU libc.
125985         * lib/strftime.c (my_strftime): Handle very large width
125986         specifications for numeric values correctly.  Improve checks for
125987         overflow.
125989         2003-01-19  Jim Meyering  <jim@meyering.net>
125991         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125992         definitions.
125993         (nl_get_alt_digit) [! defined my_strftime]: Define.
125994         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125995         _nl_get_alt_digit and _nl_get_walt_digit.
125997         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125998         libc. These changes have no effect outside of _LIBC.
126000 2003-04-10  Bruno Haible  <bruno@clisp.org>
126002         * modules/findprog: New file.
126003         * MODULES.html.sh (func_all_modules): Add it.
126005 2003-04-10  Bruno Haible  <bruno@clisp.org>
126007         * m4/findprog.m4: New file.
126008         * m4/eaccess.m4: New file.
126010 2003-04-10  Bruno Haible  <bruno@clisp.org>
126012         * lib/findprog.h: New file, from GNU gettext.
126013         * lib/findprog.c: New file, from GNU gettext.
126015 2003-04-05  Jim Meyering  <jim@meyering.net>
126017         Merge changes from Coreutils.
126019         * lib/exclude.h (PARAMS): Remove definition and uses.
126020         * lib/exclude.c: Remove uses of `PARAMS'.
126022         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
126023         Add test-cases for DOS filenames. Declare program_name.
126024         (main): Set up program_name.  Patch by Rich Dawe.
126026         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126027         error from mntctl.
126028         Use mntctl's return value to drive the entry-processing loop, since
126029         we can't rely on the value of the vmt_length member in the last
126030         entry.  On some systems doing so could result in exhausting
126031         virtual memory.  Based in part on a patch from Mike Jetzer.
126033 2003-04-04  Bruno Haible  <bruno@clisp.org>
126035         * modules/linebreak: New file.
126036         * MODULES.html.sh (func_all_modules): Add it.
126038 2003-04-04  Bruno Haible  <bruno@clisp.org>
126040         * m4/linebreak.m4: New file.
126042 2003-04-04  Bruno Haible  <bruno@clisp.org>
126044         * lib/linebreak.h: New file, from GNU gettext.
126045         * lib/linebreak.c: New file, from GNU gettext with slight
126046         modifications.
126047         * lib/lbrkprop.h: New file, from GNU gettext.
126049 2003-04-03  Bruno Haible  <bruno@clisp.org>
126051         * modules/utf8-ucs4: New file.
126052         * modules/utf16-ucs4: New file.
126053         * modules/ucs4-utf8: New file.
126054         * modules/ucs4-utf16: New file.
126055         * MODULES.html.sh (func_all_modules): Add them.
126057 2003-04-03  Bruno Haible  <bruno@clisp.org>
126059         * m4/utf-ucs4.m4: New file.
126060         * m4/ucs4-utf.m4: New file.
126062 2003-04-03  Bruno Haible  <bruno@clisp.org>
126064         * lib/utf8-ucs4.h: New file, from GNU gettext.
126065         * lib/utf16-ucs4.h: New file, from GNU gettext.
126066         * lib/ucs4-utf8.h: New file, from GNU gettext.
126067         * lib/ucs4-utf16.h: New file, from GNU gettext.
126069 2003-04-02  Bruno Haible  <bruno@clisp.org>
126071         * modules/binary-io: New file.
126072         * MODULES.html.sh (func_all_modules): Add it.
126074 2003-04-02  Bruno Haible  <bruno@clisp.org>
126076         * lib/binary-io.h: New file, from GNU gettext.
126078 2003-04-01  Bruno Haible  <bruno@clisp.org>
126080         * modules/pathname: New file.
126081         * MODULES.html.sh (func_all_modules): Add it.
126083 2003-04-01  Bruno Haible  <bruno@clisp.org>
126085         * lib/pathname.h: New file, from GNU gettext.
126086         * lib/concatpath.c: New file, from GNU gettext.
126088 2003-03-30  Bruno Haible  <bruno@clisp.org>
126090         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
126092 2003-03-30  Bruno Haible  <bruno@clisp.org>
126094         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
126095         function chown() doesn't exist.
126097 2003-03-28  Bruno Haible  <bruno@clisp.org>
126099         * modules/copy-file: New file.
126100         * MODULES.html.sh (func_all_modules): Add it.
126102 2003-03-28  Bruno Haible  <bruno@clisp.org>
126104         * m4/copy-file.m4: New file.
126106 2003-03-28  Bruno Haible  <bruno@clisp.org>
126108         * lib/copy-file.h: New file, from GNU gettext.
126109         * lib/copy-file.c: New file, from GNU gettext.
126111 2003-03-18  Jim Meyering  <jim@meyering.net>
126113         * lib/quote.c (quote_n): Fix typo in comment.
126115 2003-03-18  Bruno Haible  <bruno@clisp.org>
126117         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
126118         checking.
126119         * m4/onceonly_2_57.m4: Likewise.
126121 2003-03-17  Bruno Haible  <bruno@clisp.org>
126123         * m4/onceonly.m4: Require autoconf 2.54 or newer.
126124         (m4_quote): Remove macro.
126125         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
126127 2003-03-14  Jim Meyering  <jim@meyering.net>
126129         Merge changes from Coreutils.
126130         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
126131         to be const, in order to avoid warnings.
126132         (obstack_room): Likewise.
126133         (obstack_empty_p): Likewise.
126135 2003-03-14  Bruno Haible  <bruno@clisp.org>
126137         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
126138         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
126140 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126142         Merge changes from Bison.
126143         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
126144         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
126145         when compiling Bison 1.875's `bitset bset = obstack_alloc
126146         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
126147         * lib/hash.c: Include <stdbool.h> unconditionally.
126149 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126151         * m4/onceonly.m4 (m4_quote): New macro.
126152         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
126153         Quote AC_FOREACH variable-expansions properly.
126155 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126157         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
126159 2003-03-09  Paul Eggert  <eggert@twinsun.com>
126161         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
126162         Reported by Bruce Becker; see:
126163         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
126165 2003-03-03  Paul Eggert  <eggert@twinsun.com>
126166             Bruno Haible  <bruno@clisp.org>
126168         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
126169         Reported by John Hughes, see
126170         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
126172 2003-02-20  Bruno Haible  <bruno@clisp.org>
126174         * MODULES.html.sh (func_all_modules): Add poll.
126176 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126178         * modules/poll: New file.
126180 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126182         * lib/poll_.h: New file.
126183         * lib/poll.c: New file.
126185 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126187         * m4/poll.m4: New file.
126189 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126191         * modules/mathl: New file.
126193 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126195         * lib/mathl.h: New file.
126196         * lib/acosl.c: New file.
126197         * lib/asinl.c: New file.
126198         * lib/atanl.c: New file.
126199         * lib/ceill.c: New file.
126200         * lib/cosl.c: New file.
126201         * lib/expl.c: New file.
126202         * lib/floorl.c: New file.
126203         * lib/frexpl.c: New file.
126204         * lib/ldexpl.c: New file.
126205         * lib/logl.c: New file.
126206         * lib/sincosl.c: New file.
126207         * lib/sinl.c: New file.
126208         * lib/sqrtl.c: New file.
126209         * lib/tanl.c: New file.
126210         * lib/trigl.c: New file.
126211         * lib/trigl.h: New file.
126213 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126215         * m4/mathl.m4: New file.
126217 2003-02-18  Bruno Haible  <bruno@clisp.org>
126219         * MODULES.html.sh (func_all_modules): Add mathl.
126221 2003-02-17  Bruno Haible  <bruno@clisp.org>
126223         * modules/mkdtemp: New module.
126224         * MODULES.html.sh (func_all_modules): Add it.
126226 2003-02-17  Bruno Haible  <bruno@clisp.org>
126228         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
126230 2003-02-17  Bruno Haible  <bruno@clisp.org>
126232         * lib/mkdtemp.h: New file, from GNU gettext.
126233         * lib/mkdtemp.c: New file, from GNU gettext.
126235 2003-02-02  Jim Meyering  <jim@meyering.net>
126237         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
126238         e.g. glibc-2.2.93.
126240 2003-01-31  Bruno Haible  <bruno@clisp.org>
126242         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
126243         'rpl_rename'.
126244         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
126245         'rpl_strnlen'.
126246         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
126247         'rpl_strtod'.
126248         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
126249         'rpl_utime'.
126251 2003-01-31  Bruno Haible  <bruno@clisp.org>
126253         * lib/rename.c: #undef rename before defining rpl_rename.
126254         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
126256 2003-01-30  Bruno Haible  <bruno@clisp.org>
126258         * modules/vasnprintf, modules/vasprintf: New modules.
126259         * MODULES.html.sh (func_all_modules): Add them.
126261 2003-01-30  Bruno Haible  <bruno@clisp.org>
126263         * m4/signed.m4: New file, from GNU gettext.
126264         * m4/longdouble.m4: New file, from GNU gettext.
126265         * m4/wchar_t.m4: New file, from GNU gettext.
126266         * m4/wint_t.m4: New file, from GNU gettext.
126267         * m4/vasnprintf.m4: New file.
126268         * m4/vasprintf.m4: New file.
126270 2003-01-30  Bruno Haible  <bruno@clisp.org>
126272         * lib/printf-args.h: New file, from GNU gettext.
126273         * lib/printf-args.c: New file, from GNU gettext.
126274         * lib/printf-parse.h: New file, from GNU gettext.
126275         * lib/printf-parse.c: New file, from GNU gettext.
126276         * lib/vasnprintf.h: New file, from GNU gettext.
126277         * lib/vasnprintf.c: New file, from GNU gettext.
126278         * lib/asnprintf.c: New file, from GNU gettext.
126279         * lib/vasprintf.h: New file, from GNU gettext with modifications.
126280         * lib/vasprintf.c: New file, from GNU gettext.
126281         * lib/asprintf.c: New file, from GNU gettext.
126283 2003-01-29  Bruno Haible  <bruno@clisp.org>
126285         * modules/stpncpy: New module.
126286         * MODULES.html.sh (func_all_modules): Add it.
126288 2003-01-29  Bruno Haible  <bruno@clisp.org>
126290         * m4/stpncpy.m4: New file.
126292 2003-01-29  Bruno Haible  <bruno@clisp.org>
126294         * lib/stpncpy.h: New file, from GNU gettext with modifications.
126295         * lib/stpncpy.c: New file, from GNU gettext with modifications.
126297 2003-01-28  Bruno Haible  <bruno@clisp.org>
126299         * modules/c-ctype: New module.
126300         * MODULES.html.sh (func_all_modules): Add it.
126302 2003-01-28  Bruno Haible  <bruno@clisp.org>
126304         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
126305         Paul Eggert.
126306         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
126307         Paul Eggert.
126309 2003-01-27  Bruno Haible  <bruno@clisp.org>
126311         * modules/xsetenv: New module.
126312         * MODULES.html.sh (func_all_modules): Add it.
126314 2003-01-27  Bruno Haible  <bruno@clisp.org>
126316         * lib/xsetenv.h: New file, from GNU gettext.
126317         * lib/xsetenv.c: New file, from GNU gettext.
126319 2003-01-23  Jim Meyering  <jim@meyering.net>
126321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
126322         from working on systems without dirfd (at least Irix and OSF1/Tru64).
126324 2003-01-23  Bruno Haible  <bruno@clisp.org>
126326         * modules/minmax: New module.
126327         * MODULES.html.sh (func_all_modules): Add it.
126329 2003-01-23  Bruno Haible  <bruno@clisp.org>
126331         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
126332         Eggert.
126334 2003-01-22  Bruno Haible  <bruno@clisp.org>
126336         * modules/exit: New module.
126337         * MODULES.html.sh (func_all_modules): Add it.
126339 2003-01-22  Bruno Haible  <bruno@clisp.org>
126341         * lib/exit.h: New file, from GNU gettext.
126343 2003-01-19  Bruno Haible  <bruno@clisp.org>
126345         * gnulib-tool: Recognize option --extract-maintainer.
126346         (func_get_maintainer): New function.
126347         * modules/*: Add Maintainer entry.
126349 2003-01-16  Jim Meyering  <jim@meyering.net>
126351         * m4/regex.m4: The `regex' struct is both input and output.
126352         Initialize it before each use.  Patch by Tim Waugh.
126354 2003-01-16  Bruno Haible  <bruno@clisp.org>
126356         * MODULES.html.sh: Add a table of contents. Add the module name as
126357         leftmost column. Add hyperlinks.
126359 2003-01-15  Bruno Haible  <bruno@clisp.org>
126361         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
126363 2003-01-15  Bruno Haible  <bruno@clisp.org>
126365         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
126366         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
126367         suffix.
126369 2003-01-15  Bruno Haible  <bruno@clisp.org>
126371         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
126373 2003-01-15  Bruno Haible  <bruno@clisp.org>
126375         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
126376         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
126378 2003-01-14  Jim Meyering  <jim@meyering.net>
126380         * lib/same.c (same_name): Tweak a comment.
126382 2003-01-14  Bruno Haible  <bruno@clisp.org>
126384         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
126385         when a string comparison is sufficient.
126387 2003-01-14  Bruno Haible  <bruno@clisp.org>
126389         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
126390         'unsigned int'.
126392 2003-01-14  Bruno Haible  <bruno@clisp.org>
126394         * lib/hash-pjw.c: Add comment about low quality of this function.
126396 2003-01-13  Bruno Haible  <bruno@clisp.org>
126398         * modules/stpcpy: Distribute lib/stpcpy.h.
126399         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
126401 2003-01-13  Bruno Haible  <bruno@clisp.org>
126403         * modules/*: Add a description.
126404         * modules/strpbrk: Fix Makefile.am snippet.
126405         * modules/strtoimax: Fix dependencies.
126406         * modules/strtoumax: Likewise.
126408 2003-01-13  Bruno Haible  <bruno@clisp.org>
126410         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
126411         * modules/alloca (Makefile.am): All object files depend on alloca.h.
126412         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
126414 2003-01-13  Bruno Haible  <bruno@clisp.org>
126416         * gnulib-tool (func_create_testdir): Store config/* files in the main
126417         directory.
126418         * config.rpath: Move to ...
126419         * config/config.rpath: ... here.
126420         * modules/gettext: Contains config/config.rpath, not config.rpath.
126421         * modules/iconv: Likewise.
126423 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126425         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126426         to avoid collisions with libcurses and libreadline.
126428         * m4/getstr.m4: Remove.
126429         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
126431 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126433         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126434         to avoid collisions with libcurses and libreadline.
126436         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
126437         * lib/getstr.h, getstr.c: Remove.
126438         * lib/getline.c: Include "getline.h", to check interface.
126439         Move body of old getstr.c here: this defines MIN_CHUNK and
126440         declares getdelim2, which is renamed from getstr.
126441         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
126443         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
126444         All uses changed.
126445         * lib/linebuffer.h: Likewise.
126446         (readline): Remove backward-compatibility macro.
126448 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126450         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126451         to avoid collisions with libcurses and libreadline.
126452         * getstr: Remove.
126453         * MODULES.html.sh: Remove getstr.
126454         * modules/getline: Depend on unlocked-io, not getstr.
126456 2003-01-12  Jim Meyering  <jim@meyering.net>
126458         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
126460 2003-01-10  Bruno Haible  <bruno@clisp.org>
126462         * modules/alloca: Change Makefile.am requirements. Simplify Include
126463         requirements. Add lib/alloca_.h to file list.
126465 2003-01-10  Bruno Haible  <bruno@clisp.org>
126467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
126469 2003-01-10  Bruno Haible  <bruno@clisp.org>
126471         * lib/alloca_.h: New file.
126472         * lib/getdate.y: Unconditionally include alloca.h.
126473         * lib/makepath.c: Likewise.
126474         * lib/setenv.c: Likewise.
126475         * lib/userspec.c: Likewise.
126477 2003-01-09  Karl Berry  <karl@gnu.org>
126479         * MODULES.html.sh: include `dirname $0` in PATH, to find
126480         gnulib-tool.
126482 2003-01-09  Bruno Haible  <bruno@clisp.org>
126484         * modules/stdbool: Change configure.ac, Makefile.am requirements.
126485         Simplify Include requirements. Add lib/stdbool.h.in to file list.
126487 2003-01-09  Bruno Haible  <bruno@clisp.org>
126489         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
126491 2003-01-09  Bruno Haible  <bruno@clisp.org>
126493         * lib/stdbool.h.in: New file.
126495 2003-01-09  Bruno Haible  <bruno@clisp.org>
126497         * gnulib-tool (func_all_modules): Ignore files ending in ~.
126498         * MODULES.html.sh: Likewise.
126500 2003-01-08  Jim Meyering  <jim@meyering.net>
126502         * lib/full-write.c: Undefine and define-away `const' after inclusion
126503         of errno.h, not before.  Suggestion from Bruno Haible.
126505 2003-01-08  Bruno Haible  <bruno@clisp.org>
126507         * modules/full-read: Depend on full-write.
126509 2003-01-08  Bruno Haible  <bruno@clisp.org>
126511         * lib/safe-read.c: Include specification header first, to ensure its
126512         selfcontainedness.
126513         * lib/full-write.c: Likewise.
126515 2003-01-07  Jim Meyering  <jim@meyering.net>
126517         * lib/full-write.c: Rework so that it may serve to define full_read,
126518         too.
126519         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
126521 2003-01-07  Bruno Haible  <bruno@clisp.org>
126523         * lib/strtoimax.c: Include <stdint.h> as an alternative to
126524         <inttypes.h>.
126525         * lib/xstrtol.h: Likewise.
126526         * lib/xstrtoimax.c: Likewise.
126527         * lib/xstrtoumax.c: Likewise.
126528         * lib/human.h: Likewise.
126530         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
126531         on systems that have <inttypes.h> but not <stdint.h>.
126533 2003-01-07  Bruno Haible  <bruno@clisp.org>
126535         * MODULES.html.sh: Add copyright notice.
126536         (missed_files): Omit CVS directory entries.
126537         (func_module): Make it work with sed-3.02.
126538         * MODULES.txt: Remove file.
126540 2003-01-06  Jim Meyering  <jim@meyering.net>
126542         * lib/version-etc.c: Update year in translatable copyright string.
126544 2003-01-03  Karl Berry  <karl@gnu.org>
126546         * config/config.{guess,sub}: update from prep.
126548 2003-01-02  Karl Berry  <karl@gnu.org>
126550         * doc/COPYING.DOC: belatedly updated to 1.2.
126552 2003-01-01  Karl Berry  <karl@gnu.org>
126554         * gnulib-tool (func_verify_module): report module name $module in
126555         error message, not $1.
126556         * gnulib-tool (create-testdir): don't complain if destdir couldn't
126557         be created, only if it doesn't exist.
126558         * gnulib-tool (last_checkin_date): don't expand the $Date here.
126560 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126562         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
126564 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126566         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
126567         memcmp if strcoll doesn't work.
126569 2002-12-31  Bruno Haible  <bruno@clisp.org>
126571         * lib/utime.c (utime_null): No need to call ftruncate if the file was
126572         nonempty.
126574 2002-12-31  Bruno Haible  <bruno@clisp.org>
126576         * lib/memcoll.c (STRCOLL): New macro.
126577         (memcoll): Use it.
126579 2002-12-31  Bruno Haible  <bruno@clisp.org>
126581         * lib/localcharset.h: New file.
126582         * lib/localcharset.c: Include it.
126583         * lib/unicodeio.c: Likewise.
126585 2002-12-31  Bruno Haible  <bruno@clisp.org>
126587         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126588         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126590 2002-12-31  Bruno Haible  <bruno@clisp.org>
126592         * lib/getline.h: Include <stddef.h>, for size_t.
126594         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126595         * lib/unicodeio.c: Don't include <stddef.h>.
126597 2002-12-31  Bruno Haible  <bruno@clisp.org>
126599         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126600         HAVE_TM_ZONE.
126602 2002-12-24  Karl Berry  <karl@gnu.org>
126604         * config/config.guess: update from prep.
126606 2002-12-24  Bruno Haible  <bruno@clisp.org>
126608         General infrasructure.
126609         * m4/README: Rewritten.
126610         * m4/onceonly.m4: New file.
126611         * m4/onceonly_2_57.m4: New file.
126613         Module atexit.
126614         * m4/atexit.m4: New file.
126616         Module strtod.
126617         * m4/strtod.m4: New file.
126619         Module strtol.
126620         * m4/strtol.m4: New file.
126622         Module strtoul.
126623         * m4/strtoul.m4: New file.
126625         Module memchr.
126626         * m4/memchr.m4: New file.
126628         Module memcmp.
126629         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126630         (jm_FUNC_MEMCMP): Invoke it.
126632         Module memcpy.
126633         * m4/memcpy.m4: New file.
126635         Module memmove.
126636         * m4/memmove.m4: New file.
126638         Module memset.
126639         * m4/memset.m4: New file.
126641         Module strcspn.
126642         * m4/strcspn.m4: New file.
126644         Module strpbrk.
126645         * m4/strpbrk.m4: New file.
126647         Module strstr.
126648         * m4/strstr.m4: New file.
126650         Module strerror.
126651         * m4/strerror.m4: New file.
126653         Module mktime.
126654         * m4/mktime.m4: Renamed from jm-mktime.m4.
126655         (gl_PREREQ_MKTIME): New macro.
126656         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126658         Module malloc.
126659         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126660         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126661         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126663         Module realloc.
126664         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126665         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126666         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126668         Module strftime.
126669         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126671         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126672         gl_TM_GMTOFF.
126673         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126675         Module xalloc.
126676         * m4/xalloc.m4: New file.
126678         Module alloca.
126679         * m4/alloca.m4: New file.
126681         Module putenv.
126682         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126683         (jm_FUNC_PUTENV): Invoke it.
126685         Module setenv.
126686         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126687         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126688         when invoked twice.
126689         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126690         gt_FUNC_SETENV.
126692         Module memrchr.
126693         * m4/memrchr.m4: New file.
126695         Module stpcpy.
126696         * m4/stpcpy.m4: New file.
126698         Module strcase.
126699         * m4/strcase.m4: New file.
126701         Module strdup.
126702         * m4/strdup.m4: New file.
126704         Module strnlen.
126705         * m4/strnlen.m4: New file.
126707         Module strndup.
126708         * m4/strndup.m4: New file.
126710         Module xstrtod.
126711         * m4/xstrtod.m4: New file.
126713         Module xstrtol.
126714         * m4/xstrtol.m4: New file.
126716         Module getdate.
126717         * m4/getdate.m4: New file.
126719         Module unlocked-io.
126720         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126721         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126722         * m4/jm-glibc-io.m4n: Remove file.
126724         Module long-options.
126725         * m4/long-options.m4: New file.
126727         Module md5.
126728         * m4/md5.m4: New file.
126730         Module sha.
126731         * m4/sha.m4: New file.
126733         Module getstr.
126734         * m4/getstr.m4: New file.
126736         Module getline.
126737         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126738         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126739         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126740         simply getline. Infoke gl_PREREQ_GETLINE.
126742         Module obstack.
126743         * m4/obstack.m4: New file.
126745         Module hash.
126746         * m4/hash.m4: New file.
126748         Module readtokens.
126749         * m4/readtokens.m4: New file.
126751         Module strverscmp.
126752         * m4/strverscmp.m4: New file.
126754         Module stdbool.
126755         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126756         OSF/1.
126758         Module strtoll.
126759         * m4/strtoll.m4: New file.
126761         Module strtoull.
126762         * m4/strtoull.m4: New file.
126764         Module strtoimax.
126765         * m4/strtoimax.m4: New file.
126767         Module strtoumax.
126768         * m4/strtoumax.m4: New file.
126770         Module xstrtoimax.
126771         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126772         jm_AC_PREREQ_XSTRTOIMAX.
126773         Moved the strtol prerequisites to strtol.m4.
126774         Moved the strtoll prerequisites to strtoll.m4.
126775         Moved the strtoimax prerequisites to strtoimax.m4.
126777         Module xstrtoumax.
126778         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126779         jm_AC_PREREQ_XSTRTOUMAX.
126780         Moved the strtoul prerequisites to strtoul.m4.
126781         Moved the strtoull prerequisites to strtoull.m4.
126782         Moved the strtoumax prerequisites to strtoumax.m4.
126784         Module chown.
126785         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126786         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126788         Module dup2.
126789         * m4/dup2.m4: New file.
126791         Module ftruncate.
126792         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126793         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126795         Module getgroups.
126796         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126797         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126799         Module gettimeofday.
126800         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126801         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126802         gl_PREREQ_GETTIMEOFDAY.
126804         Module mkdir.
126805         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126806         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126808         Module mkstemp.
126809         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126810         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126811         jm_AC_TYPE_UINTMAX_T.
126812         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126814         Module stat.
126815         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126816         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126818         Module lstat.
126819         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126820         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126822         Module timespec.
126823         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126824         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126825         * m4/st_mtim.m4: Indentation.
126827         Module nanosleep.
126828         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126829         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126830         gl_PREREQ_NANOSLEEP.
126832         Module regex.
126833         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126834         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126835         (gl_REGEX): New macro.
126837         Module rename.
126838         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126839         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126841         Module rmdir.
126842         * m4/rmdir.m4: New file.
126844         Module utime.
126845         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126846         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126847         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126849         Module dirname.
126850         * m4/dirname.m4: New file.
126852         Module getopt.
126853         * m4/getopt.m4: New file.
126855         Module unistd-safer.
126856         * m4/unistd-safer.m4: New file.
126858         Module fnmatch.
126859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126860         declaration.
126861         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126862         (gl_FUNC_FNMATCH_POSIX): New macro.
126863         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126864         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126865         simply fnmatch.
126867         Module exclude.
126868         * m4/exclude.m4: New file.
126870         Module human.
126871         * m4/human.m4: New file.
126873         Module acl.
126874         * m4/acl.m4: Nop.
126876         Module backupfile.
126877         * m4/backupfile.m4: New file.
126878         * m4/d-ino.m4: Indentation.
126880         Module fsusage.
126881         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126882         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126883         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126885         Module dirfd.
126886         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126887         requirements.
126889         Module euidaccess.
126890         * m4/euidaccess.m4: New file.
126892         Module file-type.
126893         * m4/file-type.m4: New file.
126895         Module fileblocks.
126896         * m4/fileblocks.m4: New file.
126898         Module filemode.
126899         * m4/filemode.m4: New file.
126901         Module isdir.
126902         * m4/isdir.m4: New file.
126904         Module lchown.
126905         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126906         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126908         Module makepath.
126909         * m4/makepath.m4: New file.
126911         Module modechange.
126912         * m4/modechange.m4: New file.
126914         Module mountlist.
126915         * m4/mountlist.m4: New file.
126916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126917         Indentation.
126919         Module path-concat.
126920         * m4/path-concat.m4: New file.
126922         Module pathmax.
126923         * m4/pathmax.m4: New file.
126925         Module same.
126926         * m4/same.m4: New file.
126928         Module save-cwd.
126929         * m4/save-cwd.m4: New file.
126931         Module savedir.
126932         * m4/savedir.m4: New file.
126934         Module xgetcwd.
126935         * m4/xgetcwd.m4: New file.
126936         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126938         Module xreadlink.
126939         * m4/xreadlink.m4: New file.
126941         Module safe-read.
126942         * m4/safe-read.m4: New file.
126944         Module safe-write.
126945         * m4/safe-write.m4: New file.
126947         Module closeout.
126948         * m4/closeout.m4: New file.
126950         Module stdio-safer.
126951         * m4/stdio-safer.m4: New file.
126953         Module getpass.
126954         * m4/getpass.m4: New file.
126956         Module getugroups.
126957         * m4/getugroups.m4: New file.
126959         Module group-member.
126960         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126961         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126963         Module idcache.
126964         * m4/idcache.m4: New file.
126966         Module userspec.
126967         * m4/userspec.m4: New file.
126969         Module gettime.
126970         * m4/clock_time.m4: New file.
126971         * m4/gettime.m4: New file.
126973         Module settime.
126974         * m4/settime.m4: New file.
126976         Module posixtm.
126977         * m4/posixtm.m4: New file.
126979         Module gethostname.
126980         * m4/gethostname.m4: New file.
126982         Module canon-host.
126983         * m4/canon-host.m4: New file.
126985         Module gettext.
126986         * m4/codeset.m4: New file, from gettext-0.11.5.
126987         * m4/gettext.m4: New file, from gettext-0.11.5.
126988         * m4/glibc21.m4: New file, from gettext-0.11.5.
126989         * m4/iconv.m4: New file, from gettext-0.11.5.
126990         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126991         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126992         * m4/inttypes.m4: New file, from gettext-0.11.5.
126993         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126994         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126995         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126996         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126997         * m4/lib-link.m4: New file, from gettext-0.11.5.
126998         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126999         * m4/progtest.m4: New file, from gettext-0.11.5.
127000         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
127001         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
127002         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
127004         Module localcharset.
127005         * m4/localcharset.m4: New file.
127007         Module hard-locale.
127008         * m4/hard-locale.m4: New file.
127010         Module mbswidth.
127011         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
127012         onceonly macros.
127013         * m4/mbrtowc.m4: Add comment.
127015         Module memcasecmp.
127016         * m4/memcasecmp.m4: New file.
127018         Module memcoll.
127019         * m4/memcoll.m4: New file.
127021         Module unicodeio.
127022         * m4/unicodeio.m4: New file.
127024         Module rpmatch.
127025         * m4/rpmatch.m4: New file.
127027         Module yesno.
127028         * m4/yesno.m4: New file.
127030         Module exitfail.
127031         * m4/exitfail.m4: New file.
127033         Module c-stack.
127034         * m4/c-stack.m4 (gl_C_STACK): New macro.
127035         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
127037         Module error.
127038         * m4/error.m4 (gl_ERROR): New macro.
127039         (jm_PREREQ_ERROR): Use onceonly macros.
127041         Module fatal.
127042         * m4/fatal.m4: New file.
127044         Module getloadavg.
127045         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
127046         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
127048         Module getpagesize.
127049         * m4/getpagesize.m4: New file.
127051         Module getusershell.
127052         * m4/getusershell.m4: New file.
127054         Module physmem.
127055         * m4/physmem.m4: New file.
127057         Module posixver.
127058         * m4/posixver.m4: New file.
127060         Module quotearg.
127061         * m4/quotearg.m4: New file.
127063         Module quote.
127064         * m4/quote.m4: New file.
127066         Module readutmp.
127067         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
127069         Module sig2str.
127070         * m4/sig2str.m4: New file.
127072         Other.
127073         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
127074         ulonglong.m4.
127075         * m4/intmax_t.m4: New file.
127076         * m4/d-type.m4: Indentation.
127077         * m4/jm-macros.m4: Update.
127078         * m4/prereq.m4 (jm_PREREQ): Update.
127079         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
127080         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
127081         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
127082         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
127083         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
127084         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
127085         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
127086         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
127087         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
127088         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
127089         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
127090         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
127091         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
127092         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
127093         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
127094         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
127095         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
127096         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
127097         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
127099 2002-12-24  Bruno Haible  <bruno@clisp.org>
127101         * MODULES.txt: Update according to m4/ changes.
127103         Module gettext.
127104         * config.rpath: New file, from gettext-0.11.5.
127106         * modules/*: New module descriptions.
127107         * gnulib-tool: New file.
127108         * MODULES.html.sh: New file.
127110 2002-12-21  Karl Berry  <karl@gnu.org>
127112         * doc/fdl.texi: update to version 1.2.
127114 2002-12-19  Karl Berry  <karl@gnu.org>
127116         * config/config.guess: update from prep.
127118 2002-12-18  Bruno Haible  <bruno@clisp.org>
127120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
127121         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
127123 2002-12-17  Bruno Haible  <bruno@clisp.org>
127125         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
127126         stdlib.h, string.h.
127128 2002-12-17  Bruno Haible  <bruno@clisp.org>
127130         * lib/canon-host.c (strdup): Remove unused declaration.
127132         * lib/fsusage.c: Include full_read.h.
127133         (get_fs_usage): Use full_read instead of safe_read.
127135         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
127137 2002-12-12  Karl Berry  <karl@gnu.org>
127139         * config/config.guess: update from prep.
127141 2002-12-11  Bruno Haible  <bruno@clisp.org>
127143         * m4/setenv.m4: New file, from gettext-0.11.5.
127145 2002-12-11  Bruno Haible  <bruno@clisp.org>
127147         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
127148         not unsetenv().
127149         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
127150         modifications:
127152         2002-12-11  Bruno Haible  <bruno@clisp.org>
127154                 * setenv.c (alloca): Fall back to malloc.
127155                 (freea): New macro.
127156                 (setenv): Use freea() to free memory allocated with alloca().
127158         2002-11-13  Bruno Haible  <bruno@clisp.org>
127160                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
127161                 function declarations.
127162                 * unsetenv.c (unsetenv): Likewise.
127164         2002-03-04  Bruno Haible  <bruno@clisp.org>
127166                 Portability to AIX 4.3.3.
127167                 * unsetenv.c: New file, extracted from setenv.c.
127168                 * setenv.c: Move the unsetenv() function to unsetenv.c.
127170         2001-12-20  Bruno Haible  <bruno@clisp.org>
127172                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
127173                 use malloc instead. For SunOS 4.
127175         2001-12-11  Bruno Haible  <bruno@clisp.org>
127177                 * setenv.c: Declare alloca.
127178                 (compar_fn_t): New typedef.
127179                 (KNOWN_VALUE, STORE_VALUE): Use it.
127181         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
127182         setenv.h.
127184 2002-12-10  Paul Eggert  <eggert@twinsun.com>
127186         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
127187         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
127188         Choose values that are less likely to collide with system fnmatch
127189         options.
127190         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
127191         defined (e.g., a pure POSIX system).
127192         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
127193         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
127195 2002-12-06  Paul Eggert  <eggert@twinsun.com>
127197         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
127198         a pain in practice to deal with generated m4 files.  This change
127199         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
127201         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
127202         and jm-glibc-io.m4, as they are no longer a special case.
127203         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
127204         kludge and the auto-generation stuff.  Check only whether the
127205         functions are declared, not whether they exist, since older hosts
127206         that don't declare the functions can't use the optimization anyway.
127208 2002-12-06  Jim Meyering  <jim@meyering.net>
127210         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
127212         Merge in changes from libc's misc/error.c, in preparation
127213         for the merge of gnulib's changes back into libc.
127215         * lib/error.c (_): Define only if not already defined.
127216         Move definition to follow all #include directives.
127217         Include unlocked-io.h only if !_LIBC.
127218         [_LIBC]: Include <libio/libioP.h>.
127219         [USE_IN_LIBIO]: Include <libio/iolibio.h>
127220         (fflush): Tweak definition to use INTUSE.
127221         (putc): Define.
127223 2002-12-05  Paul Eggert  <eggert@twinsun.com>
127225         * lib/alloca.c [defined emacs]: Include "lisp.h".
127226         (xalloc_die) [defined emacs]: New macro.
127227         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
127228         [! defined emacs]: Include <xalloc.h>.
127229         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
127230         (pointer): Typedef to POINTER_TYPE *.
127231         (malloc): Remove decl; we now always use xmalloc.
127232         (alloca): Use old-style definition, since Emacs needs this.
127233         Check for arithmetic overflow when computing combined size.
127235 2002-12-04  Paul Eggert  <eggert@twinsun.com>
127237         Do not generate unlocked-io.h automatically, since it's easier to
127238         maintain it by hand.
127240         * lib/unlocked-io.h: New file, from GNU diffutils,
127241         but with proper copyright notice and attribution.
127242         * lib/gen-uio: Remove.
127243         * lib/Makefile.am: Add copyright notice.
127244         (libfetish_a_SOURCES): Add unlocked-io.h.
127245         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
127246         (DISTCLEANFILES, io_functions): Remove macros.
127247         (EXTRA_DIST): Remove gen_uio.
127248         (unlocked-io.h): Remove rule.
127250 2002-12-04  Jim Meyering  <jim@meyering.net>
127252         Reflect the fact that stat.c and lstat.c are no longer generated.
127253         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
127254         (DISTCLEANFILES): Likewise.
127255         (EXTRA_DIST): Likewise.
127256         (all_local): Don't depend on stat.c or lstat.c.
127257         (stat.c, lstat.c): Remove rules.
127258         (EXTRA_DIST): Remove xstat.in.
127260         * lib/xstat.in: Remove file.  Contents moved into stat.c.
127261         * lib/stat.c: New file.  Contents mostly from xstat.in.
127262         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
127263         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
127265         * lib/safe-read.c: Rework so that it may serve to define safe_write,
127266         too.
127267         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
127269 2002-12-03  Jim Meyering  <jim@meyering.net>
127271         * lib/safe-read.c, safe-write.c: Change variable names and comments,
127272         but not semantics, to minimize the differences between these two files.
127273         (safe_read): Change comment to mention SAFE_READ_ERROR.
127275         * lib/safe-read.c (IS_EINTR): Define.
127276         (safe_read): Use IS_EINTR in place of in-function cpp directives.
127278 2002-12-02  Jim Meyering  <jim@meyering.net>
127280         * lib/safe-read.c (EINTR): Define.
127281         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
127282         (INT_MAX): Provide fallback.
127283         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
127285         * lib/safe-read.h (SAFE_READ_ERROR): Define.
127287 2002-12-02  Bruno Haible  <bruno@clisp.org>
127289         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
127290         Define, taken from safe-read.c.
127291         (INT_MAX): Provide fallback.
127292         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
127293         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
127295         * lib/safe-read.c (EINTR): Remove definition.
127296         (safe_read): Don't use EINTR if it is absent.
127298 2002-12-01  Jim Meyering  <jim@meyering.net>
127300         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
127301         zero.
127302         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
127304 2002-11-27  Paul Eggert  <eggert@twinsun.com>
127306         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
127307         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
127308         with `if (! (value < limit)) abort ();', for readability.
127310 2002-11-26  Karl Berry  <karl@gnu.org>
127312         * lib/strdup.c: copy from libc again, with jim's ok.
127313         * lib/.cppi-disable: re-add strdup.c
127315 2002-11-25  Karl Berry  <karl@gnu.org>
127317         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
127318         instead of "strtol.c".
127320 2002-11-25  Karl Berry  <karl@gnu.org>
127322         * config/install-sh: update from automake for variable quoting, $0 in
127323         error msgs, etc.
127325         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
127326         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
127327         entry.
127329 2002-11-25  Jim Meyering  <jim@meyering.net>
127331         * lib/mktime.c: Sync from libc, now that it has the latest fix.
127333 2002-11-24  Karl Berry  <karl@gnu.org>
127335         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
127336         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
127338 2002-11-24  Jim Meyering  <jim@meyering.net>
127340         Update from coreutils:
127342         * lib/mktime.c: Merge in changes from libc.
127344         Avoid a link-time failure on some Linux systems.
127345         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
127346         (otherwise).
127347         (__mon_yday): Declare with the STATIC attribute.
127348         (__mktime_internal): Likewise.
127349         Based on a report from Greg Schafer.
127351 2002-11-23  Jim Meyering  <jim@meyering.net>
127353         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
127354         Use `unsigned', not `int', as type of index.
127356         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
127358         * lib/fsusage.c: Remove unneeded parentheses around operands of
127359         `defined'.
127361 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127363         * lib/quotearg.h: Allow multiple inclusion by surrounding with
127364         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
127365         so that we can be included first.
127366         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
127367         * lib/quotearg.c: Include quotearg.h immediately after config.h.
127368         No need to include stddef.h or sys/types.h any more.
127369         Surround local include files with "", not "<>".
127370         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
127371         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
127372         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
127373         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
127374         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
127375         (ISPRINT): Remove; no longer needed now that we assume C89.
127377         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
127378         Preserve errno.
127380         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
127381         quotearg_char): Use SIZE_MAX rather than
127382         (size_t) -1 when we are talking about "infinity".
127384         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
127386 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127388         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
127389         hint that one should use `if (! x) abort ();' rather than `assert
127390         (x);', and anyway it's one less thing to worry about configuring.
127391         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
127392         hash_rehash, hash_insert): Use abort rather than assert.
127394 2002-11-22  Bruno Haible  <bruno@clisp.org>
127396         * lib/safe-read.h: Assume C89. Add comments.
127397         (safe_read): Change return type to size_t.
127398         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
127399         byte counts > SSIZE_MAX correctly.
127400         * lib/safe-write.h: New file.
127401         * lib/safe-write.c: New file.
127402         * lib/full-read.h: New file.
127403         * lib/full-read.c: New file.
127404         * lib/full-write.h: Assume C89. Add comments.
127405         * lib/full-write.c: Include safe-write.h.
127406         (full_write): Rewritten to use safe_write.
127407         Suggested by Jim Meyering and Paul Eggert.
127409 2002-11-21  Jim Meyering  <jim@meyering.net>
127411         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
127413         Merge in changes from the coreutils.
127415         2002-09-25  Paul Eggert  <eggert@twinsun.com>
127416         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
127417         <stdint.h>.
127418         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
127419         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
127420         int.  Work more efficiently if X is the same width as uintmax_t.
127421         Do not compare X to -1, to avoid bogus compiler warning.
127422         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
127423         Don't assume that f_frsize and f_bsize are the same type.
127425         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
127426         warning on FreeBSD.
127428         * lib/makepath.c (make_path): Restore umask *before* creating the final
127429         component.
127430         (make_path): Minor reformatting.
127432         * lib/xmalloc.c: Adjust to work with new autoconf macros,
127433         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
127434         HAVE_MALLOC/HAVE_REALLOC.
127436         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
127437         dummy ones.  At least on GNU/Linux systems, `auto' means something
127438         else.
127439         From Michael Stone.
127441 2002-11-21  Bruno Haible  <bruno@clisp.org>
127443         Remove case insensitive option matching.
127444         * lib/argmatch.h (argcasematch): Remove declaration.
127445         (ARGCASEMATCH): Remove macro.
127446         (__xargmatch_internal): Remove case_sensitive argument.
127447         (XARGMATCH): Update.
127448         (XARGCASEMATCH): Remove macro.
127449         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
127450         case_sensitive argument.
127451         (argcasematch): Remove function.
127452         (__xargmatch_internal): Remove case_sensitive argument.
127453         (main): Use XARGMATCH instead of XARGCASEMATCH.
127455         * lib/xmalloc.c: Change compile-time error message. Add comment about
127456         required autoconf version.
127458 2002-11-20  Paul Eggert  <eggert@twinsun.com>
127460         Merge argmatch cleanups from Bison.  Assume C89.
127462         * lib/argmatch.c: Include config.h here, not in argmatch.h.
127463         Include stdlib.h, for EXIT_FAILURE.
127464         Always include <string.h>, since we assume C89.
127465         (EXIT_FAILURE): Remove pre-C89 bug workaround.
127466         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
127467         Include <stddef.h> instead, since it's all we need for size_t.
127468         (PARAMS): Remove.  All uses removed.
127469         (ARRAY_CARDINALITY): Do not bother to #undef.
127470         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
127471         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127472         Remove unnecessary parentheses.
127473         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127474         Insert necessary parentheses.
127475         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
127476         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
127478 2002-11-19  Bruno Haible  <bruno@clisp.org>
127480         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
127481         * lib/mbswidth.h: Include <stddef.h>, for size_t.
127483         * lib/mbswidth.h (PARAMS): Remove macro.
127484         (mbswidth, mbsnwidth): Use ANSI C function declarations.
127485         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
127487         * lib/gcd.h (PARAMS): Remove macro.
127488         (gcd): Use ANSI C function declarations.
127489         * lib/gcd.c (gcd): Likewise.
127491 2002-11-15  Bruno Haible  <bruno@clisp.org>
127493         * lib/strcspn.c: Include <stddef.h>.
127494         (strcspn): Use ANSI C function declaration. Change return type to
127495         size_t. Use NULL.
127496         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
127497         (strpbrk): Use NULL.
127498         * lib/strpbrk.h (PARAMS): Remove macro.
127499         (strpbrk): Use ANSI C function declaration.
127500         * lib/strstr.c: Don't include <sys/types.h>.
127501         * lib/strstr.h (PARAMS): Remove macro.
127502         (strstr): Use ANSI C function declarations.
127504 2002-11-14  Karl Berry  <karl@gnu.org>
127506         * config/mkinstalldirs: `do' on separate line, instead of
127507         `for var; do'.
127509 2002-11-06  Bruno Haible  <bruno@clisp.org>
127511         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
127512         * lib/gcd.c (gcd): Likewise.
127514 2002-11-05  Bruno Haible  <bruno@clisp.org>
127516         * lib/gcd.h: New file, from gettext-0.11.5.
127517         * lib/gcd.c: New file, from gettext-0.11.5.
127519 2002-11-05  Bruno Haible  <bruno@clisp.org>
127521         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127522         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127523         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127524         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127526         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
127527         <libintl.h>.
127528         * lib/makepath.c: Include gettext.h instead of <locale.h> and
127529         <libintl.h>.
127531         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
127532         * lib/human.c: Include gettext.h instead of <libintl.h>.
127533         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
127534         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
127535         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
127536         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
127537         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
127538         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
127539         (textdomain): Remove definition.
127540         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
127542         * lib/long-options.c: Remove include of <libintl.h> and definition of
127543         _.
127544         * lib/same.c: Remove include of <libintl.h> and definition of _.
127546 2002-11-04  Owen Taylor  <otaylor@redhat.com>
127548         * lib/config.charset: A few additions for Solaris.
127550 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127552         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
127553         * lib/localcharset.c (locale_charset): Declare as extern "C".
127555 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127557         * lib/config.charset: msdos in uk_UA uses CP1125.
127559 2002-11-04  Bruno Haible  <bruno@clisp.org>
127561         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
127562         * lib/strcase.h: New file, from GNU gettext-0.11.5.
127563         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
127564         * lib/strstr.h: New file, from GNU gettext-0.11.5.
127565         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
127567 2002-11-04  Bruno Haible  <bruno@clisp.org>
127569         * lib/localcharset.c (locale_charset): Don't return an empty string.
127571 2002-11-04  Bruno Haible  <bruno@clisp.org>
127573         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
127574         aliases.
127576 2002-11-04  Bruno Haible  <bruno@clisp.org>
127578         * lib/config.charset: Update for newest glibc. Add canonical names
127579         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
127581 2002-11-04  Bruno Haible  <bruno@clisp.org>
127583         * lib/config.charset: Add support for NetBSD.
127585 2002-11-04  Bruno Haible  <bruno@clisp.org>
127587         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127589 2002-11-01  Bruno Haible  <bruno@clisp.org>
127591         * configure.in: Add AC_CONFIG_AUX_DIR call.
127592         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127593         test/Makefile.
127594         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127596 2002-09-28  Karl Berry  <karl@gnu.org>
127598         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127599         installed automake until the next release, since changes have been
127600         made.
127602 2002-09-25  Karl Berry  <karl@gnu.org>
127604         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127605         * lib/getopt*: copy from libc/posix.
127606         * lib/gettext.h: copy from gettext.
127607         * lib/.cppi-disable: add strdup.c, gettext.h.
127609 2002-09-25  Karl Berry  <karl@gnu.org>
127611         * config/srclist.txt: enable gettext.h check.
127612         * config/config.{guess,sub}: update from prep.
127613         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127614                 from automake 1.6.3.
127615         See srclist*.
127617 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127619         * regex.c (PATFETCH): Remove the translating fetch.
127620         (PATFETCH_RAW): Rename to PATFETCH.
127621         (set_image_of_range): New fun.
127622         (SET_RANGE_TABLE_WORK_AREA): Use it.
127623         (regex_compile): Don't translate the pattern chars so eagerly.
127624         Only do it when inserting an `exactn' bytecode or when handling
127625         a char-range.
127626         (mutually_exclusive_p): Avoid empty statement.
127628 2002-07-06  Jim Meyering  <meyering@lucent.com>
127630         * m4/README: Don't mention Makefile.am.in.
127631         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127633 2002-07-01  Jim Meyering  <meyering@lucent.com>
127635         * lib/c-stack.c: Include sys/time.h.
127636         From Volker Borchert.
127638 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127640         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127642 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127644         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127645         New macro.  Use it uniformly instead of
127646         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127647         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127648         reported by Vin Shelton.
127650 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127652         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127653         Do not assume SA_SIGINFO behavior.
127654         Bug reported by Jim Meyering on NetBSD 1.5.2.
127656 2002-06-22  Jim Meyering  <meyering@lucent.com>
127658         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127662         now that configure.ac uses AC_GNU_SOURCE.
127663         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127664         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127666         Update to latest tools.  Suggestions from Paul Eggert.
127667         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127668         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127669         * m4/fnmatch.m4: Likewise.
127670         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127671         to AC_HEADER_STDBOOL
127673 2002-06-22  Jim Meyering  <meyering@lucent.com>
127675         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127676         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127678 2002-06-22  Jim Meyering  <meyering@lucent.com>
127680         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127682         * lib/exitfail.c, exitfail.h: Likewise.
127683         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127685         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127686         of fnmatch.h.
127687         (EXTRA_DIST): Add fnmatch_loop.c.
127688         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127690         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127691         * lib/fnmatch.c: Update from diffutils-2.8.2.
127692         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127693         * lib/fnmatch.h: Remove file.
127695 2002-06-21  Jim Meyering  <meyering@lucent.com>
127697         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127698         * m4/mbrtowc.m4: Likewise.
127700         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127701         * m4/mbswidth.m4: Reflect name change:
127702         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127703         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127705         * m4/lib-link.m4: Update from gettext-0.11.2.
127706         * m4/gettext.m4: Likewise.
127708         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127709         From Alfred M. Szmidt.
127711 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127713         * lib/file-type.h: Report an error if neither S_ISREG nor
127714         S_IFREG is defined, instead of using a test specific to glibc
127715         2.2.  This should be safe, since POSIX requires S_ISREG and
127716         Unix Version 7 had S_IFREG.  We don't need to check for
127717         <sys/types.h> since we don't use any symbols that it defines.
127719 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127721         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127722         $@-t, so that each temporary file name is unique and valid in the first
127723         8 characters, for operation under DOS.
127725 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127729 2002-06-15  Jim Meyering  <meyering@lucent.com>
127731         Work even with DJGPP 2.03, which lacks support for symlinks.
127732         From Richard Dawe.
127733         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127734         is defined.
127735         * lib/lchown.c (S_ISLNK): Likewise.
127737 2002-06-15  Jim Meyering  <meyering@lucent.com>
127739         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127740         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127741         have been included before this file.
127743 2002-06-14  Jim Meyering  <meyering@lucent.com>
127745         * lib/file-type.h: Use the version from diffutils-2.8.2.
127746         * lib/file-type.c: Likewise.
127748 2002-06-07  Jim Meyering  <meyering@lucent.com>
127750         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127751         They're needed at least for NetBSD 1.5.2.
127752         ($statxfs_includes): Include those same headers.
127753         ($statxfs_includes): Include sys/vfs.h if available.
127754         ($statxfs_includes): Likewise for sys/statvfs.h.
127755         Check for the following members in both structs statfs and statvfs:
127756         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127758 2002-06-01  Jim Meyering  <meyering@lucent.com>
127760         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127761         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127763 2002-05-28  Jim Meyering  <meyering@lucent.com>
127765         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127766         Reported by Volker Borchert.
127768 2002-05-27  Jim Meyering  <meyering@lucent.com>
127770         Fix a problem seen only on nonconforming systems whereby ls.c's
127771         use of localtime, and then of gettimeofday would cause trouble:
127772         the localtime call used to initialize rpl_gettimeofday's save
127773         mechanism would clobber ls's current local time information so
127774         that in any long listing the first file would always be listed
127775         with date 1970-01-01.  Analysis by Volker Borchert.
127777         * lib/gettimeofday.c (localtime): Undefine.
127778         (rpl_localtime): New function.
127780 2002-05-27  Jim Meyering  <meyering@lucent.com>
127782         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127783         localtime.
127785         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127786         use the replacement function; it wouldn't resolve at link time.
127787         Reported by Volker Borchert.
127789 2002-05-22  Jim Meyering  <meyering@lucent.com>
127791         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127792         file-type.h.
127793         * lib/file-type.h: New file.
127794         * lib/file-type.c (file_type): New file/function.  Extracted from
127795         diffutils.
127797 2002-04-30  Jim Meyering  <meyering@lucent.com>
127799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127801 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127803         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127805 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127807         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127808         Do not check for alloca.h (no longer used) or stdbool.h (was never
127809         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127811 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127813         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127815 2002-04-29  Jim Meyering  <meyering@lucent.com>
127817         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127818         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127819         Use AC_FUNC_STRNLEN here instead.
127821         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127822         With autoconf-2.53a, it's part of AC_PROG_CC.
127824 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127826         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127829 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127831         * lib/sig2str.h, lib/sig2str.c: New files.
127832         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127834 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127836         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127837         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127838         of 127, since 64 is the largest conceivable number for ancient
127839         nonstandard hosts.
127840         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127842 2002-04-28  Jim Meyering  <meyering@lucent.com>
127844         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127846 2002-04-24  Jim Meyering  <meyering@lucent.com>
127848         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127849         (jm_PREREQ): Use it.
127851         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127852         mach/mach.h fcntl.h.
127853         Check for this function: setlocale.
127855 2002-04-24  Jim Meyering  <meyering@lucent.com>
127857         * lib/gettext.h: New file, from Gettext.
127858         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127859         (libfetish_a_SOURCES): Add gettext.h.
127861 2002-04-16  Jim Meyering  <meyering@lucent.com>
127863         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127864         ut_pid, ut_id, ut_exit.
127866 2002-04-16  Jim Meyering  <meyering@lucent.com>
127868         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127869         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127870         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127872 2002-04-12  Jim Meyering  <meyering@lucent.com>
127874         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127875         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127876         existence of the getmntinfo function.  Needed for Darwin 5.3.
127878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127879         This is necessary at least on Darwin 5.3.
127881         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127882         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127883         strnlen.o in the library, and that makes some versions of ranlib
127884         object.
127886 2002-04-12  Jim Meyering  <meyering@lucent.com>
127888         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127890 2002-04-09  Jim Meyering  <meyering@lucent.com>
127892         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127893         to be more precise.  Rather than saying we're checking whether the
127894         function `works', say what we're testing.
127895         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127896         Reported by Bruno Haible.
127898 2002-03-10  Jim Meyering  <meyering@lucent.com>
127900         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127901         Suggestion from Santiago Vila.
127903 2002-03-08  Jim Meyering  <meyering@lucent.com>
127905         * lib/rename.c: Mention that this wrapper is needed also on
127906         mips-dec-ultrix4.4 systems.
127908 2002-03-02  Jim Meyering  <meyering@lucent.com>
127910         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127911         not HAVE_CLOCK_SETTIME.
127913 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127915         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127916         Check for clock_settime.
127918 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127920         * lib/nanosleep.h: Rename to....
127921         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127923         * lib/gettime.c: New file.
127924         * lib/settime.c: New file.
127925         * lib/stime.c: Remove.
127927         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127928         timespec.h.  Remove nanosleep.h.
127930 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127932         * m4/acl.m4: New file.
127933         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127934         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127936 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127938         * lib/acl.c, lib/acl.h: New files.
127939         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127941 2002-02-24  Jim Meyering  <meyering@lucent.com>
127943         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127944         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127945         cause trouble.  Reported by Nelson Beebe.
127947 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127949         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127950         compilers that don't know that xalloc_die never returns.
127952 2002-02-20  Jim Meyering  <meyering@lucent.com>
127954         * lib/getdate.c: Regenerate using bison-1.33.
127956 2002-02-17  Jim Meyering  <meyering@lucent.com>
127958         * config/config.guess (main): Don't use `head -1'; it's no longer
127959         portable. Use `sed 1q' instead.
127961 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127963         * m4/codeset.m4: Upgrade to gettext-0.11.
127964         * m4/gettext.m4: Upgrade to gettext-0.11.
127965         * m4/glibc21.m4: Upgrade to gettext-0.11.
127966         * m4/iconv.m4: Upgrade to gettext-0.11.
127967         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127968         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127969         * m4/lib-ld.m4: New file, from gettext-0.11.
127970         * m4/lib-link.m4: New file, from gettext-0.11.
127971         * m4/lib-prefix.m4: New file, from gettext-0.11.
127972         * m4/progtest.m4: Upgrade to gettext-0.11.
127974 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127976         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127977         (jm_PREREQ): Use it.
127979 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127981         * lib/posixver.c, lib/posixver.h: New files.
127982         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127984 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127985             Bruno Haible  <bruno@clisp.org>
127987         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127988         (fwrite_success_callback): New declaration.
127989         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127990         print_unicode_char. Call failure callback instead of error.
127991         (fwrite_success_callback): New function.
127992         (exit_failure_callback): New function.
127993         (fallback_failure_callback): New function.
127994         (print_unicode_char): Call unicode_to_mb.
127996 2002-01-26  Jim Meyering  <meyering@lucent.com>
127998         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127999         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
128001 2002-01-26  Jim Meyering  <meyering@lucent.com>
128003         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
128005 2002-01-22  Paul Eggert  <eggert@twinsun.com>
128007         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
128009 2002-01-22  Jim Meyering  <meyering@lucent.com>
128011         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
128012         Otherwise, some versions of automake would omit the rule that makes
128013         Makefile from Makefile.in.
128015 2002-01-21  Paul Eggert  <eggert@twinsun.com>
128017         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
128018         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
128019         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
128020         (memcoll): Set errno to zero if there is no error.
128022         * lib/quotearg.c (quotearg_buffer_restyled):
128023         Fix bug with quoting buffers containing NUL when backslashing escapes.
128024         This bug was exposed by the other changes in this patch.
128025         (quotearg_n_options): New arg ARGSIZE.
128026         All callers changed.
128027         (quoting_options_from_style): New function.
128028         (quotearg_n_style): Use it.
128029         (quotearg_n_style_mem): New function.
128031         * lib/quotearg.h (quotearg_n_style_mem): New function.
128033 2002-01-19  Jim Meyering  <meyering@lucent.com>
128035         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
128036         Remove useless quotes: DF_PROG="df".
128037         * m4/strnlen.m4: New file.
128039 2002-01-16  Paul Eggert  <eggert@twinsun.com>
128041         * lib/backupfile.c (ISDIGIT): Comment fix.
128042         * lib/getdate.y (ISDIGIT): Likewise.
128043         * lib/posixtm.c (ISDIGIT, year): Likewise.
128044         * lib/strverscmp.c (ISDIGIT): Likewise.
128045         * lib/userspec.c (ISDIGIT): Likewise.
128047 2002-01-16  Jim Meyering  <meyering@lucent.com>
128049         * lib/getdate.y: Add three semicolons, each just before a closing
128050         brace. Bison (as of version 1.31) no longer papers over that mistake.
128052 2002-01-05  Jim Meyering  <meyering@lucent.com>
128054         * lib/version-etc.c (version_etc_copyright): Update copyright year.
128056 2001-12-19  Paul Eggert  <eggert@twinsun.com>
128058         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
128059         not silently exit merely because the output buffer happens to
128060         have nothing pending.
128062 2001-12-18  Paul Eggert  <eggert@twinsun.com>
128064         See the big note in ../ChangeLog.
128065         * lib/human.c (suffixes): Prefer K to k for 1024.
128066         (generate_suffix_backwards): New function.
128067         (human_readable_inexact): Use it.
128068         * lib/xstrtol.c (__xstrtol): If there is no number but there
128069         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
128070         Accept 'K' as well as 'k'.
128072 2001-12-15  Jim Meyering  <meyering@lucent.com>
128074         * lib/regex.h (__restrict_arr): Update from libc.
128076         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
128077         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
128078         (STREQ): Define.
128080 2001-12-14  Jim Meyering  <meyering@lucent.com>
128082         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
128083         Suggestion from Bruno Haible.
128085 2001-12-10  Jim Meyering  <meyering@lucent.com>
128087         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
128088         xrealloc, Instead, include "xalloc.h".
128089         (initbuffer): Don't cast xmalloc return value to char*.
128090         (readline): Reword comment.
128091         Don't cast xrealloc return value to char*
128092         Return NULL, not 0.
128094 2001-12-09  Jim Meyering  <meyering@lucent.com>
128096         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
128097         about `signed and unsigned type in conditional expression'.
128098         * lib/posixtm.c (posix_time_parse): Likewise.
128100         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
128102         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
128103         to avoid a pedantic warning.
128105         * lib/getstr.c: Don't include assert.h.
128106         (getstr): Remove warning-evoking assertions.
128107         Return -1 if offset parameter is out of bounds.
128108         Change the type of a local from int to size_t.
128110         * lib/strftime.c (my_strftime_localtime_r): Include this function
128111         definition in the `#if ! HAVE_TM_GMTOFF' block.
128113         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
128114         Include xalloc.h instead.
128116 2001-12-02  Jim Meyering  <meyering@lucent.com>
128118         * lib/tempname.c: Don't declare getenv, thus reverting the change of
128119         2001-11-18.  It's no longer necessary, now that stdlib.h is always
128120         included.
128122         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
128123         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
128125 2001-11-30  Akim Demaille  <akim@epita.fr>
128127         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
128128         before being defined.
128130 2001-11-27  Paul Eggert  <eggert@twinsun.com>
128132         * lib/quotearg.h (quotearg_n, quotearg_n_style):
128133         First arg is int, not unsigned.
128134         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
128135         (SIZE_MAX, UINT_MAX): New macros.
128136         (quotearg_n_options): Abort if N is negative.
128137         Avoid overflow check on hosts where size_t is 64 bits and int
128138         is 32 bits, as overflow is impossible there.
128139         Fix off-by-one typo that caused unnecessary reallocation.
128141 2001-11-27  Jim Meyering  <meyering@lucent.com>
128143         * lib/tempname.c: Merge with version from libc.
128144         * lib/regex.c: Likewise.
128146         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
128147         systems for which STDC_HEADERS is 0, it was not included, resulting in
128148         a warning about an integer-to-pointer conversion problem with getenv.
128149         Reported by Volker Borchert.
128151 2001-11-26  Jim Meyering  <meyering@lucent.com>
128153         * lib/gtod.h: Remove file.
128154         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
128155         * lib/gettimeofday.c: Don't include gtod.h.
128156         (GTOD_init): Remove function.
128157         (rpl_gettimeofday): Do its job here instead, rather than aborting.
128158         Suggestion from Volker Borchert.
128160 2001-11-23  Jim Meyering  <meyering@lucent.com>
128162         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
128163         it.
128164         * lib/hash.c (struct hash_table): Define it here instead.
128166 2001-11-22  Jim Meyering  <meyering@lucent.com>
128168         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
128170 2001-11-20  Jim Meyering  <meyering@lucent.com>
128172         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
128173         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
128175 2001-11-19  Jim Meyering  <meyering@lucent.com>
128177         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
128178         directory.  Use "conftestXXXXXX" as the template.
128179         Suggestion from Paul Eggert.
128181         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
128182         immediately, so the test doesn't mistakenly hit the max-open-files
128183         limit.
128185 2001-11-18  Paul Eggert  <eggert@twinsun.com>
128187         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
128188         (TEMPORARIES): New macro.
128189         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
128190         removes an artificial limitation (e.g. HP-UX 10.20, where
128191         TMP_MAX is 17576).
128193 2001-11-18  Jim Meyering  <meyering@lucent.com>
128195         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
128197 2001-11-18  Jim Meyering  <meyering@lucent.com>
128199         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
128200         on SunOS 4.
128202         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
128203         files will be created before anything else.
128205 2001-11-17  Paul Eggert  <eggert@twinsun.com>
128207         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
128208         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
128210 2001-11-17  Jim Meyering  <meyering@lucent.com>
128212         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
128213         Prompted by a report from Bob Proulx.
128215         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
128216         Instead, require UTILS_FUNC_MKSTEMP.
128218 2001-11-17  Jim Meyering  <meyering@lucent.com>
128220         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
128221         Now, that's done as part of AC_FUNC_STRTOD.
128223 2001-11-17  Jim Meyering  <meyering@lucent.com>
128225         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
128226         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
128227         rather than group writable.  Patch by Juan F. Codagnone.
128229         * lib/readtokens.c: Remove explicit declarations of xmalloc and
128230         xrealloc, Instead, include "xalloc.h".
128232         * lib/mountlist.c: Include unlocked-io.h after all system headers.
128233         Remove explicit declarations of xmalloc, xrealloc,
128234         and xstrdup.  Instead, include "xalloc.h".
128236         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
128237         unlocked-io.h.
128238         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
128239         Likewise.
128240         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
128242         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
128243         Reported by Padraig Brady.
128245         * lib/mkstemp.c: #undef mkstemp.
128246         Include config.h.
128247         (rpl_mkstemp): Rename from mkstemp.
128248         Protoize.
128250 2001-11-16  Jim Meyering  <meyering@lucent.com>
128252         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
128253         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
128254         determine the amount of total physical memory, use pstat_getstatic.
128255         HPUX-11 doesn't define _SC_PHYS_PAGES.
128256         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
128257         If sysconf couldn't be used to determine the amount of available
128258         physical memory, use both pstat_getstatic and pstat_getdynamic.
128259         Based on a patch from Bob Proulx.
128261 2001-11-10  Jim Meyering  <meyering@lucent.com>
128263         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
128264         (jm_PREREQ): Use it.
128266 2001-11-09  Jim Meyering  <meyering@lucent.com>
128268         * m4/jm-macros.m4: Require autoconf-2.52f.
128269         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
128270         Use these AC_-prefixed names, not the AM_-prefixed ones.
128272         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
128274 2001-11-05  Jim Meyering  <meyering@lucent.com>
128276         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
128278 2001-11-04  Jim Meyering  <meyering@lucent.com>
128280         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
128281         $DEFS.
128283 2001-11-03  Jim Meyering  <meyering@lucent.com>
128285         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
128286         of AC_DEFUN.
128288         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
128289         know the name of the variable in the macro definition.
128291 2001-11-03  Jim Meyering  <meyering@lucent.com>
128293         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
128294         in argmatch_to_argument call.
128296         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
128297         argument.
128299         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
128300         e.g., a fault due to an attempt to free a NULL pointer.
128302 2001-11-01  Jim Meyering  <meyering@lucent.com>
128304         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
128305         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
128307 2001-11-01  Jim Meyering  <meyering@lucent.com>
128309         * lib/dirfd.c, lib/dirfd.h: New files.
128310         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
128312         * lib/hash.c (hash_print) [TESTING]: Clean up.
128314 2001-10-22  Paul Eggert  <eggert@twinsun.com>
128316         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
128317         to avoid a warning if -Wall.
128319 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
128321         * README: New file
128322         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
128323         (per RMS's instructions, this is now the canonical source)
128324         * lgpl/, gpl/: New directories.
128326 2001-10-21  Paul Eggert  <eggert@twinsun.com>
128328         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
128330 2001-10-21  Jim Meyering  <meyering@lucent.com>
128332         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
128333         this code would end up calling gettext even in packages built
128334         with --disable-nls.
128335         * lib/getopt.c (_): Likewise.
128336         * lib/regex.c (_): Likewise.
128338 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128340         * m4/error.m4 (jm_PREREQ_ERROR):
128341         Do not invoke AC_CHECK_FUNCS with strerror_r, as
128342         AC_FUNC_STRERROR_R does that.
128343         Check for strerror declaration.
128345         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
128346         are supposed to have them these days.
128347         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
128348         Merge changes from latest Autoconf CVS.
128349         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
128350         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
128351         POSIX decided to standardize on the int flavor of strerror_r.
128353 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128355         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
128356         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
128357         Use strerror_r that is only a macro, even if it is not a function.
128358         (strerror): Check for HAVE_DECL_STRERROR before declaring.
128359         (private_strerror): Use prototypes, not old-style function definition.
128360         (print_errno_message): New function.
128361         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
128362         char*-flavored one.
128363         (error_tail, error, error_at_line): Use it.
128365 2001-10-11  Jim Meyering  <meyering@lucent.com>
128367         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
128368         and quote_n (1, ... to avoid clobbering a buffer.
128370 2001-10-05  Jim Meyering  <meyering@lucent.com>
128372         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
128373         hash-pjw.h.
128374         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
128375         * lib/hash-pjw.h: New file.
128377 2001-09-30  Jim Meyering  <meyering@lucent.com>
128379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
128380         `struct fsstat' has the `f_fstypename' member.
128381         Use that to define FS_TYPE, which is now used to make
128382         the getfsstat link test tighter.
128384 2001-09-30  Jim Meyering  <meyering@lucent.com>
128386         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
128387         Include <sys/ucred.h>, for Apple Darwin.
128388         Include sys/mount.h and sys/fs_types.h only if available.
128389         (FS_TYPE): Define.
128390         (read_filesystem_list): Use FS_TYPE.
128392 2001-09-29  Paul Eggert  <eggert@twinsun.com>
128394         * lib/exclude.c (excluded_filename): 0 -> false, since it's
128395         a boolean context.
128397 2001-09-29  Jim Meyering  <meyering@lucent.com>
128399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128400         [one-argument getmntent function]): Include stdio.h before mntent.h.
128401         SunOS 4.1.x needs it for the declaration of `FILE'.
128402         Patch by Volker Borchert.
128404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128405         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
128406         sys/fs_types.h, and make the link-test for getfsstat guard #include
128407         directives with appropriate #if HAVE_*_H tests so that we can
128408         detect getfsstat on Apple Darwin1.3.7 systems.
128409         Reported by Nelson Beebe.
128410         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
128412 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128414         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128415         #defines strtoimax.  Also treat the other strto* functions
128416         like strtoimax.
128418         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128419         Check for strtoul and strtoumax,
128420         as those declarations are made even in the signed case.
128421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
128422         Likewise, for strtol and strtoimax.
128424 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128426         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128427         #defines strtoimax.  Also treat the other strto* functions
128428         like strtoimax.
128430         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
128431         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
128432         (strtoimax, strtoumax): Do not declare if already defined as a macro.
128434 2001-09-26  Jim Meyering  <meyering@lucent.com>
128436         Most macros in unlocked-io.h had the wrong number of arguments.
128437         * lib/gen-uio: New script.
128438         (USE_UNLOCKED_IO): Define to 1 if not already defined.
128439         * lib/unlocked-io.hin: Remove file.
128440         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
128441         rather than trying to embed it here.
128442         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
128443         Reported by Padraig Brady.
128445 2001-09-25  Volker Borchert  <bt@teknon.de>
128447         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
128448         `result'.
128450 2001-09-24  Jim Meyering  <meyering@lucent.com>
128452         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
128454 2001-09-23  Jim Meyering  <meyering@lucent.com>
128456         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
128457         instead of the mere test for existence of mntent.h.  The latter
128458         would get a false-positive on AIX 3.4 systems.
128459         In the outer getmntent if-block, don't die if neither of the getmntent
128460         tests succeeds.  Instead, just fall through and continue with the
128461         remaining tests.
128463 2001-09-23  Jim Meyering  <meyering@lucent.com>
128465         * lib/mountlist.c: Remove useless parentheses in #if directives.
128466         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
128467         the deprecated MOUNTED symbol is no longer defined in mntent.h.
128469 2001-09-22  Jim Meyering  <meyering@lucent.com>
128471         * m4/gettext.m4: New file.  From gettext.
128472         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
128473         * m4/progtest.m4: Likewise
128474         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
128475         * m4/glibc21.m4: Likewise.
128477         * m4/libintl.m4: Remove.  No longer used.
128479 2001-09-22  Jim Meyering  <meyering@lucent.com>
128481         * lib/localcharset.c: Update from latest gettext.
128482         * lib/config.charset: Likewise.
128484 2001-09-20  Jim Meyering  <meyering@lucent.com>
128486         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
128487         strtoimax.
128488         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
128489         strtoumax.
128491 2001-09-20  Jim Meyering  <meyering@lucent.com>
128493         * lib/xstrtol.c (strtoimax): Guard declaration with
128494         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
128495         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
128496         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
128497         (strtoumax): Likewise, for completeness (it wasn't necessary).
128499 2001-09-17  Paul Eggert  <eggert@twinsun.com>
128501         * lib/strtoimax.c (HAVE_LONG_LONG):
128502         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
128503         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
128504         to work around bug in IBM C compiler.
128506 2001-09-17  Jim Meyering  <meyering@lucent.com>
128508         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
128509         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
128510         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
128511         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
128512         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
128513         whenever the right hand side need not be expanded by the shell.
128515 2001-09-16  Paul Eggert  <eggert@twinsun.com>
128517         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
128518         library.  It's not correct, as some older glibcs are buggy.
128519         fnmatch wasn't fixed until glibc 2.2.
128521         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
128522         special shell magic here.
128524 2001-09-16  Jim Meyering  <meyering@lucent.com>
128526         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
128527         * m4/jm-macros.m4: Require it.
128529 2001-09-16  Jim Meyering  <meyering@lucent.com>
128531         * lib/mkdir.c: New file.
128533 2001-09-15  Jim Meyering  <meyering@lucent.com>
128535         * m4/jm-macros.m4: Check for help2man.
128537 2001-09-11  Jim Meyering  <meyering@lucent.com>
128539         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
128540         The body, by Paul Eggert, was moved here from configure.in.
128541         * m4/jm-macros.m4: Require UTILS_HOST_OS.
128543 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128545         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
128546         (jm_PREREQ): Use it.
128548 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128550         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
128551         Use ssize_t, not int, to store result of readlink.
128552         Check for ssize_t overflow as well as size_t overflow,
128553         as POSIX says the result of readlink is implementation-defined
128554         when ssize_t overflows.
128555         Remove unnecessary cast to char*.
128556         Use free+malloc instead of realloc, as the storage doesn't need
128557         to be preserved and it's clearer and can be more efficient that way.
128558         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
128559         * lib/xreadlink.h (xreadlink): Update prototype.
128561 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128563         * lib/xgetcwd.c: Revert some of the previous change; intead,
128564         fix the HAVE_GETCWD_NULL code to behave more like the
128565         !HAVE_GETCWD_NULL code used to.
128567         Include "xalloc.h".
128568         (xgetcwd): Do not return NULL when memory is exhausted; instead,
128569         invoke xalloc_die.
128571 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128573         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
128574         sys/param.h, as pathmax.h includes them.
128576 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
128579         (jm_PREREQ_XGETCWD): New macro.
128581         * m4/getcwd.m4: New file.
128583 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128585         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
128586         like the HAVE_GETCWD_NULL code.
128587         Include pathmax.h if not HAVE_GETCWD.
128588         Do not include xalloc.h.
128589         (INITIAL_BUFFER_SIZE): New symbol.
128590         Do not use xmalloc / xrealloc, since the caller is responsible for
128591         handling errors.  Preserve errno around `free' during failure.
128592         Do not overrun buffer when using getwd.
128594 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128596         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128597         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128598         getcwd (NULL, 0).
128600 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128602         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128603         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128604         spotted by Jim Meyering.
128606 2001-09-03  Jim Meyering  <meyering@lucent.com>
128608         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128609         failure.
128611 2001-09-02  Jim Meyering  <meyering@lucent.com>
128613         * lib/error.c: Update from GNU libc.
128615 2001-09-01  Jim Meyering  <meyering@lucent.com>
128617         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128618         Used by df.
128620 2001-09-01  Jim Meyering  <meyering@lucent.com>
128622         * lib/xreadlink.c: New file.
128623         * lib/xreadlink.h: New file.
128624         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128625         xreadlink.h.
128627         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128628         doesn't conflict with sparc Solaris 7's definition in
128629         /usr/include/sys/int_types.h.
128631         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128632         files.
128633         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128634         and strncasecmp as r-values.  Unixware didn't have declarations.
128636 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128638         * lib/xstrtol.h: Add copyright notice.
128639         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128640         LONGINT_INVALID_SUFFIX_CHAR.
128642 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128644         * lib/xstrtol.c (strtoimax): New decl.
128646 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128648         * lib/xgetcwd.c: Don't include pathmax.h.
128649         Include stdlib.h and unistd.h if available.
128650         Include xalloc.h.
128651         (xmalloc, xstrdup, free): Remove decls.
128652         (xgetcwd): Don't assume sizes fit in unsigned.
128653         Check for overflow when computing sizes.
128654         Simplify reallocation code.
128656 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128658         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128659         a directory's st_size can have an arbitrary value, so the old
128660         usage could waste an arbitrary amount of memory.  All uses
128661         changed.
128662         * lib/savedir.h: Update prototype.
128664 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128666         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128668         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128669         old strtoimax.c.
128671         Also, make the following further changes to make this file's
128672         configuration more similar to that of strtol.c:
128673         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128674         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128675         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128676         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128677         changed to signed values.
128679         And make the following changes as well:
128680         Fix copyright notice, as 1999 was missing.
128681         (verify): New macro.
128682         (strtoimax): Check sizes at compile-time, not run-time.
128683         Prefer strtol to strtoll if both work.
128684         (main): Remove; it was not that useful and was a pain to maintain.
128686         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128688 2001-08-31  Jim Meyering  <meyering@lucent.com>
128690         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128691         Use an initial, malloc'd, buffer of length 128 rather than
128692         a statically allocated one of length 1024.
128694 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128696         Simplify code, partly by assuming autoconf 2.52 semantics.
128698         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128700         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128701         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128702         All uses removed.
128703         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128704         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128705         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128706         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128707         jm_AC_HEADER_INTTYPES_H.
128708         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128710         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128712         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128713         Quote first arg of AC_DEFUN.
128714         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128715         since they are needed to parse the include file even if we need
128716         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128717         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128718         but with opposite signedness.
128720 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128722         Merge 'exclude' changes from tar 1.13.22.
128723         This fixes one or two unlikely storage allocation overflow bugs,
128724         but doesn't change user-visible behavior otherwise.
128726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128729         (jm_PREREQ_EXCLUDE): New macro.
128731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128733         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128734         tm to be declared.
128736 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128738         * lib/hash.c: Remove '2001' from copyright notice.
128740 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128742         * lib/full-write.h: New file.
128743         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128744         * lib/full-write.c: Correct credits, as cccp.c no longer
128745         exists and anyway it was so heavily changed from the old cccp
128746         code as to be unrecognizable.  Include full-write.h.
128747         (full_write): Return size_t, with short writes meaning failure.
128748         All callers changed.  This fixes a bug with large buffers
128749         on 64-bit hosts.
128750         * lib/utime.c: Include full-write.h.
128752 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128754         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128755         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128756         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128757         Include if available.
128758         (<xalloc.h>): Include
128759         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128760         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128761         collide with FNM macros.
128762         (struct patopts): New struct.
128763         (struct exclude): Use it, as exclude patterns now come with options.
128764         (new_exclude): Support above changes.
128765         (new_exclude, add_exclude_file):
128766         Initial size must now be a power of two to simplify overflow checking.
128767         (free_exclude, fnmatch_no_wildcards): New function.
128768         (excluded_filename): No longer requires options arg, as the options
128769         are determined by add_exclude.  Now returns bool, not int.
128770         (excluded_filename, add_exclude):
128771         Add support for the fancy new exclusion options.
128772         (add_exclude, add_exclude_file): Now takes int options arg.
128773         Check for arithmetic overflow when computing sizes.
128774         (add_exclude_file): xrealloc might modify errno, so don't
128775         realloc until after errno might be used.
128777         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128778         New macros.
128779         (free_exclude): New decl.
128780         (add_exclude, add_exclude_file): Now takes int options arg.
128781         (excluded_filename): No longer requires options arg, as the options
128782         are determined by add_exclude.  Now returns bool, not int.
128784 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128786         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128788 2001-08-27  Jim Meyering  <meyering@lucent.com>
128790         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128792         * lib/version-etc.c (N_): Remove definition.
128793         Revert most of last change.
128794         Instead, simply don't mark the `Copyright...' string for translation.
128795         Based on advice from Paul Eggert.
128797         * lib/strtoxmax.c: Tweak comment.
128799 2001-08-26  Jim Meyering  <meyering@lucent.com>
128801         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128803         * m4/xstrtoimax.m4: New file.
128804         * m4/xstrtoumax.m4: Add comments explaining why we
128805         AC_REPLACE_FUNCS(strtol).
128807 2001-08-26  Jim Meyering  <meyering@lucent.com>
128809         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128810         of copyright with `%s' so translators don't get an untranslated
128811         message in 2002.
128812         (COPYRIGHT_YEAR): Define.
128813         (version_etc): Use fprintf rather than fputs.
128814         Suggestion from Ulrich Drepper.
128816         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128818         * lib/strtoll.c: New file, from GNU libc.
128819         * lib/xstrtoimax.c: New file.
128821         * lib/xstrtol.h: Add xstrtoimax.
128822         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128823         * lib/strtoimax.c: New file.  Likewise, but first define
128824         STRTOUXMAX_SIGNED.
128826         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128827         ...
128828         * lib/strtoxmax.c: ... then renamed to this.
128830 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128832         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128833         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128834         (jm_AC_TYPE_INTMAX_T): New macro.
128835         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128837         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128839         * m4/longlong.m4: Renamed from ulonglong.m4.
128840         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128841         * m4/uintmax_t.m4: Removed.
128843 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128845         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128846         Port to Solaris 8, where 'sed' requires a space after the 'r'
128847         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128848         Redirect output to $tmp just once.
128850 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128852         * lib/addext.c (<errno.h>): Include.
128853         (errno): Declare if not defined.
128854         (addext): Work correctly when pathconf returns -1 and leaves
128855         errno alone because there is no limit.  Also, work even if
128856         pathconf returns a value greater than SIZE_MAX.
128858 2001-08-12  Jim Meyering  <meyering@lucent.com>
128860         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128861         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128862         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128863         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128864         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128865         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128866         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128867         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128868         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128869         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128870         utime.m4, utimes.m4, xstrtoumax.m4:
128871         Quote the first argument in each use of AC_DEFUN.
128873 2001-08-12  Jim Meyering  <meyering@lucent.com>
128875         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128876         Simply `return getcwd (NULL, 0);'.
128877         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128878         Use 1300 as initial value for length, not PATH_MAX.
128880         * lib/pathmax.h: Clean up cpp syntax.
128882 2001-08-12  Jim Meyering  <meyering@lucent.com>
128884         * lib/gettimeofday.c: New file.
128885         * lib/gtod.h: New file.
128886         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128888 2001-08-05  Jim Meyering  <meyering@lucent.com>
128890         * m4/jm-macros.m4: Require autoconf-2.52.
128892 2001-08-04  Jim Meyering  <meyering@lucent.com>
128894         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128895         stmt, to get in sync with glibc.
128897 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128899         The following changes are from gettext 0.10.39 as maintained by
128900         Bruno Haible.
128902         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128903         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128904         with inverted sense.  All uses changed.
128906         * lib/mbswidth.c: Don't include <limits.h>.
128907         Include <stdlib.h> and <string.h> unconditionally.
128908         (iswcntrl, mbsinit, ISCNTRL): New macros.
128909         (mbsnwidth): Use K&R style function declarations.
128910         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128911         can optimize it when MB_CUR_MAX == 1.
128912         The width of control characters is zero, not 1.
128914 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128916         The following changes are from gettext 0.10.39 as maintained by
128917         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128919         * m4/codeset.m4: Upgrade to serial AM1.
128920         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128921         all uses changed.  Quote first arg of AC_DEFUN.
128922         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128924         * m4/iconv.m4: Upgrade to serial AM2.
128925         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128926         Add --with-libconv-prefix.
128927         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128928         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128929         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128930         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128931         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128933         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128934         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128935         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128936         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128937         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128938         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128939         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128940         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128941         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128943         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128944         string.h any more.
128946         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128947         not the default value.
128949         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128950         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128951         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128952         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128953         Also check for iswcntrl, used for wcwidth fallback.
128954         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128955         to Autoconf 2.13.
128957 2001-08-03  Jim Meyering  <meyering@lucent.com>
128959         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128960         as it was in the original.  Reported by Paul Eggert.
128962 2001-07-16  Jim Meyering  <meyering@lucent.com>
128964         * m4/gettimeofday.m4: New file.
128965         Prompted by a report from Bernhard Baehr.
128967 2001-07-15  Jim Meyering  <meyering@lucent.com>
128969         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128970         stuff. Now it's in ../Makefile.cfg.
128972 2001-07-15  Jim Meyering  <meyering@lucent.com>
128974         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128975         (BUILT_SOURCES): Add unlocked-io.h.
128976         (io_functions): Define.
128977         (unlocked-io.h): New rule.
128978         (DISTCLEANFILES): Add unlocked-io.h.
128979         (all-local): Depend on unlocked-io.h, to ensure it is created.
128981         * lib/unlocked-io.hin: New file
128983         * lib/regex.c: Update from glibc.
128985 2001-07-05  Jim Meyering  <meyering@lucent.com>
128987         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128988         recommendation.
128989         (libfetish_a_SOURCES): Put all .h files here instead.
128990         Remove a thus-exposed (better checks in automake) duplicate and
128991         two unnecessary .h files.
128993 2001-07-04  Jim Meyering  <meyering@lucent.com>
128995         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128996         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128997         distcheck failure.
128999 2001-07-02  Jim Meyering  <meyering@lucent.com>
129001         The following changes were prompted by suggestions from Bruno Haible.
129003         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
129004         is now generated.
129005         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
129006         definition of EXTRA_DIST.
129007         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
129008         ensure that the generated file is created/updated whenever the list
129009         of $(unlocked_functions) is changed.
129010         (jm-glibc-io.m4): New rule.
129011         (unlocked-io.h): New rule -- currently unused.
129013 2001-06-24  Jim Meyering  <meyering@lucent.com>
129015         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
129016         unmatched right bracket, rather than kludging it with an extra,
129017         falsely-matching quote in a comment.  Patch by Akim Demaille.
129019 2001-06-11  Jim Meyering  <meyering@lucent.com>
129021         * lib/regex.c: Update from GNU libc.
129023 2001-05-27  Jim Meyering  <meyering@lucent.com>
129025         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
129026         Check for ut_type in struct utmp.
129028 2001-05-27  Jim Meyering  <meyering@lucent.com>
129030         * lib/readutmp.h (UT_TYPE): Define.
129032 2001-05-24  Jim Meyering  <meyering@lucent.com>
129034         * lib/argmatch.c: Include "quote.h".
129035         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
129036         quote function.  Reported by Göran Uddeborg.
129038 2001-05-22  Jim Meyering  <meyering@lucent.com>
129040         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
129041         now that we use the package-supplied version unconditionally.
129042         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
129044 2001-05-21  Jim Meyering  <meyering@lucent.com>
129046         * m4/regex.m4: Change a couple backticks to single quotes to avoid
129047         shell syntax errors.
129049 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
129051         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
129053 2001-05-20  Paul Eggert  <eggert@twinsun.com>
129055         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
129056         Don't bother to check library strftime, since
129057         we'll be using our own my_strftime function anyway.
129058         Define my_strftime instead of strftime.
129060 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
129062         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
129063         which is not yet declared.
129065 2001-05-15  Jim Meyering  <meyering@lucent.com>
129067         * m4/regex.m4: Use proper quoting so brackets appear in the test
129068         program.
129069         Reported by, and with help from, Bruno Haible.
129071 2001-05-13  Jim Meyering  <meyering@lucent.com>
129073         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
129074         undefined.
129076 2001-05-11  Paul Eggert  <eggert@twinsun.com>
129078         dirname code cleanup.  base_name now behaves more compatibly
129079         with POSIX basename when given file names that have trailing
129080         slashes, and similarly for dir_name.  Add new primitives
129081         base_len and dir_len.  Put the directory-name-related decls
129082         into dirname.h.
129084         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
129085         * lib/backupfile.c (base_name): Likewise.
129086         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
129087         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
129088         * lib/makepath.c (strip_trailing_slashes): Likewise.
129089         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
129090         ISSLASH): Likewise.
129091         * lib/rename.c (strip_trailing_slashes): Likewise.
129092         * lib/same.c (base_name): Likewise.
129093         * lib/stripslash.c (ISSLASH): Likewise.
129095         * lib/addext.c: Include <dirname.h> after size_t is defined.
129096         * lib/backupfile.c: Likewise.
129098         * lib/addext.c (addext): Use base_len to trim redundant
129099         trailing slashes instead of doing it ourselves.
129100         But do not trim the last slash if it is not redundant.
129102         * lib/backupfile.c (find_backup_file_name,
129103         max_backup_version): Use base_len instead of rolling it ourselves.
129104         Handle the case of "" and (on DOS) "C:" correctly.
129106         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
129107         needed. Include <string.h>, <dirname.h>.
129108         (base_name): Allow file names ending in slashes, other than names
129109         that are all slashes.  In this case, return the basename followed
129110         by the slashes.  This is more general, and can be used in places
129111         where the original base_name purposely had an assertion failure.
129112         (base_len): New function.
129114         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
129115         Do not include <assert.h>; no longer needed.
129116         Include xalloc.h.
129117         (memrchr): Remove decl.
129118         (dir_name_r): Remove.
129119         (dir_len): Renamed from dirlen.  All callers changed.
129120         Rewrite in terms of base_name, for simplicity and consistency.
129121         (dir_name): Never return NULL.  All callers changed.
129122         Do not include <stdlib.h> in test program; no longer needed.
129123         return 0; is fine for test program.
129125         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
129126         New macros.
129127         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
129129         * lib/path-concat.c (path_concat): Use base_len to compute
129130         base length, not strlen; this means we cannot rely on memcpy
129131         to null-terminate.
129133         * lib/same.c (STREQ): Remove.
129134         (same_name): Handle the case where the basename ends in trailing '/'.
129136         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
129137         a slash was stripped.  Do not strip the last slash after a
129138         file system prefix.
129140 2001-05-11  Paul Eggert  <eggert@twinsun.com>
129142         * lib/Makefile.am (libfetish_a_SOURCES):
129143         Add strftime.c, since we now compile it on all hosts.
129145         * lib/strftime.c (my_strftime):
129146         Define to nstrftime if emacs, but only if my_strftime is not defined.
129147         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
129148         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
129149         Add one more extra argument: a nanoseconds value.
129150         All uses changed.
129151         (ns): New macro.
129152         (my_strftime function): Add %N format.
129153         (emacs_strftimeu): Renamed from emacs_strftime,
129154         with extra ut argument.
129156 2001-05-09  Paul Eggert  <eggert@twinsun.com>
129158         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
129160 2001-04-21  Jim Meyering  <meyering@lucent.com>
129162         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
129163         doesn't interfere.
129165 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
129167         * m4/ftruncate.m4: Check for chsize.
129168         Link with ftruncate.o unconditionally if ftruncate is missing.
129169         This was required when cross-compiling to i586-mingw32msvc.
129171 2001-04-08  Jim Meyering  <meyering@lucent.com>
129173         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
129174         recomputed; that's necessary when the offset spans a DST transition.
129175         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
129177 2001-04-02  Jim Meyering  <meyering@lucent.com>
129179         * lib/regex.h, regex.c: Update from GNU libc.
129181 2001-03-24  Jim Meyering  <meyering@lucent.com>
129183         * m4/jm-macros.m4: Require autoconf-2.49d.
129185 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
129187         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
129189 2001-03-19  Paul Eggert  <eggert@twinsun.com>
129191         * lib/version-etc.c (version_etc_copyright): Update to 2001.
129193 2001-03-17  Jim Meyering  <meyering@lucent.com>
129195         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
129196         now that the version in autoconf is equivalent.
129197         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
129199         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
129200         Suggestion from Akim Demaille.
129202         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
129203         (jm_PREREQ_TEMPNAME): New function.
129205 2001-03-16  Paul Eggert  <eggert@twinsun.com>
129207         * lib/tempname.c (uint64_t): Define to uintmax_t if
129208         not defined, and if UINT64_MAX is not defined.
129209         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
129210         Reported by John David Anglin.
129212 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
129214         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
129215         resolve alias if codeset is empty.
129216         * lib/config.charset (BeOS): Use wildcard syntax.
129218 2001-03-13  Jim Meyering  <meyering@lucent.com>
129220         * lib/path-concat.c (path_concat)
129221         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
129222         concatenating e.g., `C:' and `foo'.
129223         From Bruno Haible.
129225 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129227         * lib/localcharset.c (locale_charset): Don't use
129228         setlocale(LC_CTYPE,NULL). Don't return NULL.
129229         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
129231 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129233         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
129234         support for DOS/DJGPP.
129236 2001-03-01  Paul Eggert  <eggert@twinsun.com>
129238         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
129239         lacks mkstemp.  Compile our own tempname.c if we compile our own
129240         mkstemp.c, as mkstemp relies on tempname.
129242 2001-03-01  Jim Meyering  <meyering@lucent.com>
129244         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
129245         AH_VERBATIM really does output its argument verbatim.
129247 2001-02-28  Paul Eggert  <eggert@twinsun.com>
129249         * lib/Makefile.am (libfetish_a_SOURCES):
129250         Add dup-safer.c, fopen-safer.c.
129251         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
129253         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
129254         * lib/unistd-safer.h: New files.
129256 2001-02-25  Paul Eggert  <eggert@twinsun.com>
129258         The mkstemp replacement is taken from glibc 2.2.2, with some
129259         portability fixes for use outside glibc, as follows:
129261         * lib/tempname.c (struct_stat64): New macro.
129262         (direxists, __gen_tempname): Use it.
129263         This avoids a portability problem with Solaris 8.
129265         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
129266         (<stddef.h>, <stdint.h>, <string.h>):
129267         Include only if STDC_HEADERS || _LIBC.
129268         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
129269         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
129270         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
129271         (__set_errno): Define this macro if <errno.h> doesn't.
129272         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
129273         Define these macros if <stdio.h> doesn't.
129274         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
129275         Define these macros if <sys/stat.h>
129276         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
129277         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
129278         __xstat64): Define if not _LIBC.
129279         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
129280         (__gen_tempname): Invoke gettimeofday only if
129281         HAVE_GETTIMEOFDAY || _LIBC;
129282         otherwise, fall back on plain "time".
129283         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
129285         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
129287         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
129289 2001-02-18  Paul Eggert  <eggert@twinsun.com>
129291         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
129293 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129295         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
129296         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
129297         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
129298         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129300 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129302         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
129303         Remove workaround macros for hosts that have mbrtowc but not
129304         mbstate_t, as we now insist on proper declarations for both
129305         before using mbrtowc.
129307 2001-02-17  Jim Meyering  <meyering@lucent.com>
129309         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
129310         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
129311         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
129312         UnixWare 7.1.1.
129314         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
129315         rather than AC_CACHE_VAL.
129317 2001-02-17  Jim Meyering  <meyering@lucent.com>
129319         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
129320         around included file name.
129322         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
129324         * lib/strftime.c: Update from GNU libc (the only changes were to
129325         comments).
129327 2001-02-17  Jim Meyering  <meyering@lucent.com>
129329         * lib/regex.c: Update from libc.
129331 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
129333         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
129334         clash.
129336 2001-02-16  Paul Eggert  <eggert@twinsun.com>
129338         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
129339         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
129340         Reported by Mark Hounschell via Paul Eggert.
129342 2001-02-07  Jim Meyering  <meyering@lucent.com>
129344         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
129346 2001-02-05  Jim Meyering  <meyering@lucent.com>
129348         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
129349         it includes the patch required for `large file' support with at least
129350         HP-UX's 10.20 /bin/cc.
129352 2001-02-03  Jim Meyering  <meyering@lucent.com>
129354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
129355         AS_IF, now that it works once again (mysteriously).
129356         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129358 2001-01-30  Jim Meyering  <meyering@lucent.com>
129360         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
129361         * m4/chown.m4: Rename conftestchown to conftest.chown.
129362         * m4/rename.m4: s/conftestdir/conftest.d1/ and
129363         s/conftestdir2/conftest.d2/.
129364         * m4/utimes.m4: s/conftestdata/conftest.data/
129365         Inspired by Pavel Roskin's change in autoconf.
129367 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
129369         * lib/config.charset: Update for FreeBSD 4.2.
129371 2001-01-27  Jim Meyering  <meyering@lucent.com>
129373         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
129374         a use of AS_IF.
129375         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129377 2001-01-26  Jim Meyering  <meyering@lucent.com>
129379         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
129380         quotearg.c includes it.
129382 2001-01-26  Jim Meyering  <meyering@lucent.com>
129384         * lib/quotearg.c: Include stddef.h.
129385         * lib/quote.c: Include stddef.h.
129386         Reported by Axel Kittenberger.
129388         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
129389         line in double quotes so that it evokes a better diagnostic.
129390         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
129391         Reported by Axel Kittenberger.
129393 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
129395         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
129396         as if it was a `charset'.
129398 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129400         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
129401         has const.
129403 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129405         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
129406         to avoid a warning.  Add back 'const' to inptr.
129408 2001-01-20  Jim Meyering  <meyering@lucent.com>
129410         Be sure that headers are checked before used in code compiled
129411         for the type checks.
129412         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
129413         In place of that, invoke jm_CHECK_ALL_TYPES.
129414         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
129415         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
129416         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
129417         The check for ssize_t was mistakenly run before the test for unistd.h.
129419         The configure-time check for stdbool.h was missing.
129420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
129421         (jm_PREREQ_HASH): New function.
129423 2001-01-17  Jim Meyering  <meyering@lucent.com>
129425         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
129426         for autoconf-2.49c.
129427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
129429 2001-01-16  Jim Meyering  <meyering@lucent.com>
129431         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
129432         From Bruno Haible.
129434 2001-01-14  Jim Meyering  <meyering@lucent.com>
129436         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
129437         foo and bar.  Create conftestdir/ in the script, not in the C code.
129438         Remove directories in the script, not in the C code.
129439         Remove conftestdir{,2} before trying to create the directory.
129440         Make the entire configure script fail if the mkdir fails.
129442 2001-01-14  Jim Meyering  <meyering@lucent.com>
129444         * lib/rename.c: New file.  From Volker Borchert.
129445         Include stdlib.h, string.h or strings.h, and xalloc.h.
129446         Use strip_trailing_slashes rather than open-coding it.
129448 2001-01-03  Paul Eggert  <eggert@twinsun.com>
129450         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
129452 2001-01-03  Jim Meyering  <meyering@lucent.com>
129454         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
129455         of local `inptr' to avoid warning with some system declarations of
129456         iconv.
129458 2001-01-02  Volker Borchert  <bt@teknon.de>
129460         * m4/rename.m4: New file.
129461         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
129463 2001-01-01  Jim Meyering  <meyering@lucent.com>
129465         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
129466         even on systems with utmpx.h.  It's necessary for the declaration of
129467         utmp's ut_user member.  Reported by Andreas Jaeger.
129469         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
129470         available. They are required for the declarations of getgrgid and
129471         getpwuid resp.
129472         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
129473         Reported by Andreas Jaeger.
129475 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
129477         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
129478         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
129479         so `make install' also works in VPATH builds.
129481 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
129483         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
129484         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
129485         can be used in subdirectories.
129487 2000-12-29  Paul Eggert  <eggert@twinsun.com>
129489         * lib/modechange.c: Do not assume that mode_t uses the
129490         traditional octal encoding.  E.g. "chmod 1 FOO" should set
129491         the other-execute bit of FOO even if S_IXOTH != 1.
129493         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
129494         WOTH, XOTH, ALLM): New macros.
129495         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
129496          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
129497         Use them.
129498         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
129499         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
129500         (mode_compile):
129501         No need to use uintmax_t; unsigned long is long enough.
129502         Don't bother to get suffix since we don't use it.
129504 2000-12-26  Jim Meyering  <meyering@lucent.com>
129506         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
129507         better with autoheader.
129509 2000-12-24  Jim Meyering  <meyering@lucent.com>
129511         * lib/hash.c (is_prime): Return explicit boolean values.
129512         (hash_get_first): Return NULL to appease Irix5.6's 89.
129513         Reported by Nelson Beebe.
129515 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
129517         * lib/localcharset.c (locale_charset): Add support for Win32.
129519 2000-12-18  Paul Eggert  <eggert@twinsun.com>
129521         * lib/physmem.h, lib/physmem.c: New files.
129523         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
129524         (noinst_HEADERS): Add physmem.h.
129526         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
129527         't' for compatibility with Solaris 8 sort.
129529 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
129531         * lib/config.charset: Add support for BeOS.
129533 2000-12-17  Jim Meyering  <meyering@lucent.com>
129535         * m4/dos.m4 (jm_AC_DOS): New file and macro.
129536         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
129538 2000-12-16  Jim Meyering  <meyering@lucent.com>
129540         This bug had a serious impact on chown: `chown N:M FILE' (for integer
129541         N and M) would have treated it like `chown N:N FILE'.
129543         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
129545 2000-12-16  Jim Meyering  <meyering@lucent.com>
129547         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
129548         SHELLS_FILE to a file name that's useful on djgpp systems.
129549         Include stdlib.h.
129550         (ADDITIONAL_DEFAULT_SHELLS): Define.
129551         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
129552         Based mostly on a patch from Prashant TR.
129554 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
129556         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
129557         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
129558         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
129560 2000-12-08  Andreas Schwab  <schwab@suse.de>
129562         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
129563         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
129565 2000-12-07  Jim Meyering  <meyering@lucent.com>
129567         * lib/stripslash.c (ISSLASH): Define.
129568         (strip_trailing_slashes): Use ISSLASH rather than comparing against
129569         `/'.
129570         From Prashant TR.
129572         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
129573         (dir_name_r): Declare this function as static.
129574         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
129575         manifest itself on a name containing a mix of slashes and
129576         backslashes.
129577         Make this function work with names starting with a DOS-style
129578         drive letter and colon prefix.
129579         (dir_name): Append `.' if necessary.
129580         Based mostly on patches from Prashant TR and Eli Zaretskii.
129582         * lib/dirname.h (dir_name_r): Remove prototype.
129584 2000-12-06  Paul Eggert  <eggert@twinsun.com>
129586         * m4/off_t-format.m4: Remove this file.
129587         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129589 2000-12-06  Jim Meyering  <meyering@lucent.com>
129591         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129592         replacement strtoull, we may well need the replacement strtoul, too.
129593         Check for declarations of strtoul and strtoull.
129594         Check for strtol.  Mainly as a cue to cause automake to include
129595         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129596         Check for limits.h -- strtol.c needs it.
129598 2000-12-05  Jim Meyering  <meyering@lucent.com>
129600         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129602 2000-12-04  Jim Meyering  <meyering@lucent.com>
129604         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129605         Also include memory.h, stdlib.h, unistd.h if appropriate.
129606         Reported by Andreas Jaeger (conflicting declaration of malloc).
129608 2000-12-02  Jim Meyering  <meyering@lucent.com>
129610         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129611         * m4/jm-macros.m4 (jm_MACROS): require it.
129613 2000-12-02  Jim Meyering  <meyering@lucent.com>
129615         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129617 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129619         * lib/memrchr.c: Include <config.h> before any system include file.
129621 2000-11-30  Jim Meyering  <meyering@lucent.com>
129623         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129625 2000-11-30  Jim Meyering  <meyering@lucent.com>
129627         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129629 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129631         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129633 2000-11-26  Jim Meyering  <meyering@lucent.com>
129635         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129637 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129639         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129640         size of (size_t) -1; it's not portable.
129642 2000-11-17  Jim Meyering  <meyering@lucent.com>
129644         * lib/strstr.c: Update from GNU libc.
129646 2000-11-17  Akim Demaille  <akim@epita.fr>
129648         * lib/obstack.h: Formatting changes.
129649         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129650         prevent type checking.
129651         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129652         cast the value to (void *): assigning a `foo *' to a `void *'
129653         variable is valid.
129654         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129656 2000-11-16  Jim Meyering  <meyering@lucent.com>
129658         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129660 2000-11-11  Jim Meyering  <meyering@lucent.com>
129662         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129664 2000-11-10  Jim Meyering  <meyering@lucent.com>
129666         * lib/obstack.h: Update from GNU libc.
129667         * lib/obstack.c: Likewise.
129669 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129671         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129673 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129675         * lib/getusershell.c (setusershell): Use rewind rather than
129676         fseek/fseeko, to avoid configuration hassles with fseeko.
129677         Don't bother opening SHELLS_FILE if shellstream is NULL;
129678         it's not necessary.
129680 2000-11-05  Jim Meyering  <meyering@lucent.com>
129682         * lib/makepath.h (make_dir): Declare.
129683         * lib/makepath.c (make_dir): Remove `static' attribute.
129684         Tweak a comment.
129686 2000-11-04  Jim Meyering  <meyering@lucent.com>
129688         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129690 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129692         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129693         last one in a bucket, advance to the next bucket.
129695 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129697         * lib/fnmatch.c: Do not comment out all the code if we are using
129698         the GNU C library, because in some cases we are replacing buggy
129699         code in the GNU C library itself.
129701 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129703         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129704         (regex_compile): Catch bogus \(\1\).
129706 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129708         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129709         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129710         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129712 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129714         * lib/error.h, getline.h, modechange.h:
129715         Remove "2000" from Copyright line, as the file hasn't been
129716         changed this year other than in the copyright notice.
129718         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129719         was changed this year.
129721 2000-10-29  Jim Meyering  <meyering@lucent.com>
129723         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129724         renaming.
129725         * m4/ls-mntd-fs.m4: Likewise
129727 2000-10-29  Jim Meyering  <meyering@lucent.com>
129729         * lib/xstat.in: Fix grammar in comment.
129731 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129733         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129734         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129735         doesn't define __restrict_arr.
129737 2000-10-28  Jim Meyering  <meyering@lucent.com>
129739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129740         (jm_PREREQ_MEMCHR): New function.
129742 2000-10-28  Jim Meyering  <meyering@lucent.com>
129744         * lib/memchr.c: Update from libc.
129745         Adjust for portability:
129746         [HAVE_STDLIB_H]: Include stdlib.h.
129747         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129748         Undef __memchr, too.
129749         [!weak_alias]: Define __memchr to memchr.
129751         * lib/regex.c: Update from libc.
129752         * lib/regex.h: Likewise.
129753         * lib/getopt1.c: Likewise.
129754         * lib/memcmp.c: Likewise.
129756         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129757         Avoid using fseek, when possible -- it's broken by design.
129758         Patch by Ulrich Drepper.
129760 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129762         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129763         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129764         Giving in to popular pressure to shut up the compiler with casts.
129766 2000-10-26  Jim Meyering  <meyering@lucent.com>
129768         * lib/strftime.c: Update from libc.
129770 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129772         * regex.c: More `unsigned char' -> `re_char' changes.
129773         Also change several `int' into `re_wchar_t'.
129774         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129775         (PUSH_FAILURE_POINTER): Don't cast any more.
129776         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129777         We want GCC to complain, since this piece of code makes
129778         re_match non-reentrant, which *should* be fixed.
129779         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129780         (EXTEND_BUFFER): Use RETALLOC.
129781         (SET_LIST_BIT): Don't cast.
129782         (re_wchar_t): New type.
129783         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129784         that those two functions will always properly return.
129785         (IMMEDIATE_QUIT_CHECK): Cast to void.
129786         (analyse_first): Use recursion rather than an explicit stack.
129787         (re_compile_fastmap): Can't fail anymore.
129788         (re_search_2): Don't check re_compile_fastmap for failure.
129789         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129790         Now also sets the new value (passed in a new argument).
129791         (re_match_2_internal): Use it.
129792         Also, use a new var `reg' of type size_t when looping through regs
129793         rather than reuse the inappropriate `mcnt'.
129795 2000-10-25  Jim Meyering  <meyering@lucent.com>
129797         * lib/obstack.c: Update from libc.
129799 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129801         * regex.c (regex_compile): Change the way of handling a range from
129802         a char less than 256 to a char not less than 256.
129804 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129806         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129807         NT-Emacs only.
129808         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129809         so that re_search functions only quit when callers expect them to.
129811 2000-10-23  Jim Meyering  <meyering@lucent.com>
129813         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129814         wrong.  That set_locale call must not have any side effects.
129815         From Paul Eggert.
129817 2000-10-22  Jim Meyering  <meyering@lucent.com>
129819         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129820         [CYCLIC]: Remove now-unused definition.
129822         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129823         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129824         Suggestion from Ulrich Drepper.
129826 2000-10-21  Jim Meyering  <meyering@lucent.com>
129828         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129829         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129832 2000-10-21  Jim Meyering  <meyering@lucent.com>
129834         * lib/dirname.c (memrchr): Declare if necessary.
129835         (dir_name): Remove the restriction that there be no
129836         trailing slashes.  Now, this code skips past them, effectively
129837         ignoring them.
129838         [TEST_DIRNAME] (main): New unit tests.
129840         * lib/memrchr.c: New file from GNU libc.
129841         Undef __memrchr, too.
129842         [!weak_alias]: Define __memrchr to memrchr.
129843         Guard weak_alias use with `#ifdef weak_alias'.
129845 2000-10-21  Jim Meyering  <meyering@lucent.com>
129847         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129848         (dir_name): Use dir_name_r.
129849         * lib/dirname.h (dir_name_r): Declare it.
129851 2000-10-17  Jim Meyering  <meyering@lucent.com>
129853         * lib/quote.h (PARAMS): Define and use.
129854         Reported by Akim Demaille.
129856         * lib/getopt.c: Update from libc.
129858 2000-10-16  Jim Meyering  <meyering@lucent.com>
129860         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129861         setlocale.
129862         From Jan Fedak.
129864 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129866         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129868 2000-09-25  Jim Meyering  <meyering@lucent.com>
129870         * lib/md5.h (rol): Define (from GnuPG).
129872         * lib/sha.c: Give credit (GnuPG) where due.
129873         (M): Use rol rather than open-coding it.
129874         Add a FIXME comment.
129876 2000-09-21  Jim Meyering  <meyering@lucent.com>
129878         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129879         Reported by Michael Stone.
129881 2000-09-20  Jim Meyering  <meyering@lucent.com>
129883         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129884         (noinst_HEADERS): Add sha.h.
129885         Based on code from Scott G. Miller and from GnuPG.
129887 2000-09-18  Jim Meyering  <meyering@lucent.com>
129889         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129890         LIBS. Otherwise, everyone ends up linking with -lelf for some
129891         configurations.
129892         Reported by Mike Stone.
129894 2000-09-15  Jim Meyering  <meyering@lucent.com>
129896         * lib/regex.c: Update from libc.
129898 2000-09-10  Jim Meyering  <meyering@lucent.com>
129900         * lib/getopt.c (_getopt_internal): Update from glibc.
129902 2000-09-09  Jim Meyering  <meyering@lucent.com>
129904         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129905         think it should be used as a general replacement for isascii.
129906         * lib/fnmatch.c: Likewise.
129907         * lib/mbswidth.c: Likewise
129908         * lib/regex.c: Likewise.
129910         Don't use atoi.
129911         * lib/userspec.c: Include sys/param.h and limits.h.
129912         Include xstrtol.h.
129913         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129914         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129915         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129916         UID, GID.  Check range.
129918 2000-09-06  Jim Meyering  <meyering@lucent.com>
129920         * lib/getopt.c (_getopt_internal): Update from glibc.
129922 2000-08-30  Jim Meyering  <meyering@lucent.com>
129924         * lib/strftime.c: Merge in changes from GNU libc.
129926 2000-08-26  Jim Meyering  <meyering@lucent.com>
129928         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129929         * m4/fpending.m4: New file.
129931 2000-08-26  Jim Meyering  <meyering@lucent.com>
129933         * lib/closeout.c: Include "__fpending.h".
129934         (close_stdout_status): Return right away if there's nothing to flush.
129936         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129937         * lib/__fpending.c: New file.
129938         * lib/__fpending.h: New file.
129940 2000-08-20  Jim Meyering  <meyering@lucent.com>
129942         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129943         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129944         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129946 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129948         Improve fileutils installation on systems where running
129949         programs (like install) can't be unlinked.
129950         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129951         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129953 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129955         Standardize on "memory exhausted" instead of "Memory exhausted"
129956         or "virtual memory exhausted".
129957         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129958         "virtual memory exhausted".
129959         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129960         our own message.
129961         * lib/userspec.c (parse_user_spec): Likewise.
129962         * lib/bumpalloc.h: comment fix
129963         * lib/same.c, userspec.c: Include xalloc.h.
129965         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129966         not char *const and pointing to a constant array.
129967         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129968         (xrealloc): Comment fix.
129970         * lib/userspec.c (parse_user_spec):
129971         Don't translate a message until just before returning,
129972         to avoid unnecessary translation.
129974 2000-08-07  Jim Meyering  <meyering@lucent.com>
129976         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129977         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129978         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129979         getgroups.c, gethostname.c, getopt.h, group-member.c,
129980         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129981         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129982         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129983         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129984         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129985         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129986         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129987         yesno.c: Back out Copyright date changes for each file with no change
129988         this year.  This eases coordination with other programs using the same
129989         source code modules.  From Paul Eggert.
129991 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129993         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129994         not char, for compatibility with glibc 2.1.3 strftime.c.
129996 2000-08-03  Greg McGary  <greg@mcgary.org>
129998         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129999         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
130000         (EXTEND_BUFFER): Use them.
130002 2000-08-01  Jim Meyering  <meyering@lucent.com>
130004         * lib/dirname.c (ISSLASH): Define.
130005         (BACKSLASH_IS_PATH_SEPARATOR): Define.
130006         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
130007         both `\' and `/' may be use as path separators.
130008         Based on a patch from Prashant TR.
130010 2000-07-31  Paul Eggert  <eggert@twinsun.com>
130012         * lib/quotearg.c (quotearg_n_options): Don't make the initial
130013         slot vector a constant, since it might get modified.
130015 2000-07-31  Jim Meyering  <meyering@lucent.com>
130017         * lib/xmalloc.c: Use `virtual memory exhausted', not
130018         `Memory exhausted'.
130019         * lib/obstack.c (print_and_abort): Likewise.
130021 2000-07-30  Paul Eggert  <eggert@twinsun.com>
130023         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
130024         buffer, so that the caller can always quote one small
130025         component of a "memory exhausted" message in slot 0.
130026         From a suggestion by Jim Meyering.
130028 2000-07-30  Jim Meyering  <meyering@lucent.com>
130030         * lib/makepath.c (make_path): Quote the other instance, too.
130032         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
130033         (STATIC_BUF_SIZE): Define.
130034         (quotearg_n_options): Use only statically allocated storage when
130035         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
130036         than STATIC_BUF_SIZE.
130038 2000-07-29  Jim Meyering  <meyering@lucent.com>
130040         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
130041         * lib/dirname.c (dir_name): Likewise.
130043         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
130044         `/'.
130046         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
130047         (dir_name): Assert that there are no trailing slashes.
130049 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
130051         * lib/mbswidth.h (mbswidth): Add a flags argument.
130052         (mbswidth): New declaration.
130053         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
130054         * lib/mbswidth.c (mbswidth): Add a flags argument.
130055         (mbsnwidth): New function.
130057 2000-07-24  Jim Meyering  <meyering@lucent.com>
130059         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
130061 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130063         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
130065 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130067         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
130068         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
130069         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
130070         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
130071         invoke multibyte primitives.
130073 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130075         * lib/quotearg.c:
130076         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
130077         so that mbstate_t is always defined.
130079         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
130080         be 1 in at least one GCC installation, and this configuration
130081         error is likely to be common.  Ignoring MB_LEN_MAX hurts
130082         performance on hosts that have mbrtowc but have only unibyte
130083         locales, but I assume these hosts are rare.
130085 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130087         * lib/mbswidth.c (_XOPEN_SOURCE):
130088         Don't define; this causes problems on Solaris 7.
130089         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
130091 2000-07-23  Jim Meyering  <meyering@lucent.com>
130093         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
130094         too: getgrgid, getpwuid, getuid.
130096 2000-07-23  Jim Meyering  <meyering@lucent.com>
130098         * lib/basename.c (base_name): Add an assertion.
130100 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
130102         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
130103         shadow its mbsinit function.
130105 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
130107         * lib/mbswidth.h: New file.
130108         * lib/mbswidth.c: New file.
130109         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
130110         (noinst_HEADERS): Add mbswidth.h.
130112 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
130114         * lib/config.charset: Add support for FreeBSD. Improve support for
130115         HP-UX and IRIX 6.
130117 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
130119         * m4/mbswidth.m4: New file.
130120         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
130122 2000-07-15  Jim Meyering  <meyering@lucent.com>
130124         * lib/makepath.c: Include quote.h.
130125         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
130126         corresponding argument in a `quote (...)' call.
130127         Give better diagnostics.
130129         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
130130         (noinst_HEADERS): Add quote.h.
130132         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
130133         from tar's src/misc.c.
130134         * lib/quote.h: New file.  Prototypes for same.
130136 2000-07-14  Paul Eggert  <eggert@twinsun.com>
130138         From a suggestion by Bruno Haible.
130139         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
130140         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
130141         to decide whether to define the BeOS workaround macro;
130142         this adjusts to the change to AC_MBSTATE_T.
130144 2000-07-14  Jim Meyering  <meyering@lucent.com>
130146         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
130147         jm_AC_TYPE_UINTMAX_T.
130149 2000-07-13  Paul Eggert  <eggert@twinsun.com>
130151         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
130153         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
130154         quotearg_buffer_restyled): Add support for
130155         clocale_quoting_style.  Undo previous change to
130156         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
130157         and "{RIGHT QUOTATION MARK}" msgids.
130159 2000-07-10  Paul Eggert  <eggert@twinsun.com>
130161         From a suggestion by Bruno Haible.
130162         * m4/mbstate_t.m4 (AC_MBSTATE_T):
130163         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
130164         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
130165         and mbstate_t, to a single-part test that simply defines mbstate_t.
130166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
130167         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
130169 2000-07-10  Jim Meyering  <meyering@lucent.com>
130171         * m4/strerror_r.m4: Mirror the correction made in autoconf.
130173         * m4/gnu-source.m4: Output to confdefs.h directly.
130174         Suggestion from Akim Demaille.
130176 2000-07-09  Paul Eggert  <eggert@twinsun.com>
130178         The old behavior of quoting `like this' doesn't look good with
130179         newer, ISO-style fonts.  See:
130180         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
130182         Instead, quote "like this" by default.  Let the translator
130183         tailor the locale-specific quoting behavior by providing
130184         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
130186         * lib/quotearg.c (N_): New macro.
130187         (gettext_default): New function.
130188         (quotearg_buffer_restyled): Use
130189         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
130190         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
130192 2000-07-09  Jim Meyering  <meyering@lucent.com>
130194         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
130195         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
130197         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
130198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
130200 2000-07-09  Jim Meyering  <meyering@lucent.com>
130202         * lib/Most files: Update copyright dates to include 2000.
130204 2000-07-08  Jim Meyering  <meyering@lucent.com>
130206         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
130207         if not defined.
130208         (xgethostname): Remove now-unnecessary #ifdef.
130209         Move declaration of `err' into loop where it's used.
130211 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130212         and Bruno Haible  <haible@clisp.cons.org>
130214         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
130215         only if the test for an object-type mbstate_t fails.  This
130216         prevents us from mistakenly reporting that mbstate_t is a
130217         system object type after we "#define mbstate_t int" to work
130218         around its lack.
130220 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130221         and Bruno Haible  <haible@clisp.cons.org>
130223         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
130225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130227         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
130228         to strerror_r.
130229         Include <ctype.h> for use of isalpha.
130231 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130233         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
130234         by allocating a larger buffer. Test the gethostname return value for
130235         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
130236         returns an error and ENAMETOOLONG isn't defined.
130238 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130240         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
130241         dimension.
130243 2000-07-04  Jim Meyering  <meyering@lucent.com>
130245         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
130246         of the deprecated AC_CHECKING.
130248 2000-07-04  Jim Meyering  <meyering@lucent.com>
130250         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
130251         Reported by Bruno Haible.
130253 2000-07-04  Jim Meyering  <meyering@lucent.com>
130255         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
130256         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
130257         lacks mbrtowc.
130259 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130261         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
130262         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
130264 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130265         and Bruno Haible  <haible@clisp.cons.org>
130267         * lib/quotearg.c (mbrtowc):
130268         Assign to *pwc, and return 1 only if result is nonzero.
130269         (iswprint): Use ISPRINT when substituting our own mbrtowc.
130271 2000-07-03  Jim Meyering  <meyering@lucent.com>
130273         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
130275 2000-07-03  Jim Meyering  <meyering@lucent.com>
130277         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
130278         This is necessary to get a definition of e.g., UTMP_FILE on
130279         HP-UX 10.20.
130280         From Bob Proulx.
130282 2000-07-02  Jim Meyering  <meyering@lucent.com>
130284         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
130286         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
130287         AC_LIBOBJ(function_name).
130288         * m4/chown.m4: Likewise.
130289         * m4/fnmatch.m4: Likewise.
130290         * m4/ftruncate.m4: Likewise.
130291         * m4/getgroups.m4: Likewise.
130292         * m4/getline.m4: Likewise.
130293         * m4/group-member.m4: Likewise.
130294         * m4/jm-macros.m4: Likewise.
130295         * m4/lstat.m4: Likewise.
130296         * m4/malloc.m4: Likewise.
130297         * m4/memcmp.m4: Likewise.
130298         * m4/nanosleep.m4: Likewise.
130299         * m4/putenv.m4: Likewise.
130300         * m4/realloc.m4: Likewise.
130301         * m4/regex.m4: Likewise.
130302         * m4/stat.m4: Likewise.
130303         * m4/strftime.m4: Likewise.
130305 2000-07-02  Jim Meyering  <meyering@lucent.com>
130307         * lib/quotearg.c (mbstate_t): Don't define here.
130309 2000-07-02  Jim Meyering  <meyering@lucent.com>
130311         * lib/nanosleep.c (SIGCONT): Define if not already defined.
130313 2000-07-01  Jim Meyering  <meyering@lucent.com>
130315         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
130317 2000-07-01  Jim Meyering  <meyering@lucent.com>
130319         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
130320         problem.
130322 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130324         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
130325         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
130327 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130329         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
130330         per change in ../m4/ls-mntd-fs.m4.
130331         (read_filesystem_list): Ignore symbolic links.
130333 2000-06-29  Jim Meyering  <meyering@lucent.com>
130335         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
130336         for declaration of strcmp.
130338         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
130340         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
130341         Avoid warning by casting result to `char *' to remove `const'.
130343 2000-06-28  Jim Meyering  <meyering@lucent.com>
130345         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
130346         included by quotearg.c, for which we perform this test.  From
130347         Bruno Haible.
130349 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130351         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
130352         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
130353         <utmpx.h> exists, put readutmp.o into LIBOBJS.
130355 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130357         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
130359 2000-06-26  Paul Eggert  <eggert@twinsun.com>
130361         savedir now sets errno on failure and invokes xmalloc to get memory.
130362         Fix a couple of other minor bugs while we're at it.
130364         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
130365         (NAMLEN): Remove macro.
130366         (malloc, realloc): Remove decls.
130367         (stpcpy): Likewise.
130368         ("xalloc.h"): Include.
130369         (NAME_SIZE_DEFAULT): New macro.
130370         (savedir): Use xmalloc / xrealloc to allocate memory.
130371         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
130372         Skip "" directory entries.
130373         Use strlen to calculate directory entry length, since the old method
130374         is rarely used these days and isn't worth supporting.
130375         Don't use a pointer after freeing it.
130376         Check for integer overflow when calculating allocation size.
130377         Use memcpy to copy entries, instead of stpcpy.
130378         Set errno properly when returning NULL.
130379         Check for readdir error.
130381 2000-06-26  Jim Meyering  <meyering@lucent.com>
130383         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
130385 2000-06-25  Jim Meyering  <meyering@lucent.com>
130387         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
130388         Linux header bug when _XOPEN_SOURCE is defined to 500.
130390 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130392         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
130393         deficiency.
130395 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130397         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
130398         Include xalloc.h.
130399         Don't include <stdlib.h>.  Don't declare malloc, realloc.
130401 2000-06-24  Jim Meyering  <meyering@lucent.com>
130403         * m4/strerror_r.m4: Revive this file -- to try out an experimental
130404         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
130405         for which strerror does return char*, but which lacks a conveniently
130406         accessible declaration of the function.  If the compile-test says
130407         strerror_r doesn't work, then resort to a `run'-test that works on
130408         BeOS and segfaults on DEC Unix.
130410 2000-06-24  Jim Meyering  <meyering@lucent.com>
130412         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
130414 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130416         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
130417         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
130419 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130421         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
130422         (mbrtowc, mbstate_t): Define substitutes if
130423         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
130424         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
130425         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
130427 2000-06-23  Jim Meyering  <meyering@lucent.com>
130429         * m4/afs.m4: Add missing AC_MSG_RESULT.
130430         Reported by Bruno Haible.
130432         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
130433         Suggestion from Bruno Haible.
130435 2000-06-23  Jim Meyering  <meyering@lucent.com>
130437         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
130439 2000-06-21  Jim Meyering  <meyering@lucent.com>
130441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
130443 2000-06-21  Jim Meyering  <meyering@lucent.com>
130445         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
130446         (noinst_HEADERS): Add getstr.h.
130448         * lib/getline.c (getstr): Move into a separate file.
130449         * lib/getstr.c (getstr): New file, extracted from getline.c, with
130450         the following changes: new parameter, delim2; both delim[12]
130451         parameters have type `int', not `char'.  The latter would lose
130452         with 8-bit delimiters.
130453         * lib/getstr.h: New file.
130455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130457         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
130458         than 1024, return a memory chunk of least possible size, instead
130459         of size PATH_MAX + 2. In the loop, increment the size proportionally.
130460         Use free/xmalloc instead of xrealloc to avoid copying for very long
130461         paths.
130463 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130465         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
130466         the empty string.
130468 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130470         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
130471         address, not strdup.  Include <stdlib.h> and don't declare free().
130473 2000-06-19  Jim Meyering  <meyering@lucent.com>
130475         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
130477 2000-06-18  Jim Meyering  <meyering@lucent.com>
130479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
130481         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
130482         `checking whether...' message to be consistent with that of the
130483         lstat test.
130485 2000-06-18  Jim Meyering  <meyering@lucent.com>
130487         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
130488         Besides, these days every porting target provides a mkdir function.
130490         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
130491         needed. (this snippet comes from src/system.h).
130493 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
130495         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
130497 2000-06-15  Paul Eggert  <eggert@twinsun.com>
130499         * lib/human.c (adjust_value): New function.
130500         (human_readable_inexact): Apply rounding style even when
130501         printing approximate values.
130503 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130505         * lib/human.c (human_readable_inexact): Allow an input block
130506         size that is not a multiple of the output block size, and vice versa.
130507         Reported by Piergiorgio Sartor.
130509 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130511         * lib/getdate.y (get_date): Apply relative times after time
130512         zone indicator, not before.  Reported by Todd A. Jacobs.
130514 2000-06-13  Jim Meyering  <meyering@lucent.com>
130516         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
130518         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
130520 2000-06-12  Paul Eggert  <eggert@twinsun.com>
130522         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
130524 2000-06-12  Jim Meyering  <meyering@lucent.com>
130526         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
130527         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
130528         optional argument.
130529         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
130530         the optional argument, `lib'.
130532 2000-06-08  Jim Meyering  <meyering@lucent.com>
130534         * m4/largefile.m4: Remove file (now that it's part of autoconf).
130536 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130538         Rewrite largefile configuration so that we don't need to run
130539         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
130540         AC_CANONICAL_HOST in configure.in -- jmm]
130542         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
130543         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
130544         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
130545         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
130546         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
130547         All uses changed.
130548         Instead of inspecting the output of getconf, try to compile the
130549         test program without and with the macro definition.
130550         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
130551         for getconf.  Instead, check for the needed flags by compiling
130552         test programs.
130554 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130556         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
130558 2000-06-04  Jim Meyering  <meyering@lucent.com>
130560         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
130561         SunOS 4.1.4 for which gid_t is an unsigned type.
130563 2000-06-03  Jim Meyering  <meyering@lucent.com>
130565         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
130566         now that autoconf requires that.
130568         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
130569         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
130570         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
130572 2000-06-03  Jim Meyering  <meyering@lucent.com>
130574         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
130576 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130578         * m4/glibc21.m4: New file.
130579         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
130581 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130583         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
130584         newer, don't install charset.alias.
130585         * lib/config.charset: Change the Linux/glibc rules so they become empty
130586         on glibc-2.1 or newer.
130588 2000-06-02  Jim Meyering  <meyering@lucent.com>
130590         * lib/mountlist.c: Back out last change.  Instead, do this...
130591         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130592         me_dummy member using the same `ignore'-testing code.
130593         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130594         fs_type strings.
130595         From Mark D. Roth.
130597 2000-05-29  Jim Meyering  <meyering@lucent.com>
130599         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130600         mounts with the `ignore' attribute.  Based on a patch from
130601         Mark D. Roth.
130603 2000-05-28  Jim Meyering  <meyering@lucent.com>
130605         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130606         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130607         * m4/stat.m4: Likewise.
130608         * m4/lstat.m4: Likewise.
130609         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130611         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130612         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130614 2000-05-26  Jim Meyering  <meyering@lucent.com>
130616         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130618 2000-05-24  Jim Meyering  <meyering@lucent.com>
130620         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130621         autoconf requires that.
130622         * m4/lib-check.m4: Likewise.
130623         * m4/jm-macros.m4: Likewise.
130624         * m4/strftime.m4: Likewise.
130626         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130627         AC_CHECK_DECLS, now that autoconf requires that.
130629 2000-05-22  Jim Meyering  <meyering@lucent.com>
130631         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130632         * m4/lstat.m4: Likewise.
130634 2000-05-22  Jim Meyering  <meyering@lucent.com>
130636         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130638 2000-05-20  Jim Meyering  <meyering@lucent.com>
130640         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130641         (jm_PREREQ): Use it.
130643 2000-05-18  Jim Meyering  <meyering@lucent.com>
130645         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130646         back, too, since it may have been modified by allocate_entry.
130647         (hash_delete): Rewrite to use neither the assignment operator
130648         nor the comma operator in an if-expression.
130650 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130652         * lib/closeout.c:
130653         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130654         Remove; no longer needed.
130655         "quotearg.h": Add include.
130656         (file_name): Do not bother to explicitly initialize to NULL; it's less
130657         efficient on some hosts.
130658         (close_stdout_status): Remove test as to whether stdout was already
130659         closed; it breaks for the case "echo x | sort >&-".
130660         Quote file name colons.
130661         Do not assume that _("write error") lacks format strings.
130663 2000-05-15  Jim Meyering  <meyering@lucent.com>
130665         * lib/version-etc.c (version_etc_copyright): Update the copyright
130666         string used in all --version output.
130668 2000-05-14  Jim Meyering  <meyering@lucent.com>
130670         * lib/closeout.c (close_stdout_set_file_name): New function.
130671         (close_stdout_status): Use new file-scoped global.
130672         Return right away if fstat says the stdout file descriptor is invalid.
130673         * lib/closeout.h (close_stdout_set_file_name): Declare.
130675 2000-05-10  Jim Meyering  <meyering@lucent.com>
130677         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130678         (close_stdout_set_status): New function.
130679         * lib/closeout.h (close_stdout_set_status): Declare.
130681 2000-05-09  Jim Meyering  <meyering@lucent.com>
130683         * m4/gettext.m4: Rename this...
130684         * m4/libintl.m4: ...to this.
130686 2000-05-08  Jim Meyering  <meyering@lucent.com>
130688         * lib/long-options.c: Don't include closeout.h.
130689         (parse_long_options): Don't call close_stdout for --version.
130691 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130693         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130694         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130695         2.1.3 bug.  This avoids a clash when files like regex.c define
130696         _GNU_SOURCE.
130698 2000-05-06  Jim Meyering  <meyering@lucent.com>
130700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130701         (AC_REPLACE_FUNCS): Add strnlen.
130703         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130704         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130706         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130707         AC_SEARCH_LIBS call for nanosleep.
130708         (LIB_NANOSLEEP): Set and AC_SUBST.
130710 2000-05-06  Jim Meyering  <meyering@lucent.com>
130712         * lib/strnlen.c: Undefine __strnlen and strnlen.
130713         [!weak_alias]: Define __strnlen to strnlen.
130715         * lib/atexit.c: New file, from libiberty.
130717 2000-05-06  Jim Meyering  <meyering@lucent.com>
130719         * lib/closeout.c (close_stdout_status): Also check for errors on the
130720         stderr stream.
130722 2000-05-05  Jim Meyering  <meyering@lucent.com>
130724         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130725         AC_SEARCH_LIBS call for clock_gettime.
130726         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130728         * m4/search-libs.m4: Update from autoconf.
130730         su doesn't work on Solaris 2.6.
130731         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130732         <shadow.h>.  Reported by Dragos Harabor.
130734 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130736         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130737         memcpy instead of xmalloc, xrealloc, path_concat.
130738         (locale_charset): Treat empty environment variables as absent.
130739         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130741 2000-05-04  Jim Meyering  <meyering@lucent.com>
130743         * lib/getopt.c: Update from glibc.
130744         * lib/obstack.c: Likewise.
130745         * lib/obstack.h: Likewise.
130746         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130747         file
130749         * lib/regex.h: Likewise.
130750         * lib/strndup.c: Likewise.
130751         * lib/strnlen.c: New file, from glibc.
130753 2000-05-03  Jim Meyering  <meyering@lucent.com>
130755         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130757 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130759         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130760         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130761         compile-time test, rather than inspecting host and OS, to
130762         decide whether to define _LARGEFILE_SOURCE.
130764 2000-05-01  Jim Meyering  <meyering@lucent.com>
130766         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130769         Based on a patch from Bruno Haible.
130771 2000-05-01  Jim Meyering  <meyering@lucent.com>
130773         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130775 2000-04-29  Jim Meyering  <meyering@lucent.com>
130777         * lib/path-concat.c: Declare strdup only if it's not defined.
130778         * lib/canon-host.c: Likewise.
130780 2000-04-28  Jim Meyering  <meyering@lucent.com>
130782         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130783         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130784         is included first, then limits.h is included by locale.h by libintl.h.
130785         From John David Anglin.
130787 2000-04-25  Jim Meyering  <meyering@lucent.com>
130789         * lib/makepath.c (S_IRWXUGO): Define.
130790         (make_path): Always perform explicit chmod if MODE specifies any
130791         of the `special' permission bits.  Prompted by a bug report against
130792         install from Mate Wierdl and Joost van Baal.
130794 2000-04-18  Jim Meyering  <meyering@lucent.com>
130796         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130797         (jm_PREREQ): Use it.
130799 2000-04-18  Jim Meyering  <meyering@lucent.com>
130801         * lib/README: New file.
130803         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130804         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130806 2000-04-17  Jim Meyering  <meyering@lucent.com>
130808         Get it right :-)
130809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130810         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130811         Suggestion from Akim Demaille.
130813 2000-04-17  Jim Meyering  <meyering@lucent.com>
130815         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130816         the definition of it to rpl_strftime also defined-away the system's
130817         declaration.
130819 2000-04-15  Jim Meyering  <meyering@lucent.com>
130821         Use `C' to denote so-called `contiguous' files, the same way
130822         that tar does.
130823         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130824         (ftypelet): Use S_ISCTG.
130825         From Michael Deutschmann.
130827 2000-04-14  Jim Meyering  <meyering@lucent.com>
130829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130830         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130831         clobbered.
130833 2000-04-14  Jim Meyering  <meyering@lucent.com>
130835         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130837 2000-04-13  Jim Meyering  <meyering@lucent.com>
130839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130840         AH_VERBATIM to insert required #ifndef into config.h.in.
130841         Suggestion from Akim Demaille.
130843 2000-04-12  Jim Meyering  <meyering@lucent.com>
130845         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130846         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130847         Christian Krackowizer.
130849         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130850         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130851         (AC_SYS_LARGEFILE): Require.
130852         (AM_C_PROTOTYPES): Require.
130854 2000-04-08  Jim Meyering  <meyering@lucent.com>
130856         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130857         names don't conflict.  Reported by Eli Zaretskii.
130859 2000-04-07  Jim Meyering  <meyering@lucent.com>
130861         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130862         sys/types.h, to work around system header problems on AIX 3.2.5.
130863         From Bruno Haible.
130865 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130867         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130868         bug.  Deal with the different error behavior of Irix iconv.
130870 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130872         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130873         IRIX if the installer said otherwise.
130875 2000-04-05  Jim Meyering  <meyering@lucent.com>
130877         Portability tweaks required for ultrix4.3.
130878         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130879         (jm_CHECK_DECLS): Add getutent to the list of functions.
130880         (_jm_DECL_HEADERS): Add utmpx.h.
130881         From John David Anglin.
130883         * m4/strftime.m4: Back out the 2000-04-02 change.
130884         Instead of that change, simply undefine putenv in the test program.
130886 2000-04-05  Jim Meyering  <meyering@lucent.com>
130888         Portability tweaks required for ultrix4.3.
130889         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130890         getutent.
130891         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130892         * lib/canon-host.c: Declare strdup.
130893         * lib/path-concat.c: Likewise.
130894         From John David Anglin.
130896 2000-04-04  Jim Meyering  <meyering@lucent.com>
130898         Be more DOS 8.3-friendly.
130899         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130900         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130901         * lib/Makefile.am: Reflect renaming.
130902         Reported by Eli Zaretskii.
130904         Use a temporary file name that won't clash with `charset.alias'
130905         in the DOS 8.3 name space.
130906         * lib/Makefile.am (charset_tmp): Define.
130907         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130908         (uninstall-local): Likewise.
130909         Reported by Eli Zaretskii.
130911 2000-04-03  Jim Meyering  <meyering@lucent.com>
130913         * m4/gettext.m4: Fix typo in comment.
130915         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130916         textutils/configure.in).  Suggestion from Paul Eggert.
130917         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130919 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130921         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130922         variable in the shell rather than using putenv, which isn't
130923         portable.  This avoids the configure-time inter-test dependency
130924         on the potentially-renamed putenv function.
130926 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130929         before checking struct stat.st_blksize, so that
130930         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130932 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130934         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130935         since strftime.c uses HAVE_STRFTIME to decide whether to use
130936         the underlying strftime.
130938 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130940         * lib/time/strftime.c (my_strftime): Make sure we call the system
130941         strftime, not ourselves, when invoking the underlying strftime.
130943 2000-03-24  Jim Meyering  <meyering@lucent.com>
130945         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130946         (charset_alias): Define.
130947         (install-exec-local): Factor out common code.
130948         (uninstall-local): Split lines longer than 80.
130949         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130950         (SUFFIXES): Define.
130951         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130952         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130954 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130956         * lib/config.charset: Output a line containing "Packages using this
130957         file".
130958         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130959         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130960         ref-del.sed): New rules.
130962 2000-03-17  Jim Meyering  <meyering@lucent.com>
130964         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130965         Otherwise, include <strings.h>
130967 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130969         * lib/unicodeio.c (utf8_wctomb): New function.
130970         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130971         format instead of in UCS-4 with platform dependent endianness.
130973 2000-03-10  Jim Meyering  <meyering@lucent.com>
130975         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130976         From Marco Franzen.
130978 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130980         * lib/savedir.c (savedir): Work even if directory size is
130981         negative; this can happen with some screwy NFS configurations.
130983 2000-03-06  Jim Meyering  <meyering@lucent.com>
130985         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130986         if it's NULL (because we ran out of memory).  From Bruno Haible.
130988 2000-03-05  Jim Meyering  <meyering@lucent.com>
130990         * lib/localcharset.c ("path-concat.h"): Include.
130991         (get_charset_aliases): Use path_concat instead of ANSI string
130992         concatenation.
130994         * lib/unicodeio.h (PARAMS): Define.
130995         Use it to guard prototype.
130997 2000-03-04  Jim Meyering  <meyering@lucent.com>
130999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
131000         for lib/localcharset.c.
131002 2000-03-04  Jim Meyering  <meyering@lucent.com>
131004         * lib/Makefile.am (install-exec-local): Create $(libdir) before
131005         installing into it.
131006         (uninstall-local): Uncomment this rule so `make distcheck' works
131007         once again.
131009         * lib/unicodeio.c (<errno.h>): Include it.
131010         (errno): Declare if not defined.
131012         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
131014         * lib/config.charset: New version, incorporating remarks from a linux
131015         i18n mailing list.  From Bruno Haible.
131017 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
131019         * m4/codeset.m4: New file.
131020         * m4/iconv.m4: New file.
131021         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
131023 2000-03-03  Jim Meyering  <meyering@lucent.com>
131025         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
131027 2000-03-02  Jim Meyering  <meyering@lucent.com>
131029         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
131030         the messages come out on separate lines.
131032         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
131033         rather than jm_CHECK_DECLARATIONS.
131034         * m4/decl.m4: Remove now-unused file.
131036         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
131037         geteuid.
131039 2000-03-02  Jim Meyering  <meyering@lucent.com>
131041         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
131043 2000-03-01  Jim Meyering  <meyering@lucent.com>
131045         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
131046         * lib/unicodeio.c: Likewise.
131048 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
131050         * lib/config.charset: New file.
131051         * lib/localcharset.c: New file.
131052         * lib/unicodeio.h, lib/unicodeio.c: New files.
131053         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
131054         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
131055         (noinst_HEADERS): Add unicodeio.h.
131056         (all-local, install-exec-local, charset.alias): New targets.
131058 2000-02-28  Paul Eggert  <eggert@twinsun.com>
131060         * lib/quotearg.c (ALERT_CHAR): New macro.
131061         (quotearg_buffer_restyled): Use it.
131063 2000-02-27  Jim Meyering  <meyering@lucent.com>
131065         * m4/check-decl.m4: Add getenv to the list.
131067 2000-02-27  Jim Meyering  <meyering@lucent.com>
131069         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
131070         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
131072         * lib/backupfile.c: Guard inclusion of stdlib.h with
131073         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
131074         Declare malloc if needed.
131076         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
131077         `#ifndef HAVE_DECL..'
131078         now that autoconf always defines the HAVE_DECL_ symbols.
131079         * lib/human.c: Likewise.
131080         * lib/same.c: Likewise.
131081         * lib/strtoumax.c: Likewise.
131083         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
131084         declaration check was not run.
131085         * lib/hash.c: Likewise.
131086         * lib/human.c: Likewise.
131087         * lib/same.c: Likewise.
131088         * lib/strtoumax.c: Likewise.
131090         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
131091         `.', then first look up the entire `.'-containing string as a login
131092         name.
131094 2000-02-23  Jim Meyering  <meyering@lucent.com>
131096         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
131097         in place of my hack.
131099 2000-02-18  Paul Eggert  <eggert@twinsun.com>
131101         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
131102         (textint): New typedef.
131103         (parser_control): Member year changed from int to textint.
131104         All uses changed.
131105         (YYSTYPE): Removed; replaced by %union with int and textint members.
131106         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
131107         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
131108         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
131109         (tSNUMBER, tUNUMBER): Now of type <textintval>.
131110         (date, number, to_year): Use width of number in digits, not its value,
131111         to determine whether it's a 2-digit year, or a 2-digit time.
131112         (yylex): Store number of digits of numeric tokens.
131113         Reported by John Kendall.
131115         (parser_control): Changed from struct parser_control to typedef (for
131116         consistency).  All uses changed.
131118         (tID): Removed; not used.
131119         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
131121 2000-02-14  Paul Eggert  <eggert@twinsun.com>
131123         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
131124         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
131126 2000-02-12  Jim Meyering  <meyering@lucent.com>
131128         * lib/userspec.c (ISDIGIT): Define it.
131129         (isdigit): Remove definition.
131130         (is_number): Use ISDIGIT, not isdigit.
131131         <libintl.h>: Include.
131132         (_ and N_): Define.
131133         (parse_user_spec): Mark translatable strings.
131135 2000-02-10  Jim Meyering  <meyering@lucent.com>
131137         With these changes, nanosleep.[ch] are finally enough like the other
131138         lib/* replacement files to compile on a few more losing systems.
131140         * lib/nanosleep.h: Don't include config.h.
131141         Remove prototype from declaration of nanosleep.
131142         (PARAMS): Remove now-unneeded definition.
131143         * lib/nanosleep.c: #undef nanosleep.
131144         (rpl_nanosleep): Rename from nanosleep.
131146 2000-02-10  Jim Meyering  <meyering@lucent.com>
131148         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
131149         gnu_nanosleep to rpl_nanosleep.
131151 2000-02-09  Jim Meyering  <meyering@lucent.com>
131153         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
131154         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
131156 2000-02-08  Akim Demaille  <akim@epita.fr>
131158         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
131159         `[' and `]' and remove uses of `changequote'.
131160         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
131161         (AC_SYS_LARGEFILE): Likewise.
131162         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
131163         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
131164         of changequote.
131165         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
131166         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
131167         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
131168         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
131170 2000-02-05  Jim Meyering  <meyering@lucent.com>
131172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
131173         Remove explicit use of AC_HEADER_TIME.  It is required by
131174         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
131175         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
131176         in autoconf whereby the expansion of the latter ended up preceding
131177         the expansion of its prerequisite, AC_HEADER_TIME.
131178         Reported by Volker Borchert.
131180 2000-02-03  Jim Meyering  <meyering@lucent.com>
131182         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
131184 2000-02-03  Jim Meyering  <meyering@lucent.com>
131186         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
131187         rather than with `#if HAVE_UTMPNAME'.
131189 2000-02-02  Jim Meyering  <meyering@lucent.com>
131191         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
131192         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
131193         Reported by Eli Zaretskii.
131195 2000-02-01  Jim Meyering  <meyering@lucent.com>
131197         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
131199 2000-01-31  Jim Meyering  <meyering@lucent.com>
131201         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
131202         functions.  Add the time.h and sys/time.h headers along with the
131203         AC_REQUIRE'ment of AC_HEADER_TIME.
131205 2000-01-31  Jim Meyering  <meyering@lucent.com>
131207         * lib/nanosleep.h (nanosleep): Guard declaration with
131208         `#if ! HAVE_DECL_NANOSLEEP'.
131209         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
131210         the declaration in that vendor's sys/timers.h.
131211         Reported by Christian Krackowizer.
131213         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
131214         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
131215         (ISPRINT): Likewise.
131216         Reported by Tom Tromey.
131218 2000-01-30  Jim Meyering  <meyering@lucent.com>
131220         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
131222         * m4/prereq.m4 (utmp_includes): Define.
131223         Check for ut_user and ut_name members in both struct utmpx
131224         and struct utmp.
131226 2000-01-30  Jim Meyering  <meyering@lucent.com>
131228         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
131229         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
131230         header files where only utmpx.ut_user is declared.
131232         * lib/readutmp.h (UT_USER): Define.
131234 2000-01-29  Jim Meyering  <meyering@lucent.com>
131236         * m4/lib-check.m4: New file containing library-related checks from
131237         fileutils and sh-utils (textutils had none).
131239 2000-01-28  Jim Meyering  <meyering@lucent.com>
131241         * m4/perl.m4: Change format of warning message to look more like that
131242         from the missing script.  Suggestion from François Pinard.
131244 2000-01-25  Jim Meyering  <meyering@lucent.com>
131246         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
131247         well as time.h in the compile check.
131248         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
131249         Fix typo in cross-compiling case: s/yes/no/.
131251 2000-01-23  Jim Meyering  <meyering@lucent.com>
131253         * m4/jm-macros.m4: Move df-related tests here from
131254         fileutils/configure.in
131256         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
131257         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
131259         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
131260         s/space/ac_fsusage_space/.
131261         (jm_FILE_SYSTEM_USAGE): Take two parameters.
131263         * m4/ftruncate.m4: New file (derived from part of
131264         fileutils/configure.in).
131265         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
131266         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
131268         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
131269         AC_SUBST these here, rather than just in sh-util/configure.in, so
131270         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
131271         all the same.
131272         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
131273         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
131274         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
131275         (AC_SUBST(POW_LIBM)): Likewise.
131276         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
131278 2000-01-23  Jim Meyering  <meyering@lucent.com>
131280         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
131281         obstack.c.
131283 2000-01-22  Jim Meyering  <meyering@lucent.com>
131285         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
131287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
131289         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
131290         configure.in
131291         (AC_CHECK_HEADERS): Likewise for sh-utils.
131292         (AC_CHECK_HEADERS): Likewise for textutils.
131293         Merge the three lists of headers.
131295         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
131296         from fileutils' configure.in.
131298         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
131299         code. Moved tests into their own function (_jm_DECL_HEADERS) in
131300         check-decl.m4.
131302         * m4/check-decl.m4: Use #if rather than #ifdef.
131303         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
131304         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
131305         (_jm_DECL_HEADERS): Define new function.
131306         (jm_CHECK_DECLARATIONS): Require it.
131308 2000-01-22  Jim Meyering  <meyering@lucent.com>
131310         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
131311         [! HAVE_DECL_STRTOULL]: Declare strtoull.
131312         Required for some AIX systems.  Reported by Christian Krackowizer.
131313         [TESTING] (main): New function.
131315         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
131316         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
131317         letters.
131319         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
131320         iswprint.
131322         * lib/strverscmp.c (ISDIGIT): Define.
131323         (strverscmp): Use ISDIGIT, not isdigit.
131325 2000-01-19  Jim Meyering  <meyering@lucent.com>
131327         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
131328         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
131329         defines `struct timespec' in <sys/time.h>
131331         * m4/c-bs-a.m4: Remove uses of changequote altogether.
131332         Thanks to Akim for explaining.
131334 2000-01-17  Paul Eggert  <eggert@twinsun.com>
131336         * lib/nanosleep.c (nanosleep):
131337         Don't use SA_INTERRUPT to decide whether to call sigaction, as
131338         POSIX.1 doesn't require SA_INTERRUPT and some systems
131339         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
131340         it's been part of POSIX.1 since day 1 (in 1988).
131342 2000-01-17  Jim Meyering  <meyering@lucent.com>
131344         * lib/interlock: Remove unused file.  Reported by François Pinard.
131346 2000-01-16  Paul Eggert  <eggert@twinsun.com>
131348         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
131349         alert, backslash, formfeed, and vertical tab unnecessarily in
131350         shell quoting style.
131352 2000-01-16  Jim Meyering  <meyering@lucent.com>
131354         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
131355         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
131356         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
131357         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
131359 2000-01-16  Jim Meyering  <meyering@lucent.com>
131361         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
131362         because the latter didn't work.
131364 2000-01-15  Jim Meyering  <meyering@lucent.com>
131366         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
131367         (AC_REPLACE_FUNCS): Add memcpy and memset.
131368         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
131369         Add strpbrk.
131370         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
131372 2000-01-12  Jim Meyering  <meyering@lucent.com>
131374         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
131375         (jm_PREREQ): Use it.
131376         (jm_PREREQ_READUTMP): New macro.
131377         (jm_PREREQ): Use it.
131379 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131381         Quote multibyte characters correctly.
131382         * m4/c-bs-a.m4: New file.
131383         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
131384         (jm_PREREQ): Use it.
131386 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131388         * m4/uintmax_t.m4: Port to autoconf 2.13.
131390 2000-01-08  Jim Meyering  <meyering@ascend.com>
131392         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
131393         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
131395 2000-01-04  Jim Meyering  <meyering@ascend.com>
131397         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
131398         jm_STRUCT_DIRENT_D_TYPE.
131399         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
131400         jm_STRUCT_DIRENT_D_INO.
131401         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
131402         jm_STRUCT_UTIMBUF.
131403         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
131404         renamings.
131405         * m4/utime.m4: Likewise.
131407         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
131408         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
131410 2000-01-03  Paul Eggert  <eggert@twinsun.com>
131412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
131413         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
131415 2000-01-02  Jim Meyering  <meyering@ascend.com>
131417         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
131418         remember if this is necessary.
131420 1999-12-26  Jim Meyering  <meyering@ascend.com>
131422         * m4/jm-macros.m4: Use it here.
131423         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
131425 1999-12-23  Jim Meyering  <meyering@ascend.com>
131427         * m4/jm-macros.m4: Check for clock_gettime (moved from
131428         fileutils/configure.in)
131429         Check for gettimeofday.
131431 1999-12-20  Jim Meyering  <meyering@ascend.com>
131433         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
131434         autoconf-2.14a-1999-12-20.
131436 1999-12-19  Jim Meyering  <meyering@ascend.com>
131438         * m4/lstat-slash.m4: New file.
131439         * m4/jm-macros.m4: Use the new macro:
131440         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131442 1999-12-07  Jim Meyering  <meyering@ascend.com>
131444         * m4/perl.m4: Require that File::Compare be available, too.
131445         Too many systems seem to lack it.
131447         * m4/strftime.m4: Add checks for most of the cpp macros tested in
131448         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
131450 1999-11-18  Paul Eggert  <eggert@twinsun.com>
131452         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
131453         problem with the QNX 4.25 shell, which doesn't propagate exit
131454         status of failed commands inside shell assignments.
131456 1999-11-17  Jim Meyering  <meyering@ascend.com>
131458         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
131460 1999-11-07  Jim Meyering  <meyering@ascend.com>
131462         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
131464 1999-11-06  Jim Meyering  <meyering@ascend.com>
131466         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
131467         * m4/jm-macros.m4 (jm_MACROS): Use it here.
131469 1999-11-05  Jim Meyering  <meyering@ascend.com>
131471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
131472         configure.in of textutils, fileutils, and sh-utils into this one
131473         (shared between those packages) file.
131474         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
131475         AC_STRUCT_ST_BLKSIZE.
131477 1999-11-03  Jim Meyering  <meyering@ascend.com>
131479         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
131480         of AC_CHECK_TYPE checks includes unistd.h.
131481         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
131482         Suggestion from Akim Demaille.
131484 1999-10-30  Jim Meyering  <meyering@ascend.com>
131486         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
131487         m4-quoted string.
131488         * m4/ls-mntd-fs.m4: Likewise.
131489         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
131490         * m4/jm-winsz1.m4: Likewise.
131492         * m4/const.m4: Remove file, since the fix made it into the experimental
131493         version of autoconf.
131494         * m4/mktime.m4: Likewise.
131496         * m4/check-type.m4: Remove file, now that the latest version of
131497         AC_CHECK_TYPE takes a third arg to specify additional #includes.
131499         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
131500         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
131501         AC_CHECK_TYPE.
131503 1999-10-04  Jim Meyering  <meyering@ascend.com>
131505         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
131507 1999-09-22  Paul Eggert  <eggert@twinsun.com>
131509         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
131510         2.95.1 bug with HP-UX 10.20.
131512 1999-09-17  Jim Meyering  <meyering@ascend.com>
131514         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
131515         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
131516         due to missing strdup (against sh-utils-2.0).
131518 1999-08-29  Jim Meyering  <meyering@ascend.com>
131520         * m4/jm-macros.m4: Require jm_BISON.
131521         * m4/bison.m4: New file.
131523 1999-08-17  Paul Eggert  <eggert@twinsun.com>
131525         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
131526         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
131528 1999-08-05  Jim Meyering  <meyering@ascend.com>
131530         * m4/getline.m4: Rename test file from conftestdata to conftest.data
131531         to avoid conflicts with `conftest' on 8+3 filesystems.
131532         Suggestion from Eli Zaretskii.
131534 1999-08-04  Jim Meyering  <meyering@ascend.com>
131536         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
131537         fileutils and sh-utils (textutils's getline test was inadequate).
131538         (AM_FUNC_GETLINE): Run this test.
131539         (AC_CHECK_FUNCS): Check for getdelim.
131540         Reported by Bob Proulx.
131542 1999-08-02  Jim Meyering  <meyering@ascend.com>
131544         * m4/jm-macros.m4: Add a comment.
131546 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
131549         <inttypes.h> defines strtoumax as a macro (and not as a
131550         function).
131552 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131554         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
131555         that we can shift, multiply and divide unsigned long long
131556         values; Ultrix cc can't do it.
131558 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131560         * m4/mktime.m4: New file, which is a preview of what should appear
131561         in the next public autoconf release.
131563 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131565         * m4/lfs.m4: Remove this file.
131566         * m4/largefile.m4: New file.  It contains the old contents of
131567         lfs.m4, except that all names with prefix AC_LFS have been
131568         changed to use the prefix AC_SYS_LARGEFILE instead, to be
131569         compatible with future autoconf versions.  Also, some minor m4
131570         quoting problems have been fixed.
131572 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131574         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
131575         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
131576         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
131577         and simplify the shell code.
131579 1999-08-01  Jim Meyering  <meyering@ascend.com>
131581         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
131582         m4.
131584 1999-07-20  Jim Meyering  <meyering@ascend.com>
131586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131588 1999-07-15  Jim Meyering  <meyering@ascend.com>
131590         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131592 1999-05-22  Jim Meyering  <meyering@ascend.com>
131594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131596 1999-05-20  Jim Meyering  <meyering@ascend.com>
131598         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131599         Add a colon after each `then' in case $4 is empty.
131601 1999-05-16  Jim Meyering  <meyering@ascend.com>
131603         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131605 1999-05-10  Jim Meyering  <meyering@ascend.com>
131607         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131609         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131610         AC_FUNC_MKTIME.
131612 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131614         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131616 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131618         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131619         not CPPFLAGS, so that linking works correctly in IRIX.
131621 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131623         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131625 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131627         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131628         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131630         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131631         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131633         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131635 1999-04-20  Jim Meyering  <meyering@ascend.com>
131637         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131638         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131639         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131641 1999-04-18  Jim Meyering  <meyering@ascend.com>
131643         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131644         * m4/jm-macros.m4: Use it.
131646 1999-04-06  Jim Meyering  <meyering@ascend.com>
131648         * m4/strftime.m4: Remove test for %f.
131650 1999-03-29  Jim Meyering  <meyering@ascend.com>
131652         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131653         superset of the AC_TYPE_* checks in the textutils, fileutils,
131654         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131655         AC_TYPE_PID_T.
131657 1999-03-28  Jim Meyering  <meyering@ascend.com>
131659         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131660         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131661         replaced e.g., in the *.sh files of the sh-utils.
131663 1999-03-20  Jim Meyering  <meyering@ascend.com>
131665         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131666         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131667         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131669 1999-03-19  Jim Meyering  <meyering@ascend.com>
131671         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131673 1999-03-12  Jim Meyering  <meyering@ascend.com>
131675         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131677 1999-03-07  Jim Meyering  <meyering@ascend.com>
131679         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131680         declared.
131682 1999-02-17  Jim Meyering  <meyering@ascend.com>
131684         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131685         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131687 1999-02-07  Jim Meyering  <meyering@ascend.com>
131689         * m4/group-member.m4: New file -- extracted from sh-utils'
131690         configure.in.
131692         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131693         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131695 1999-02-06  Jim Meyering  <meyering@ascend.com>
131697         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131698         * m4/fnmatch.m4: Likewise.
131699         * m4/getgroups.m4: Likewise.
131700         * m4/lstat.m4: Likewise.
131701         * m4/malloc.m4: Likewise.
131702         * m4/putenv.m4: Likewise.
131703         * m4/realloc.m4: Likewise.
131704         * m4/regex.m4: Likewise.
131705         * m4/stat.m4: Likewise.
131706         * m4/strftime.m4: Likewise.
131707         Suggestion from Alain Magloire.
131709         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131710         * m4/fnmatch.m4: Likewise.
131711         * m4/getgroups.m4: Likewise.
131712         * m4/getline.m4: Likewise.
131713         * m4/lstat.m4: Likewise.
131714         * m4/malloc.m4: Likewise.
131715         * m4/memcmp.m4: Likewise.
131716         * m4/putenv.m4: Likewise.
131717         * m4/realloc.m4: Likewise.
131718         * m4/regex.m4: Likewise.
131719         * m4/stat.m4: Likewise.
131720         * m4/strftime.m4: Likewise.
131721         Suggestion from Alain Magloire.
131723         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131724         an argument.
131726         * m4/regex.m4: Add a run-time Test for proper operation of
131727         re_compile_pattern.
131729 1999-01-31  Jim Meyering  <meyering@ascend.com>
131731         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131733 1999-01-30  Jim Meyering  <meyering@ascend.com>
131735         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131737         * m4/jm-mktime.m4: Make this a wrapper around the official
131738         AM_FUNC_MKTIME rather than my private copy, now that the official one
131739         is up to date.
131740         * m4/mktime.m4: Remove file.
131742         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131743         * m4/uptime.m4: Likewise.
131744         * m4/uintmax_t.m4: Likewise.
131746 1999-01-28  Jim Meyering  <meyering@ascend.com>
131748         * m4/jm-macros.m4: Use jm_AFS.
131749         * m4/afs.m4: New file (from fileutils' configure.in).
131751         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131752         * m4/chown.m4: Likewise.
131753         * m4/d-ino.m4: Likewise.
131754         * m4/d-type.m4: Likewise.
131755         * m4/fnmatch.m4: Likewise.
131756         * m4/getgroups.m4: Likewise.
131757         * m4/gettext.m4: Likewise.
131758         * m4/jm-mktime.m4: Likewise.
131759         * m4/jm-winsz2.m4: Likewise.
131760         * m4/lcmessage.m4: Likewise.
131761         * m4/ls-mntd-fs.m4: Likewise.
131762         * m4/malloc.m4: Likewise.
131763         * m4/memcmp.m4: Likewise.
131764         * m4/putenv.m4: Likewise.
131765         * m4/realloc.m4: Likewise.
131766         * m4/st_mtim.m4: Likewise.
131767         * m4/strftime.m4: Likewise.
131769 1999-01-16  Jim Meyering  <meyering@ascend.com>
131771         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131772         (ARGMATCH_DIE_DECL): Define.
131774 1999-01-12  Jim Meyering  <meyering@ascend.com>
131776         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131777         Reported by Lars Hecking.
131779 1999-01-10  Jim Meyering  <meyering@ascend.com>
131781         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131782         gross kludge.
131783         * m4/inttypes_h.m4: Likewise.
131784         * m4/lstat.m4: Likewise.
131785         * m4/malloc.m4: Likewise.
131786         * m4/readdir.m4: Likewise.
131787         * m4/realloc.m4: Likewise.
131788         * m4/st_dm_mode.m4: Likewise.
131789         * m4/stat.m4: Likewise.
131790         * m4/utimbuf.m4: Likewise.
131791         * m4/utimes.m4: Likewise.
131793         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131794         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131795         comments in config.h.in are meaningful.
131797         * m4/jm-macros.m4: Require autoconf-2.13 here.
131799         * m4/regex.m4: By default, don't use the included regex.c on systems
131800         with glibc 2.  Suggestion from Uli Drepper.
131802 1999-01-02  Jim Meyering  <meyering@ascend.com>
131804         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131806 1998-12-18  Jim Meyering  <meyering@ascend.com>
131808         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131809         Based on a suggestion from Lars Hecking.
131811 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131813         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131815 1998-11-16  Jim Meyering  <meyering@ascend.com>
131817         * m4/lfs.m4: Double-quote the `uname...` expression.
131819 1998-11-14  Jim Meyering  <meyering@ascend.com>
131821         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131822         * m4/stat.m4: Likewise.
131824 1998-11-03  Jim Meyering  <meyering@ascend.com>
131826         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131827         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131829 1998-10-18  Jim Meyering  <meyering@ascend.com>
131831         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131833 1998-10-17  Jim Meyering  <meyering@ascend.com>
131835         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131836         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131837         calls for those previously hard-coded headers.  Instead, take a new
131838         parameter.
131839         (jm_CHECK_DECLARATIONS): Reflect interface change.
131840         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131841         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131843         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131845 1998-10-14  Jim Meyering  <meyering@ascend.com>
131847         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131848         instead of "TZ=America/Vancouver".  From Paul Eggert.
131850 1998-10-11  Jim Meyering  <meyering@ascend.com>
131852         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131853         This adds a test for a recently added compatibility fix for mktime.c.
131854         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131856 1998-09-27  Jim Meyering  <meyering@ascend.com>
131858         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131860         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131861         ../configure.in, including a change from Gordon Matzigkeit to allow
131862         cross-compiling for the Hurd.
131864         * m4/glibc.m4: New file/macro to test for the GNU C Library
131865         versions 1 and 2.  From Gordon Matzigkeit.
131866         Indent.
131868 1998-09-21  Jim Meyering  <meyering@ascend.com>
131870         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131872 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131874         Port nanosecond-resolution times to UnixWare 2.1.2 and
131875         pedantic Solaris 2.6.
131877         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131878         AC_STRUCT_ST_MTIM.
131879         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131880         Generate name of ns member, instead of just 1 or undef.
131881         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131883 1998-08-15  Jim Meyering  <meyering@ascend.com>
131885         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131886         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131887         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131888         instead of jm_TYPE_SSIZE_T.
131890 1998-08-12  Jim Meyering  <meyering@ascend.com>
131892         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131894 1998-08-02  Jim Meyering  <meyering@ascend.com>
131896         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131897         in acconfig.h manually.
131899 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131901         * m4/st_mtim.m4: New file.
131903 1998-07-28  Jim Meyering  <meyering@ascend.com>
131905         * m4/utimes.m4: Undef stat.
131907 1998-07-25  Jim Meyering  <meyering@ascend.com>
131909         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131910         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131912 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131914         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131915         uid and gid actually remain unchanged.
131917 1998-07-07  Jim Meyering  <meyering@ascend.com>
131919         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131921 1998-07-04  Jim Meyering  <meyering@ascend.com>
131923         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131924         to prove that this macro can be used in packages without regex.c.
131926 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131928         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131929         is to be used.
131931 1998-07-03  Jim Meyering  <meyering@ascend.com>
131933         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131935         * m4/gettext.m4: New file -- from gettext-0.10.35.
131936         * m4/lcmessage.m4: Likewise.
131937         * m4/progtest.m4: Likewise.
131939         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131940         * m4/jm-macros.m4: Require the new macro.
131942 1998-06-29  Jim Meyering  <meyering@ascend.com>
131944         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131945         for the definition of NGROUPS (used in a system header included
131946         by sys/mount.h).
131948 1998-06-28  Jim Meyering  <meyering@ascend.com>
131950         * m4/ls-mntd-fs.m4: New file.
131951         * m4/fstypename.m4: New file.
131953         * m4/jm-macros.m4: Require the new macro.
131954         * m4/jm-glibc-io.m4: New file.
131956 1998-05-19  Jim Meyering  <meyering@ascend.com>
131958         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131959         * m4/lchown.m4: New file.
131961         * m4/Makefile.am.in: New file.
131962         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131964 1998-05-14  Jim Meyering  <meyering@ascend.com>
131966         * m4/Makefile.am (EXTRA_DIST): Add them.
131967         * m4/jm-macros.m4: New file.
131968         * m4/utimbuf.m4: New file.
131970 1998-05-12  Jim Meyering  <meyering@ascend.com>
131972         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131974 1998-05-11  Jim Meyering  <meyering@ascend.com>
131976         * m4/isc-posix.m4: New file.
131978 1998-05-10  Jim Meyering  <meyering@ascend.com>
131980         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131982 1998-05-09  Jim Meyering  <meyering@ascend.com>
131984         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131985         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131986         with automake.
131988         * m4/ssize_t.m4: New file.
131989         * m4/mktime.m4: Remove file -- the new automake has this now.
131991 1998-04-26  Jim Meyering  <meyering@ascend.com>
131993         * m4/assert.m4: New file.
131994         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131996 1998-04-05  Jim Meyering  <meyering@ascend.com>
131998         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131999         (jm_PREREQ): Use it here.
132001 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
132003         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
132004         in acconfig.h.
132006 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
132008         * m4/prereq.m4: New file.
132009         * m4/error.m4: New file.
132010         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
132012 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
132014         * m4/getline.m4: Don't set am_cv_func_working_getline before the
132015         cache-check for the same variable -- that defeated the purpose of
132016         the test; the test program was never run.  This was a problem only
132017         on systems with losing getline functions -- HP-UX 10.20 is one.
132018         Reported by Bjorn Helgaas.
132020 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
132022         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
132024 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
132026         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
132028         * m4/const.m4: New file.  Use an initializer in this declaration
132029         typedef int charset[2]; const charset x;
132030         Reported by Bob Glickstein.
132032 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
132034         * m4/chown.m4: Fix reversed types on -1 args to chown.
132035         From Kaveh Ghazi.
132037 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
132039         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
132040         Add lseek and memchr.
132042         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
132043         T.E.Dickey <dickey@clark.net> said that some older preprocessors
132044         have a 20-character limit on names.
132046 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
132048         * m4/inttypes_h.m4: New file.
132049         * m4/uintmax_t.m4: New file.
132050         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
132053         -----
132055         Local Variables:
132056         coding: utf-8
132057         End:
132059         Copyright (C) 1997-2020 Free Software Foundation, Inc.
132061         Copying and distribution of this file, with or without
132062         modification, are permitted provided the copyright notice
132063         and this notice are preserved.